From 00a38cd305e57d7401883354bdd28d33ce8b7ef0 Mon Sep 17 00:00:00 2001 From: CRT Date: Sun, 11 Oct 2026 15:20:55 +0000 Subject: [PATCH 1/8] storebound scan: offline rejection-risk scan of the project itself Detects the stack (native iOS / Android, React Native, Expo, Capacitor, Cordova, Flutter, Unity, Godot) and the SDKs from a maintained table with versions, file:line and each vendor's disclosure page, then reports App Store and Google Play rejection risks with guideline, evidence, fix, severity and skill: 2.1(a) demo account and placeholder text, 5.1.1(v) account deletion, 4.8 login services, 3.1.1 restore and outside payments, 3.1.2 subscription info, 5.1.2(i) ATT, purpose strings, privacy link, privacy manifest, 2.3.10, 2.3.7, 2.3.8, 4.2 web wrappers, 2.5.1, 2.5.5, ATS, export compliance, 1.3 kids ads, review prompts, privacy labels vs SDKs; Play target SDK 36, delete-account URL, App access, foreground services, exact alarms, QUERY_ALL_PACKAGES, SMS / call log, com.example package name. Proposes Data safety / App Privacy / ATT / privacy manifest answers (detected file:line or ask owner) as a diff against the config; --write adds only the detected ones. scan.ignore records owner-accepted findings. MCP tool scan (read-only), validate includes open findings, desktop Checks tab shows them. Fixtures for iOS, Android, Capacitor, Unity, Flutter, clean and teaser. --- .cursor/rules/storebound.mdc | 6 +- .github/copilot-instructions.md | 6 +- AGENTS.md | 6 +- CHANGELOG.md | 17 + GEMINI.md | 6 +- README.md | 80 ++- apps/desktop/src/dev/fixtures.ts | 27 +- apps/desktop/src/i18n/en.ts | 15 + apps/desktop/src/i18n/tr.ts | 15 + apps/desktop/src/lib/model.ts | 13 + apps/desktop/src/screens/tabs/Checks.tsx | 51 +- cli/index.ts | 1 + cli/lib/config.ts | 21 + cli/lib/profile.ts | 2 + cli/lib/scan/config-edit.ts | 71 +++ cli/lib/scan/declare.ts | 155 ++++++ cli/lib/scan/index.ts | 121 +++++ cli/lib/scan/permissions.ts | 55 ++ cli/lib/scan/project.ts | 430 +++++++++++++++ cli/lib/scan/rules.ts | 502 ++++++++++++++++++ cli/lib/scan/sdks.ts | 205 +++++++ cli/mcp-tools.ts | 6 +- cli/scan.ts | 57 ++ cli/serve.ts | 2 +- cli/validate.ts | 24 +- docs/agents-core.md | 4 +- docs/desktop.md | 3 +- examples/demo-app/README.md | 5 + examples/demo-app/storebound.config.ts | 8 + examples/demo-game/README.md | 5 + examples/demo-game/storebound.config.ts | 2 + skills/account-deletion/SKILL.md | 2 + skills/privacy-manifest/SKILL.md | 2 + skills/review-access/SKILL.md | 2 + skills/review-rejections/SKILL.md | 17 + skills/store-declarations/SKILL.md | 2 + skills/store-preflight/SKILL.md | 32 +- tests/fixtures/scan/android/README.md | 5 + .../scan/android/app/build.gradle.kts | 23 + .../android/app/src/main/AndroidManifest.xml | 18 + .../java/com/example/budget/AuthRepository.kt | 9 + .../scan/android/gradle/libs.versions.toml | 8 + .../scan/android/storebound.config.ts | 24 + tests/fixtures/scan/capacitor/README.md | 5 + .../android/app/src/main/AndroidManifest.xml | 5 + .../scan/capacitor/android/variables.gradle | 5 + .../scan/capacitor/capacitor.config.json | 9 + .../scan/capacitor/ios/App/App/Info.plist | 10 + tests/fixtures/scan/capacitor/package.json | 11 + tests/fixtures/scan/capacitor/src/main.ts | 5 + .../clean/Clean.xcodeproj/project.pbxproj | 15 + .../scan/clean/Clean/AccountView.swift | 11 + .../scan/clean/Clean/Clean.entitlements | 10 + tests/fixtures/scan/clean/Clean/Info.plist | 12 + .../fixtures/scan/clean/Clean/LoginView.swift | 16 + .../scan/clean/Clean/PrivacyInfo.xcprivacy | 23 + .../fixtures/scan/clean/Clean/StoreView.swift | 14 + .../fixtures/scan/clean/Clean/Tracking.swift | 8 + tests/fixtures/scan/clean/Podfile.lock | 9 + tests/fixtures/scan/clean/README.md | 7 + .../scan/clean/android/app/build.gradle.kts | 15 + .../android/app/src/main/AndroidManifest.xml | 5 + tests/fixtures/scan/clean/store/appstore.md | 28 + tests/fixtures/scan/clean/store/listing.md | 14 + .../fixtures/scan/clean/storebound.config.ts | 45 ++ tests/fixtures/scan/flutter/README.md | 6 + .../scan/flutter/android/app/build.gradle | 9 + .../android/app/src/main/AndroidManifest.xml | 7 + .../scan/flutter/ios/Runner/Info.plist | 10 + tests/fixtures/scan/flutter/lib/main.dart | 14 + tests/fixtures/scan/flutter/pubspec.lock | 19 + tests/fixtures/scan/flutter/pubspec.yaml | 19 + tests/fixtures/scan/flutter/store/appstore.md | 23 + .../scan/flutter/storebound.config.ts | 22 + .../Notes.xcodeproj/project.pbxproj | 17 + .../fixtures/scan/ios-native/Notes/Api.swift | 8 + .../fixtures/scan/ios-native/Notes/Info.plist | 19 + .../scan/ios-native/Notes/LegacyHelp.swift | 8 + .../scan/ios-native/Notes/LoginView.swift | 20 + .../scan/ios-native/Notes/ScannerView.swift | 13 + .../scan/ios-native/Notes/Store.swift | 7 + tests/fixtures/scan/ios-native/Podfile.lock | 13 + tests/fixtures/scan/ios-native/README.md | 7 + .../scan/ios-native/store/appstore.md | 25 + .../scan/ios-native/storebound.config.ts | 18 + .../teaser/Planner.xcodeproj/project.pbxproj | 13 + tests/fixtures/scan/teaser/Planner/Ads.swift | 9 + tests/fixtures/scan/teaser/Planner/Info.plist | 10 + .../scan/teaser/Planner/LoginView.swift | 20 + .../scan/teaser/Planner/PrivacyInfo.xcprivacy | 19 + .../scan/teaser/Planner/ProStore.swift | 7 + .../scan/teaser/Planner/SettingsView.swift | 10 + tests/fixtures/scan/teaser/Podfile.lock | 9 + tests/fixtures/scan/teaser/README.md | 6 + tests/fixtures/scan/teaser/store/appstore.md | 23 + .../fixtures/scan/teaser/storebound.config.ts | 18 + .../Editor/GoogleMobileAdsDependencies.xml | 9 + .../scan/unity/Assets/Scripts/PhotoBooth.cs | 12 + .../scan/unity/Assets/Scripts/RatePopup.cs | 12 + .../scan/unity/Assets/Scripts/Shop.cs | 9 + .../scan/unity/Packages/manifest.json | 8 + .../ProjectSettings/ProjectSettings.asset | 11 + tests/fixtures/scan/unity/README.md | 5 + tests/fixtures/scan/unity/store/appstore.md | 23 + .../fixtures/scan/unity/storebound.config.ts | 17 + tests/scan.test.ts | 245 +++++++++ tools/gen-adapters.ts | 2 +- tools/scrub.ts | 3 +- tsconfig.json | 3 +- 109 files changed, 3103 insertions(+), 31 deletions(-) create mode 100644 cli/lib/scan/config-edit.ts create mode 100644 cli/lib/scan/declare.ts create mode 100644 cli/lib/scan/index.ts create mode 100644 cli/lib/scan/permissions.ts create mode 100644 cli/lib/scan/project.ts create mode 100644 cli/lib/scan/rules.ts create mode 100644 cli/lib/scan/sdks.ts create mode 100644 cli/scan.ts create mode 100644 tests/fixtures/scan/android/README.md create mode 100644 tests/fixtures/scan/android/app/build.gradle.kts create mode 100644 tests/fixtures/scan/android/app/src/main/AndroidManifest.xml create mode 100644 tests/fixtures/scan/android/app/src/main/java/com/example/budget/AuthRepository.kt create mode 100644 tests/fixtures/scan/android/gradle/libs.versions.toml create mode 100644 tests/fixtures/scan/android/storebound.config.ts create mode 100644 tests/fixtures/scan/capacitor/README.md create mode 100644 tests/fixtures/scan/capacitor/android/app/src/main/AndroidManifest.xml create mode 100644 tests/fixtures/scan/capacitor/android/variables.gradle create mode 100644 tests/fixtures/scan/capacitor/capacitor.config.json create mode 100644 tests/fixtures/scan/capacitor/ios/App/App/Info.plist create mode 100644 tests/fixtures/scan/capacitor/package.json create mode 100644 tests/fixtures/scan/capacitor/src/main.ts create mode 100644 tests/fixtures/scan/clean/Clean.xcodeproj/project.pbxproj create mode 100644 tests/fixtures/scan/clean/Clean/AccountView.swift create mode 100644 tests/fixtures/scan/clean/Clean/Clean.entitlements create mode 100644 tests/fixtures/scan/clean/Clean/Info.plist create mode 100644 tests/fixtures/scan/clean/Clean/LoginView.swift create mode 100644 tests/fixtures/scan/clean/Clean/PrivacyInfo.xcprivacy create mode 100644 tests/fixtures/scan/clean/Clean/StoreView.swift create mode 100644 tests/fixtures/scan/clean/Clean/Tracking.swift create mode 100644 tests/fixtures/scan/clean/Podfile.lock create mode 100644 tests/fixtures/scan/clean/README.md create mode 100644 tests/fixtures/scan/clean/android/app/build.gradle.kts create mode 100644 tests/fixtures/scan/clean/android/app/src/main/AndroidManifest.xml create mode 100644 tests/fixtures/scan/clean/store/appstore.md create mode 100644 tests/fixtures/scan/clean/store/listing.md create mode 100644 tests/fixtures/scan/clean/storebound.config.ts create mode 100644 tests/fixtures/scan/flutter/README.md create mode 100644 tests/fixtures/scan/flutter/android/app/build.gradle create mode 100644 tests/fixtures/scan/flutter/android/app/src/main/AndroidManifest.xml create mode 100644 tests/fixtures/scan/flutter/ios/Runner/Info.plist create mode 100644 tests/fixtures/scan/flutter/lib/main.dart create mode 100644 tests/fixtures/scan/flutter/pubspec.lock create mode 100644 tests/fixtures/scan/flutter/pubspec.yaml create mode 100644 tests/fixtures/scan/flutter/store/appstore.md create mode 100644 tests/fixtures/scan/flutter/storebound.config.ts create mode 100644 tests/fixtures/scan/ios-native/Notes.xcodeproj/project.pbxproj create mode 100644 tests/fixtures/scan/ios-native/Notes/Api.swift create mode 100644 tests/fixtures/scan/ios-native/Notes/Info.plist create mode 100644 tests/fixtures/scan/ios-native/Notes/LegacyHelp.swift create mode 100644 tests/fixtures/scan/ios-native/Notes/LoginView.swift create mode 100644 tests/fixtures/scan/ios-native/Notes/ScannerView.swift create mode 100644 tests/fixtures/scan/ios-native/Notes/Store.swift create mode 100644 tests/fixtures/scan/ios-native/Podfile.lock create mode 100644 tests/fixtures/scan/ios-native/README.md create mode 100644 tests/fixtures/scan/ios-native/store/appstore.md create mode 100644 tests/fixtures/scan/ios-native/storebound.config.ts create mode 100644 tests/fixtures/scan/teaser/Planner.xcodeproj/project.pbxproj create mode 100644 tests/fixtures/scan/teaser/Planner/Ads.swift create mode 100644 tests/fixtures/scan/teaser/Planner/Info.plist create mode 100644 tests/fixtures/scan/teaser/Planner/LoginView.swift create mode 100644 tests/fixtures/scan/teaser/Planner/PrivacyInfo.xcprivacy create mode 100644 tests/fixtures/scan/teaser/Planner/ProStore.swift create mode 100644 tests/fixtures/scan/teaser/Planner/SettingsView.swift create mode 100644 tests/fixtures/scan/teaser/Podfile.lock create mode 100644 tests/fixtures/scan/teaser/README.md create mode 100644 tests/fixtures/scan/teaser/store/appstore.md create mode 100644 tests/fixtures/scan/teaser/storebound.config.ts create mode 100644 tests/fixtures/scan/unity/Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml create mode 100644 tests/fixtures/scan/unity/Assets/Scripts/PhotoBooth.cs create mode 100644 tests/fixtures/scan/unity/Assets/Scripts/RatePopup.cs create mode 100644 tests/fixtures/scan/unity/Assets/Scripts/Shop.cs create mode 100644 tests/fixtures/scan/unity/Packages/manifest.json create mode 100644 tests/fixtures/scan/unity/ProjectSettings/ProjectSettings.asset create mode 100644 tests/fixtures/scan/unity/README.md create mode 100644 tests/fixtures/scan/unity/store/appstore.md create mode 100644 tests/fixtures/scan/unity/storebound.config.ts create mode 100644 tests/scan.test.ts diff --git a/.cursor/rules/storebound.mdc b/.cursor/rules/storebound.mdc index 2c41da63..5e4b77e5 100644 --- a/.cursor/rules/storebound.mdc +++ b/.cursor/rules/storebound.mdc @@ -14,8 +14,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t chat). storebound's MCP server does not offer these at all. 2. **Dry run first.** Every write command has `--dry` (MCP: `dry_run`, default true). Show the dry run, then run it for real only after the owner agrees. -3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you - what is missing and in which order to fix it. +3. **Read before you write.** `storebound scan` (offline: rejection risks in the project itself), `storebound check` + (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. 4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. @@ -34,7 +34,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`. - MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed. -- Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores). +- Readiness: `storebound scan` (offline rejection risks in the project files), `storebound check` (offline), `storebound validate` (read-only, both stores). ## Skills diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ecfa9e79..b142f365 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -14,8 +14,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t chat). storebound's MCP server does not offer these at all. 2. **Dry run first.** Every write command has `--dry` (MCP: `dry_run`, default true). Show the dry run, then run it for real only after the owner agrees. -3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you - what is missing and in which order to fix it. +3. **Read before you write.** `storebound scan` (offline: rejection risks in the project itself), `storebound check` + (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. 4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. @@ -34,7 +34,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`. - MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed. -- Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores). +- Readiness: `storebound scan` (offline rejection risks in the project files), `storebound check` (offline), `storebound validate` (read-only, both stores). ## Skills diff --git a/AGENTS.md b/AGENTS.md index 19cf225e..9381d6d3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,8 +15,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t chat). storebound's MCP server does not offer these at all. 2. **Dry run first.** Every write command has `--dry` (MCP: `dry_run`, default true). Show the dry run, then run it for real only after the owner agrees. -3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you - what is missing and in which order to fix it. +3. **Read before you write.** `storebound scan` (offline: rejection risks in the project itself), `storebound check` + (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. 4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. @@ -35,7 +35,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`. - MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed. -- Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores). +- Readiness: `storebound scan` (offline rejection risks in the project files), `storebound check` (offline), `storebound validate` (read-only, both stores). ## Skills diff --git a/CHANGELOG.md b/CHANGELOG.md index ba686186..d01836dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ ## Unreleased +- `storebound scan` (MCP tool `scan`, desktop Checks tab): an offline, read-only scan of the project itself for App + Store and Google Play rejection risks before you submit. Detects the stack (native iOS / Android, React Native, + Expo, Capacitor, Cordova, Flutter, Unity, Godot) and the SDKs from a maintained table (`cli/lib/scan/sdks.ts`: ads, + analytics, attribution, crash, sign-in, payments, push, with versions, file:line and each vendor's data disclosure + page) and reports each risk with the guideline, evidence, fix, severity and skill: 2.1(a) demo account and + placeholder text, 5.1.1(v) account deletion, 4.8 login services, 3.1.1 Restore Purchases and outside payments, + 3.1.2(c) subscription information, 5.1.2(i) App Tracking Transparency, 5.1.1(ii) / (iv) purpose strings, 5.1.1(i) + privacy link, privacy manifests (ITMS-91053 / 91061), 2.3.10 other platforms, 2.3.7 keywords, 2.3.8 "For Kids", 4.2 + web wrappers, 2.5.1 UIWebView and private URL schemes, 2.5.5 IPv6, ATS, export compliance, 1.3 kids ads, 5.6.1 / + 3.2.2(x) review prompts, privacy labels vs SDKs, and on Play the API 36 target SDK requirement (since 2026-08-31), + the delete-account URL, App access, foreground service types, exact alarms, QUERY_ALL_PACKAGES, SMS / call log and + the reserved com.example package name. It also proposes the Data safety / App Privacy / ATT / privacy manifest + answers, each "detected (file:line)" or "ask owner", as a diff against the config; `--write` adds only the detected + answers (new `appPrivacy` block for tracking). `scan.ignore` records findings the owner accepts, with the reason. + `validate` includes the open findings (`--no-scan` skips), `check` now asks for unanswered dataSafety booleans. + Fixtures for iOS, Android, Capacitor, Unity, Flutter, a clean project and the teaser under `tests/fixtures/scan/`. + - New logo: a glossy indigo box with an upward arrow (`brand/master/logo-mark.png`, `brand/README.md`). Every logo file comes from it through `tools/brand-assets.py`: desktop app icons (PNG sizes, `.icns`, a `.ico` with its own image per size, Windows tiles), the site's favicon.ico, maskable web app icons with a manifest, apple-touch-icon, diff --git a/GEMINI.md b/GEMINI.md index dd0810f0..97a3416e 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -13,8 +13,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t chat). storebound's MCP server does not offer these at all. 2. **Dry run first.** Every write command has `--dry` (MCP: `dry_run`, default true). Show the dry run, then run it for real only after the owner agrees. -3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you - what is missing and in which order to fix it. +3. **Read before you write.** `storebound scan` (offline: rejection risks in the project itself), `storebound check` + (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. 4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. @@ -33,7 +33,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`. - MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed. -- Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores). +- Readiness: `storebound scan` (offline rejection risks in the project files), `storebound check` (offline), `storebound validate` (read-only, both stores). ## Skills diff --git a/README.md b/README.md index 4940806f..456a4c04 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ your own click. | 8 | **Privacy and accounts** | privacy policy page template (`init`), `privacy-manifest --ios ` (PrivacyInfo.xcprivacy, required-reason APIs, SDK manifests), `validate` checks the policy, delete-account and terms URLs answer | host the pages, link them in both consoles and inside the app; in-app account deletion (`privacy-policy`, `privacy-manifest`, `account-deletion`) | | | 9 | **Icons** | `icons`: App Store 1024 without alpha, Play 512, adaptive + legacy Android launcher icons, web icons, Capacitor sources | | | | 10 | **Screenshots and previews** | `shots capture / render / check / gallery`, `play images`, `apple screenshots`, `shots record / video`, `apple previews`, `apple ppo create / upload` (App Store product page tests from `shots` variants; see [Store art](#store-art)) | Play store listing experiments (optional, `store-screenshots`) | uploading the promo video to YouTube; `apple ppo start / stop` | -| 11 | **Validate** | `check` (offline) and `validate` (read-only on both stores: every blocker in fix order, plus the local renders) | the UI-only items `validate` cannot see (`store-preflight` lists them) | | +| 11 | **Validate** | `scan` (offline: rejection risks in the project files, see [Catch rejections before you submit](#catch-rejections-before-you-submit)), `check` (offline) and `validate` (read-only on both stores: every blocker in fix order, plus the local renders) | the UI-only items `validate` cannot see (`store-preflight` lists them) | | | 12 | **Submit** | `play release --version-code N --production draft`, `apple status` | Play: countries / regions, open the production draft and save it (`play-first-release`) | **Play: Send changes for review. App Store: Submit for Review.** | | 13 | **After review** | `apple status --wait-review`, `apple release --phased on / pause`, `play rollout --halt`, reply drafts (`review-rejections`) | | releasing the approved version, resuming or completing a phased release or rollout (terminal commands that ask first, `release-management`) | | 14 | **Live app** | `health [--weekly]` (crash / ANR vitals vs Play's thresholds, App Store diagnostics; also in `validate`), `reviews list / draft`, `analytics snapshot / compare`, `prices export`, `prices import --dry`, `apple ppo status` | `store-health`, `review-replies`, `store-analytics`; Play statistics come from the reports bucket (no API) | `reviews send` (approved drafts only), `prices import` (asks first) | @@ -88,6 +88,81 @@ New personal Play developer accounts also need a closed test with 12+ testers fo rollouts after approval, Beta App Review, tester invitations, sending review replies, applying price changes and starting / stopping a product page test too. None of these is an MCP tool; the terminal commands ask first. +## Catch rejections before you submit + +App Store rejections cost days: you wait for review, read one sentence in the Resolution Center, fix it, and wait +again. Most of the usual ones are visible in the project long before that. `storebound scan` reads the project itself, +offline and read-only (Xcode project, Info.plist and build settings, entitlements, PrivacyInfo.xcprivacy, +Podfile.lock, Package.resolved, Cartfile, Gradle files and version catalogs, AndroidManifest.xml, package.json, +Expo app.json, capacitor.config, Cordova config.xml, pubspec, Unity Packages/manifest.json, ProjectSettings and +External Dependency Manager files, Godot export presets), plus your config and listing files. It works out the stack +and the SDKs (ads, analytics, attribution, crash, sign-in, payments, push, with versions and the file:line they come +from) and reports every rejection risk it can prove, each with the guideline, the evidence, the fix, a severity and the +skill to open. On the teaser fixture (`tests/fixtures/scan/teaser`): + +```text +$ storebound scan +Rejection risks: 2 blocker, 3 high, 0 medium, 0 low + 1. BLOCKER 2.1(a) · App Store · Sign-in is required but there is no demo account for App Review + at storebound.config.ts:12 reviewAccess: { signInRequired: true, instructions: 'Sign in with the demo account.' }, + at storebound.config.ts:11 accounts: { enabled: true }, + at Podfile.lock:3 Google Sign-In: GoogleSignIn 7.1.0 + 2. BLOCKER 5.1.1(v) · App Store · Accounts can be created but no in-app account deletion was found + at storebound.config.ts:11 accounts: { enabled: true }, + at Planner/LoginView.swift:11 Button("Create account") { Task { try await AccountApi.signUp() } } + at Planner/LoginView.swift:17 static func signUp() async throws { + 3. HIGH 4.8 · App Store · Third-party login (Google / Facebook / ...) without Sign in with Apple or another equivalent login option + at Podfile.lock:3 Google Sign-In: GoogleSignIn 7.1.0 + at Planner/LoginView.swift:9 GIDSignIn.sharedInstance.signIn(withPresenting: rootViewController()) { _, _ in } + 4. HIGH 3.1.1 · App Store · Restorable purchases (non-consumables or subscriptions) but no Restore Purchases path was found + at storebound.config.ts:16 com.example.planner.pro (non_consumable) + 5. HIGH 5.1.2(i) · App Store · Tracking-capable code without App Tracking Transparency (Google AdMob, IDFA) + at Podfile.lock:2 Google AdMob: Google-Mobile-Ads-SDK 11.10.0 + at Planner/Ads.swift:7 print(ASIdentifierManager.shared().advertisingIdentifier) +``` + +Every finding also has a `fix:` line and the skill. Below the risks comes the declarations proposal: the Play Data +safety and App Store App Privacy answers, App Tracking Transparency and privacy manifest entries the detected SDKs and +code imply, each marked **detected (file:line)** or **ask owner**, as a diff against `dataSafety` / `appPrivacy` in +the config. Nothing is written unless you run `storebound scan --write` (only detected answers; questions stay +questions). The MCP tool `scan` is read-only and cannot write; `validate` includes the open scan findings; the desktop +app shows them on the Checks tab. A finding you decided is fine goes into the config with its reason: +`scan: { ignore: [{ rule: 'demo-account', reason: '...' }] }`. + +| rule | App Store guideline / Play policy | what scan proves | +|---|---|---| +| `demo-account`, `play-app-access` | 2.1(a), Play App access | a sign-in (config, auth SDKs, sign-in code) without `reviewAccess` or without the demo account in `.storebound/` | +| `account-deletion`, `play-deletion-url` | 5.1.1(v), Play account deletion | sign-up or social login without a deletion path in code or `accounts.inApp`; no `accounts.deletionUrl` | +| `login-services` | 4.8 | Google / Facebook / other third-party login without Sign in with Apple or another equivalent option | +| `restore-purchases`, `external-purchase` | 3.1.1 | non-consumables or subscriptions without a restore path; card / PayPal SDKs next to IAP; "buy on our website" | +| `subscription-info` | 3.1.2(c), 3.1.2 | no Terms of Use URL, no Terms link or renewal wording in the description, no legal links or "Manage subscription" in the app | +| `att` | 5.1.2(i) | tracking-capable SDKs or IDFA without ATT; the prompt without its purpose string; the string without a prompt | +| `purpose-strings`, `unused-permission` | 5.1.1(ii), 5.1.1(iv), ITMS-90683 | a used permission without its NS*UsageDescription; empty or vague strings; declared but unused | +| `privacy-manifest` | ITMS-91053 / 91061 | no PrivacyInfo.xcprivacy, required-reason APIs not declared, SDKs older than their first manifest version | +| `privacy-policy-link`, `privacy-labels` | 5.1.1(i), 5.1.2, Play Data safety | data collection without a privacy link in the app; SDK data types missing from `dataSafety` | +| `other-platforms` | 2.3.10 | "Android", "Google Play" and other stores in the App Store text or screenshot captions | +| `metadata-keywords`, `kids-terms` | 2.3.7, 2.3.8 | other apps' names, prices and "best / #1" in name, subtitle or keywords; keyword lists; "For Kids" outside the Kids Category | +| `placeholder-text` | 2.1(a), Play Metadata | lorem ipsum, TODO, template lines in the listings | +| `min-functionality` | 4.2 | Capacitor `server.url` / Cordova `` on a remote site; a few native files around a remote WKWebView | +| `deprecated-api`, `private-api` | 2.5.1 (ITMS-90809) | UIWebView; `App-Prefs:` / `prefs:root` URL schemes | +| `ipv6`, `ats` | 2.5.5, App Transport Security | IPv4 literals in server URLs; NSAllowsArbitraryLoads | +| `export-compliance` | export compliance | no ITSAppUsesNonExemptEncryption and no `apple.usesNonExemptEncryption`, or the two disagree (never guessed) | +| `kids-ads` | 1.3, Play Families | a Kids Category age band with third-party ads or analytics SDKs | +| `review-prompt` | 5.6.1, 3.2.2(x) / 5.6.3 | a custom "rate us" prompt without the system API; rewards for ratings | +| `play-target-sdk` | Play target API level | below API 36 (Wear OS / Automotive 35, TV / XR 34) for new apps and updates since 2026-08-31 | +| `play-fgs`, `play-exact-alarm`, `play-query-all-packages`, `play-sms-call-log` | Play permissions policies | foreground services without a type or its permission (and the Console declaration); USE_EXACT_ALARM; QUERY_ALL_PACKAGES; SMS and call log permissions | +| `play-package-name` | Play Console upload | the reserved `com.example` prefix | + +Rules cite Apple's App Review Guidelines and the Play policy pages they come from (checked 2026-10-11, in the code +comments of `cli/lib/scan/rules.ts`); the SDK table with each vendor's data disclosure page is `cli/lib/scan/sdks.ts`. +Merged-manifest permissions that libraries add at build time are outside the scan (it says so). + +**Checked at review, not by scan** (no file shows them): crashes and hangs on the reviewer's device (2.1, `store-health`), +links that are dead at review time (`validate` checks the configured URLs), screenshots and descriptions that do not +match the app (2.3, `store-screenshots`), unfinished UI (4.0), "too simple" and spam / template apps (4.2, 4.3, +`portfolio-originality`), IAPs that fail in the sandbox (2.1(b), `store-iap-setup`), the content of the privacy policy +(`privacy-policy`), local law (5.2). The `review-rejections` skill covers what to do when one of these comes back. + ## 5-minute quick start You need [Bun](https://bun.sh) 1.1+ (and `ffmpeg` for icons, screenshots and video). @@ -209,6 +284,7 @@ run in the background with a log (`storebound shots render > .storebound/render. | `check` | local | config, copy limits, data safety, products, subscriptions, profile (delete-account URL, demo account, terms URL), files; warns on untranslated release notes | | `catalog diff [--store] [--threshold 10]` | API, read-only | one catalog vs both stores: missing / extra / mismatched products and subscriptions, US and override prices, locales, offers, per-region price differences between the stores; exit 1 on mismatches | | `check --aso` | local | keyword audit: App Store keyword field rules, Play stuffing / claims | +| `scan [--store apple\|play] [--json] [--write]` | local, read-only | rejection risks in the project itself (stack, SDKs, Info.plist, manifest, listings) with guideline, evidence file:line, fix and skill; Data safety / App Privacy / ATT / privacy manifest proposal as a diff (`--write` adds the detected answers to the config); exit 1 on blockers | | `validate [--apple] [--play]` | API, read-only | readiness report with ordered blockers plus the local renders checks (`--no-local` skips); exit 1 while any blocker is left | | `whats-new [--since ]` | local | draft player-facing release notes from git log into both listing files | | `privacy-manifest --ios ` | local | PrivacyInfo.xcprivacy, required-reason APIs, SDKs without manifests | @@ -394,7 +470,7 @@ per-request `_meta`, `resultType`, cacheable `tools/list`) and, on the same proc `initialize` (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05). It runs each tool as a CLI call in the project directory (the server's working directory, or `STOREBOUND_PROJECT`) and returns the output. -- One tool per command. Read-only: `check`, `check_aso`, `validate`, `catalog_diff`, `health`, `reviews_list`, `prices_diff`, +- One tool per command. Read-only: `scan`, `check`, `check_aso`, `validate`, `catalog_diff`, `health`, `reviews_list`, `prices_diff`, `analytics_compare`, `apple_status`, `apple_next_build`, `apple_testflight_status`, `apple_ppo_status`, `play_status`, `play_next_version_code`, `privacy_manifest`, `shots_check`. Local writes: `import_fastlane`, `whats_new`, `icons`, `health_report`, `reviews_draft`, `prices_export`, `analytics_snapshot`, `shots_capture`, `shots_render`, diff --git a/apps/desktop/src/dev/fixtures.ts b/apps/desktop/src/dev/fixtures.ts index 41fc83e3..9f03809d 100644 --- a/apps/desktop/src/dev/fixtures.ts +++ b/apps/desktop/src/dev/fixtures.ts @@ -6,7 +6,7 @@ import { type Account, type AccountCheck, type AppsListResult, type AppStatus, type CacheEntry, DEFAULT_SETTINGS, type DownloadEvent, type DraftsResult, type ListingField, type ListingsResult, type PortfolioResult, type Project, type ProjectSummary, type Settings, type StoreApp, type StoreRelease, type Studio, type ToolResult } from '../api'; import { buildApps, type Overrides } from '../lib/identity'; -import type { CatalogDiff, HealthSnapshot, MetricRow, Review, TestFlightStatus, ValidateResult } from '../lib/model'; +import type { CatalogDiff, HealthSnapshot, MetricRow, Review, TestFlightStatus, ValidateResult, ScanResult } from '../lib/model'; import { ANALYTICS, DECLARATIONS, LISTING_TEXT, PPO, PPO_STORE, PRICE_DIFF, PRICES, renderArt, RENDERS } from './fixtures-more'; export const FIXTURE_MARKER = 'storebound-dev-fixtures'; @@ -342,6 +342,30 @@ const VALIDATE: Record = { 'p-tidy': { blockers: 0, findings: [] }, }; +const scanCounts = (f: ScanResult['findings']): ScanResult['counts'] => { + const c = { blocker: 0, high: 0, medium: 0, low: 0, accepted: 0 }; + for (const x of f) { if (x.accepted) c.accepted++; else c[x.severity]++; } + return c; +}; +const SCAN_PRISM: ScanResult['findings'] = [ + { rule: 'att', guideline: '5.1.2(i)', store: 'apple', severity: 'high', title: 'Tracking-capable code without App Tracking Transparency (AppLovin MAX, Unity Ads)', + evidence: [{ file: 'Packages/manifest.json', line: 4, text: 'com.applovin.mediation.ads 8.1.0' }], fix: 'Add NSUserTrackingUsageDescription and request ATT before the SDKs start, or configure non-personalized ads and answer "no tracking".', skill: 'ads-mediation-checks', ref: 'https://developer.apple.com/app-store/review/guidelines/' }, + { rule: 'play-target-sdk', guideline: 'Play: Target API level', store: 'play', severity: 'blocker', title: 'targetSdk 35 is below 36, which new apps and updates need since 2026-08-31', + evidence: [{ file: 'ProjectSettings/ProjectSettings.asset', line: 212, text: 'targetSdk 35' }], fix: 'Raise targetSdk to 36, test, upload a new AAB.', skill: 'play-first-release', ref: 'https://developer.android.com/google/play/requirements/target-sdk' }, + { rule: 'restore-purchases', guideline: '3.1.1', store: 'apple', severity: 'high', title: 'Restorable purchases (non-consumables or subscriptions) but no Restore Purchases path was found', + evidence: [{ file: 'storebound.config.ts', line: 41, text: 'no_ads (non_consumable)' }], fix: 'Add a visible "Restore Purchases" button on the store screen or in Settings.', skill: 'store-iap-setup', ref: 'https://developer.apple.com/app-store/review/guidelines/' }, + { rule: 'demo-account', guideline: '2.1(a)', store: 'apple', severity: 'blocker', title: 'Sign-in is required but there is no demo account for App Review', + evidence: [{ file: 'storebound.config.ts', line: 17, text: 'reviewAccess: { signInRequired: true }' }], fix: 'Add the App Review demo account in .storebound/ (review-access skill).', skill: 'review-access', ref: 'https://developer.apple.com/app-store/review/guidelines/', accepted: 'leaderboards only; the game plays without signing in' }, +]; +const SCAN: Record = { + 'p-prism': { stacks: ['unity'], sdks: [{ id: 'applovin', name: 'AppLovin MAX', category: 'ads', tracking: true }, { id: 'unity-ads', name: 'Unity Ads', category: 'ads', tracking: true }, { id: 'gameanalytics', name: 'GameAnalytics', category: 'analytics', tracking: false }], + findings: SCAN_PRISM, counts: scanCounts(SCAN_PRISM), + declarations: { changed: true, items: [{ area: 'appPrivacy', what: 'tracking', value: 'AppLovin MAX, Unity Ads can track', status: 'ask', evidence: [] }, { area: 'dataSafety', what: 'PSL_DEVICE_ID', value: 'collect: advertising, analytics, fraud', status: 'detected', evidence: [{ file: 'Packages/manifest.json', line: 4 }] }] } }, + 'p-tidy': { stacks: ['ios-native', 'android-native'], sdks: [{ id: 'sentry', name: 'Sentry', category: 'crash', tracking: false }], findings: [], counts: scanCounts([]), + declarations: { changed: false, items: [] } }, +}; +const SCAN_EMPTY: ScanResult = { stacks: [], sdks: [], findings: [], counts: scanCounts([]), declarations: { changed: false, items: [] } }; + function field(f: string, length: number, limit: number, required = true): ListingField { return { field: f, length, limit, required, state: !length ? (required ? 'missing' : 'empty-optional') : length > limit ? 'over' : 'ok' }; } @@ -404,6 +428,7 @@ function read(method: string, id: string, args: Record = {}): T case 'apple.testflight_status': return ok(method, TF[id]); case 'catalog.diff': return ok(method, CATALOG[id]); case 'validate': return ok(method, VALIDATE[id]); + case 'scan': return ok(method, SCAN[id] ?? SCAN_EMPTY); case 'project.declarations': return ok(method, DECLARATIONS[id]); case 'project.listing_text': return ok(method, LISTING_TEXT[id]); case 'project.renders': return ok(method, RENDERS[id]); diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts index 3c3b80df..dab9d1b5 100644 --- a/apps/desktop/src/i18n/en.ts +++ b/apps/desktop/src/i18n/en.ts @@ -396,6 +396,21 @@ export const en = { 'checks.validateEmptyText': 'What is still missing on the App Store and Google Play before a submission, in the order to fix it.', 'checks.ready': 'No blockers', 'checks.readyText': 'Both stores have what a submission needs.', + 'checks.scan': 'Rejection risks', + 'checks.scanSub': 'Offline scan of the project files: guideline, evidence, fix', + 'checks.scanAgain': 'Scan again', + 'checks.scanClean': 'No rejection risks found', + 'checks.scanCleanText': 'Nothing in the project files, config or listings matches a known App Store or Google Play rejection.', + 'checks.scanSdks': 'SDKs: {list}', + 'checks.scanAsk': '{count} declaration answers only you can give', + 'checks.scanAsk_one': '1 declaration answer only you can give', + 'checks.scanWrite': 'Detected Data safety / App Privacy answers differ from the config: storebound scan --write adds them', + 'checks.accepted': 'Accepted: {reason}', + 'checks.sev.blocker': 'Blocker', + 'checks.sev.high': 'High', + 'checks.sev.medium': 'Medium', + 'checks.sev.accepted': 'Accepted', + 'checks.sev.low': 'Low', 'folders.lead': 'One folder per app with its storebound.config.ts (iOS and Android in one config). Pick the store accounts each app uses; the keys stay in the keychain.', 'folders.list': 'App folders', diff --git a/apps/desktop/src/i18n/tr.ts b/apps/desktop/src/i18n/tr.ts index 1669f588..f52e84a4 100644 --- a/apps/desktop/src/i18n/tr.ts +++ b/apps/desktop/src/i18n/tr.ts @@ -398,6 +398,21 @@ export const tr: Record = { 'checks.validateEmptyText': 'Göndermeden önce App Store ve Google Play\'de hâlâ eksik olanlar, düzeltme sırasıyla.', 'checks.ready': 'Engel yok', 'checks.readyText': 'İki mağazada da gönderim için gerekenler tamam.', + 'checks.scan': 'Ret riskleri', + 'checks.scanSub': 'Proje dosyalarının çevrimdışı taraması: kural, kanıt, çözüm', + 'checks.scanAgain': 'Yeniden tara', + 'checks.scanClean': 'Ret riski bulunmadı', + 'checks.scanCleanText': 'Proje dosyalarında, ayarda ve mağaza metinlerinde bilinen bir App Store veya Google Play reddine uyan bir şey yok.', + 'checks.scanSdks': 'SDK\'lar: {list}', + 'checks.scanAsk': 'Yalnızca senin cevaplayabileceğin {count} beyan sorusu', + 'checks.scanAsk_one': 'Yalnızca senin cevaplayabileceğin 1 beyan sorusu', + 'checks.scanWrite': 'Bulunan Data safety / App Privacy cevapları ayardan farklı: storebound scan --write ekler', + 'checks.accepted': 'Kabul edildi: {reason}', + 'checks.sev.blocker': 'Engel', + 'checks.sev.high': 'Yüksek', + 'checks.sev.medium': 'Orta', + 'checks.sev.accepted': 'Kabul', + 'checks.sev.low': 'Düşük', 'folders.lead': 'Her uygulama için storebound.config.ts dosyası olan bir klasör (iOS ve Android tek ayarda). Her uygulamanın kullandığı mağaza hesaplarını seçin; anahtarlar anahtar zincirinde kalır.', 'folders.list': 'Uygulama klasörleri', diff --git a/apps/desktop/src/lib/model.ts b/apps/desktop/src/lib/model.ts index 52e8b402..e685441d 100644 --- a/apps/desktop/src/lib/model.ts +++ b/apps/desktop/src/lib/model.ts @@ -31,6 +31,19 @@ export interface ParityRow { id: string; region: string; currency: string; apple export interface CatalogDiff { errors: number; rows: CatalogRow[]; parity: ParityRow[] } export interface Finding { store: 'apple' | 'play'; level: 'blocker' | 'warn' | 'ok'; code: string; msg: string; fix?: string } export interface ValidateResult { blockers: number; findings: Finding[] } +/** `storebound scan --json` (offline rejection-risk scan of the project files), the parts the Checks tab shows. */ +export type ScanSeverity = 'blocker' | 'high' | 'medium' | 'low'; +export interface ScanFinding { + rule: string; guideline: string; store: 'apple' | 'play'; severity: ScanSeverity; title: string; + evidence: { file: string; line: number; text?: string }[]; fix: string; skill: string; ref: string; accepted?: string; +} +export interface ScanResult { + stacks: string[]; + sdks: { id: string; name: string; category: string; tracking: boolean }[]; + findings: ScanFinding[]; + counts: Record & { accepted: number }; + declarations: { changed: boolean; items: { area: string; what: string; value: string; status: 'detected' | 'ask'; evidence: { file: string; line: number }[] }[] }; +} export const isError = (x: unknown): x is { error: string } => !!x && typeof x === 'object' && typeof (x as { error?: unknown }).error === 'string'; diff --git a/apps/desktop/src/screens/tabs/Checks.tsx b/apps/desktop/src/screens/tabs/Checks.tsx index 16972f2f..5e0dde69 100644 --- a/apps/desktop/src/screens/tabs/Checks.tsx +++ b/apps/desktop/src/screens/tabs/Checks.tsx @@ -1,9 +1,9 @@ -// Checks: the offline config check (every time) and the read-only store readiness report (`validate`, on demand) -// with its ordered blockers and fix hints. +// Checks: the offline rejection-risk scan of the project files (`scan`, every time), the offline config check and +// the read-only store readiness report (`validate`, on demand) with its ordered blockers and fix hints. import type { Project } from '../../api'; import { t } from '../../i18n'; import { ago } from '../../lib/format'; -import type { Finding, ValidateResult } from '../../lib/model'; +import type { Finding, ScanResult, ScanSeverity, ValidateResult } from '../../lib/model'; import { useData, useRead } from '../../store'; import { Icon } from '../../ui/icons'; import { Card, Chip, Empty, ErrorNotice, Skeleton } from '../../ui/kit'; @@ -12,6 +12,50 @@ import { useExports } from '../../ui/Exports'; const LEVEL: Record = { blocker: ['bad', 'alertCircle'], warn: ['warn', 'alert'], ok: ['ok', 'check'] }; +const SEV: Record = { blocker: ['bad', 'alertCircle'], high: ['bad', 'alert'], medium: ['warn', 'alert'], low: ['info', 'info'] }; + +/** The `storebound scan` card: rejection risks with guideline, evidence file:line, fix and skill. */ +function ScanCard({ project }: { project: Project }) { + const s = useRead(project.id, 'scan', { network: false, title: t('checks.scan') }); + const findings = Array.isArray(s.data?.findings) ? s.data!.findings : []; + const sdks = Array.isArray(s.data?.sdks) ? s.data!.sdks : []; + const asks = (Array.isArray(s.data?.declarations?.items) ? s.data!.declarations.items : []).filter(x => x.status === 'ask').length; + return ( + x.name).join(', ') }) : t('checks.scanSub')} pad={false} + actions={}> + {s.error &&
} + {!s.data ? (s.loading && !s.error ?
: null) + : !findings.length ? {t('checks.scanCleanText')} : ( +
+ {findings.map((f, i) => { + const [tone, icon] = f.accepted ? ['ok', 'check'] as const : SEV[f.severity] ?? SEV.low; + const ev = Array.isArray(f.evidence) ? f.evidence : []; + return ( +
+ +
+ {f.guideline} · {f.title} + {ev.slice(0, 2).map((e, j) => {e.file}:{e.line}{e.text ? ` ${e.text}` : ''})} + {f.accepted ? {t('checks.accepted', { reason: f.accepted })} + : {f.fix} {f.skill}} +
+ {t(f.accepted ? 'checks.sev.accepted' : `checks.sev.${f.severity}` as Parameters[0])} + {f.store === 'apple' ? 'App Store' : 'Google Play'} +
+ ); + })} +
+ )} + {s.data && (asks > 0 || s.data.declarations?.changed) && ( +
+ {asks > 0 &&
{t('checks.scanAsk', { count: asks })}
} + {s.data.declarations?.changed &&
{t('checks.scanWrite')}
} +
+ )} +
+ ); +} + export function ChecksTab({ project }: { project: Project }) { const d = useData(); const e = d.statusOf(project); @@ -23,6 +67,7 @@ export function ChecksTab({ project }: { project: Project }) { const findings = [...(v.data?.findings ?? [])].sort((a, b) => ['blocker', 'warn', 'ok'].indexOf(a.level) - ['blocker', 'warn', 'ok'].indexOf(b.level)); return (
+
d.refreshPortfolio(false)} disabled={!!d.portfolioBusy}>{t('checks.again')}}> {!e ?
: !problems.length && !warnings.length ? ( diff --git a/cli/index.ts b/cli/index.ts index 5644e5f7..66a98639 100755 --- a/cli/index.ts +++ b/cli/index.ts @@ -18,6 +18,7 @@ const PLAIN: Record Promise, string]> = { 'apps': [() => import('./apps'), 'list (every app the store keys can see: App Store Connect team, Play developer accounts; --icons) | check (key works / permission missing / revoked, with the fix); --store apple|play, --json; read-only'], 'desktop': [() => import('./desktop'), 'open the storebound desktop app (in an app folder: add or select it there); not installed: the download for this system, --download saves it to ~/Downloads after checking its signature (never installs)'], 'doctor': [() => import('./doctor'), 'local tools for screenshots, previews, icons and captures (ffmpeg, Chrome, playwright, Xcode, adb, git) and how to install what is missing; --json'], + 'scan': [() => import('./scan'), 'offline, read-only rejection-risk scan of the project itself (stack, SDKs, Info.plist, manifest, listings) with guideline, evidence file:line, fix and skill, plus the Data safety / App Privacy / ATT / privacy manifest proposal; --write puts the detected answers into the config; --json; exit 1 on blockers'], 'privacy-manifest': [() => import('./privacy-manifest'), 'iOS PrivacyInfo.xcprivacy + required-reason API + SDK manifest scan (--ios )'], }; const COMMANDS: Record Promise, string]> = { diff --git a/cli/lib/config.ts b/cli/lib/config.ts index b4ef28b0..37793fdd 100644 --- a/cli/lib/config.ts +++ b/cli/lib/config.ts @@ -304,6 +304,14 @@ export interface ReviewAccess { instructions?: string; } +/** App Privacy: does the app (or an SDK in it) track users across other companies' apps and websites? true needs + * App Tracking Transparency (NSUserTrackingUsageDescription + the prompt) and the privacy manifest's NSPrivacyTracking. */ +export interface AppPrivacyConfig { + tracking?: boolean; + /** Domains that receive tracking data (privacy manifest NSPrivacyTrackingDomains). */ + trackingDomains?: string[]; +} + export type SubscriptionPeriod = 'P1W' | 'P1M' | 'P2M' | 'P3M' | 'P6M' | 'P1Y'; /** Introductory offer for new subscribers. Apple: subscriptionIntroductoryOffers (first-time subscribers of the group, @@ -470,6 +478,11 @@ export interface ShipConfig { baseTerritory?: string; }; dataSafety?: DataSafety; + /** App Store App Privacy answers storebound cannot derive from dataSafety (App Privacy has no API: the owner enters + * them in App Store Connect). `storebound scan` proposes them from the detected SDKs and code. */ + appPrivacy?: AppPrivacyConfig; + /** `storebound scan`: findings the owner has looked at and accepts, by rule id (with the reason, shown in the report). */ + scan?: { ignore?: { rule: string; store?: 'apple' | 'play'; reason: string }[] }; /** Ads: `validate` checks that /app-ads.txt is reachable and contains every line listed here. */ ads?: { appAdsTxt?: string[] }; /** Rendered store graphics dir (///NN.png|jpg). Defaults to shots.out. */ @@ -549,6 +562,14 @@ export function validateConfig(c: unknown): string[] { if (cfg.apple.screenshotTypes && !cfg.apple.screenshotTypes.every(t => /^APP_[A-Z0-9_]+$/.test(t))) e.push('apple.screenshotTypes: display types like APP_IPHONE_67'); e.push(...validateTestflight(cfg.apple.testflight)); } + if (cfg.appPrivacy) { + if (cfg.appPrivacy.tracking !== undefined && typeof cfg.appPrivacy.tracking !== 'boolean') e.push('appPrivacy.tracking: true | false'); + if (cfg.appPrivacy.trackingDomains && !(Array.isArray(cfg.appPrivacy.trackingDomains) && cfg.appPrivacy.trackingDomains.every(d => typeof d === 'string' && /^[a-z0-9.-]+$/i.test(d)))) + e.push('appPrivacy.trackingDomains: a list of host names'); + } + for (const [i, x] of (cfg.scan?.ignore ?? []).entries()) + if (!x || typeof x.rule !== 'string' || !x.rule || typeof x.reason !== 'string' || !x.reason.trim() || (x.store !== undefined && x.store !== 'apple' && x.store !== 'play')) + e.push(`scan.ignore[${i}]: { rule: '', reason: 'why this is fine', store?: 'apple' | 'play' }`); if (cfg.ads?.appAdsTxt && !cfg.ads.appAdsTxt.every(l => typeof l === 'string' && l.split(',').length >= 3)) e.push('ads.appAdsTxt: lines like "example-network.com, pub-123, DIRECT, abc123"'); const seen = new Set(); diff --git a/cli/lib/profile.ts b/cli/lib/profile.ts index 609a4f3f..5145b08d 100644 --- a/cli/lib/profile.ts +++ b/cli/lib/profile.ts @@ -11,6 +11,8 @@ export function profileIssues(config: ShipConfig, o: { demoAccount: boolean }): const err = (msg: string) => out.push({ level: 'error', msg }); const warn = (msg: string) => out.push({ level: 'warn', msg }); const accounts = !!config.accounts?.enabled; + if (config.dataSafety) for (const k of ['collectsData', 'encryptedInTransit', 'deletionRequest'] as const) + if (typeof config.dataSafety[k] !== 'boolean') err(`dataSafety.${k}: not answered (true | false; ask the owner, store-declarations skill)`); const acm = config.dataSafety?.accountCreation ?? ['PSL_ACM_NONE']; if (accounts) { if (config.play && !config.accounts!.deletionUrl) err('accounts.enabled: set accounts.deletionUrl (Play asks for a web page to request account deletion; account-deletion skill)'); diff --git a/cli/lib/scan/config-edit.ts b/cli/lib/scan/config-edit.ts new file mode 100644 index 00000000..4eb064dd --- /dev/null +++ b/cli/lib/scan/config-edit.ts @@ -0,0 +1,71 @@ +// Writes one top-level block (dataSafety, appPrivacy) into storebound.config.ts / .js / .json text: replaces the +// existing `key: { ... }` property, or inserts it after the `app: { ... }` block. Pure text in, text out; the rest of +// the file (comments, order, formatting) stays as it is. Used by `storebound scan --write` only. + +/** Index of the brace that closes the one at `open`, skipping strings, template literals and comments. -1 if none. */ +export function matchBrace(text: string, open: number): number { + const pairs: Record = { '{': '}', '[': ']', '(': ')' }; + const stack: string[] = []; + for (let i = open; i < text.length; i++) { + const ch = text[i]!; + if (ch === '/' && text[i + 1] === '/') { i = text.indexOf('\n', i); if (i < 0) return -1; continue; } + if (ch === '/' && text[i + 1] === '*') { i = text.indexOf('*/', i + 2); if (i < 0) return -1; i++; continue; } + if (ch === '"' || ch === '\'' || ch === '`') { + for (i++; i < text.length && text[i] !== ch; i++) if (text[i] === '\\') i++; + continue; + } + if (pairs[ch]) stack.push(pairs[ch]!); + else if (ch === '}' || ch === ']' || ch === ')') { + if (stack.pop() !== ch) return -1; + if (!stack.length) return i; + } + } + return -1; +} + +const ID = /^[A-Za-z_$][A-Za-z0-9_$]*$/; + +/** A plain value as TypeScript source (single quotes, unquoted keys, trailing commas), indented by `ind`. */ +export function toTs(v: unknown, ind = ''): string { + const next = ind + ' '; + if (v === null || v === undefined) return 'undefined'; + if (typeof v === 'string') return `'${v.replace(/\\/g, '\\\\').replace(/'/g, '\\\'')}'`; + if (typeof v === 'number' || typeof v === 'boolean') return String(v); + if (Array.isArray(v)) { + const parts = v.map(x => toTs(x, next)); + const one = `[${parts.join(', ')}]`; + return one.length <= 100 && !one.includes('\n') ? one : `[\n${parts.map(p => `${next}${p},`).join('\n')}\n${ind}]`; + } + const entries = Object.entries(v as Record).filter(([, x]) => x !== undefined); + if (!entries.length) return '{}'; + const parts = entries.map(([k, x]) => `${ID.test(k) ? k : `'${k}'`}: ${toTs(x, next)}`); + const one = `{ ${parts.join(', ')} }`; + return one.length <= 110 && !one.includes('\n') && entries.every(([, x]) => typeof x !== 'object' || Array.isArray(x)) ? one : `{\n${parts.map(p => `${next}${p},`).join('\n')}\n${ind}}`; +} + +/** The config text with `key` set to `value` (plus an optional comment line above it). */ +export function upsertBlock(text: string, file: string, key: string, value: unknown, comment?: string): string { + if (file.endsWith('.json')) { + const j = JSON.parse(text) as Record; + j[key] = value; + return JSON.stringify(j, null, 2) + '\n'; + } + const re = new RegExp(`^([ \\t]*)${key}\\s*:\\s*\\{`, 'm'); + const m = re.exec(text); + if (m) { + const ind = m[1]!; + const open = m.index + m[0].length - 1; + const close = matchBrace(text, open); + if (close < 0) throw new Error(`${file}: could not find the end of the ${key} block`); + return `${text.slice(0, m.index)}${ind}${key}: ${toTs(value, ind)}${text.slice(close + 1)}`; + } + const app = /^([ \t]*)app\s*:\s*\{/m.exec(text); + if (!app) throw new Error(`${file}: no app block found to insert ${key} after; add it by hand`); + const ind = app[1]!; + const close = matchBrace(text, app.index + app[0].length - 1); + if (close < 0) throw new Error(`${file}: could not find the end of the app block`); + let at = close + 1; + if (text[at] === ',') at++; + const block = `\n${comment ? `${ind}// ${comment}\n` : ''}${ind}${key}: ${toTs(value, ind)},`; + return text.slice(0, at) + block + text.slice(at); +} diff --git a/cli/lib/scan/declare.ts b/cli/lib/scan/declare.ts new file mode 100644 index 00000000..2f4dadca --- /dev/null +++ b/cli/lib/scan/declare.ts @@ -0,0 +1,155 @@ +// Declarations proposal for `storebound scan`: from the detected SDKs, permissions and code, the Play Data safety and +// App Store App Privacy answers, App Tracking Transparency and the privacy manifest entries the project needs, each +// marked "detected (file:line)" or "ask owner", and a diff against the config's dataSafety / appPrivacy blocks. +// Only detected items are ever written (`scan --write`); "ask owner" items stay questions (AGENTS.md rule 5). Pure. +import type { AppPrivacyConfig, DataSafety, DataUsage, PlayPurpose, ShipConfig } from '../config'; +import { APPLE_PRIVACY, applePurpose } from '../declarations'; +import { REQUIRED_REASON_APIS } from '../privacy-manifest'; +import { IOS_PERMISSIONS } from './permissions'; +import { grep, type Hit, lineOf, type ProjectFacts } from './project'; +import { SIGNALS } from './rules'; + +export type DeclArea = 'dataSafety' | 'appPrivacy' | 'att' | 'privacyManifest'; +export interface DeclItem { area: DeclArea; what: string; value: string; status: 'detected' | 'ask'; evidence: Hit[]; note?: string } +export interface DataDiff { + type: string; + /** App Privacy category / type it maps to. */ + apple: string; + change: 'add' | 'merge' | 'same' | 'kept'; + before: DataUsage | null; + after: DataUsage; + evidence: Hit[]; +} +export interface Proposal { + items: DeclItem[]; + diff: DataDiff[]; + /** The dataSafety block --write would write (null when nothing was detected and the config has none). */ + dataSafety: Partial & { data: Record } | null; + appPrivacy: AppPrivacyConfig | null; + appPrivacyChange: { from: boolean | null; to: boolean } | null; + /** Types an SDK collects that the config's dataSafety does not declare (the privacy-labels rule). */ + labelGaps: { type: string; apple: string; evidence: Hit[] }[]; + /** --write would change the config. */ + changed: boolean; +} + +const PERMISSION_DATA: Record = { + NSCameraUsageDescription: { type: 'PSL_PHOTOS', note: 'only if photos / videos leave the device (uploaded, sent to an API)' }, + NSMicrophoneUsageDescription: { type: 'PSL_AUDIO', note: 'only if recordings leave the device' }, + NSPhotoLibraryUsageDescription: { type: 'PSL_PHOTOS', note: 'only if picked photos leave the device' }, + NSLocationWhenInUseUsageDescription: { type: 'PSL_APPROX_LOCATION', note: 'approximate or precise (PSL_PRECISE_LOCATION), only if it leaves the device' }, + NSContactsUsageDescription: { type: 'PSL_CONTACTS', note: 'only if contacts leave the device' }, + NSHealthShareUsageDescription: { type: 'PSL_HEALTH', note: 'only if health data leaves the device' }, + NSCalendarsFullAccessUsageDescription: { type: 'PSL_CALENDAR', note: 'only if events leave the device' }, +}; + +const uniq = (a: T[]): T[] => [...new Set(a)]; +const sorted = (a: readonly string[] | undefined) => [...(a ?? [])].sort().join(); +const usageEq = (a: DataUsage, b: DataUsage) => a.shared === b.shared && sorted(a.collect) === sorted(b.collect) && sorted(a.share) === sorted(b.share); + +export function proposeDeclarations(p: ProjectFacts, c: ShipConfig | null, configFile?: { path: string; text: string } | null): Proposal { + const items: DeclItem[] = []; + const detected = new Map; share: Set; evidence: Hit[]; from: string[] }>(); + for (const s of p.sdks) { + const d0 = s.deps[0]!; + const ev: Hit = { file: d0.file, line: d0.line, text: `${s.sdk.name}: ${d0.name}${d0.version ? ` ${d0.version}` : ''}` }; + for (const d of s.sdk.data) { + const e = detected.get(d.type) ?? { collect: new Set(), share: new Set(), evidence: [], from: [] }; + for (const x of d.collect) e.collect.add(x); + for (const x of d.share ?? []) e.share.add(x); + if (!e.from.includes(s.sdk.name)) { e.from.push(s.sdk.name); e.evidence.push(ev); } + detected.set(d.type, e); + } + } + // accounts proven by the config or sign-up code + const signUp = grep(p.sources, SIGNALS.signUp, 1); + if (c?.accounts?.enabled || signUp.length) { + const ev: Hit[] = signUp.length ? signUp : [{ file: configFile?.path ?? 'storebound.config.ts', line: configFile ? lineOf(configFile.text, /accounts\s*:/) : 1, text: 'accounts.enabled' }]; + for (const t of ['PSL_EMAIL', 'PSL_USER_ACCOUNT']) { + const e = detected.get(t) ?? { collect: new Set(), share: new Set(), evidence: [], from: [] }; + e.collect.add('account'); e.collect.add('functionality'); e.evidence.push(...ev); e.from.push('accounts'); + detected.set(t, e); + } + } + const have = c?.dataSafety?.data ?? {}; + const diff: DataDiff[] = []; + const out: Record = {}; + for (const [type, e] of detected) { + const share = [...e.share].sort(); + const det: DataUsage = { shared: share.length > 0, collect: [...e.collect].sort(), ...(share.length ? { share } : {}) }; + const before = have[type] ?? null; + const after: DataUsage = before ? { + ...before, shared: before.shared || det.shared, + collect: uniq([...before.collect, ...det.collect]).sort(), + ...((before.share?.length || share.length) ? { share: uniq([...(before.share ?? []), ...share]).sort() } : {}), + } : det; + out[type] = after; + const [cat, name] = APPLE_PRIVACY[type] ?? ['Other Data', 'Other Data Types']; + diff.push({ type, apple: `${cat} / ${name}`, change: !before ? 'add' : usageEq(before, after) ? 'same' : 'merge', before, after, evidence: e.evidence.slice(0, 3) }); + items.push({ area: 'dataSafety', what: type, value: `collect: ${after.collect.join(', ')}${after.shared ? `; shared: ${(after.share ?? []).join(', ')}` : ''}`, status: 'detected', evidence: e.evidence.slice(0, 2), + note: `from ${e.from.join(', ')}; ephemeral / optional: ask owner` }); + } + for (const [type, u] of Object.entries(have)) if (!detected.has(type)) { + out[type] = u; + const [cat, name] = APPLE_PRIVACY[type] ?? ['Other Data', 'Other Data Types']; + diff.push({ type, apple: `${cat} / ${name}`, change: 'kept', before: u, after: u, evidence: [] }); + } + // permissions that may mean collected data: questions, never written + for (const perm of IOS_PERMISSIONS) for (const k of perm.keys) { + const e = p.plist.get(k), pd = PERMISSION_DATA[k]; + if (!e || !pd || out[pd.type]) continue; + items.push({ area: 'dataSafety', what: pd.type, value: `collected? ${pd.note}`, status: 'ask', evidence: [{ ...e.at, text: k }] }); + } + const labelGaps = c?.dataSafety ? diff.filter(d => d.change === 'add').map(d => ({ type: d.type, apple: d.apple, evidence: d.evidence })) : []; + + // top-level Data safety answers + const anyData = Object.keys(out).length > 0; + if (anyData) items.push({ area: 'dataSafety', what: 'collectsData', value: 'true', status: 'detected', evidence: diff.flatMap(d => d.evidence).slice(0, 1) }); + for (const k of ['encryptedInTransit', 'deletionRequest'] as const) + items.push({ area: 'dataSafety', what: k, value: c?.dataSafety ? String(c.dataSafety[k]) : '?', status: 'ask', evidence: [], note: k === 'encryptedInTransit' ? 'all traffic over HTTPS / TLS? (ATS and the SDKs\' own endpoints)' : 'can users ask for their data to be deleted?' }); + if ((c?.accounts?.enabled || signUp.length) && (c?.dataSafety?.accountCreation ?? ['PSL_ACM_NONE']).includes('PSL_ACM_NONE')) + items.push({ area: 'dataSafety', what: 'accountCreation', value: 'which sign-up methods (PSL_ACM_USER_ID_PASSWORD, PSL_ACM_OAUTH, ...)?', status: 'ask', evidence: signUp.slice(0, 1) }); + + // App Privacy per type (linked / tracking are owner answers) + for (const d of diff) { + const shared = d.after.shared ? d.after.share ?? [] : []; + // a purpose the data is shared for counts once, as the third party's (AdMob: Third-Party Advertising, not the developer's) + const purposes = uniq([...d.after.collect.filter(x => !shared.includes(x)).map(x => applePurpose(x, false)), ...shared.map(x => applePurpose(x, true))]).sort(); + items.push({ area: 'appPrivacy', what: d.apple, value: purposes.join(', '), status: d.change === 'kept' ? 'ask' : 'detected', evidence: d.evidence.slice(0, 1), note: 'linked to identity? used for tracking? ask owner' }); + } + + // tracking + ATT + const attReq = grep(p.sources, SIGNALS.attRequest, 1); + const attStr = p.plist.get('NSUserTrackingUsageDescription'); + const trackers = p.sdks.filter(s => s.sdk.tracking); + let tracking: boolean | null = null; + if (attReq.length) { tracking = true; items.push({ area: 'appPrivacy', what: 'tracking', value: 'true (the app asks for App Tracking Transparency)', status: 'detected', evidence: attReq }); } + else if (trackers.length) items.push({ area: 'appPrivacy', what: 'tracking', value: `${trackers.map(s => s.sdk.name).join(', ')} can track: personalized ads / attribution on?`, status: 'ask', evidence: trackers.map(s => ({ file: s.deps[0]!.file, line: s.deps[0]!.line, text: s.sdk.name })).slice(0, 2) }); + if (attStr) items.push({ area: 'att', what: 'NSUserTrackingUsageDescription', value: String(attStr.value).slice(0, 80), status: 'detected', evidence: [{ ...attStr.at, text: 'NSUserTrackingUsageDescription' }] }); + else if (trackers.length || attReq.length) items.push({ area: 'att', what: 'NSUserTrackingUsageDescription', value: 'needed if anything tracks, e.g. "Your data is used to show ads that fit your interests."', status: 'ask', evidence: [] }); + if (attReq.length) items.push({ area: 'att', what: 'ATT request', value: 'found', status: 'detected', evidence: attReq }); + if (trackers.length || attReq.length) items.push({ area: 'appPrivacy', what: 'trackingDomains', value: 'the SDKs\' tracking domains (from each SDK\'s privacy manifest)', status: 'ask', evidence: [] }); + + // privacy manifest + if (p.ios) { + const declared = new Map(); + for (const m of p.privacyManifests) for (const [k, v] of Object.entries(m.apis)) declared.set(k, v); + const nativeSrc = p.sources.filter(s => /\.(swift|m|mm|h)$/.test(s.path)); + for (const [cat, def] of Object.entries(REQUIRED_REASON_APIS)) { + const h = grep(nativeSrc, def.symbols, 1); + if (!h.length) continue; + const have = declared.get(cat); + items.push({ area: 'privacyManifest', what: cat, value: have?.length ? `declared: ${have.join(', ')}` : `add with a reason: ${def.note}`, status: have?.length ? 'detected' : 'ask', evidence: h }); + } + const m = p.privacyManifests[0]; + if (tracking !== null || m) items.push({ area: 'privacyManifest', what: 'NSPrivacyTracking', value: tracking ? 'true' : m ? String(m.tracking) : '?', status: tracking ? 'detected' : 'ask', evidence: m ? [{ file: m.path, line: 1, text: 'PrivacyInfo.xcprivacy' }] : [] }); + if (diff.length) items.push({ area: 'privacyManifest', what: 'NSPrivacyCollectedDataTypes', value: uniq(diff.map(d => d.apple.split(' / ')[1]!)).join(', '), status: 'detected', evidence: diff.flatMap(d => d.evidence).slice(0, 1), note: 'the app\'s own collection; SDKs declare theirs in their manifests' }); + } + + const dsChanged = diff.some(d => d.change === 'add' || d.change === 'merge') || (anyData && c?.dataSafety?.collectsData === false); + const dataSafety = anyData || c?.dataSafety ? { ...(c?.dataSafety ?? {}), collectsData: anyData || !!c?.dataSafety?.collectsData, data: out } : null; + const from = c?.appPrivacy?.tracking ?? null; + const appPrivacyChange = tracking !== null && from !== tracking ? { from, to: tracking } : null; + const appPrivacy = appPrivacyChange ? { ...(c?.appPrivacy ?? {}), tracking: appPrivacyChange.to } : c?.appPrivacy ?? null; + return { items, diff, dataSafety, appPrivacy, appPrivacyChange, labelGaps, changed: dsChanged || !!appPrivacyChange }; +} diff --git a/cli/lib/scan/index.ts b/cli/lib/scan/index.ts new file mode 100644 index 00000000..894b715a --- /dev/null +++ b/cli/lib/scan/index.ts @@ -0,0 +1,121 @@ +// `storebound scan` engine: detect the project, run the rejection-risk rules, propose the declarations. Offline and +// read-only (the only write is `--write`, done by the command, never here). +import { existsSync, readFileSync } from 'node:fs'; +import { join, relative } from 'node:path'; +import { CONFIG_NAMES, loadConfig, type ShipConfig } from '../config'; +import { reviewDemoAccount } from '../credentials'; +import { proposeDeclarations, type Proposal } from './declare'; +import { detectProject, ECO_LABEL, type ProjectFacts, type Stack, where } from './project'; +import { type ScanFinding, scanRules, type Severity } from './rules'; +import type { SdkCategory } from './sdks'; + +export interface ScanReport { + root: string; + config: string | null; + configError: string | null; + stacks: Stack[]; + platforms: { ios: boolean; android: boolean }; + sdks: { id: string; name: string; category: SdkCategory; tracking: boolean; deps: { eco: string; name: string; version: string | null; file: string; line: number }[] }[]; + permissions: { key: string; value: string; file: string; line: number }[]; + android: { targetSdk: number | null; targetSdkAt: string | null; permissions: string[] }; + findings: ScanFinding[]; + counts: Record & { accepted: number }; + declarations: Proposal; + scanned: number; + notes: string[]; +} + +export interface ScanRun { report: ScanReport; facts: ProjectFacts; config: ShipConfig | null; configPath: string | null } + +/** Find the project's config: --config, else storebound.config.* in `dir` (no upward search: a fixture or a + * sub-project must not pick up a parent's config). */ +async function findConfig(dir: string, explicit?: string): Promise<{ config: ShipConfig | null; path: string | null; error: string | null }> { + const path = explicit ? join(dir, explicit) : CONFIG_NAMES.map(n => join(dir, n)).find(existsSync); + if (!path) return { config: null, path: null, error: null }; + try { return { config: (await loadConfig(path)).config, path, error: null }; } catch (e) { return { config: null, path, error: (e as Error).message.split('\n').slice(0, 4).join('; ') }; } +} + +export async function runScan(dir: string, o: { config?: string } = {}): Promise { + const facts = detectProject(dir); + const { config, path: configPath, error } = await findConfig(dir, o.config); + const rel = (p: string) => relative(dir, p) || p; + const readRel = (p: string | undefined): { path: string; text: string } | undefined => { + if (!p) return undefined; + const abs = join(dir, p); + try { return existsSync(abs) ? { path: rel(abs), text: readFileSync(abs, 'utf8') } : undefined; } catch { return undefined; } + }; + const listings = { + apple: (config ? config.apple : true) ? readRel(config?.apple?.listing ?? 'store/appstore.md') : undefined, + play: (config ? config.play : true) ? readRel(config?.play?.listing ?? 'store/listing.md') : undefined, + captions: readRel(config?.shots?.copy ?? 'store/shots/copy.json'), + }; + const configFile = configPath ? { path: rel(configPath), text: readFileSync(configPath, 'utf8') } : null; + const declarations = proposeDeclarations(facts, config, configFile); + const findings = scanRules({ facts, config, configFile, listings, demoAccount: !!reviewDemoAccount(dir), labelGaps: declarations.labelGaps }); + const counts = { blocker: 0, high: 0, medium: 0, low: 0, accepted: 0 }; + for (const f of findings) { if (f.accepted) counts.accepted++; else counts[f.severity]++; } + const notes: string[] = []; + if (facts.android && facts.androidInfo.manifests.length) notes.push('Android: libraries add permissions when the manifest is merged; check the merged manifest (Android Studio > Merged Manifest, or the AAB) too.'); + if (facts.ios && !facts.plistSources.length) notes.push('iOS: no Info.plist settings found (generated at build time?): purpose string, ATS and export compliance checks were skipped.'); + if (!facts.sources.length) notes.push('No app source files found: code checks (sign-in, deletion, restore, ATT prompt) could not run.'); + const report: ScanReport = { + root: dir, config: configPath ? rel(configPath) : null, configError: error, + stacks: facts.stacks, platforms: { ios: facts.ios, android: facts.android }, + sdks: facts.sdks.map(s => ({ id: s.sdk.id, name: s.sdk.name, category: s.sdk.category, tracking: s.sdk.tracking, deps: s.deps.map(d => ({ eco: d.eco, name: d.name, version: d.version, file: d.file, line: d.line })) })), + permissions: [...facts.plist.values()].filter(e => /UsageDescription$/.test(e.key)).map(e => ({ key: e.key, value: String(e.value ?? ''), file: e.at.file, line: e.at.line })), + android: { targetSdk: facts.androidInfo.targetSdk?.value ?? null, targetSdkAt: facts.androidInfo.targetSdk ? where(facts.androidInfo.targetSdk.at) : null, permissions: [...new Set(facts.androidInfo.permissions.map(x => x.name.replace(/^android\.permission\./, '')))] }, + findings, counts, declarations, scanned: facts.scanned, notes, + }; + return { report, facts, config, configPath }; +} + +const TAG: Record = { blocker: 'BLOCKER', high: 'HIGH ', medium: 'MEDIUM ', low: 'low ' }; +const STACK: Record = { 'ios-native': 'iOS (native)', 'android-native': 'Android (native)', 'react-native': 'React Native', expo: 'Expo', capacitor: 'Capacitor', cordova: 'Cordova', flutter: 'Flutter', unity: 'Unity', godot: 'Godot', web: 'web' }; + +/** The report as plain text (the terminal output of `storebound scan`). */ +export function formatScan(r: ScanReport, o: { declarations?: boolean } = {}): string { + const L: string[] = []; + L.push(`storebound scan · ${r.config ? r.config : 'no storebound.config.ts (project files only)'}`); + if (r.configError) L.push(`config not loaded: ${r.configError}`); + L.push(`stack: ${r.stacks.map(s => STACK[s]).join(', ') || 'unknown'} · targets: ${[r.platforms.ios && 'iOS', r.platforms.android && 'Android'].filter(Boolean).join(', ') || 'none found'} · ${r.scanned} files`); + if (r.sdks.length) { + L.push('', 'SDKs'); + for (const s of r.sdks) { + const d = s.deps[0]!; + L.push(` ${s.name.padEnd(30)} ${s.category}${s.tracking ? ', tracking-capable' : ''} · ${ECO_LABEL[d.eco as keyof typeof ECO_LABEL] ?? d.eco} ${d.name}${d.version ? ` ${d.version}` : ''} (${d.file}:${d.line})${s.deps.length > 1 ? ` +${s.deps.length - 1}` : ''}`); + } + } + if (r.android.targetSdk !== null) L.push(`Android targetSdk ${r.android.targetSdk} (${r.android.targetSdkAt})`); + const open = r.findings.filter(f => !f.accepted); + L.push('', `Rejection risks: ${r.counts.blocker} blocker, ${r.counts.high} high, ${r.counts.medium} medium, ${r.counts.low} low${r.counts.accepted ? ` (+${r.counts.accepted} accepted by the owner)` : ''}`); + if (!open.length) L.push(' none found in the project files and config'); + r.findings.forEach((f, i) => { + L.push(`${String(i + 1).padStart(3)}. ${f.accepted ? 'accepted' : TAG[f.severity]} ${f.guideline} · ${f.store === 'apple' ? 'App Store' : 'Google Play'} · ${f.title}`); + for (const e of f.evidence.slice(0, 3)) L.push(` at ${e.file}:${e.line}${e.text ? ` ${e.text}` : ''}`); + if (f.accepted) L.push(` owner: ${f.accepted}`); + else L.push(` fix: ${f.fix}`, ` skill: ${f.skill} · ${f.ref}`); + }); + if (o.declarations !== false) { + const d = r.declarations; + L.push('', 'Declarations proposal (detected = proven by a file; ask owner = only the owner knows)'); + const areas: [string, string][] = [['dataSafety', 'Data safety'], ['appPrivacy', 'App Privacy'], ['att', 'App Tracking Transparency'], ['privacyManifest', 'Privacy manifest']]; + for (const [a, label] of areas) { + const items = d.items.filter(x => x.area === a); + if (!items.length) continue; + L.push(` ${label}`); + for (const x of items) L.push(` ${x.status === 'detected' ? 'detected ' : 'ask owner'} ${x.what}: ${x.value}${x.evidence[0] ? ` (${x.evidence[0].file}:${x.evidence[0].line})` : ''}${x.note ? ` · ${x.note}` : ''}`); + } + const changes = d.diff.filter(x => x.change === 'add' || x.change === 'merge'); + if (changes.length || d.appPrivacyChange) { + L.push('', ` Diff against ${r.config ?? 'the config'} (written only with --write):`); + for (const x of changes) { + if (x.change === 'add') L.push(` + dataSafety.data.${x.type}: { shared: ${x.after.shared}, collect: [${x.after.collect.join(', ')}]${x.after.share?.length ? `, share: [${x.after.share.join(', ')}]` : ''} }`); + else L.push(` ~ dataSafety.data.${x.type}: collect [${x.before!.collect.join(', ')}] -> [${x.after.collect.join(', ')}]${x.after.shared !== x.before!.shared ? `, shared ${x.before!.shared} -> ${x.after.shared}` : ''}${(x.after.share ?? []).join() !== (x.before!.share ?? []).join() ? `, share [${(x.before!.share ?? []).join(', ')}] -> [${(x.after.share ?? []).join(', ')}]` : ''}`); + } + if (d.appPrivacyChange) L.push(` ~ appPrivacy.tracking: ${d.appPrivacyChange.from ?? 'unset'} -> ${d.appPrivacyChange.to}`); + } else if (r.config) L.push('', ` No changes to ${r.config}: the dataSafety / appPrivacy blocks already cover what was detected.`); + } + if (r.notes.length) L.push('', ...r.notes.map(n => `note: ${n}`)); + L.push('', 'Checked at review, not by scan: crashes and bugs on the reviewer\'s device, broken links (storebound validate checks the URLs), screenshots that do not match the app, minimum functionality and spam judgement (4.2, 4.3), local law (5.2). See the review-rejections skill.'); + return L.join('\n'); +} diff --git a/cli/lib/scan/permissions.ts b/cli/lib/scan/permissions.ts new file mode 100644 index 00000000..56abf809 --- /dev/null +++ b/cli/lib/scan/permissions.ts @@ -0,0 +1,55 @@ +// iOS privacy-sensitive APIs and the Info.plist purpose string each one needs (Apple: "Requesting access to protected +// resources"; a missing string makes the app crash on the first request and App Store Connect rejects the upload +// with ITMS-90683). `code` finds the API in app sources, `packages` the npm / pub / Unity packages that call it. +// Checked 2026-10-11 against developer.apple.com/documentation/bundleresources/information-property-list. +export interface PermissionDef { + /** Info.plist keys; any one of them satisfies the check (e.g. calendars before / since iOS 17). */ + keys: string[]; + what: string; + code: RegExp; + packages: string[]; +} + +export const IOS_PERMISSIONS: PermissionDef[] = [ + { keys: ['NSCameraUsageDescription'], what: 'camera', + code: /\bAVCaptureDevice\b|sourceType\s*=\s*\.camera|UIImagePickerController\.SourceType\.camera|\bWebCamTexture\b|\bVNDocumentCameraViewController\b/, + packages: ['expo-camera', 'react-native-vision-camera', 'react-native-camera', '@capacitor/camera', 'image_picker', 'camera', 'mobile_scanner', 'expo-image-picker', 'react-native-image-picker', 'cordova-plugin-camera', '@capacitor-mlkit/barcode-scanning'] }, + { keys: ['NSMicrophoneUsageDescription'], what: 'microphone', + code: /\bAVAudioRecorder\b|requestRecordPermission|\.record\b.*AVAudioSession|AVAudioApplication\.requestRecordPermission|\bMicrophone\.Start\b|\bAudioEffectRecord\b/, + packages: ['expo-av', 'react-native-audio-recorder-player', 'record', 'flutter_sound', 'cordova-plugin-media-capture', '@capacitor-community/voice-recorder'] }, + { keys: ['NSPhotoLibraryUsageDescription'], what: 'photo library', + code: /\bPHPhotoLibrary\.(requestAuthorization|shared)|\bPHAsset\.fetch|\bALAssetsLibrary\b/, + packages: ['expo-media-library', 'photo_manager', '@react-native-camera-roll/camera-roll', 'image_picker', '@capacitor/camera'] }, + { keys: ['NSPhotoLibraryAddUsageDescription', 'NSPhotoLibraryUsageDescription'], what: 'saving to the photo library', + code: /UIImageWriteToSavedPhotosAlbum|UISaveVideoAtPathToSavedPhotosAlbum|PHAssetChangeRequest|PHAssetCreationRequest/, + packages: ['gallery_saver', 'image_gallery_saver'] }, + { keys: ['NSLocationWhenInUseUsageDescription', 'NSLocationAlwaysAndWhenInUseUsageDescription'], what: 'location', + code: /\bCLLocationManager\b|requestWhenInUseAuthorization|requestAlwaysAuthorization|\bInput\.location\.Start\b|\bCLLocationUpdate\b/, + packages: ['expo-location', '@capacitor/geolocation', 'geolocator', 'location', '@react-native-community/geolocation', 'react-native-geolocation-service', 'cordova-plugin-geolocation'] }, + { keys: ['NSContactsUsageDescription'], what: 'contacts', + code: /\bCNContactStore\b|\bABAddressBook/, + packages: ['expo-contacts', 'react-native-contacts', 'flutter_contacts', 'contacts_service', '@capacitor-community/contacts', 'cordova-plugin-contacts'] }, + { keys: ['NSCalendarsFullAccessUsageDescription', 'NSCalendarsWriteOnlyAccessUsageDescription', 'NSCalendarsUsageDescription'], what: 'calendars', + code: /\bEKEventStore\b/, packages: ['expo-calendar', 'device_calendar', 'react-native-calendar-events'] }, + { keys: ['NSRemindersFullAccessUsageDescription', 'NSRemindersUsageDescription'], what: 'reminders', code: /requestFullAccessToReminders|entityType:\s*\.reminder|EKEntityType\.reminder/, packages: [] }, + { keys: ['NSBluetoothAlwaysUsageDescription'], what: 'Bluetooth', + code: /\bCBCentralManager\b|\bCBPeripheralManager\b/, packages: ['react-native-ble-plx', 'flutter_blue_plus', 'flutter_blue', '@capacitor-community/bluetooth-le', 'cordova-plugin-ble-central'] }, + { keys: ['NSFaceIDUsageDescription'], what: 'Face ID', + code: /deviceOwnerAuthenticationWithBiometrics|evaluatePolicy\(/, packages: ['expo-local-authentication', 'local_auth', 'react-native-biometrics', '@capgo/capacitor-native-biometric'] }, + { keys: ['NSMotionUsageDescription'], what: 'motion and fitness', code: /\bCMMotionActivityManager\b|\bCMPedometer\b|\bCMAltimeter\b/, packages: ['expo-sensors'] }, + { keys: ['NSSpeechRecognitionUsageDescription'], what: 'speech recognition', code: /\bSFSpeechRecognizer\b/, packages: ['@react-native-voice/voice', 'speech_to_text', 'expo-speech-recognition'] }, + { keys: ['NSHealthShareUsageDescription'], what: 'Health data', code: /\bHKHealthStore\b/, packages: ['react-native-health', 'health', '@kingstinct/react-native-healthkit'] }, + { keys: ['NSUserTrackingUsageDescription'], what: 'App Tracking Transparency', + code: /requestTrackingAuthorization|ATTrackingStatusBinding\.RequestAuthorizationTracking/, + packages: ['expo-tracking-transparency', 'react-native-tracking-transparency', 'app_tracking_transparency', '@capacitor-community/app-tracking-transparency', 'com.unity.ads.ios-support'] }, +]; + +/** A purpose string that says nothing (empty, a placeholder, or a generic template Apple rejects under 5.1.1(ii)). */ +export function vaguePurpose(s: string): 'empty' | 'vague' | null { + const t = s.trim(); + if (!t) return 'empty'; + if (/^(todo|tbd|fixme|placeholder|lorem|test|xxx+|\.+|-+|description|usage description|\$\([A-Z_]+\))$/i.test(t)) return 'empty'; + // Expo / plugin defaults like "Allow $(PRODUCT_NAME) to access your camera" name no reason + if (t.length < 20 || /^(allow|let) \$\(PRODUCT_NAME\) to access your [a-z ]+\.?$/i.test(t) || /^(this app|we) (needs?|requires?|uses?) (access to )?(your )?[a-z ]+\.?$/i.test(t)) return 'vague'; + return null; +} diff --git a/cli/lib/scan/project.ts b/cli/lib/scan/project.ts new file mode 100644 index 00000000..7a610179 --- /dev/null +++ b/cli/lib/scan/project.ts @@ -0,0 +1,430 @@ +// Project detection for `storebound scan`: reads a mobile app or game project (read-only, offline) and works out the +// stack, the dependencies (with versions and the file:line they come from), the Info.plist keys (from Info.plist files, +// Xcode INFOPLIST_KEY_* build settings, Expo app.json, Unity ProjectSettings and Godot export presets), entitlements, +// privacy manifests, the Android manifest (permissions, services, target SDK) and the app's own source files. +// Tolerant on purpose: an unreadable or odd file is skipped, never an exception. +import { readdirSync, readFileSync, statSync } from 'node:fs'; +import { basename, extname, join, relative, sep } from 'node:path'; +import { type Manifest, parseManifest } from '../privacy-manifest'; +import { type DepRef, type Eco, matchesSdk, SDKS, type SdkDef } from './sdks'; + +export interface Loc { file: string; line: number } +export interface PlistEntry { key: string; value: unknown; at: Loc } +export interface Hit extends Loc { text: string } + +export type Stack = 'ios-native' | 'android-native' | 'react-native' | 'expo' | 'capacitor' | 'cordova' | 'flutter' | 'unity' | 'godot' | 'web'; + +export interface DetectedSdk { sdk: SdkDef; deps: DepRef[] } + +export interface ProjectFacts { + root: string; + stacks: Stack[]; + /** The project has iOS / Android build files (or a cross-platform engine that targets them). */ + ios: boolean; + android: boolean; + deps: DepRef[]; + sdks: DetectedSdk[]; + /** Info.plist keys merged from every source; first source wins. */ + plist: Map; + /** Where Info.plist keys came from (empty = the project has no readable iOS settings: plist rules are skipped). */ + plistSources: string[]; + entitlements: Map; + privacyManifests: Manifest[]; + androidInfo: { + manifests: string[]; + permissions: { name: string; at: Loc }[]; + services: { name: string; fgsType: string | null; at: Loc }[]; + targetSdk: { value: number; at: Loc } | null; + /** targetSdk is set by a tool we cannot read (Flutter SDK, Expo SDK, Unity "automatic"). */ + targetSdkFrom: string | null; + formFactor: 'phone' | 'wear' | 'tv' | 'automotive'; + }; + /** Capacitor server.url / Cordova pointing at a remote site. */ + remoteStart: { url: string; at: Loc } | null; + /** App source files (Swift, Objective-C, Kotlin, Java, Dart, JS / TS, C#, GDScript, HTML). */ + sources: { path: string; text: string }[]; + /** Files looked at, relative to root (for the report). */ + scanned: number; +} + +const SKIP_DIRS = new Set(['.git', 'node_modules', 'Pods', 'build', 'Build', 'DerivedData', '.gradle', '.dart_tool', '.build', 'Library', 'Temp', 'Logs', + 'obj', 'UserSettings', '.storebound', 'renders', '.idea', '.vscode', '.expo', 'vendor', 'xcuserdata', 'Carthage', '.next', 'coverage', '.godot', + 'intermediates', 'generated', 'outputs', 'tmp', '.cxx', 'fastlane', 'dist', 'www', 'public', 'clips', 'frames', 'fonts']); +const SRC_EXT = new Set(['.swift', '.m', '.mm', '.h', '.kt', '.java', '.dart', '.js', '.jsx', '.ts', '.tsx', '.cs', '.gd', '.html', '.vue', '.svelte']); +const MAX_FILES = 25_000; +const MAX_TEXT = 1_500_000; + +/** Every file under root (relative paths), skipping build output, dependency folders and VCS data. */ +export function listFiles(root: string): string[] { + const out: string[] = []; + const walk = (dir: string, depth: number) => { + if (depth > 14 || out.length >= MAX_FILES) return; + let names: string[]; + try { names = readdirSync(dir); } catch { return; } + for (const n of names.sort()) { + if (SKIP_DIRS.has(n) || n === '.DS_Store') continue; + const p = join(dir, n); + let st; + try { st = statSync(p); } catch { continue; } + if (st.isDirectory()) { + // compiled frameworks are SDK binaries, not app code + if (/\.(xc)?framework$|\.xcassets$|\.bundle$|\.app$|\.dSYM$/.test(n)) continue; + walk(p, depth + 1); + } else if (st.size <= MAX_TEXT) out.push(relative(root, p).split(sep).join('/')); + if (out.length >= MAX_FILES) return; + } + }; + walk(root, 0); + return out; +} + +export const lineAt = (text: string, index: number): number => (index <= 0 ? 1 : text.slice(0, index).split('\n').length); +/** Line of the first occurrence of `needle` (1 when not found). */ +export const lineOf = (text: string, needle: string | RegExp): number => { + const i = typeof needle === 'string' ? text.indexOf(needle) : text.search(needle); + return i < 0 ? 1 : lineAt(text, i); +}; + +// ---- plist ---- + +type PV = string | number | boolean | PV[] | { [k: string]: PV }; + +/** Minimal XML plist reader: the value tree, plus the line of every top-level key. Never throws (bad input -> {}). */ +export function parsePlist(xml: string): { value: Record; lines: Map } { + const lines = new Map(); + const re = /<(\/?)(dict|array|key|string|integer|real|true|false|date|data)(\s*\/)?>||<\?[\s\S]*?\?>|]*>|<\/?plist[^>]*>/g; + const toks: { tag: string; close: boolean; self: boolean; at: number; end: number }[] = []; + for (const m of xml.matchAll(re)) if (m[2]) toks.push({ tag: m[2], close: m[1] === '/', self: !!m[3] || m[2] === 'true' || m[2] === 'false', at: m.index!, end: m.index! + m[0].length }); + let i = 0; + const unesc = (s: string) => s.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, '\'').replace(/&/g, '&'); + const readText = (tag: string): string => { + const open = toks[i]!; + if (open.self) { i++; return ''; } + const close = toks[i + 1]; + i += 2; + return close && close.tag === tag && close.close ? unesc(xml.slice(open.end, close.at)) : ''; + }; + const value = (depth: number): PV => { + const t = toks[i]; + if (!t || depth > 30) { i++; return ''; } + switch (t.tag) { + case 'true': i++; if (toks[i]?.tag === 'true' && toks[i]!.close) i++; return true; + case 'false': i++; if (toks[i]?.tag === 'false' && toks[i]!.close) i++; return false; + case 'integer': case 'real': return Number(readText(t.tag)); + case 'string': case 'date': case 'data': return readText(t.tag); + case 'array': { + i++; + const a: PV[] = []; + if (t.self) return a; + while (i < toks.length && !(toks[i]!.tag === 'array' && toks[i]!.close)) a.push(value(depth + 1)); + i++; + return a; + } + case 'dict': { + i++; + const o: Record = {}; + if (t.self) return o; + while (i < toks.length && !(toks[i]!.tag === 'dict' && toks[i]!.close)) { + if (toks[i]!.tag !== 'key') { i++; continue; } + const at = toks[i]!.at; + const k = readText('key'); + if (depth === 0) lines.set(k, lineAt(xml, at)); + o[k] = value(depth + 1); + } + i++; + return o; + } + default: i++; return ''; + } + }; + while (i < toks.length && toks[i]!.tag !== 'dict') i++; + const v = i < toks.length ? value(0) : {}; + return { value: (v && typeof v === 'object' && !Array.isArray(v) ? v : {}) as Record, lines }; +} + +// ---- dependency files ---- + +function podsLock(file: string, text: string): DepRef[] { + const out: DepRef[] = []; + const pods = /^PODS:\n([\s\S]*?)(?=\n\S|$(?![\s\S]))/m.exec(text)?.[1] ?? ''; + const off = text.indexOf(pods); + for (const m of pods.matchAll(/^ {2}- "?([A-Za-z0-9_.+\-/]+) \(([^)]+)\)"?:?$/gm)) + out.push({ eco: 'cocoapods', name: m[1]!, version: m[2]!, file, line: lineAt(text, off + m.index!) }); + return out; +} +function podfile(file: string, text: string): DepRef[] { + return [...text.matchAll(/^\s*pod\s+['"]([^'"]+)['"](?:\s*,\s*['"]([^'"]+)['"])?/gm)].map(m => ({ eco: 'cocoapods' as const, name: m[1]!, version: m[2] ?? null, file, line: lineAt(text, m.index!) })); +} +function packageResolved(file: string, text: string): DepRef[] { + try { + const j = JSON.parse(text) as { pins?: { identity?: string; location?: string; state?: { version?: string } }[]; object?: { pins?: { package?: string; repositoryURL?: string; state?: { version?: string } }[] } }; + const pins = j.pins ?? j.object?.pins?.map(p => ({ identity: p.package, location: p.repositoryURL, state: p.state })) ?? []; + return pins.map(p => ({ eco: 'spm' as const, name: p.location ?? p.identity ?? '', version: p.state?.version ?? null, file, line: lineOf(text, p.location ?? p.identity ?? '') })); + } catch { return []; } +} +function pbxproj(file: string, text: string): DepRef[] { + const out: DepRef[] = []; + for (const m of text.matchAll(/repositoryURL = "([^"]+)";/g)) out.push({ eco: 'spm', name: m[1]!, version: null, file, line: lineAt(text, m.index!) }); + for (const m of text.matchAll(/isa = XCSwiftPackageProductDependency;[\s\S]{0,300}?productName = "?([A-Za-z0-9_-]+)"?;/g)) out.push({ eco: 'spm', name: m[1]!, version: null, file, line: lineAt(text, m.index!) }); + return out; +} +function cartfile(file: string, text: string): DepRef[] { + return [...text.matchAll(/^\s*(?:github|git|binary)\s+"([^"]+)"(?:\s+"?([^"\n]+)"?)?/gm)].map(m => ({ eco: 'carthage' as const, name: m[1]!, version: m[2]?.trim() ?? null, file, line: lineAt(text, m.index!) })); +} +function gradle(file: string, text: string): DepRef[] { + const out: DepRef[] = []; + for (const m of text.matchAll(/(?:implementation|api|compileOnly|runtimeOnly|kapt|ksp|annotationProcessor|classpath)\s*\(?\s*(?:platform\(\s*)?["']([A-Za-z0-9_.\-]+):([A-Za-z0-9_.\-]+)(?::([^"'@]+))?/g)) + out.push({ eco: 'gradle', name: `${m[1]}:${m[2]}`, version: m[3] ?? null, file, line: lineAt(text, m.index!) }); + return out; +} +function versionCatalog(file: string, text: string): DepRef[] { + const versions = new Map(); + const vsec = /^\[versions\]\n([\s\S]*?)(?=^\[|$(?![\s\S]))/m.exec(text)?.[1] ?? ''; + for (const m of vsec.matchAll(/^\s*([A-Za-z0-9_.\-]+)\s*=\s*"([^"]+)"/gm)) versions.set(m[1]!, m[2]!); + const out: DepRef[] = []; + for (const m of text.matchAll(/^\s*[A-Za-z0-9_.\-]+\s*=\s*\{([^}]*)\}/gm)) { + const body = m[1]!; + const mod = /module\s*=\s*"([^":]+):([^"]+)"/.exec(body); + const grp = /group\s*=\s*"([^"]+)"/.exec(body), nm = /name\s*=\s*"([^"]+)"/.exec(body); + const name = mod ? `${mod[1]}:${mod[2]}` : grp && nm ? `${grp[1]}:${nm[1]}` : null; + if (!name) continue; + const ver = /version\.ref\s*=\s*"([^"]+)"/.exec(body)?.[1]; + out.push({ eco: 'gradle', name, version: ver ? versions.get(ver) ?? null : /version\s*=\s*"([^"]+)"/.exec(body)?.[1] ?? null, file, line: lineAt(text, m.index!) }); + } + for (const m of text.matchAll(/^\s*[A-Za-z0-9_.\-]+\s*=\s*"([A-Za-z0-9_.\-]+):([A-Za-z0-9_.\-]+):([^"]+)"/gm)) + out.push({ eco: 'gradle', name: `${m[1]}:${m[2]}`, version: m[3]!, file, line: lineAt(text, m.index!) }); + return out; +} +function packageJson(file: string, text: string): DepRef[] { + try { + const j = JSON.parse(text) as { dependencies?: Record }; + return Object.entries(j.dependencies ?? {}).map(([n, v]) => ({ eco: 'npm' as const, name: n, version: v, file, line: lineOf(text, `"${n}"`) })); + } catch { return []; } +} +function pubspec(file: string, text: string): DepRef[] { + const sec = /^dependencies:\n([\s\S]*?)(?=^\S|$(?![\s\S]))/m.exec(text); + if (!sec) return []; + const off = sec.index + 'dependencies:\n'.length; + return [...sec[1]!.matchAll(/^ {2}([a-z0-9_]+):\s*([^\n#]*)/gm)].map(m => ({ eco: 'pub' as const, name: m[1]!, version: m[2]!.trim() || null, file, line: lineAt(text, off + m.index!) })); +} +function pubspecLock(text: string): Map { + const out = new Map(); + for (const m of text.matchAll(/^ {2}([a-z0-9_]+):\n(?: {4}.*\n)*? {4}version: "([^"]+)"/gm)) out.set(m[1]!, m[2]!); + return out; +} +function unityManifest(file: string, text: string): DepRef[] { + try { + const j = JSON.parse(text) as { dependencies?: Record }; + return Object.entries(j.dependencies ?? {}).map(([n, v]) => ({ eco: 'unity' as const, name: n, version: v, file, line: lineOf(text, `"${n}"`) })); + } catch { return []; } +} +/** External Dependency Manager (Assets/.../Editor/*Dependencies.xml): the pods and Gradle packages a Unity plugin adds. */ +function edmXml(file: string, text: string): DepRef[] { + const out: DepRef[] = []; + for (const m of text.matchAll(/ ({ eco: 'npm' as const, name: m[1]!, version: m[2] ?? null, file, line: lineAt(text, m.index!) })); +} + +// ---- Info.plist key sources other than Info.plist ---- + +const UNITY_KEYS: Record = { cameraUsageDescription: 'NSCameraUsageDescription', locationUsageDescription: 'NSLocationWhenInUseUsageDescription', microphoneUsageDescription: 'NSMicrophoneUsageDescription' }; +const GODOT_KEYS: Record = { + 'privacy/camera_usage_description': 'NSCameraUsageDescription', 'privacy/microphone_usage_description': 'NSMicrophoneUsageDescription', + 'privacy/photolibrary_usage_description': 'NSPhotoLibraryUsageDescription', +}; + +export function detectProject(root: string): ProjectFacts { + const files = listFiles(root); + const cache = new Map(); + const read = (f: string): string => { + if (!cache.has(f)) { try { cache.set(f, readFileSync(join(root, f), 'utf8')); } catch { cache.set(f, ''); } } + return cache.get(f)!; + }; + const has = (re: RegExp) => files.some(f => re.test(f)); + const deps: DepRef[] = []; + const plist = new Map(); + const plistSources: string[] = []; + const entitlements = new Map(); + const privacyManifests: Manifest[] = []; + const setKey = (m: Map, key: string, value: unknown, at: Loc) => { if (!m.has(key)) m.set(key, { key, value, at }); }; + const android: ProjectFacts['androidInfo'] = { manifests: [], permissions: [], services: [], targetSdk: null, targetSdkFrom: null, formFactor: 'phone' }; + const sdkHits: { value: number; at: Loc; prio: number }[] = []; + let remoteStart: ProjectFacts['remoteStart'] = null; + const sources: { path: string; text: string }[] = []; + const stacks = new Set(); + let pubLock = new Map(); + + for (const f of files) { + const n = basename(f); + const testy = /(^|\/)(Tests?|UITests|[A-Za-z]+Tests|test|androidTest|__tests__|Example|Samples?)\//.test(f); + if (n === 'Info.plist' && !testy && !/\.(app|appex)\//.test(f)) { + const { value, lines } = parsePlist(read(f)); + if (Object.keys(value).length) plistSources.push(f); + for (const [k, v] of Object.entries(value)) setKey(plist, k, v, { file: f, line: lines.get(k) ?? 1 }); + } else if (n.endsWith('.entitlements')) { + const { value, lines } = parsePlist(read(f)); + for (const [k, v] of Object.entries(value)) setKey(entitlements, k, v, { file: f, line: lines.get(k) ?? 1 }); + } else if (n === 'PrivacyInfo.xcprivacy') privacyManifests.push(parseManifest(f, read(f))); + else if (n === 'project.pbxproj') { + const t = read(f); + deps.push(...pbxproj(f, t)); + let found = false; + for (const m of t.matchAll(/INFOPLIST_KEY_([A-Za-z]+) = ("(?:[^"\\]|\\.)*"|[^;\n]*);/g)) { + found = true; + setKey(plist, m[1]!, m[2]!.replace(/^"|"$/g, '').replace(/\\"/g, '"'), { file: f, line: lineAt(t, m.index!) }); + } + if (found) plistSources.push(f); + } else if (n === 'Podfile.lock') deps.push(...podsLock(f, read(f))); + else if (n === 'Podfile') deps.push(...podfile(f, read(f))); + else if (n === 'Package.resolved') deps.push(...packageResolved(f, read(f))); + else if (n === 'Cartfile' || n === 'Cartfile.resolved') deps.push(...cartfile(f, read(f))); + else if (/^(build\.gradle(\.kts)?|variables\.gradle|settings\.gradle(\.kts)?)$/.test(n)) { + const t = read(f); + deps.push(...gradle(f, t)); + for (const m of t.matchAll(/\btargetSdk(?:Version)?\s*(?:=|\s)\s*\(?\s*(\d{2})\b/g)) + sdkHits.push({ value: Number(m[1]), at: { file: f, line: lineAt(t, m.index!) }, prio: /(^|\/)app\/|variables\.gradle/.test(f) ? 0 : 1 }); + if (/targetSdk(?:Version)?\s*(?:=|\s)\s*flutter\.targetSdkVersion/.test(t)) android.targetSdkFrom = 'the Flutter SDK (flutter.targetSdkVersion)'; + } else if (n === 'libs.versions.toml') { + const t = read(f); + deps.push(...versionCatalog(f, t)); + for (const m of t.matchAll(/^\s*(?:target-?sdk|targetSdk|android-?target-?sdk)\w*\s*=\s*"(\d{2})"/gim)) sdkHits.push({ value: Number(m[1]), at: { file: f, line: lineAt(t, m.index!) }, prio: 0 }); + } else if (n === 'AndroidManifest.xml' && /(^|\/)src\/main\/AndroidManifest\.xml$|^AndroidManifest\.xml$|Plugins\/Android\/AndroidManifest\.xml$/.test(f) && !testy) { + const t = read(f); + android.manifests.push(f); + for (const m of t.matchAll(/]*?)\/?>/g)) { + const name = /android:name="([^"]+)"/.exec(m[1]!)?.[1]; + if (name && !/tools:node="remove"/.test(m[1]!)) android.permissions.push({ name, at: { file: f, line: lineAt(t, m.index!) } }); + } + for (const m of t.matchAll(/]*?)(\/>|>)/g)) { + const name = /android:name="([^"]+)"/.exec(m[1]!)?.[1] ?? '?'; + android.services.push({ name, fgsType: /android:foregroundServiceType="([^"]+)"/.exec(m[1]!)?.[1] ?? null, at: { file: f, line: lineAt(t, m.index!) } }); + } + if (/android\.hardware\.type\.watch/.test(t)) android.formFactor = 'wear'; + else if (/android\.software\.leanback"[^>]*android:required="true"|android:required="true"[^>]*android\.software\.leanback/.test(t)) android.formFactor = 'tv'; + else if (/android\.hardware\.type\.automotive/.test(t)) android.formFactor = 'automotive'; + } else if (n === 'package.json' && !f.includes('/node_modules/')) { + const t = read(f); + const d = packageJson(f, t); + deps.push(...d); + const names = new Set(d.map(x => x.name)); + if (names.has('react-native')) stacks.add('react-native'); + if (names.has('expo')) stacks.add('expo'); + if ([...names].some(x => x.startsWith('@capacitor/'))) stacks.add('capacitor'); + if (names.has('cordova-android') || names.has('cordova-ios')) stacks.add('cordova'); + } else if ((n === 'app.json' || n === 'app.config.json') && !f.includes('/')) { + const t = read(f); + try { + const j = JSON.parse(t) as { expo?: { ios?: { infoPlist?: Record; usesAppleSignIn?: boolean }; android?: { permissions?: string[] }; plugins?: unknown[] } }; + if (j.expo) { + stacks.add('expo'); + plistSources.push(f); + for (const [k, v] of Object.entries(j.expo.ios?.infoPlist ?? {})) setKey(plist, k, v, { file: f, line: lineOf(t, `"${k}"`) }); + if (j.expo.ios?.usesAppleSignIn) setKey(entitlements, 'com.apple.developer.applesignin', ['Default'], { file: f, line: lineOf(t, '"usesAppleSignIn"') }); + for (const p of j.expo.android?.permissions ?? []) android.permissions.push({ name: p.includes('.') ? p : `android.permission.${p}`, at: { file: f, line: lineOf(t, `"${p}"`) } }); + for (const p of j.expo.plugins ?? []) { + if (Array.isArray(p) && p[0] === 'expo-build-properties') { + const ts = (p[1] as { android?: { targetSdkVersion?: number } } | undefined)?.android?.targetSdkVersion; + if (ts) sdkHits.push({ value: ts, at: { file: f, line: lineOf(t, '"targetSdkVersion"') }, prio: 0 }); + } + } + if (!android.targetSdkFrom) android.targetSdkFrom = 'the Expo SDK version (expo-build-properties android.targetSdkVersion overrides it)'; + } + } catch { /* not JSON */ } + } else if (/^capacitor\.config\.(json|ts|js)$/.test(n)) { + stacks.add('capacitor'); + const t = read(f); + const m = /server\s*["']?\s*:\s*\{[\s\S]*?\burl["']?\s*:\s*["'](https?:\/\/[^"']+)["']/.exec(t); + if (m && !/^https?:\/\/(localhost|127\.0\.0\.1|10\.0\.2\.2|192\.168\.)/.test(m[1]!)) remoteStart = { url: m[1]!, at: { file: f, line: lineAt(t, m.index! + m[0].indexOf(m[1]!)) } }; + } else if (n === 'config.xml' && / 0) sdkHits.push({ value: Number(ts[1]), at: { file: f, line: lineAt(t, ts.index) }, prio: 0 }); + else if (ts) android.targetSdkFrom = 'Unity "Automatic (highest installed)": the Android SDK the build machine has'; + } else if (n === 'export_presets.cfg') { + stacks.add('godot'); + const t = read(f); + let any = false; + for (const [gk, pk] of Object.entries(GODOT_KEYS)) { + const m = new RegExp(`^${gk.replace('/', '\\/')}="(.*)"`, 'm').exec(t); + if (m) { any = true; setKey(plist, pk, m[1]!, { file: f, line: lineAt(t, m.index) }); } + } + if (any) plistSources.push(f); + const ts = /^gradle_build\/target_sdk="(\d+)"/m.exec(t); + if (ts) sdkHits.push({ value: Number(ts[1]), at: { file: f, line: lineAt(t, ts.index) }, prio: 0 }); + for (const m of t.matchAll(/^permissions\/([a-z_]+)=true/gm)) android.permissions.push({ name: `android.permission.${m[1]!.toUpperCase()}`, at: { file: f, line: lineAt(t, m.index!) } }); + } + // app sources + if (SRC_EXT.has(extname(n)) && !testy && !/\.min\.js$|\.d\.ts$|(^|\/)(Plugins|ThirdParty|third_party|Packages|addons)\//.test(f) && !/\.config\.(ts|js)$/.test(n)) { + const t = read(f); + if (t && !t.includes('\u0000')) sources.push({ path: f, text: t }); + } + } + // Unity / Godot plugin folders count as dependencies (a folder under Assets/ or addons/) + for (const d of new Set(files.map(f => /^Assets\/([^/]+)\//.exec(f)?.[1]).filter((x): x is string => !!x))) + deps.push({ eco: 'unity', name: d, version: null, file: `Assets/${d}/`, line: 1 }); + for (const d of new Set(files.map(f => /^addons\/([^/]+)\//.exec(f)?.[1]).filter((x): x is string => !!x))) + deps.push({ eco: 'godot', name: d, version: null, file: `addons/${d}/`, line: 1 }); + for (const d of deps) if (d.eco === 'pub' && pubLock.has(d.name)) d.version = pubLock.get(d.name)!; + + if (has(/\.xcodeproj\/project\.pbxproj$/) && !stacks.has('flutter') && !stacks.has('react-native') && !stacks.has('capacitor') && !stacks.has('cordova') && !stacks.has('unity')) stacks.add('ios-native'); + if (android.manifests.length && !stacks.has('flutter') && !stacks.has('react-native') && !stacks.has('capacitor') && !stacks.has('cordova') && !stacks.has('unity') && !stacks.has('godot')) stacks.add('android-native'); + if (!stacks.size && has(/(^|\/)index\.html$/)) stacks.add('web'); + const ios = has(/\.xcodeproj\/project\.pbxproj$/) || plistSources.length > 0 || stacks.has('expo') || stacks.has('unity') || (stacks.has('godot') && /platform="iOS"/.test(read(files.find(f => basename(f) === 'export_presets.cfg') ?? ''))); + const isAndroid = android.manifests.length > 0 || has(/(^|\/)build\.gradle(\.kts)?$/) || stacks.has('expo') || stacks.has('unity') || (stacks.has('godot') && /platform="Android"/.test(read(files.find(f => basename(f) === 'export_presets.cfg') ?? ''))); + if (sdkHits.length) { + sdkHits.sort((a, b) => a.prio - b.prio || a.value - b.value); + android.targetSdk = { value: sdkHits[0]!.value, at: sdkHits[0]!.at }; + } + + const sdks: DetectedSdk[] = []; + for (const s of SDKS) { + const hits = deps.filter(d => matchesSdk(d, s)); + if (hits.length) sdks.push({ sdk: s, deps: hits }); + } + return { root, stacks: [...stacks], ios, android: isAndroid, deps, sdks, plist, plistSources, entitlements, privacyManifests, androidInfo: android, remoteStart, sources, scanned: files.length }; +} + +const COMMENT = /^\s*(\/\/|#|\*|\/\*| + +### short +``` +Notes that stay tidy, and paper notes turned into text. +``` + +### full +``` +Clean Notes keeps your notes tidy and turns paper notes into text. +``` diff --git a/tests/fixtures/scan/clean/storebound.config.ts b/tests/fixtures/scan/clean/storebound.config.ts new file mode 100644 index 00000000..378a33f9 --- /dev/null +++ b/tests/fixtures/scan/clean/storebound.config.ts @@ -0,0 +1,45 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Clean Notes', + profile: 'subscription-app', + privacyPolicyUrl: 'https://example.com/privacy', + termsUrl: 'https://example.com/terms', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + accounts: { enabled: true, deletionUrl: 'https://example.com/delete-account', inApp: 'Settings > Account > Delete account' }, + reviewAccess: { signInRequired: true, instructions: 'Sign in with the demo account.' }, + languages: [{ id: 'en', play: 'en-US', apple: 'en-US' }], + play: { packageName: 'org.example.cleannotes' }, + apple: { bundleId: 'org.example.cleannotes', usesNonExemptEncryption: false }, + appPrivacy: { tracking: true, trackingDomains: ['ads.example.com'] }, + products: [ + { id: 'org.example.cleannotes.themes', type: 'non_consumable', usd: 1.99, listings: { en: { title: 'Themes', description: 'Every color theme' } } }, + ], + subscriptions: [{ + name: 'Plus', + listings: { en: { name: 'Clean Notes Plus' } }, + subscriptions: [ + { id: 'org.example.cleannotes.plus_monthly', period: 'P1M', level: 1, usd: 2.99, listings: { en: { title: 'Plus', description: 'Unlimited scans' } } }, + ], + }], + dataSafety: { + collectsData: true, + encryptedInTransit: true, + deletionRequest: true, + accountCreation: ['PSL_ACM_OAUTH'], + data: { + PSL_NAME: { shared: false, collect: ['account'] }, + PSL_EMAIL: { shared: false, collect: ['account', 'functionality'] }, + PSL_USER_ACCOUNT: { shared: false, collect: ['account', 'functionality'] }, + PSL_DEVICE_ID: { shared: true, collect: ['advertising', 'analytics', 'fraud'], share: ['advertising'] }, + PSL_APPROX_LOCATION: { shared: true, collect: ['advertising', 'analytics', 'fraud'], share: ['advertising'] }, + PSL_USER_INTERACTION: { shared: true, collect: ['advertising', 'analytics'], share: ['advertising'] }, + PSL_PERFORMANCE_DIAGNOSTICS: { shared: false, collect: ['analytics'] }, + PSL_PURCHASE_HISTORY: { shared: false, collect: ['functionality'] }, + }, + }, + scan: { ignore: [] }, +}; diff --git a/tests/fixtures/scan/flutter/README.md b/tests/fixtures/scan/flutter/README.md new file mode 100644 index 00000000..49db225c --- /dev/null +++ b/tests/fixtures/scan/flutter/README.md @@ -0,0 +1,6 @@ +# flutter fixture + +A made-up Flutter subscription app: Google Sign-In without Sign in with Apple, sign-up without deletion, a +subscription without Terms of Use (config and listing) or renewal wording, app_tracking_transparency without +NSUserTrackingUsageDescription, a location foreground service without FOREGROUND_SERVICE_LOCATION, and a targetSdk +that comes from the Flutter SDK. Not a buildable project. diff --git a/tests/fixtures/scan/flutter/android/app/build.gradle b/tests/fixtures/scan/flutter/android/app/build.gradle new file mode 100644 index 00000000..e46b32ee --- /dev/null +++ b/tests/fixtures/scan/flutter/android/app/build.gradle @@ -0,0 +1,9 @@ +android { + namespace "com.example.habitcoach" + compileSdk flutter.compileSdkVersion + defaultConfig { + applicationId "com.example.habitcoach" + minSdk flutter.minSdkVersion + targetSdk flutter.targetSdkVersion + } +} diff --git a/tests/fixtures/scan/flutter/android/app/src/main/AndroidManifest.xml b/tests/fixtures/scan/flutter/android/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..9e345236 --- /dev/null +++ b/tests/fixtures/scan/flutter/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tests/fixtures/scan/flutter/ios/Runner/Info.plist b/tests/fixtures/scan/flutter/ios/Runner/Info.plist new file mode 100644 index 00000000..a98c73b0 --- /dev/null +++ b/tests/fixtures/scan/flutter/ios/Runner/Info.plist @@ -0,0 +1,10 @@ + + + + + CFBundleDisplayName + Habit Coach + ITSAppUsesNonExemptEncryption + + + diff --git a/tests/fixtures/scan/flutter/lib/main.dart b/tests/fixtures/scan/flutter/lib/main.dart new file mode 100644 index 00000000..b676ad76 --- /dev/null +++ b/tests/fixtures/scan/flutter/lib/main.dart @@ -0,0 +1,14 @@ +import 'package:firebase_auth/firebase_auth.dart'; +import 'package:google_sign_in/google_sign_in.dart'; +import 'package:app_tracking_transparency/app_tracking_transparency.dart'; + +Future signInWithGoogle() async { + final account = await GoogleSignIn().signIn(); + final auth = await account!.authentication; + await FirebaseAuth.instance.signInWithCredential(GoogleAuthProvider.credential(idToken: auth.idToken)); +} + +Future signUp(String email, String password) => + FirebaseAuth.instance.createUserWithEmailAndPassword(email: email, password: password); + +Future askTracking() => AppTrackingTransparency.requestTrackingAuthorization(); diff --git a/tests/fixtures/scan/flutter/pubspec.lock b/tests/fixtures/scan/flutter/pubspec.lock new file mode 100644 index 00000000..0bfbd0be --- /dev/null +++ b/tests/fixtures/scan/flutter/pubspec.lock @@ -0,0 +1,19 @@ +packages: + firebase_auth: + dependency: "direct main" + description: + name: firebase_auth + source: hosted + version: "5.3.1" + google_mobile_ads: + dependency: "direct main" + description: + name: google_mobile_ads + source: hosted + version: "5.1.0" + google_sign_in: + dependency: "direct main" + description: + name: google_sign_in + source: hosted + version: "6.2.1" diff --git a/tests/fixtures/scan/flutter/pubspec.yaml b/tests/fixtures/scan/flutter/pubspec.yaml new file mode 100644 index 00000000..aa2b9b30 --- /dev/null +++ b/tests/fixtures/scan/flutter/pubspec.yaml @@ -0,0 +1,19 @@ +name: habit_coach +description: A made-up habit app for storebound tests. +version: 2.1.0+21 + +environment: + sdk: ">=3.5.0 <4.0.0" + +dependencies: + flutter: + sdk: flutter + firebase_auth: ^5.3.0 + google_sign_in: ^6.2.1 + purchases_flutter: ^8.1.0 + google_mobile_ads: ^5.1.0 + app_tracking_transparency: ^2.0.6 + +dev_dependencies: + flutter_test: + sdk: flutter diff --git a/tests/fixtures/scan/flutter/store/appstore.md b/tests/fixtures/scan/flutter/store/appstore.md new file mode 100644 index 00000000..987e952a --- /dev/null +++ b/tests/fixtures/scan/flutter/store/appstore.md @@ -0,0 +1,23 @@ +# Habit Coach · App Store listing copy + +## en-US · English (U.S.) + +### subtitle +``` +Small habits, every day +``` + +### promotionalText +``` +Build a streak that sticks. +``` + +### keywords +``` +habit,streak,routine,goals,tracker +``` + +### description +``` +Habit Coach helps you build small daily habits with reminders and streaks. Coach Plus adds unlimited habits. +``` diff --git a/tests/fixtures/scan/flutter/storebound.config.ts b/tests/fixtures/scan/flutter/storebound.config.ts new file mode 100644 index 00000000..d91d6507 --- /dev/null +++ b/tests/fixtures/scan/flutter/storebound.config.ts @@ -0,0 +1,22 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Habit Coach', + profile: 'subscription-app', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + reviewAccess: { signInRequired: false }, + languages: [{ id: 'en', play: 'en-US', apple: 'en-US' }], + play: { packageName: 'com.example.habitcoach' }, + apple: { bundleId: 'com.example.habitcoach', usesNonExemptEncryption: false }, + subscriptions: [{ + name: 'Coach Plus', + listings: { en: { name: 'Coach Plus' } }, + subscriptions: [ + { id: 'com.example.habitcoach.plus_monthly', period: 'P1M', level: 1, usd: 4.99, listings: { en: { title: 'Coach Plus', description: 'Unlimited habits' } } }, + ], + }], +}; diff --git a/tests/fixtures/scan/ios-native/Notes.xcodeproj/project.pbxproj b/tests/fixtures/scan/ios-native/Notes.xcodeproj/project.pbxproj new file mode 100644 index 00000000..9601d429 --- /dev/null +++ b/tests/fixtures/scan/ios-native/Notes.xcodeproj/project.pbxproj @@ -0,0 +1,17 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + objects = { + A1B2C3D4E5F6000000000001 /* XCRemoteSwiftPackageReference "GoogleSignIn-iOS" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/google/GoogleSignIn-iOS"; + }; + A1B2C3D4E5F6000000000002 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = Notes/Info.plist; + PRODUCT_BUNDLE_IDENTIFIER = com.example.notes; + }; + }; + }; +} diff --git a/tests/fixtures/scan/ios-native/Notes/Api.swift b/tests/fixtures/scan/ios-native/Notes/Api.swift new file mode 100644 index 00000000..8711570d --- /dev/null +++ b/tests/fixtures/scan/ios-native/Notes/Api.swift @@ -0,0 +1,8 @@ +import Foundation +import AdSupport + +enum Api { + static let base = URL(string: "http://192.0.2.10:8080/v1")! + static var adId: String { ASIdentifierManager.shared().advertisingIdentifier.uuidString } + static func lastSync() -> Date? { UserDefaults.standard.object(forKey: "lastSync") as? Date } +} diff --git a/tests/fixtures/scan/ios-native/Notes/Info.plist b/tests/fixtures/scan/ios-native/Notes/Info.plist new file mode 100644 index 00000000..966f34d2 --- /dev/null +++ b/tests/fixtures/scan/ios-native/Notes/Info.plist @@ -0,0 +1,19 @@ + + + + + CFBundleDisplayName + Notes + GADApplicationIdentifier + ca-app-pub-0000000000000000~0000000000 + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + + NSPhotoLibraryUsageDescription + + NSLocationWhenInUseUsageDescription + Location + + diff --git a/tests/fixtures/scan/ios-native/Notes/LegacyHelp.swift b/tests/fixtures/scan/ios-native/Notes/LegacyHelp.swift new file mode 100644 index 00000000..e9e79d62 --- /dev/null +++ b/tests/fixtures/scan/ios-native/Notes/LegacyHelp.swift @@ -0,0 +1,8 @@ +import UIKit + +final class LegacyHelp: UIViewController { + let web = UIWebView() + func openSystemSettings() { + UIApplication.shared.open(URL(string: "App-Prefs:root=Privacy")!) + } +} diff --git a/tests/fixtures/scan/ios-native/Notes/LoginView.swift b/tests/fixtures/scan/ios-native/Notes/LoginView.swift new file mode 100644 index 00000000..fa518512 --- /dev/null +++ b/tests/fixtures/scan/ios-native/Notes/LoginView.swift @@ -0,0 +1,20 @@ +import SwiftUI +import GoogleSignIn +import FirebaseAuth + +struct LoginView: View { + var body: some View { + VStack { + Button("Continue with Google") { signInWithGoogle() } + Button("Create account") { createAccount() } + } + } + + func signInWithGoogle() { + GIDSignIn.sharedInstance.signIn(withPresenting: rootViewController()) { _, _ in } + } + + func createAccount() { + Auth.auth().createUserWithEmailAndPassword(withEmail: "demo@example.com", password: "example") { _, _ in } + } +} diff --git a/tests/fixtures/scan/ios-native/Notes/ScannerView.swift b/tests/fixtures/scan/ios-native/Notes/ScannerView.swift new file mode 100644 index 00000000..4e01413b --- /dev/null +++ b/tests/fixtures/scan/ios-native/Notes/ScannerView.swift @@ -0,0 +1,13 @@ +import AVFoundation +import CoreLocation + +final class ScannerView { + let session = AVCaptureSession() + let location = CLLocationManager() + + func start() { + guard let device = AVCaptureDevice.default(for: .video) else { return } + _ = device + location.requestWhenInUseAuthorization() + } +} diff --git a/tests/fixtures/scan/ios-native/Notes/Store.swift b/tests/fixtures/scan/ios-native/Notes/Store.swift new file mode 100644 index 00000000..f45afdc0 --- /dev/null +++ b/tests/fixtures/scan/ios-native/Notes/Store.swift @@ -0,0 +1,7 @@ +import StoreKit + +final class Store: NSObject { + func buyPro(_ product: SKProduct) { + SKPaymentQueue.default().add(SKPayment(product: product)) + } +} diff --git a/tests/fixtures/scan/ios-native/Podfile.lock b/tests/fixtures/scan/ios-native/Podfile.lock new file mode 100644 index 00000000..8647f7de --- /dev/null +++ b/tests/fixtures/scan/ios-native/Podfile.lock @@ -0,0 +1,13 @@ +PODS: + - FirebaseAuth (10.18.0): + - FirebaseCore (~> 10.0) + - FirebaseCore (10.18.0) + - Google-Mobile-Ads-SDK (10.14.0) + - GoogleSignIn (7.0.0) + +DEPENDENCIES: + - FirebaseAuth + - Google-Mobile-Ads-SDK + - GoogleSignIn + +COCOAPODS: 1.15.2 diff --git a/tests/fixtures/scan/ios-native/README.md b/tests/fixtures/scan/ios-native/README.md new file mode 100644 index 00000000..47b3b33b --- /dev/null +++ b/tests/fixtures/scan/ios-native/README.md @@ -0,0 +1,7 @@ +# ios-native fixture + +A made-up SwiftUI notes app with planted App Review problems for `storebound scan` tests: Google Sign-In without Sign +in with Apple, sign-up without in-app deletion, a non-consumable without Restore Purchases, AdMob and the IDFA without +App Tracking Transparency, the camera without a purpose string, an empty and a vague purpose string, UIWebView, a +private settings URL scheme, an IPv4 server URL, NSAllowsArbitraryLoads, no export compliance answer, no privacy +manifest, old SDKs, and an App Store listing that names Android, a competitor and lorem ipsum. Not a buildable project. diff --git a/tests/fixtures/scan/ios-native/store/appstore.md b/tests/fixtures/scan/ios-native/store/appstore.md new file mode 100644 index 00000000..44a72fd7 --- /dev/null +++ b/tests/fixtures/scan/ios-native/store/appstore.md @@ -0,0 +1,25 @@ +# Notes · App Store listing copy + +## en-US · English (U.S.) + +### subtitle +``` +Quick notes, synced +``` + +### promotionalText +``` +Write it down before you forget. +``` + +### keywords +``` +notes,todo,instagram,free,journal +``` + +### description +``` +Lorem ipsum dolor sit amet, notes for everyone. + +Also available on Android and Google Play. +``` diff --git a/tests/fixtures/scan/ios-native/storebound.config.ts b/tests/fixtures/scan/ios-native/storebound.config.ts new file mode 100644 index 00000000..b823717d --- /dev/null +++ b/tests/fixtures/scan/ios-native/storebound.config.ts @@ -0,0 +1,18 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Notes', + profile: 'app', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + accounts: { enabled: true }, + reviewAccess: { signInRequired: true }, + languages: [{ id: 'en', apple: 'en-US' }], + apple: { bundleId: 'com.example.notes' }, + products: [ + { id: 'com.example.notes.pro', type: 'non_consumable', usd: 4.99, listings: { en: { title: 'Notes Pro', description: 'Unlimited notes and themes' } } }, + ], +}; diff --git a/tests/fixtures/scan/teaser/Planner.xcodeproj/project.pbxproj b/tests/fixtures/scan/teaser/Planner.xcodeproj/project.pbxproj new file mode 100644 index 00000000..5343a49f --- /dev/null +++ b/tests/fixtures/scan/teaser/Planner.xcodeproj/project.pbxproj @@ -0,0 +1,13 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + objects = { + C1B2C3D4E5F6000000000002 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = Planner/Info.plist; + PRODUCT_BUNDLE_IDENTIFIER = com.example.planner; + }; + }; + }; +} diff --git a/tests/fixtures/scan/teaser/Planner/Ads.swift b/tests/fixtures/scan/teaser/Planner/Ads.swift new file mode 100644 index 00000000..5551e8a8 --- /dev/null +++ b/tests/fixtures/scan/teaser/Planner/Ads.swift @@ -0,0 +1,9 @@ +import AdSupport +import GoogleMobileAds + +enum Ads { + static func start() { + GADMobileAds.sharedInstance().start(completionHandler: nil) + print(ASIdentifierManager.shared().advertisingIdentifier) + } +} diff --git a/tests/fixtures/scan/teaser/Planner/Info.plist b/tests/fixtures/scan/teaser/Planner/Info.plist new file mode 100644 index 00000000..7339450c --- /dev/null +++ b/tests/fixtures/scan/teaser/Planner/Info.plist @@ -0,0 +1,10 @@ + + + + + CFBundleDisplayName + Planner + ITSAppUsesNonExemptEncryption + + + diff --git a/tests/fixtures/scan/teaser/Planner/LoginView.swift b/tests/fixtures/scan/teaser/Planner/LoginView.swift new file mode 100644 index 00000000..1926b537 --- /dev/null +++ b/tests/fixtures/scan/teaser/Planner/LoginView.swift @@ -0,0 +1,20 @@ +import FirebaseAuth +import GoogleSignIn +import SwiftUI + +struct LoginView: View { + var body: some View { + VStack { + Button("Continue with Google") { + GIDSignIn.sharedInstance.signIn(withPresenting: rootViewController()) { _, _ in } + } + Button("Create account") { Task { try await AccountApi.signUp() } } + } + } +} + +enum AccountApi { + static func signUp() async throws { + _ = try await Auth.auth().createUser(withEmail: "planner@example.com", password: "example") + } +} diff --git a/tests/fixtures/scan/teaser/Planner/PrivacyInfo.xcprivacy b/tests/fixtures/scan/teaser/Planner/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..0e3bf796 --- /dev/null +++ b/tests/fixtures/scan/teaser/Planner/PrivacyInfo.xcprivacy @@ -0,0 +1,19 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/tests/fixtures/scan/teaser/Planner/ProStore.swift b/tests/fixtures/scan/teaser/Planner/ProStore.swift new file mode 100644 index 00000000..4cfd6a34 --- /dev/null +++ b/tests/fixtures/scan/teaser/Planner/ProStore.swift @@ -0,0 +1,7 @@ +import StoreKit + +enum ProStore { + static func buy(_ product: Product) async throws { + _ = try await product.purchase() + } +} diff --git a/tests/fixtures/scan/teaser/Planner/SettingsView.swift b/tests/fixtures/scan/teaser/Planner/SettingsView.swift new file mode 100644 index 00000000..13bcf2a9 --- /dev/null +++ b/tests/fixtures/scan/teaser/Planner/SettingsView.swift @@ -0,0 +1,10 @@ +import SwiftUI + +struct SettingsView: View { + var body: some View { + List { + Link("Privacy policy", destination: URL(string: "https://example.com/privacy")!) + Text("Last opened: \(UserDefaults.standard.string(forKey: "lastOpen") ?? "-")") + } + } +} diff --git a/tests/fixtures/scan/teaser/Podfile.lock b/tests/fixtures/scan/teaser/Podfile.lock new file mode 100644 index 00000000..a21b254c --- /dev/null +++ b/tests/fixtures/scan/teaser/Podfile.lock @@ -0,0 +1,9 @@ +PODS: + - Google-Mobile-Ads-SDK (11.10.0) + - GoogleSignIn (7.1.0) + +DEPENDENCIES: + - Google-Mobile-Ads-SDK + - GoogleSignIn + +COCOAPODS: 1.15.2 diff --git a/tests/fixtures/scan/teaser/README.md b/tests/fixtures/scan/teaser/README.md new file mode 100644 index 00000000..83627054 --- /dev/null +++ b/tests/fixtures/scan/teaser/README.md @@ -0,0 +1,6 @@ +# teaser fixture + +A made-up iOS planner app with the five classic App Review rejections and nothing else: sign-in without a demo +account (2.1), sign-up without in-app account deletion (5.1.1(v)), Google Sign-In without Sign in with Apple (4.8), a +non-consumable without Restore Purchases (3.1.1), and AdMob plus the IDFA without App Tracking Transparency (5.1.2). +Its `storebound scan` output is the one the teaser video shows. Not a buildable project. diff --git a/tests/fixtures/scan/teaser/store/appstore.md b/tests/fixtures/scan/teaser/store/appstore.md new file mode 100644 index 00000000..77033ff0 --- /dev/null +++ b/tests/fixtures/scan/teaser/store/appstore.md @@ -0,0 +1,23 @@ +# Planner · App Store listing copy + +## en-US · English (U.S.) + +### subtitle +``` +Plan your week in a minute +``` + +### promotionalText +``` +Weekly planning without the clutter. +``` + +### keywords +``` +planner,week,calendar,tasks,agenda +``` + +### description +``` +Planner lays out your week in one screen. Planner Pro adds themes and widgets. +``` diff --git a/tests/fixtures/scan/teaser/storebound.config.ts b/tests/fixtures/scan/teaser/storebound.config.ts new file mode 100644 index 00000000..fc5133b8 --- /dev/null +++ b/tests/fixtures/scan/teaser/storebound.config.ts @@ -0,0 +1,18 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Planner', + profile: 'app', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + accounts: { enabled: true }, + reviewAccess: { signInRequired: true, instructions: 'Sign in with the demo account.' }, + languages: [{ id: 'en', apple: 'en-US' }], + apple: { bundleId: 'com.example.planner', usesNonExemptEncryption: false }, + products: [ + { id: 'com.example.planner.pro', type: 'non_consumable', usd: 4.99, listings: { en: { title: 'Planner Pro', description: 'Themes and widgets' } } }, + ], +}; diff --git a/tests/fixtures/scan/unity/Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml b/tests/fixtures/scan/unity/Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml new file mode 100644 index 00000000..6a834541 --- /dev/null +++ b/tests/fixtures/scan/unity/Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/fixtures/scan/unity/Assets/Scripts/PhotoBooth.cs b/tests/fixtures/scan/unity/Assets/Scripts/PhotoBooth.cs new file mode 100644 index 00000000..75c44a27 --- /dev/null +++ b/tests/fixtures/scan/unity/Assets/Scripts/PhotoBooth.cs @@ -0,0 +1,12 @@ +using UnityEngine; + +public class PhotoBooth : MonoBehaviour +{ + WebCamTexture cam; + + void Start() + { + cam = new WebCamTexture(); + cam.Play(); + } +} diff --git a/tests/fixtures/scan/unity/Assets/Scripts/RatePopup.cs b/tests/fixtures/scan/unity/Assets/Scripts/RatePopup.cs new file mode 100644 index 00000000..6787c509 --- /dev/null +++ b/tests/fixtures/scan/unity/Assets/Scripts/RatePopup.cs @@ -0,0 +1,12 @@ +using UnityEngine; +using UnityEngine.UI; + +public class RatePopup : MonoBehaviour +{ + public Text message; + + void Show() + { + message.text = "Rate us 5 stars and get 50 free coins!"; + } +} diff --git a/tests/fixtures/scan/unity/Assets/Scripts/Shop.cs b/tests/fixtures/scan/unity/Assets/Scripts/Shop.cs new file mode 100644 index 00000000..8936d7e3 --- /dev/null +++ b/tests/fixtures/scan/unity/Assets/Scripts/Shop.cs @@ -0,0 +1,9 @@ +using UnityEngine.Purchasing; + +public class Shop : IDetailedStoreListener +{ + public void BuyNoAds(IStoreController controller) + { + controller.InitiatePurchase("com.example.bubblezoo.noads"); + } +} diff --git a/tests/fixtures/scan/unity/Packages/manifest.json b/tests/fixtures/scan/unity/Packages/manifest.json new file mode 100644 index 00000000..5277fc10 --- /dev/null +++ b/tests/fixtures/scan/unity/Packages/manifest.json @@ -0,0 +1,8 @@ +{ + "dependencies": { + "com.unity.ads": "4.12.0", + "com.unity.purchasing": "4.12.2", + "com.unity.services.levelplay": "8.4.0", + "com.unity.ugui": "2.0.0" + } +} diff --git a/tests/fixtures/scan/unity/ProjectSettings/ProjectSettings.asset b/tests/fixtures/scan/unity/ProjectSettings/ProjectSettings.asset new file mode 100644 index 00000000..2ad04481 --- /dev/null +++ b/tests/fixtures/scan/unity/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,11 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + productName: Bubble Zoo + companyName: Example Studio + AndroidMinSdkVersion: 23 + AndroidTargetSdkVersion: 35 + cameraUsageDescription: + locationUsageDescription: + microphoneUsageDescription: diff --git a/tests/fixtures/scan/unity/README.md b/tests/fixtures/scan/unity/README.md new file mode 100644 index 00000000..daa7704e --- /dev/null +++ b/tests/fixtures/scan/unity/README.md @@ -0,0 +1,5 @@ +# unity fixture + +A made-up Unity kids game: Kids Category age band with Unity Ads and LevelPlay (1.3, Play Families), "for kids" in the +listing, an empty camera usage description with WebCamTexture, a reward for rating the game, a non-consumable without +Restore, and targetSdk 35. Not a buildable project. diff --git a/tests/fixtures/scan/unity/store/appstore.md b/tests/fixtures/scan/unity/store/appstore.md new file mode 100644 index 00000000..55241ff2 --- /dev/null +++ b/tests/fixtures/scan/unity/store/appstore.md @@ -0,0 +1,23 @@ +# Bubble Zoo · App Store listing copy + +## en-US · English (U.S.) + +### subtitle +``` +Pop bubbles with zoo friends +``` + +### promotionalText +``` +New: the penguin pool. +``` + +### keywords +``` +bubble,zoo,animals,pop,toddler,learning +``` + +### description +``` +The cutest bubble game for kids! Pop bubbles, free the animals and learn their names. +``` diff --git a/tests/fixtures/scan/unity/storebound.config.ts b/tests/fixtures/scan/unity/storebound.config.ts new file mode 100644 index 00000000..430fec31 --- /dev/null +++ b/tests/fixtures/scan/unity/storebound.config.ts @@ -0,0 +1,17 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Bubble Zoo', + profile: 'game', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + languages: [{ id: 'en', play: 'en-US', apple: 'en-US' }], + play: { packageName: 'com.example.bubblezoo' }, + apple: { bundleId: 'com.example.bubblezoo', usesNonExemptEncryption: false, info: { ageRating: { kidsAgeBand: 'FIVE_AND_UNDER' } } }, + products: [ + { id: 'com.example.bubblezoo.noads', type: 'non_consumable', usd: 2.99, listings: { en: { title: 'No ads', description: 'Remove all ads' } } }, + ], +}; diff --git a/tests/scan.test.ts b/tests/scan.test.ts new file mode 100644 index 00000000..3c6e560c --- /dev/null +++ b/tests/scan.test.ts @@ -0,0 +1,245 @@ +// storebound scan: project detection, every rejection-risk rule on the fixtures (true positives) and the clean +// fixture (no false positives), the declarations proposal and --write, validate / MCP integration, the demo projects. +import { afterAll, beforeEach, describe, expect, test } from 'bun:test'; +import { cpSync, mkdtempSync, readFileSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { FORBIDDEN_ARGS, TOOLS, toArgv } from '../cli/mcp-tools'; +import { JSON_TOOLS } from '../cli/serve'; +import { scanAsFindings } from '../cli/validate'; +import { matchBrace, toTs, upsertBlock } from '../cli/lib/scan/config-edit'; +import { runScan } from '../cli/lib/scan'; +import { vaguePurpose } from '../cli/lib/scan/permissions'; +import { detectProject, parsePlist } from '../cli/lib/scan/project'; +import type { ScanFinding } from '../cli/lib/scan/rules'; +import { matchesSdk, SDKS, versionAtLeast } from '../cli/lib/scan/sdks'; + +const ROOT = join(import.meta.dir, '..'); +const FX = join(import.meta.dir, 'fixtures', 'scan'); +const CLI = join(ROOT, 'cli', 'index.ts'); +const saved = { u: process.env.REVIEW_DEMO_USER, p: process.env.REVIEW_DEMO_PASSWORD }; +beforeEach(() => { delete process.env.REVIEW_DEMO_USER; delete process.env.REVIEW_DEMO_PASSWORD; }); +afterAll(() => { if (saved.u !== undefined) process.env.REVIEW_DEMO_USER = saved.u; if (saved.p !== undefined) process.env.REVIEW_DEMO_PASSWORD = saved.p; }); + +const scan = async (name: string) => (await runScan(join(FX, name))).report; +const rules = (f: ScanFinding[], store?: 'apple' | 'play') => new Set(f.filter(x => !x.accepted && (!store || x.store === store)).map(x => x.rule)); +const find = (f: ScanFinding[], rule: string, store?: 'apple' | 'play') => f.find(x => x.rule === rule && (!store || x.store === store)); + +describe('project detection', () => { + test('plist reader: values, nested dicts, top-level key lines', () => { + const { value, lines } = parsePlist(readFileSync(join(FX, 'ios-native/Notes/Info.plist'), 'utf8')); + expect(value.NSPhotoLibraryUsageDescription).toBe(''); + expect((value.NSAppTransportSecurity as Record).NSAllowsArbitraryLoads).toBe(true); + expect(lines.get('NSAppTransportSecurity')).toBe(9); + expect(parsePlist('not a plist').value).toEqual({}); + }); + test('stacks, SDKs with versions and file:line from every ecosystem', () => { + const ios = detectProject(join(FX, 'ios-native')); + expect(ios.stacks).toEqual(['ios-native']); + const admob = ios.sdks.find(s => s.sdk.id === 'admob')!.deps[0]!; + expect([admob.file, admob.line, admob.version]).toEqual(['Podfile.lock', 5, '10.14.0']); + expect(ios.sdks.find(s => s.sdk.id === 'google-signin')!.deps.map(d => d.eco).sort()).toEqual(['cocoapods', 'spm']); + const android = detectProject(join(FX, 'android')); + expect(android.androidInfo.targetSdk).toEqual({ value: 34, at: { file: 'app/build.gradle.kts', line: 12 } }); + expect(android.sdks.map(s => s.sdk.id).sort()).toEqual(['admob', 'firebase-auth']); + expect(detectProject(join(FX, 'capacitor')).stacks).toEqual(['capacitor']); + expect(detectProject(join(FX, 'capacitor')).remoteStart?.url).toBe('https://shop.example.com'); + expect(detectProject(join(FX, 'capacitor')).androidInfo.targetSdk?.value).toBe(35); + const unity = detectProject(join(FX, 'unity')); + expect(unity.stacks).toEqual(['unity']); + expect(unity.sdks.map(s => s.sdk.id).sort()).toEqual(['admob', 'iap-wrapper', 'levelplay', 'unity-ads']); + expect(unity.plist.get('NSCameraUsageDescription')?.at.file).toBe('ProjectSettings/ProjectSettings.asset'); + const flutter = detectProject(join(FX, 'flutter')); + expect(flutter.stacks).toEqual(['flutter']); + expect(flutter.deps.find(d => d.name === 'firebase_auth')?.version).toBe('5.3.1'); + expect(flutter.androidInfo.targetSdkFrom).toContain('Flutter'); + }); + test('SDK table: matchers and version compare', () => { + const admob = SDKS.find(s => s.id === 'admob')!; + expect(matchesSdk({ eco: 'cocoapods', name: 'Google-Mobile-Ads-SDK', version: null, file: '', line: 1 }, admob)).toBe(true); + expect(matchesSdk({ eco: 'gradle', name: 'com.google.android.gms:play-services-ads-lite', version: null, file: '', line: 1 }, admob)).toBe(false); + expect(matchesSdk({ eco: 'gradle', name: 'com.amplitude:analytics-android', version: null, file: '', line: 1 }, SDKS.find(s => s.id === 'amplitude')!)).toBe(true); + expect(matchesSdk({ eco: 'spm', name: 'FirebaseAnalytics', version: null, file: '', line: 1 }, SDKS.find(s => s.id === 'firebase-analytics')!)).toBe(true); + expect(versionAtLeast('10.14.0', '11.2.0')).toBe(false); + expect(versionAtLeast('~> 11.10.0', '11.2.0')).toBe(true); + expect(versionAtLeast('latest', '1.0')).toBeNull(); + for (const s of SDKS) expect(s.docs).toMatch(/^https:\/\//); + }); + test('purpose strings: empty, vague, fine', () => { + expect(vaguePurpose('')).toBe('empty'); + expect(vaguePurpose('TODO')).toBe('empty'); + expect(vaguePurpose('Location')).toBe('vague'); + expect(vaguePurpose('Allow $(PRODUCT_NAME) to access your camera')).toBe('vague'); + expect(vaguePurpose('Scan a paper note with the camera to turn it into text.')).toBeNull(); + }); +}); + +describe('rules: planted issues are found', () => { + test('ios-native', async () => { + const r = await scan('ios-native'); + for (const id of ['demo-account', 'account-deletion', 'login-services', 'restore-purchases', 'att', 'purpose-strings', 'privacy-manifest', 'other-platforms', + 'metadata-keywords', 'placeholder-text', 'deprecated-api', 'private-api', 'ats', 'ipv6', 'export-compliance']) expect(rules(r.findings)).toContain(id); + expect(find(r.findings, 'demo-account')!.severity).toBe('blocker'); + expect(find(r.findings, 'login-services')!.guideline).toBe('4.8'); + const cam = r.findings.find(f => f.rule === 'purpose-strings' && f.title.includes('NSCameraUsageDescription'))!; + expect(cam.severity).toBe('blocker'); + expect(cam.evidence[0]).toMatchObject({ file: 'Notes/ScannerView.swift', line: 9 }); + expect(r.findings.some(f => f.rule === 'purpose-strings' && f.title.includes('too vague'))).toBe(true); + expect(find(r.findings, 'other-platforms')!.evidence[0]).toMatchObject({ file: 'store/appstore.md', line: 24 }); + expect(find(r.findings, 'deprecated-api')!.evidence[0]!.file).toBe('Notes/LegacyHelp.swift'); + expect(r.findings.filter(f => f.title.includes('older than')).length).toBe(3); + for (const f of r.findings) { expect(f.fix.length).toBeGreaterThan(10); expect(f.skill).toBeTruthy(); expect(f.ref).toMatch(/^https:\/\//); expect(f.evidence.length).toBeGreaterThan(0); } + }); + test('android', async () => { + const r = await scan('android'); + for (const id of ['play-deletion-url', 'play-target-sdk', 'play-package-name', 'play-fgs', 'play-exact-alarm', 'play-query-all-packages', 'play-sms-call-log', 'privacy-labels']) + expect(rules(r.findings, 'play')).toContain(id); + expect(find(r.findings, 'play-target-sdk')!.evidence[0]).toMatchObject({ file: 'app/build.gradle.kts', line: 12 }); + expect(find(r.findings, 'play-sms-call-log')!.evidence[0]).toMatchObject({ file: 'app/src/main/AndroidManifest.xml', line: 5 }); + expect(rules(r.findings, 'apple').size).toBe(0); + expect(rules(r.findings)).not.toContain('play-app-access'); + expect(rules(r.findings)).not.toContain('account-deletion'); + }); + test('capacitor (no config: project files only)', async () => { + const r = await scan('capacitor'); + expect(r.config).toBeNull(); + for (const id of ['min-functionality', 'purpose-strings', 'play-target-sdk', 'privacy-manifest', 'att']) expect(rules(r.findings)).toContain(id); + expect(find(r.findings, 'min-functionality')!.evidence[0]).toMatchObject({ file: 'capacitor.config.json', line: 6 }); + expect(rules(r.findings)).not.toContain('export-compliance'); + }); + test('unity', async () => { + const r = await scan('unity'); + for (const id of ['purpose-strings', 'play-target-sdk', 'restore-purchases', 'kids-ads', 'review-prompt', 'privacy-manifest']) expect(rules(r.findings)).toContain(id); + expect(find(r.findings, 'kids-ads', 'apple')!.guideline).toBe('1.3'); + expect(find(r.findings, 'kids-ads', 'play')).toBeTruthy(); + expect(r.findings.find(f => f.rule === 'review-prompt' && f.severity === 'high')).toBeTruthy(); + expect(rules(r.findings)).not.toContain('kids-terms'); + }); + test('flutter', async () => { + const r = await scan('flutter'); + for (const id of ['account-deletion', 'play-deletion-url', 'login-services', 'restore-purchases', 'subscription-info', 'att', 'play-fgs', 'play-target-sdk']) expect(rules(r.findings)).toContain(id); + expect(find(r.findings, 'att')!.severity).toBe('blocker'); + expect(r.findings.find(f => f.rule === 'subscription-info' && f.severity === 'blocker')!.title).toContain('Terms of Use'); + expect(r.findings.find(f => f.rule === 'play-fgs' && f.title.includes('FOREGROUND_SERVICE_LOCATION'))).toBeTruthy(); + expect(find(r.findings, 'play-target-sdk')!.severity).toBe('low'); + }); + test('teaser: exactly the five classic rejections', async () => { + const r = await scan('teaser'); + expect([...rules(r.findings)].sort()).toEqual(['account-deletion', 'att', 'demo-account', 'login-services', 'restore-purchases']); + expect(r.findings.map(f => f.guideline)).toEqual(['2.1(a)', '5.1.1(v)', '4.8', '3.1.1', '5.1.2(i)']); + }); +}); + +describe('rules: no false positives', () => { + test('clean fixture has no finding at all', async () => { + process.env.REVIEW_DEMO_USER = 'demo@example.com'; process.env.REVIEW_DEMO_PASSWORD = 'example'; + const r = await scan('clean'); + expect(r.findings.map(f => `${f.rule}: ${f.title}`)).toEqual([]); + expect(r.declarations.changed).toBe(false); + expect(r.declarations.labelGaps).toEqual([]); + expect(r.stacks.sort()).toEqual(['android-native', 'ios-native']); + }); + test('the demo account comes from the environment or .storebound/', async () => { + expect(rules((await scan('clean')).findings)).toContain('demo-account'); + }); + test('the example projects have no open finding (the fictional ones are accepted in scan.ignore)', async () => { + for (const d of ['demo-app', 'demo-game']) { + const r = (await runScan(join(ROOT, 'examples', d))).report; + expect(r.findings.filter(f => !f.accepted).map(f => f.title)).toEqual([]); + for (const f of r.findings) expect(f.accepted!.length).toBeGreaterThan(10); + } + }); +}); + +describe('declarations proposal', () => { + test('detected SDK data types become additions, owner answers are kept, never removed', async () => { + const d = (await scan('android')).declarations; + expect(d.diff.find(x => x.type === 'PSL_DEVICE_ID')).toMatchObject({ change: 'add', after: { shared: true, collect: ['advertising', 'analytics', 'fraud'], share: ['advertising'] } }); + expect(d.diff.find(x => x.type === 'PSL_EMAIL')!.change).toBe('merge'); + expect(d.dataSafety!.data.PSL_EMAIL!.collect).toEqual(['account', 'functionality']); + expect(d.items.find(x => x.what === 'encryptedInTransit')!.status).toBe('ask'); + expect(d.items.find(x => x.what === 'PSL_DEVICE_ID')!.evidence[0]!.file).toBe('gradle/libs.versions.toml'); + expect(d.changed).toBe(true); + }); + test('ATT and the privacy manifest', async () => { + const d = (await scan('clean')).declarations; + expect(d.items.find(x => x.area === 'appPrivacy' && x.what === 'tracking')).toMatchObject({ status: 'detected', value: expect.stringContaining('true') }); + expect(d.items.find(x => x.area === 'privacyManifest' && x.what === 'NSPrivacyAccessedAPICategoryUserDefaults')).toMatchObject({ status: 'detected', value: 'declared: CA92.1' }); + const t = (await scan('teaser')).declarations; + expect(t.items.find(x => x.area === 'att')!.status).toBe('ask'); + }); +}); + +describe('config writing', () => { + test('matchBrace skips strings and comments', () => { + const s = "{ a: '}', b: { c: \"{\" }, // }\n d: `}` }"; + expect(matchBrace(s, 0)).toBe(s.length - 1); + }); + test('toTs writes plain TypeScript', () => { + expect(toTs({ shared: false, collect: ['a', 'b'] })).toBe("{ shared: false, collect: ['a', 'b'] }"); + expect(toTs({ PSL_X: { shared: true, collect: ['x'] } }, ' ')).toBe("{\n PSL_X: { shared: true, collect: ['x'] },\n }"); + }); + test('upsertBlock replaces an existing block and inserts after app', () => { + const src = "export default {\n app: { name: 'X' },\n dataSafety: { collectsData: false, data: {} },\n languages: [],\n};\n"; + const a = upsertBlock(src, 'c.ts', 'dataSafety', { collectsData: true, data: {} }); + expect(a).toBe("export default {\n app: { name: 'X' },\n dataSafety: {\n collectsData: true,\n data: {},\n },\n languages: [],\n};\n"); + const b = upsertBlock(src, 'c.ts', 'appPrivacy', { tracking: true }, 'note'); + expect(b).toContain(" app: { name: 'X' },\n // note\n appPrivacy: { tracking: true },\n dataSafety"); + expect(JSON.parse(upsertBlock('{"app":{}}', 'c.json', 'appPrivacy', { tracking: false }))).toEqual({ app: {}, appPrivacy: { tracking: false } }); + }); + test('scan is read-only without --write; --write adds the detected answers and the config still loads', async () => { + const dir = mkdtempSync(join(tmpdir(), 'sb-scan-')); + try { + cpSync(join(FX, 'android'), dir, { recursive: true }); + const before = readFileSync(join(dir, 'storebound.config.ts'), 'utf8'); + const run = (...a: string[]) => Bun.spawnSync(['bun', CLI, 'scan', '--dir', dir, ...a], { env: { ...process.env, REVIEW_DEMO_USER: '', REVIEW_DEMO_PASSWORD: '' } }); + const r1 = run(); + expect(r1.exitCode).toBe(1); + expect(r1.stdout.toString()).toContain('+ dataSafety.data.PSL_DEVICE_ID'); + expect(readFileSync(join(dir, 'storebound.config.ts'), 'utf8')).toBe(before); + run('--write', '--dry'); + expect(readFileSync(join(dir, 'storebound.config.ts'), 'utf8')).toBe(before); + run('--write'); + const after = readFileSync(join(dir, 'storebound.config.ts'), 'utf8'); + expect(after).toContain("PSL_DEVICE_ID: { shared: true, collect: ['advertising', 'analytics', 'fraud'], share: ['advertising'] }"); + expect(after).toContain("PSL_EMAIL: { shared: false, collect: ['account', 'functionality'] }"); + expect(after).toContain("accountCreation: ['PSL_ACM_USER_ID_PASSWORD']"); + const again = await runScan(dir); + expect(again.report.configError).toBeNull(); + expect(again.report.declarations.changed).toBe(false); + expect(rules(again.report.findings)).not.toContain('privacy-labels'); + } finally { rmSync(dir, { recursive: true, force: true }); } + }); +}); + +describe('integration', () => { + test('JSON output, --store filter, exit code', () => { + const r = Bun.spawnSync(['bun', CLI, 'scan', '--dir', join(FX, 'teaser'), '--json', '--store', 'apple'], { env: { ...process.env, REVIEW_DEMO_USER: '', REVIEW_DEMO_PASSWORD: '' } }); + expect(r.exitCode).toBe(1); + const j = JSON.parse(r.stdout.toString()) as { counts: { blocker: number }; findings: ScanFinding[] }; + expect(j.counts.blocker).toBe(2); + expect(j.findings.every(f => f.store === 'apple')).toBe(true); + }); + test('scan.ignore marks findings as accepted and they stop blocking', async () => { + const r = (await runScan(join(ROOT, 'examples', 'demo-app'))).report; + expect(r.findings.find(f => f.rule === 'demo-account')!.accepted).toContain('fictional'); + expect(r.counts.blocker).toBe(0); + }); + test('validate gets the open blockers and risks, not low or accepted ones', async () => { + const r = (await scan('flutter')).findings; + const v = scanAsFindings(r, { apple: true, play: false }); + expect(v.every(f => f.store === 'apple' && f.code.startsWith('scan-'))).toBe(true); + expect(v.filter(f => f.level === 'blocker').length).toBe(r.filter(f => f.store === 'apple' && f.severity === 'blocker').length); + expect(v.some(f => f.code === 'scan-subscription-info' && f.msg.startsWith('3.1.2'))).toBe(true); + expect(scanAsFindings([{ ...r[0]!, accepted: 'fine' }], { apple: true, play: true })).toEqual([]); + }); + test('MCP tool and desktop method are read-only and cannot write', () => { + const t = TOOLS.find(x => x.name === 'scan')!; + expect(t.write).toBe(false); + expect(t.network).toBe(false); + expect(toArgv(t, { store: 'play' }).argv).toEqual(['scan', '--store', 'play']); + expect(FORBIDDEN_ARGS).toContain('--write'); + for (const x of TOOLS) expect(toArgv(x, {}).argv).not.toContain('--write'); + expect(JSON_TOOLS.has('scan')).toBe(true); + }); +}); diff --git a/tools/gen-adapters.ts b/tools/gen-adapters.ts index 953fd4b2..38ed65f0 100644 --- a/tools/gen-adapters.ts +++ b/tools/gen-adapters.ts @@ -73,7 +73,7 @@ export function generate(root: string): Map { '', '- CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`.', '- MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed.', - '- Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores).', + '- Readiness: `storebound scan` (offline rejection risks in the project files), `storebound check` (offline), `storebound validate` (read-only, both stores).', ].join('\n'); // 4. AGENTS.md (Codex, Cursor, Copilot, Windsurf, OpenCode, ...) diff --git a/tools/scrub.ts b/tools/scrub.ts index 61cd1cdc..e718b7b8 100644 --- a/tools/scrub.ts +++ b/tools/scrub.ts @@ -21,7 +21,8 @@ export const RULES: Rule[] = [ allow: (_m, line) => /"macTeamId":/.test(line) }, { id: 'issuer-uuid', re: /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/g, allow: m => /^0{8}-0{4}-0{4}-0{4}-0{12}$/.test(m) }, - { id: 'ip-address', re: /(? ['127.0.0.1', '0.0.0.0'].includes(m) }, + { id: 'ip-address', re: /(? ['127.0.0.1', '0.0.0.0'].includes(m) || /^(192\.0\.2|198\.51\.100|203\.0\.113)\.\d{1,3}$/.test(m) }, { id: 'private-name', re: new RegExp(['Yon', 'ga'].join(''), 'gi') }, { id: 'google-api-key', re: new RegExp('AI' + 'za[0-9A-Za-z_-]{35}', 'g') }, // absolute home folders leak a machine's account name (placeholders like /Users/you are fine) diff --git a/tsconfig.json b/tsconfig.json index 85a64b54..58021c2d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,5 +13,6 @@ "resolveJsonModule": true, "allowImportingTsExtensions": true }, - "include": ["cli", "tests", "tools", "templates/storebound.config.ts", "examples/demo-game/storebound.config.ts", "examples/demo-game/serve.ts", "examples/demo-app/storebound.config.ts", "examples/demo-app/serve.ts", "templates/profiles/*/storebound.config.ts", "media/teaser/render.ts"] + "include": ["cli", "tests", "tools", "templates/storebound.config.ts", "examples/demo-game/storebound.config.ts", "examples/demo-game/serve.ts", "examples/demo-app/storebound.config.ts", "examples/demo-app/serve.ts", "templates/profiles/*/storebound.config.ts", "media/teaser/render.ts"], + "exclude": ["tests/fixtures/scan"] } From 7d70e58d766730d5259de022d895b39798145ef2 Mon Sep 17 00:00:00 2001 From: CRT Date: Sun, 11 Oct 2026 15:35:45 +0000 Subject: [PATCH 2/8] CLI workspace for many apps and studios, credential profiles, release trains (release status / plan) - storebound.workspace.json: app folders (globs), studios with accounts by credential profile, ignore list, the desktop's pairing overrides; ws init | list | status | check | validate | run | apps import | desktop export/import - credential profiles in ~/.storebound/credentials/.json or env, --account on any command - release status / release plan , table or --json; MCP workspace_list, workspace_status, release_status, release_plan (read-only) - pairing rules (cli/lib/identity.ts), release lanes (cli/lib/train.ts) and the per-app status read (cli/lib/app-status.ts) shared with the desktop instead of copied - tests with sanitized fixtures, README, skills, CHANGELOG --- .cursor/rules/storebound.mdc | 3 +- .github/copilot-instructions.md | 3 +- AGENTS.md | 3 +- CHANGELOG.md | 17 + GEMINI.md | 3 +- README.md | 101 ++++- apps/desktop/src/lib/identity.ts | 200 +-------- apps/desktop/src/lib/model.ts | 69 +-- cli/index.ts | 17 +- cli/lib/app-status.ts | 61 +++ cli/lib/credentials.ts | 50 ++- cli/lib/identity.ts | 200 +++++++++ cli/lib/train.ts | 229 ++++++++++ cli/lib/workspace.ts | 404 ++++++++++++++++++ cli/mcp-tools.ts | 20 + cli/mcp.ts | 1 + cli/release.ts | 171 ++++++++ cli/serve.ts | 32 +- cli/workspace.ts | 450 ++++++++++++++++++++ docs/agents-core.md | 3 +- docs/desktop.md | 10 + skills/release-management/SKILL.md | 11 + skills/store-preflight/SKILL.md | 7 + tests/fixtures/workspace/desktop-state.json | 23 + tests/release-train.test.ts | 107 +++++ tests/workspace.test.ts | 317 ++++++++++++++ 26 files changed, 2220 insertions(+), 292 deletions(-) create mode 100644 cli/lib/app-status.ts create mode 100644 cli/lib/identity.ts create mode 100644 cli/lib/train.ts create mode 100644 cli/lib/workspace.ts create mode 100644 cli/release.ts create mode 100644 cli/workspace.ts create mode 100644 tests/fixtures/workspace/desktop-state.json create mode 100644 tests/release-train.test.ts create mode 100644 tests/workspace.test.ts diff --git a/.cursor/rules/storebound.mdc b/.cursor/rules/storebound.mdc index 2c41da63..694797ba 100644 --- a/.cursor/rules/storebound.mdc +++ b/.cursor/rules/storebound.mdc @@ -16,7 +16,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t for real only after the owner agrees. 3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. -4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, +4. **Credentials only from the environment, `.storebound/`** in the project (gitignored) **or a credential profile** + (`~/.storebound/credentials/.json`, named by `--account ` or a workspace). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. 5. **Never answer a compliance question you cannot know.** Export compliance, Data safety, App Privacy, age rating, diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ecfa9e79..c41fa702 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -16,7 +16,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t for real only after the owner agrees. 3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. -4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, +4. **Credentials only from the environment, `.storebound/`** in the project (gitignored) **or a credential profile** + (`~/.storebound/credentials/.json`, named by `--account ` or a workspace). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. 5. **Never answer a compliance question you cannot know.** Export compliance, Data safety, App Privacy, age rating, diff --git a/AGENTS.md b/AGENTS.md index 19cf225e..55f28878 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,7 +17,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t for real only after the owner agrees. 3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. -4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, +4. **Credentials only from the environment, `.storebound/`** in the project (gitignored) **or a credential profile** + (`~/.storebound/credentials/.json`, named by `--account ` or a workspace). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. 5. **Never answer a compliance question you cannot know.** Export compliance, Data safety, App Privacy, age rating, diff --git a/CHANGELOG.md b/CHANGELOG.md index ba686186..b018573c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ ## Unreleased +- CLI workspace for many apps and studios (until now only in the desktop app): `storebound.workspace.json` (or `.ts`) + in a folder above the app folders names the app folders (globs), studios with their store accounts by credential + profile (never a key), an ignore list and the desktop's pairing overrides. Commands: `ws init`, `ws list`, + `ws status` (apps x stores, read in parallel with a concurrency limit), `ws check`, `ws validate`, + `ws run --apps a,b|--all` (read commands; writes as dry runs unless `--apply`; submit, release, rollout, + send, start / stop never), `ws apps import --account ` (store apps paired with the folders by the desktop's + rules) and `ws desktop export | import` (the same model as the desktop's `state.json`; keys stay in the keychain or + the profiles). MCP: `workspace_list`, `workspace_status` (read-only). +- Credential profiles: `~/.storebound/credentials/.json` (or env `STOREBOUND_PROFILE__`), picked + with `--account ` on any command or by the workspace, so many store accounts work from one terminal. +- Release trains in the CLI: `release status` (both stores on one train per version: build > testing > review > live + > rollout %) and `release plan ` (what is left on each store in fix order, from check, validate and the + store state; owner steps named, never done), as tables or `--json`. MCP: `release_status`, `release_plan`. +- Shared code instead of copies: the pairing rules (`cli/lib/identity.ts`) and the release lanes (`cli/lib/train.ts`) + moved out of the desktop's webview into `cli/lib/`, and the per-app status read behind `portfolio.status` + (`cli/lib/app-status.ts`) is the one `ws status` and `release` use. The desktop re-exports them unchanged. + - New logo: a glossy indigo box with an upward arrow (`brand/master/logo-mark.png`, `brand/README.md`). Every logo file comes from it through `tools/brand-assets.py`: desktop app icons (PNG sizes, `.icns`, a `.ico` with its own image per size, Windows tiles), the site's favicon.ico, maskable web app icons with a manifest, apple-touch-icon, diff --git a/GEMINI.md b/GEMINI.md index dd0810f0..2abb9b80 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -15,7 +15,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t for real only after the owner agrees. 3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. -4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, +4. **Credentials only from the environment, `.storebound/`** in the project (gitignored) **or a credential profile** + (`~/.storebound/credentials/.json`, named by `--account ` or a workspace). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. 5. **Never answer a compliance question you cannot know.** Export compliance, Data safety, App Privacy, age rating, diff --git a/README.md b/README.md index 4940806f..d5c0fb23 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,9 @@ Read from environment variables, or from `.storebound/credentials.json` in your | `reviewContact` | (file only) App Review contact name / phone / email | | `reviewDemoAccount` / `REVIEW_DEMO_USER`, `REVIEW_DEMO_PASSWORD` | demo account for App Review (`reviewAccess.signInRequired`); never in the config or the repo, masked in logs | +Several store accounts on one machine: credential profiles (`~/.storebound/credentials/.json`, the same names) +picked with `--account ` or by a workspace ([Many apps and studios](#many-apps-and-studios)). + ## Install for your AI tool Every route gives the agent the same skills and the same MCP tools. Nothing here requires Claude: the skills are @@ -304,6 +307,97 @@ run in the background with a log (`storebound shots render > .storebound/render. +
+Many apps and release trains + +| command | kind | what | +|---|---|---| +| `ws init` | local | find the app folders below and write `storebound.workspace.json` (globs like `games/*`) | +| `ws list [--all]` | local | apps (folders + store-only apps), studios, accounts and whether each credential profile has its keys | +| `ws status [--offline] [--apps a,b]` | API, read-only | portfolio table: every app x both stores (live / rollout % / next version), catalog parity, check; parallel | +| `ws check`, `ws validate [--apps a,b]` | local / API, read-only | the offline check / the readiness report of every app in one table | +| `ws run --apps a,b \| --all [--apply]` | per command | any read command in every app; writes as dry runs unless `--apply`; never submit / release / rollout / send | +| `ws apps import --account ` | API, read-only + local cache | the apps a store account sees, paired with the folders (the desktop's rules) | +| `ws desktop export [--out f \| --merge [--apply]]`, `ws desktop import` | local | the workspace to and from the desktop app's state (labels, never keys) | +| `release status [--app a,b] [--versions]` | API, read-only | both stores on one train per version: build > testing > review > live > rollout % | +| `release plan [--app a]` | API, read-only | what is left for that version on each store, in fix order, with the owner's next step | + +
+ +## Many apps and studios + +A studio with twenty games, or a developer with apps under two store accounts, works from one folder above the app +folders. `storebound ws init` writes `storebound.workspace.json`: + +```json +{ + "apps": ["games/*", { "path": "apps/notes", "apple": "solo-apple" }], + "studios": [ + { "name": "Acme Games", "color": "indigo", "apps": ["games/*"], + "accounts": [{ "store": "apple", "profile": "acme-apple" }, { "store": "play", "profile": "acme-play" }] } + ], + "accounts": [{ "store": "apple", "profile": "solo-apple", "label": "Solo" }], + "ignore": ["games/old-*"], + "overrides": { "pairs": [], "unpairs": [], "links": [], "appStudio": [] }, + "concurrency": 4 +} +``` + +- **apps**: folders or globs (only folders with a `storebound.config.*` count; `node_modules` and dot folders are + skipped). An object entry names the folder's own credential profiles. +- **studios**: name, colour (the desktop's set), the store accounts and the app folders (globs) that belong to it. +- **accounts**: store accounts without a studio. An account is a store and a **credential profile** name, never a key. +- **ignore**: folder globs, `app:` and `account:`, as in the desktop's ignore list. +- **overrides**: the desktop's pairing corrections (`pairs`, `unpairs`, `links` of a store app to a folder, + `appStudio`), with folders named by their path. A `storebound.workspace.ts` with `export default { ... }` works too. + +Which keys an app uses: its own entry's profiles, else the single account of that store in its studio, else the +single account of that store in the workspace, else the folder's own credentials (env or `.storebound/`). + +**Credential profiles** keep many accounts apart on one machine: `~/.storebound/credentials/.json` with the +same four names as `.storebound/credentials.json` (`PLAY_SERVICE_ACCOUNT`, `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_P8`; +relative key paths are relative to that folder, which `STOREBOUND_CREDENTIALS_DIR` can move), or env +`STOREBOUND_PROFILE__` (for CI). Any command takes `--account `. `ws list` shows per account whether +its profile has keys; no command prints a key. + +`ws status`, `ws check`, `ws validate` and `ws run` read the apps a few at a time (`concurrency`, 1-8, or +`--concurrency`), each app with its own keys handed to its child process only. `ws run` takes any read command and +the MCP tool set; write commands get `--dry` unless `--apply`, and submit, release, rollout, send, start / stop, +testers and `--yes` are refused: those stay with the owner in the app folder. + +`ws apps import --account ` lists the apps a store account sees (as `apps list`) into +`.storebound/workspace/` and pairs them with the folders by the desktop's rules (`cli/lib/identity.ts`, the same code): +a folder takes the store apps its config names, the remaining iOS and Android apps pair by id, close id or name, +`unpairs` keep two apart, and the rest are store-only apps that `ws status` reads too. + +**The desktop app** keeps the same model (studios, accounts, folders, overrides). `ws desktop import` turns its +`state.json` (or `--state `) into a workspace file and lists the credential profiles to create: the desktop's +keychain is never read. `ws desktop export` prints the workspace as a desktop state (`--out `), and +`--merge --apply` adds it to the desktop's `state.json` while the app is closed (a backup is kept; nothing is +removed; new accounts get their keys in the desktop's Accounts screen). + +MCP: `workspace_list` (offline) and `workspace_status` (read-only). + +## Release trains + +One version, both stores, one track: **build > testing > review > live > rollout**. The CLI and the desktop's Releases +tab share the code (`cli/lib/train.ts`, `cli/lib/portfolio.ts`), so both show the same stage for the same store state. + +``` +$ storebound release status +app version train App Store Google Play +------ ------- ------- ---------------------- ----------------------------- +Puzzle 2.3.0 current rollout 20% (build 45) rollout 10% (build 230) +Puzzle 2.4.0 next build testing (build 240, internal) +``` + +`release plan ` lists what is left for that version on each store in fix order: config problems (`check`), +the version on the store (how to create it when it is missing), store blockers (`validate`, while nothing is +submitted), the next move and the warnings. Owner steps (submit for review, promote to production, release an approved +version, raise or complete a rollout) are named with where the owner does them; storebound does not do them. A store +it cannot read is "unknown", never "not there". Both commands work in an app folder (that app) and in a workspace +(every app, or `--app a,b`); `--json` gives the structured result. MCP: `release_status`, `release_plan` (read-only). + ## Store art Screenshots and previews are one step of the journey, but the one that takes the longest by hand, so storebound @@ -377,8 +471,8 @@ navigation. | `app-icons` | one artwork to every icon, adaptive / legacy launcher pitfalls | | `store-screenshots` | capture from any engine, copy, fonts, render, checks, gallery, variants, App Store product page tests, Play experiments, upload | | `app-previews` | app or gameplay clips, App Store previews, Play promo video, checks, upload | -| `store-preflight` | run and read `check`, `check --aso`, `validate`, `privacy-manifest` before submitting | -| `release-management` | updates: Apple phased + manual release, Play staged rollout, halt / pause (not a rollback), review wait | +| `store-preflight` | run and read `check`, `check --aso`, `validate`, `privacy-manifest` and `release plan` before submitting; `ws check` / `ws validate` for many apps | +| `release-management` | updates: release trains (`release status`, `release plan`), Apple phased + manual release, Play staged rollout, halt / pause (not a rollback), review wait | | `store-health` | crash / ANR vitals vs Play's bad behavior thresholds, App Store diagnostics, weekly report | | `review-replies` | reply drafts, tone, no incentives, store limits, the owner approves and sends | | `store-analytics` | App Store analytics reports, Play reports bucket, before / after listing changes | @@ -396,7 +490,8 @@ per-request `_meta`, `resultType`, cacheable `tools/list`) and, on the same proc - One tool per command. Read-only: `check`, `check_aso`, `validate`, `catalog_diff`, `health`, `reviews_list`, `prices_diff`, `analytics_compare`, `apple_status`, `apple_next_build`, `apple_testflight_status`, `apple_ppo_status`, - `play_status`, `play_next_version_code`, `privacy_manifest`, `shots_check`. Local writes: `import_fastlane`, `whats_new`, `icons`, + `play_status`, `play_next_version_code`, `privacy_manifest`, `shots_check`, `workspace_list`, `workspace_status`, + `release_status`, `release_plan`. Local writes: `import_fastlane`, `whats_new`, `icons`, `health_report`, `reviews_draft`, `prices_export`, `analytics_snapshot`, `shots_capture`, `shots_render`, `shots_gallery`, `shots_record`, `shots_video`. Store writes: `play_listing`, `play_images`, `play_products`, `play_data_safety`, `play_subscriptions`, `play_release_testing`, `apple_bundle`, `apple_iap`, `apple_iap_review`, diff --git a/apps/desktop/src/lib/identity.ts b/apps/desktop/src/lib/identity.ts index 248f3a12..7dff5433 100644 --- a/apps/desktop/src/lib/identity.ts +++ b/apps/desktop/src/lib/identity.ts @@ -1,196 +1,14 @@ -// One app card per product, across studios and store accounts. Pure, so tests/identity.test.ts pins every rule. -// -// Inputs: app folders (with the store ids of their config), the apps each store account can see (`apps list`), and -// the owner's overrides (manual pairs / unpairs, links of a store app to a folder, studio moves, the ignore list). -// Order of matching: -// 1. a folder takes the store apps its config names (explicit link > App Store app id > bundle id / package name), -// preferring the accounts mapped to the folder; -// 2. the remaining store apps pair iOS + Android: manual pairs, then the same bundle id and package name, then a -// close id (".ios" / ".android" suffixes, case, punctuation) or the same name; unpairs block an automatic pair; -// 3. what is left is a single-platform store-only app. -// A store-only app is read through a "store target" (store:ios:::;android::). -import type { Account, AppStatus, Project, StoreApp } from '../api'; +// One app card per product, across studios and store accounts. The pairing rules live in cli/lib/identity.ts (shared +// with the CLI workspace, `storebound ws`); this file adds the desktop's types and the portfolio list helpers. +import type { Project } from '../api'; +import type { UnifiedApp as CoreApp } from '../../../../cli/lib/identity'; -export interface Pair { ios: string; android: string } -export interface Overrides { - pairs: Pair[]; - unpairs: Pair[]; - links: { key: string; project: string }[]; - appStudio: { key: string; studio: string }[]; - ignored: string[]; -} -export const NO_OVERRIDES: Overrides = { pairs: [], unpairs: [], links: [], appStudio: [], ignored: [] }; +export { + buildApps, type BuildInput, NO_OVERRIDES, normId, normName, type Overrides, type Pair, pairCandidates, type Pairing, refKey, type StoreRef, storeTarget, + withIgnored, withLink, withPair, withStudio, withUnpair, +} from '../../../../cli/lib/identity'; -/** One app record of one store account. */ -export interface StoreRef { key: string; account: string; store: 'ios' | 'android'; app: StoreApp } - -export type Pairing = 'folder' | 'manual' | 'id' | 'close' | 'name' | 'single'; - -export interface UnifiedApp { - /** Route and list key: the project id, else the store target. */ - key: string; - /** What reads use: the project id, else the store target ("store:..."). */ - target: string; - name: string; - project: Project | null; - ios: StoreRef | null; - android: StoreRef | null; - studio: string | null; - pairing: Pairing; - /** The keys an "ignore" puts on the list ("project:" or "app:"). */ - ignoreKeys: string[]; - ignored: boolean; - /** Store icon (data URL) when the folder has none. */ - storeIcon: string | null; -} - -export const refKey = (account: string, a: StoreApp): string => `${a.store}:${account}:${a.id}`; - -/** Store target of a store-only app. */ -export function storeTarget(ios: StoreRef | null, android: StoreRef | null): string { - const parts: string[] = []; - if (ios) parts.push(`ios:${ios.account}:${ios.app.id}:${ios.app.bundleId}`); - if (android) parts.push(`android:${android.account}:${android.app.id}`); - return `store:${parts.join(';')}`; -} - -/** "com.example.Puzzle.ios" -> "comexamplepuzzle": ids that differ only by a platform suffix, case or punctuation. */ -export function normId(id: string): string { - return id.toLowerCase().replace(/[._-](ios|iphone|android|droid|app)$/g, '').replace(/[^a-z0-9]/g, ''); -} -export const normName = (n: string): string => n.toLowerCase().normalize('NFKD').replace(/[^a-z0-9]/g, ''); - -const samePair = (p: Pair, ios: string, android: string) => p.ios === ios && p.android === android; - -export interface BuildInput { - projects: Project[]; - /** Store ids of each folder's config (from the offline portfolio read). */ - summaryOf: (p: Project) => AppStatus['summary'] | undefined; - accounts: Account[]; - /** The last app list of each account. */ - storeApps: { account: string; apps: StoreApp[] }[]; - overrides: Overrides; -} - -export function buildApps(i: BuildInput): UnifiedApp[] { - const o = i.overrides; - const ignoredAccounts = new Set(o.ignored.filter(x => x.startsWith('account:')).map(x => x.slice(8))); - const accountStudio = new Map(i.accounts.map(a => [a.id, a.studio ?? null] as const)); - const known = new Set(i.accounts.map(a => a.id)); - // every store app of every (not ignored) account - const refs: StoreRef[] = []; - for (const s of i.storeApps) { - if (!known.has(s.account) || ignoredAccounts.has(s.account)) continue; - for (const app of s.apps) refs.push({ key: refKey(s.account, app), account: s.account, store: app.store, app }); - } - const used = new Set(); - const take = (r: StoreRef | null | undefined): StoreRef | null => { if (!r || used.has(r.key)) return null; used.add(r.key); return r; }; - const studioOverride = new Map(o.appStudio.map(x => [x.key, x.studio] as const)); - const ignored = new Set(o.ignored); - const out: UnifiedApp[] = []; - - // 1. folders - for (const p of i.projects) { - const s = i.summaryOf(p); - const mine = (r: StoreRef) => r.account === (r.store === 'ios' ? p.appleAccount : p.playAccount); - const rank = (rs: StoreRef[]) => [...rs].sort((a, b) => Number(mine(b)) - Number(mine(a))); - const linked = o.links.filter(l => l.project === p.id).map(l => refs.find(r => r.key === l.key)).filter((r): r is StoreRef => !!r && !used.has(r.key)); - let ios = take(linked.find(r => r.store === 'ios')); - let android = take(linked.find(r => r.store === 'android')); - if (!ios && s?.apple) { - const free = refs.filter(r => r.store === 'ios' && !used.has(r.key) && !o.links.some(l => l.key === r.key)); - ios = take(rank(free.filter(r => s.apple!.appId && r.app.id === s.apple!.appId))[0] ?? rank(free.filter(r => r.app.bundleId === s.apple!.bundleId))[0]); - } - if (!android && s?.play) { - const free = refs.filter(r => r.store === 'android' && !used.has(r.key) && !o.links.some(l => l.key === r.key)); - android = take(rank(free.filter(r => r.app.id === s.play!.packageName))[0]); - } - const studio = studioOverride.get(`project:${p.id}`) - ?? (p.appleAccount && accountStudio.get(p.appleAccount)) ?? (p.playAccount && accountStudio.get(p.playAccount)) - ?? (ios && accountStudio.get(ios.account)) ?? (android && accountStudio.get(android.account)) ?? null; - out.push({ - key: p.id, target: p.id, name: p.name, project: p, ios, android, studio, pairing: 'folder', - ignoreKeys: [`project:${p.id}`], ignored: ignored.has(`project:${p.id}`), storeIcon: ios?.app.icon ?? android?.app.icon ?? null, - }); - } - - // 2. pairs among the remaining store apps - const freeIos = () => refs.filter(r => r.store === 'ios' && !used.has(r.key)); - const freeAndroid = () => refs.filter(r => r.store === 'android' && !used.has(r.key)); - const blocked = (a: StoreRef, b: StoreRef) => o.unpairs.some(p => samePair(p, a.key, b.key)); - const sameStudio = (a: StoreRef, b: StoreRef) => (accountStudio.get(a.account) ?? null) === (accountStudio.get(b.account) ?? null); - const pairs: [StoreRef, StoreRef, Pairing][] = []; - for (const m of o.pairs) { - const a = freeIos().find(r => r.key === m.ios), b = freeAndroid().find(r => r.key === m.android); - if (a && b) { take(a); take(b); pairs.push([a, b, 'manual']); } - } - const auto = (how: Pairing, match: (a: StoreRef, b: StoreRef) => boolean) => { - for (const a of freeIos()) { - const cands = freeAndroid().filter(b => !blocked(a, b) && match(a, b)).sort((x, y) => Number(sameStudio(a, y)) - Number(sameStudio(a, x))); - const b = cands[0]; - if (b) { take(a); take(b); pairs.push([a, b, how]); } - } - }; - auto('id', (a, b) => a.app.bundleId === b.app.id); - auto('close', (a, b) => normId(a.app.bundleId) !== '' && normId(a.app.bundleId) === normId(b.app.id)); - auto('name', (a, b) => normName(a.app.name) !== '' && normName(a.app.name) === normName(b.app.name)); - - const storeOnly = (ios: StoreRef | null, android: StoreRef | null, pairing: Pairing) => { - const target = storeTarget(ios, android); - const keys = [ios, android].filter((r): r is StoreRef => !!r).map(r => r.key); - const studio = keys.map(k => studioOverride.get(k)).find(Boolean) - ?? (ios && accountStudio.get(ios.account)) ?? (android && accountStudio.get(android.account)) ?? null; - out.push({ - key: target, target, name: ios?.app.name ?? android?.app.name ?? '?', project: null, ios, android, studio, pairing, - ignoreKeys: keys.map(k => `app:${k}`), ignored: keys.some(k => ignored.has(`app:${k}`)), storeIcon: ios?.app.icon ?? android?.app.icon ?? null, - }); - }; - for (const [a, b, how] of pairs) storeOnly(a, b, how); - // 3. singles - for (const r of refs) if (!used.has(r.key)) { used.add(r.key); storeOnly(r.store === 'ios' ? r : null, r.store === 'android' ? r : null, 'single'); } - return out; -} - -/** Candidates to pair a single-platform app with (the other store's single apps), closest first. */ -export function pairCandidates(app: UnifiedApp, all: UnifiedApp[]): UnifiedApp[] { - if (app.project || (app.ios && app.android)) return []; - const want = app.ios ? 'android' : 'ios'; - const me = (app.ios ?? app.android)!; - const score = (x: UnifiedApp) => { - const r = (want === 'ios' ? x.ios : x.android)!; - return (normId(r.app.bundleId) === normId(me.app.bundleId) ? 4 : 0) + (normName(r.app.name) === normName(me.app.name) ? 2 : 0) + (x.studio === app.studio ? 1 : 0); - }; - return all.filter(x => !x.project && !x.ignored && (want === 'ios' ? x.ios && !x.android : x.android && !x.ios)).sort((a, b) => score(b) - score(a) || a.name.localeCompare(b.name)); -} - -/** Overrides after pairing two single store apps by hand (drops an unpair of the same two). */ -export function withPair(o: Overrides, ios: string, android: string): Overrides { - return { ...o, pairs: [...o.pairs.filter(p => p.ios !== ios && p.android !== android), { ios, android }], unpairs: o.unpairs.filter(p => !samePair(p, ios, android)) }; -} - -/** Overrides after splitting a paired app (keeps it apart from now on). */ -export function withUnpair(o: Overrides, ios: string, android: string): Overrides { - return { ...o, pairs: o.pairs.filter(p => !samePair(p, ios, android)), unpairs: [...o.unpairs.filter(p => !samePair(p, ios, android)), { ios, android }] }; -} - -export function withIgnored(o: Overrides, keys: string[], on: boolean): Overrides { - const set = new Set(o.ignored); - for (const k of keys) { if (on) set.add(k); else set.delete(k); } - return { ...o, ignored: [...set] }; -} - -/** Moves an app to a studio (null: back to its accounts' studio). */ -export function withStudio(o: Overrides, app: UnifiedApp, studio: string | null): Overrides { - const keys = app.project ? [`project:${app.project.id}`] : [app.ios?.key, app.android?.key].filter((k): k is string => !!k); - const rest = o.appStudio.filter(x => !keys.includes(x.key)); - return { ...o, appStudio: studio ? [...rest, ...keys.map(key => ({ key, studio }))] : rest }; -} - -/** Links the store apps of a store-only app to a folder. */ -export function withLink(o: Overrides, app: UnifiedApp, project: string): Overrides { - const keys = [app.ios?.key, app.android?.key].filter((k): k is string => !!k); - return { ...o, links: [...o.links.filter(l => !keys.includes(l.key)), ...keys.map(key => ({ key, project }))] }; -} +export type UnifiedApp = CoreApp; // ---- Portfolio list: filter, search, sort, group ---- diff --git a/apps/desktop/src/lib/model.ts b/apps/desktop/src/lib/model.ts index 52e8b402..c5033045 100644 --- a/apps/desktop/src/lib/model.ts +++ b/apps/desktop/src/lib/model.ts @@ -1,10 +1,12 @@ // Pure view models for the screens: release timeline stages, health series against the store thresholds, review // inbox stats, catalog parity matrix, the portfolio's "needs attention" list, and the command palette matcher. // "Unknown, never false": every derivation keeps "not read" apart from "none" / "ok". -import type { AppStatus, ProjectSummary, ReleaseTrain, StoreRelease } from '../api'; +import type { AppStatus, ProjectSummary } from '../api'; import { t } from '../i18n'; -export type Tone = 'ok' | 'warn' | 'bad' | 'info' | 'neutral' | 'accent'; +import type { Tone } from '../../../../cli/lib/train'; + +export type { Tone }; // ---- CLI JSON shapes the screens read (the commands' --json output) ---- @@ -35,68 +37,9 @@ export interface ValidateResult { blockers: number; findings: Finding[] } export const isError = (x: unknown): x is { error: string } => !!x && typeof x === 'object' && typeof (x as { error?: unknown }).error === 'string'; // ---- Release timeline ---- +// The stages and lanes live in cli/lib/train.ts, shared with `storebound release status | plan`. -/** Stages of one version on one store, left to right. */ -export const STAGES = ['build', 'testing', 'review', 'live', 'rollout'] as const; -export type Stage = (typeof STAGES)[number]; - -export interface Lane { - store: 'ios' | 'android'; - release: StoreRelease | null; - /** Index of the stage it is at (-1: not on this store). */ - at: number; - tone: Tone; - /** Rollout share 0-1 when live or rolling out (1 = everyone). */ - share: number | null; - /** The store's state word, for a tooltip. */ - state: string; -} - -/** Where a store release is on the track. Rollout counts as the last stage; a full release fills it. */ -export function laneOf(store: 'ios' | 'android', r: StoreRelease | null, testflightReached = false): Lane { - if (!r) return { store, release: null, at: -1, tone: 'neutral', share: null, state: '' }; - const base = { store, release: r, state: r.state }; - switch (r.phase) { - case 'draft': return { ...base, at: testflightReached ? 1 : 0, tone: testflightReached ? 'info' : 'neutral', share: null }; - case 'testing': return { ...base, at: 1, tone: 'info', share: null }; - case 'review': return { ...base, at: 2, tone: 'warn', share: null }; - case 'approved': return { ...base, at: 2, tone: 'ok', share: null }; - case 'rejected': return { ...base, at: 2, tone: 'bad', share: null }; - case 'live': return { ...base, at: 4, tone: 'ok', share: 1 }; - case 'rollout': return { ...base, at: 4, tone: 'accent', share: r.fraction ?? null }; - case 'halted': return { ...base, at: 4, tone: 'bad', share: r.fraction ?? null }; - default: return { ...base, at: 0, tone: 'neutral', share: null }; - } -} - -/** Both lanes of a train; iOS counts TestFlight as reached when a build of that version is in beta testing. */ -export function trainLanes(t: ReleaseTrain, tf?: TestFlightStatus | null): Lane[] { - const inBeta = !!tf?.builds.some(b => b.version === t.version && /IN_BETA_TESTING|BETA_APPROVED|READY_FOR_BETA_TESTING/.test(`${b.internal ?? ''} ${b.external ?? ''}`)); - return [laneOf('ios', t.ios, inBeta), laneOf('android', t.android)]; -} - -/** Every distinct version of the store releases, newest first, with both stores' release (best phase per store). */ -export function versionHistory(all: StoreRelease[]): ReleaseTrain[] { - const rank: Record = { live: 0, rollout: 1, halted: 2, approved: 3, review: 4, rejected: 5, testing: 6, draft: 7, other: 8 }; - const versions = [...new Set(all.map(r => r.version).filter((v): v is string => !!v))].sort(cmpVersion).reverse(); - const best = (store: 'ios' | 'android', v: string) => all.filter(r => r.store === store && r.version === v).sort((a, b) => (rank[a.phase] ?? 9) - (rank[b.phase] ?? 9))[0] ?? null; - return versions.map(v => ({ version: v, ios: best('ios', v), android: best('android', v) })); -} - -/** On one store: the highest version reaching users (live or rolling out) and the highest version above it. */ -export function storeNow(all: StoreRelease[], store: 'ios' | 'android'): { now: StoreRelease | null; next: StoreRelease | null } { - const rs = all.filter((r): r is StoreRelease & { version: string } => r.store === store && !!r.version); - const desc = (a: { version: string }, b: { version: string }) => cmpVersion(b.version, a.version); - const now = rs.filter(r => r.phase === 'live' || r.phase === 'rollout' || r.phase === 'halted').sort(desc)[0] ?? null; - const next = rs.filter(r => !now || cmpVersion(r.version, now.version) > 0).sort(desc)[0] ?? null; - return { now, next }; -} - -export function cmpVersion(a: string, b: string): number { - const pa = a.split('.').map(x => parseInt(x, 10) || 0), pb = b.split('.').map(x => parseInt(x, 10) || 0); - for (let i = 0; i < Math.max(pa.length, pb.length); i++) { const d = (pa[i] ?? 0) - (pb[i] ?? 0); if (d) return d; } - return 0; -} +export { cmpVersion, type Lane, laneOf, type Stage, STAGES, storeNow, trainLanes, versionHistory } from '../../../../cli/lib/train'; // ---- Health ---- diff --git a/cli/index.ts b/cli/index.ts index 5644e5f7..982f4fb6 100755 --- a/cli/index.ts +++ b/cli/index.ts @@ -19,6 +19,8 @@ const PLAIN: Record Promise, string]> = { 'desktop': [() => import('./desktop'), 'open the storebound desktop app (in an app folder: add or select it there); not installed: the download for this system, --download saves it to ~/Downloads after checking its signature (never installs)'], 'doctor': [() => import('./doctor'), 'local tools for screenshots, previews, icons and captures (ffmpeg, Chrome, playwright, Xcode, adb, git) and how to install what is missing; --json'], 'privacy-manifest': [() => import('./privacy-manifest'), 'iOS PrivacyInfo.xcprivacy + required-reason API + SDK manifest scan (--ios )'], + 'ws': [() => import('./workspace'), 'many apps and studios (storebound.workspace.json): init | list | status (apps x stores, parallel) | check | validate | run --apps a,b|--all (writes dry unless --apply) | apps import --account | desktop export|import'], + 'release': [() => import('./release'), 'status [--app a,b] [--versions]: both stores on one train per version (build > testing > review > live > rollout %) | plan : what is left on each store, in fix order; read-only, --json'], }; const COMMANDS: Record Promise, string]> = { 'inspect': [() => import('./inspect'), 'offline summary of the config (name, store ids, languages, products, subscriptions); --json'], @@ -73,8 +75,9 @@ usage: storebound [options] ${Object.entries(PLAIN).map(([k, [, d]]) => ` ${k.padEnd(25)} ${d}`).join('\n')} ${Object.entries(COMMANDS).map(([k, [, d]]) => ` ${k.padEnd(25)} ${d}`).join('\n')} -common options: --config --dry (no writes) --only --yes (skip confirmations) -credentials: PLAY_SERVICE_ACCOUNT, ASC_KEY_ID, ASC_ISSUER_ID, ASC_P8, REVIEW_DEMO_USER / REVIEW_DEMO_PASSWORD (env or .storebound/credentials.json) +common options: --config --dry (no writes) --only --yes (skip confirmations) --account (credential profile) +credentials: PLAY_SERVICE_ACCOUNT, ASC_KEY_ID, ASC_ISSUER_ID, ASC_P8, REVIEW_DEMO_USER / REVIEW_DEMO_PASSWORD (env or .storebound/credentials.json); + profiles for many accounts: ~/.storebound/credentials/.json (same names), picked with --account docs: README.md and the skills/ folder of the toolchain`); } @@ -82,6 +85,16 @@ async function main(): Promise { // tools (adb, emulator, ffmpeg…) are also looked up where they usually live, for apps started without a shell PATH process.env.PATH = toolPath(process.env); const argv = process.argv.slice(2); + // --account : the credential profile for this run (ws apps import reads its own --account) + if (argv[0] !== 'ws') { + const i = argv.findIndex(x => x === '--account' || x.startsWith('--account=')); + if (i >= 0) { + const name = argv[i]!.includes('=') ? argv[i]!.slice(10) : argv[i + 1]; + if (!name || name.startsWith('--')) throw new Error('--account '); + process.env.STOREBOUND_PROFILE = name; + argv.splice(i, argv[i]!.includes('=') ? 1 : 2); + } + } const [a, b] = argv; if (!a || a === 'help' || a === '--help' || a === '-h') return help(); if (a === 'version' || a === '--version') return console.log((await import('../package.json')).version); diff --git a/cli/lib/app-status.ts b/cli/lib/app-status.ts new file mode 100644 index 00000000..32cb5e23 --- /dev/null +++ b/cli/lib/app-status.ts @@ -0,0 +1,61 @@ +// One app's portfolio status: identity, offline config check, catalog parity and (live) the release trains from +// `apple status --json` / `play status --json`. Shared by the desktop's `portfolio.status` (cli/serve.ts) and the CLI +// workspace (`storebound ws status`, `storebound release status`), so all of them read an app the same way. +// Every read is a storebound child command; `exec` runs it (serve tracks it for cancellation, the CLI just awaits it). +import type { AppStatus, ProjectSummary } from './desktop-protocol'; +import { appIdentity, appleProductIds, appleReleases, catalogParity, playProductIds, playReleases, releaseTrains } from './portfolio'; +import type { RunResult } from './runner'; + +export type Exec = (argv: string[], cwd: string) => Promise; + +export const lastLine = (s: string): string => s.trim().split('\n').filter(Boolean).at(-1)?.replace(/^error:\s*/, '') ?? ''; + +export const emptyStatus = (project: string): AppStatus => + ({ project, ok: false, app: null, summary: null, check: null, release: { source: 'none', current: null, next: null }, catalog: null, storeErrors: {}, errors: [] }); + +/** `inspect --json` of a folder; throws "project: " when the config does not load. */ +export async function inspectApp(dir: string, exec: Exec): Promise { + const r = await exec(['inspect', '--json'], dir); + if (r.cancelled) throw new Error('Request cancelled'); + if (r.code !== 0 || !r.data) throw new Error(`project: ${lastLine(r.out) || 'config could not be loaded'}`); + return r.data as ProjectSummary; +} + +/** + * Fills `e` for the app in `dir`: summary, identity, check (skipped for a store-only app), and with `live` the release + * trains and the live catalog parity. Errors are thrown; the caller records them in `e.errors`. + */ +export async function fillAppStatus(e: AppStatus, dir: string, o: { live: boolean; virtual?: boolean; exec: Exec }): Promise { + const summary = e.summary = await inspectApp(dir, o.exec); + e.app = appIdentity(summary); + e.catalog = catalogParity(summary); + if (o.virtual) e.check = { ok: true, problems: [], warnings: [] }; + else { + const c = await o.exec(['check', '--json'], dir); + const cd = c.data as { ok?: boolean; problems?: string[]; warnings?: string[] } | undefined; + e.check = cd ? { ok: !!cd.ok, problems: cd.problems ?? [], warnings: cd.warnings ?? [] } : { ok: false, problems: [lastLine(c.out) || `check exit ${c.code}`], warnings: [] }; + } + if (o.live) { + const store = async (argv: string[]): Promise<{ data?: unknown; error?: string }> => { + const r = await o.exec(argv, dir); + return r.code === 0 && r.data !== undefined ? { data: r.data } : { error: lastLine(r.out) || `exit ${r.code}` }; + }; + const [apple, play] = await Promise.all([summary.apple ? store(['apple', 'status', '--json']) : undefined, summary.play ? store(['play', 'status', '--json']) : undefined]); + if (apple?.error) e.storeErrors.ios = apple.error; + if (play?.error) e.storeErrors.android = play.error; + const ios = apple?.data ? appleReleases(apple.data) : [], android = play?.data ? playReleases(play.data) : []; + e.release = { source: 'live', ...releaseTrains(ios, android), all: [...ios, ...android] }; + e.catalog = catalogParity(summary, apple?.data ? appleProductIds(apple.data) : undefined, play?.data ? playProductIds(play.data) : undefined); + } + e.ok = e.check.ok && !e.storeErrors.ios && !e.storeErrors.android && (e.catalog?.ok ?? true); + return e; +} + +/** Runs `fn` over `items`, at most `limit` at a time; results in input order. */ +export async function pool(items: T[], limit: number, fn: (x: T, i: number) => Promise): Promise { + const out = new Array(items.length); + let next = 0; + const n = Math.max(1, Math.min(limit, items.length)); + await Promise.all(Array.from({ length: n }, async () => { while (next < items.length) { const i = next++; out[i] = await fn(items[i]!, i); } })); + return out; +} diff --git a/cli/lib/credentials.ts b/cli/lib/credentials.ts index 7f5309f0..41245be2 100644 --- a/cli/lib/credentials.ts +++ b/cli/lib/credentials.ts @@ -7,9 +7,13 @@ // "reviewDemoAccount": { "username": "", "password": "" } } // The demo account for App Review can also come from env: REVIEW_DEMO_USER, REVIEW_DEMO_PASSWORD. // 3. ASC_P8 only: ~/.appstoreconnect/private_keys/AuthKey_.p8 (where Xcode / altool keep it) +// With a credential profile (`--profile ` or STOREBOUND_PROFILE), the profile comes before all of these: +// ~/.storebound/credentials/.json (same four names; relative paths are relative to that file; folder: +// STOREBOUND_CREDENTIALS_DIR) or env STOREBOUND_PROFILE__ (NAME upper case, other characters as _). +// Many studios / store accounts from one machine: one profile per account; storebound.workspace.json names them. import { existsSync, readFileSync } from 'node:fs'; import { homedir } from 'node:os'; -import { join } from 'node:path'; +import { isAbsolute, join, resolve } from 'node:path'; export interface ServiceAccount { client_email: string; private_key: string; token_uri?: string } export interface AscKey { keyId: string; issuerId: string; pem: string } @@ -23,7 +27,51 @@ function fileStore(root: string): Store { try { return JSON.parse(readFileSync(p, 'utf8')) as Store; } catch (e) { throw new Error(`${p}: ${(e as Error).message}`); } } +/** The store credential names a profile holds (the same as the env names). */ +export const PROFILE_KEYS = ['PLAY_SERVICE_ACCOUNT', 'ASC_KEY_ID', 'ASC_ISSUER_ID', 'ASC_P8'] as const; +export const PROFILE_RE = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/; + +export const profileDir = (): string => process.env.STOREBOUND_CREDENTIALS_DIR || join(homedir(), '.storebound', 'credentials'); +const profileEnvName = (profile: string, key: string): string => `STOREBOUND_PROFILE_${profile.toUpperCase().replace(/[^A-Z0-9]/g, '_')}_${key}`; + +/** + * The credentials of one profile as env values (never printed). Env STOREBOUND_PROFILE__ wins over the + * profile file; a relative key path in the file is relative to the file. Throws on a bad name or an unreadable file. + */ +export function profileEnv(profile: string): Record { + if (!PROFILE_RE.test(profile)) throw new Error(`credential profile "${profile}": letters, digits, . _ - (max 64)`); + const file = join(profileDir(), `${profile}.json`); + let stored: Store = {}; + if (existsSync(file)) { + try { stored = JSON.parse(readFileSync(file, 'utf8')) as Store; } catch (e) { throw new Error(`credential profile ${profile}: ${file}: ${(e as Error).message}`); } + } + const out: Record = {}; + for (const k of PROFILE_KEYS) { + const env = process.env[profileEnvName(profile, k)]; + const v = env || (typeof stored[k] === 'string' ? stored[k] as string : ''); + if (!v) continue; + // a path in the file: relative to the profile folder (inline JSON / PEM stays as it is) + const isPath = !env && !/^\s*\{/.test(v) && !/BEGIN PRIVATE KEY/.test(v) && (k === 'PLAY_SERVICE_ACCOUNT' || k === 'ASC_P8'); + out[k] = isPath && !isAbsolute(v) && !v.startsWith('~') ? resolve(profileDir(), v) : v; + } + return out; +} + +/** Which stores a profile can reach, and where it comes from. No values. */ +export function profileStatus(profile: string): { profile: string; source: 'file' | 'env' | 'missing' | 'invalid'; apple: boolean; play: boolean; error?: string } { + try { + const env = profileEnv(profile); + const fromEnv = PROFILE_KEYS.some(k => !!process.env[profileEnvName(profile, k)]); + const source = fromEnv ? 'env' : existsSync(join(profileDir(), `${profile}.json`)) ? 'file' : 'missing'; + return { profile, source, apple: !!(env.ASC_KEY_ID && env.ASC_ISSUER_ID), play: !!env.PLAY_SERVICE_ACCOUNT }; + } catch (e) { + return { profile, source: 'invalid', apple: false, play: false, error: (e as Error).message }; + } +} + function value(root: string, name: string): string | undefined { + const profile = process.env.STOREBOUND_PROFILE; + if (profile) { const v = profileEnv(profile)[name]; if (v) return v; } const env = process.env[name]; if (env) return env; const v = fileStore(root)[name]; diff --git a/cli/lib/identity.ts b/cli/lib/identity.ts new file mode 100644 index 00000000..7a9763b9 --- /dev/null +++ b/cli/lib/identity.ts @@ -0,0 +1,200 @@ +// One app card per product, across studios and store accounts: the pairing rules the desktop app (apps/desktop) and +// the CLI workspace (`storebound ws`, cli/lib/workspace.ts) share. Pure, so tests pin every rule +// (apps/desktop/tests/identity.test.ts, tests/workspace.test.ts). +// +// Inputs: app folders (with the store ids of their config), the apps each store account can see (`apps list`), and +// the owner's overrides (manual pairs / unpairs, links of a store app to a folder, studio moves, the ignore list). +// Order of matching: +// 1. a folder takes the store apps its config names (explicit link > App Store app id > bundle id / package name), +// preferring the accounts mapped to the folder; +// 2. the remaining store apps pair iOS + Android: manual pairs, then the same bundle id and package name, then a +// close id (".ios" / ".android" suffixes, case, punctuation) or the same name; unpairs block an automatic pair; +// 3. what is left is a single-platform store-only app. +// A store-only app is read through a "store target" (store:ios:::;android::). +import type { ProjectSummary, StoreApp } from './desktop-protocol'; + +/** An app folder as both front ends know it (the desktop's Project carries more fields). */ +export interface IdProject { id: string; path: string; name: string; playAccount: string | null; appleAccount: string | null } +/** A store account: an id (16 hex) and its studio. */ +export interface IdAccount { id: string; studio?: string | null } + +export interface Pair { ios: string; android: string } +export interface Overrides { + pairs: Pair[]; + unpairs: Pair[]; + links: { key: string; project: string }[]; + appStudio: { key: string; studio: string }[]; + ignored: string[]; +} +export const NO_OVERRIDES: Overrides = { pairs: [], unpairs: [], links: [], appStudio: [], ignored: [] }; + +/** One app record of one store account. */ +export interface StoreRef { key: string; account: string; store: 'ios' | 'android'; app: StoreApp } + +export type Pairing = 'folder' | 'manual' | 'id' | 'close' | 'name' | 'single'; + +export interface UnifiedApp

{ + /** Route and list key: the project id, else the store target. */ + key: string; + /** What reads use: the project id, else the store target ("store:..."). */ + target: string; + name: string; + project: P | null; + ios: StoreRef | null; + android: StoreRef | null; + studio: string | null; + pairing: Pairing; + /** The keys an "ignore" puts on the list ("project:" or "app:"). */ + ignoreKeys: string[]; + ignored: boolean; + /** Store icon (data URL) when the folder has none. */ + storeIcon: string | null; +} + +export const refKey = (account: string, a: StoreApp): string => `${a.store}:${account}:${a.id}`; + +/** Store target of a store-only app. */ +export function storeTarget(ios: StoreRef | null, android: StoreRef | null): string { + const parts: string[] = []; + if (ios) parts.push(`ios:${ios.account}:${ios.app.id}:${ios.app.bundleId}`); + if (android) parts.push(`android:${android.account}:${android.app.id}`); + return `store:${parts.join(';')}`; +} + +/** "com.example.Puzzle.ios" -> "comexamplepuzzle": ids that differ only by a platform suffix, case or punctuation. */ +export function normId(id: string): string { + return id.toLowerCase().replace(/[._-](ios|iphone|android|droid|app)$/g, '').replace(/[^a-z0-9]/g, ''); +} +export const normName = (n: string): string => n.toLowerCase().normalize('NFKD').replace(/[^a-z0-9]/g, ''); + +const samePair = (p: Pair, ios: string, android: string) => p.ios === ios && p.android === android; + +export interface BuildInput

{ + projects: P[]; + /** Store ids of each folder's config (from the offline portfolio read). */ + summaryOf: (p: P) => ProjectSummary | null | undefined; + accounts: IdAccount[]; + /** The last app list of each account. */ + storeApps: { account: string; apps: StoreApp[] }[]; + overrides: Overrides; +} + +export function buildApps

(i: BuildInput

): UnifiedApp

[] { + const o = i.overrides; + const ignoredAccounts = new Set(o.ignored.filter(x => x.startsWith('account:')).map(x => x.slice(8))); + const accountStudio = new Map(i.accounts.map(a => [a.id, a.studio ?? null] as const)); + const known = new Set(i.accounts.map(a => a.id)); + // every store app of every (not ignored) account + const refs: StoreRef[] = []; + for (const s of i.storeApps) { + if (!known.has(s.account) || ignoredAccounts.has(s.account)) continue; + for (const app of s.apps) refs.push({ key: refKey(s.account, app), account: s.account, store: app.store, app }); + } + const used = new Set(); + const take = (r: StoreRef | null | undefined): StoreRef | null => { if (!r || used.has(r.key)) return null; used.add(r.key); return r; }; + const studioOverride = new Map(o.appStudio.map(x => [x.key, x.studio] as const)); + const ignored = new Set(o.ignored); + const out: UnifiedApp

[] = []; + + // 1. folders + for (const p of i.projects) { + const s = i.summaryOf(p); + const mine = (r: StoreRef) => r.account === (r.store === 'ios' ? p.appleAccount : p.playAccount); + const rank = (rs: StoreRef[]) => [...rs].sort((a, b) => Number(mine(b)) - Number(mine(a))); + const linked = o.links.filter(l => l.project === p.id).map(l => refs.find(r => r.key === l.key)).filter((r): r is StoreRef => !!r && !used.has(r.key)); + let ios = take(linked.find(r => r.store === 'ios')); + let android = take(linked.find(r => r.store === 'android')); + if (!ios && s?.apple) { + const free = refs.filter(r => r.store === 'ios' && !used.has(r.key) && !o.links.some(l => l.key === r.key)); + ios = take(rank(free.filter(r => s.apple!.appId && r.app.id === s.apple!.appId))[0] ?? rank(free.filter(r => r.app.bundleId === s.apple!.bundleId))[0]); + } + if (!android && s?.play) { + const free = refs.filter(r => r.store === 'android' && !used.has(r.key) && !o.links.some(l => l.key === r.key)); + android = take(rank(free.filter(r => r.app.id === s.play!.packageName))[0]); + } + const studio = studioOverride.get(`project:${p.id}`) + ?? (p.appleAccount && accountStudio.get(p.appleAccount)) ?? (p.playAccount && accountStudio.get(p.playAccount)) + ?? (ios && accountStudio.get(ios.account)) ?? (android && accountStudio.get(android.account)) ?? null; + out.push({ + key: p.id, target: p.id, name: p.name, project: p, ios, android, studio, pairing: 'folder', + ignoreKeys: [`project:${p.id}`], ignored: ignored.has(`project:${p.id}`), storeIcon: ios?.app.icon ?? android?.app.icon ?? null, + }); + } + + // 2. pairs among the remaining store apps + const freeIos = () => refs.filter(r => r.store === 'ios' && !used.has(r.key)); + const freeAndroid = () => refs.filter(r => r.store === 'android' && !used.has(r.key)); + const blocked = (a: StoreRef, b: StoreRef) => o.unpairs.some(p => samePair(p, a.key, b.key)); + const sameStudio = (a: StoreRef, b: StoreRef) => (accountStudio.get(a.account) ?? null) === (accountStudio.get(b.account) ?? null); + const pairs: [StoreRef, StoreRef, Pairing][] = []; + for (const m of o.pairs) { + const a = freeIos().find(r => r.key === m.ios), b = freeAndroid().find(r => r.key === m.android); + if (a && b) { take(a); take(b); pairs.push([a, b, 'manual']); } + } + const auto = (how: Pairing, match: (a: StoreRef, b: StoreRef) => boolean) => { + for (const a of freeIos()) { + const cands = freeAndroid().filter(b => !blocked(a, b) && match(a, b)).sort((x, y) => Number(sameStudio(a, y)) - Number(sameStudio(a, x))); + const b = cands[0]; + if (b) { take(a); take(b); pairs.push([a, b, how]); } + } + }; + auto('id', (a, b) => a.app.bundleId === b.app.id); + auto('close', (a, b) => normId(a.app.bundleId) !== '' && normId(a.app.bundleId) === normId(b.app.id)); + auto('name', (a, b) => normName(a.app.name) !== '' && normName(a.app.name) === normName(b.app.name)); + + const storeOnly = (ios: StoreRef | null, android: StoreRef | null, pairing: Pairing) => { + const target = storeTarget(ios, android); + const keys = [ios, android].filter((r): r is StoreRef => !!r).map(r => r.key); + const studio = keys.map(k => studioOverride.get(k)).find(Boolean) + ?? (ios && accountStudio.get(ios.account)) ?? (android && accountStudio.get(android.account)) ?? null; + out.push({ + key: target, target, name: ios?.app.name ?? android?.app.name ?? '?', project: null, ios, android, studio, pairing, + ignoreKeys: keys.map(k => `app:${k}`), ignored: keys.some(k => ignored.has(`app:${k}`)), storeIcon: ios?.app.icon ?? android?.app.icon ?? null, + }); + }; + for (const [a, b, how] of pairs) storeOnly(a, b, how); + // 3. singles + for (const r of refs) if (!used.has(r.key)) { used.add(r.key); storeOnly(r.store === 'ios' ? r : null, r.store === 'android' ? r : null, 'single'); } + return out; +} + +/** Candidates to pair a single-platform app with (the other store's single apps), closest first. */ +export function pairCandidates

(app: UnifiedApp

, all: UnifiedApp

[]): UnifiedApp

[] { + if (app.project || (app.ios && app.android)) return []; + const want = app.ios ? 'android' : 'ios'; + const me = (app.ios ?? app.android)!; + const score = (x: UnifiedApp

) => { + const r = (want === 'ios' ? x.ios : x.android)!; + return (normId(r.app.bundleId) === normId(me.app.bundleId) ? 4 : 0) + (normName(r.app.name) === normName(me.app.name) ? 2 : 0) + (x.studio === app.studio ? 1 : 0); + }; + return all.filter(x => !x.project && !x.ignored && (want === 'ios' ? x.ios && !x.android : x.android && !x.ios)).sort((a, b) => score(b) - score(a) || a.name.localeCompare(b.name)); +} + +/** Overrides after pairing two single store apps by hand (drops an unpair of the same two). */ +export function withPair(o: Overrides, ios: string, android: string): Overrides { + return { ...o, pairs: [...o.pairs.filter(p => p.ios !== ios && p.android !== android), { ios, android }], unpairs: o.unpairs.filter(p => !samePair(p, ios, android)) }; +} + +/** Overrides after splitting a paired app (keeps it apart from now on). */ +export function withUnpair(o: Overrides, ios: string, android: string): Overrides { + return { ...o, pairs: o.pairs.filter(p => !samePair(p, ios, android)), unpairs: [...o.unpairs.filter(p => !samePair(p, ios, android)), { ios, android }] }; +} + +export function withIgnored(o: Overrides, keys: string[], on: boolean): Overrides { + const set = new Set(o.ignored); + for (const k of keys) { if (on) set.add(k); else set.delete(k); } + return { ...o, ignored: [...set] }; +} + +/** Moves an app to a studio (null: back to its accounts' studio). */ +export function withStudio(o: Overrides, app: UnifiedApp, studio: string | null): Overrides { + const keys = app.project ? [`project:${app.project.id}`] : [app.ios?.key, app.android?.key].filter((k): k is string => !!k); + const rest = o.appStudio.filter(x => !keys.includes(x.key)); + return { ...o, appStudio: studio ? [...rest, ...keys.map(key => ({ key, studio }))] : rest }; +} + +/** Links the store apps of a store-only app to a folder. */ +export function withLink(o: Overrides, app: UnifiedApp, project: string): Overrides { + const keys = [app.ios?.key, app.android?.key].filter((k): k is string => !!k); + return { ...o, links: [...o.links.filter(l => !keys.includes(l.key)), ...keys.map(key => ({ key, project }))] }; +} diff --git a/cli/lib/train.ts b/cli/lib/train.ts new file mode 100644 index 00000000..fef98e0a --- /dev/null +++ b/cli/lib/train.ts @@ -0,0 +1,229 @@ +// Release trains: one version across the App Store and Google Play, on one track of stages +// (build -> testing -> review -> live -> rollout). The desktop app's Releases tab (apps/desktop/src/lib/model.ts +// re-exports these) and `storebound release status | plan` (cli/release.ts) share this file, so both show the same +// stage for the same store state. Pure; the store reads are `apple status --json` / `play status --json`, turned into +// StoreRelease rows by cli/lib/portfolio.ts. +import type { ReleaseTrain, StoreRelease } from './desktop-protocol'; +import { cmpVersion } from './portfolio'; +import type { Finding } from './validate-rules'; + +export { cmpVersion }; + +export type Tone = 'ok' | 'warn' | 'bad' | 'info' | 'neutral' | 'accent'; + +/** Stages of one version on one store, left to right. */ +export const STAGES = ['build', 'testing', 'review', 'live', 'rollout'] as const; +export type Stage = (typeof STAGES)[number]; + +export interface Lane { + store: 'ios' | 'android'; + release: StoreRelease | null; + /** Index of the stage it is at (-1: not on this store). */ + at: number; + tone: Tone; + /** Rollout share 0-1 when live or rolling out (1 = everyone). */ + share: number | null; + /** The store's state word, for a tooltip. */ + state: string; +} + +/** Where a store release is on the track. Rollout counts as the last stage; a full release fills it. */ +export function laneOf(store: 'ios' | 'android', r: StoreRelease | null, testflightReached = false): Lane { + if (!r) return { store, release: null, at: -1, tone: 'neutral', share: null, state: '' }; + const base = { store, release: r, state: r.state }; + switch (r.phase) { + case 'draft': return { ...base, at: testflightReached ? 1 : 0, tone: testflightReached ? 'info' : 'neutral', share: null }; + case 'testing': return { ...base, at: 1, tone: 'info', share: null }; + case 'review': return { ...base, at: 2, tone: 'warn', share: null }; + case 'approved': return { ...base, at: 2, tone: 'ok', share: null }; + case 'rejected': return { ...base, at: 2, tone: 'bad', share: null }; + case 'live': return { ...base, at: 4, tone: 'ok', share: 1 }; + case 'rollout': return { ...base, at: 4, tone: 'accent', share: r.fraction ?? null }; + case 'halted': return { ...base, at: 4, tone: 'bad', share: r.fraction ?? null }; + default: return { ...base, at: 0, tone: 'neutral', share: null }; + } +} + +/** TestFlight builds as `apple testflight status --json` lists them (only what the lanes need). */ +export interface BetaBuilds { builds: { version: string | null; internal: string | null; external: string | null }[] } + +/** Both lanes of a train; iOS counts TestFlight as reached when a build of that version is in beta testing. */ +export function trainLanes(t: ReleaseTrain, tf?: BetaBuilds | null): Lane[] { + const inBeta = !!tf?.builds.some(b => b.version === t.version && /IN_BETA_TESTING|BETA_APPROVED|READY_FOR_BETA_TESTING/.test(`${b.internal ?? ''} ${b.external ?? ''}`)); + return [laneOf('ios', t.ios, inBeta), laneOf('android', t.android)]; +} + +/** Every distinct version of the store releases, newest first, with both stores' release (best phase per store). */ +export function versionHistory(all: StoreRelease[]): ReleaseTrain[] { + const rank: Record = { live: 0, rollout: 1, halted: 2, approved: 3, review: 4, rejected: 5, testing: 6, draft: 7, other: 8 }; + const versions = [...new Set(all.map(r => r.version).filter((v): v is string => !!v))].sort(cmpVersion).reverse(); + const best = (store: 'ios' | 'android', v: string) => all.filter(r => r.store === store && r.version === v).sort((a, b) => (rank[a.phase] ?? 9) - (rank[b.phase] ?? 9))[0] ?? null; + return versions.map(v => ({ version: v, ios: best('ios', v), android: best('android', v) })); +} + +/** On one store: the highest version reaching users (live or rolling out) and the highest version above it. */ +export function storeNow(all: StoreRelease[], store: 'ios' | 'android'): { now: StoreRelease | null; next: StoreRelease | null } { + const rs = all.filter((r): r is StoreRelease & { version: string } => r.store === store && !!r.version); + const desc = (a: { version: string }, b: { version: string }) => cmpVersion(b.version, a.version); + const now = rs.filter(r => r.phase === 'live' || r.phase === 'rollout' || r.phase === 'halted').sort(desc)[0] ?? null; + const next = rs.filter(r => !now || cmpVersion(r.version, now.version) > 0).sort(desc)[0] ?? null; + return { now, next }; +} + +// ---- Terminal view of a lane (release status) ---- + +const pctText = (x: number | null): string => (x === null ? '' : `${Math.round(x * 1000) / 10}%`); + +/** "review (approved)", "rollout 20%", "rollout (halted) 5%", "live", "-" for a store without this version. */ +export function laneText(l: Lane): string { + if (!l.release) return '-'; + const stage = STAGES[l.at] ?? 'build'; + const p = l.release.phase; + if (p === 'live') return 'live'; // the whole track filled: everyone has it + const word = p === stage || (p === 'draft' && stage === 'build') || (p === 'other' && stage === 'build') ? stage : `${stage} (${p})`; + if (p === 'rollout' || p === 'halted') return `${word} ${pctText(l.share)}`.trim(); + return word; +} + +/** "build > testing > [review] > live > rollout" with the reached stage in brackets. */ +export function trackText(l: Lane): string { + return STAGES.map((s, i) => (i === l.at ? `[${s}]` : s)).join(' > '); +} + +// ---- Release plan: what is left for one version on each store, in fix order ---- + +export type PlanKind = 'config' | 'store' | 'blocker' | 'owner' | 'wait' | 'warning' | 'done'; + +export interface PlanStep { + kind: PlanKind; + text: string; + /** The command or console place that does it. Owner steps name what the owner runs; storebound never does them. */ + fix?: string; + code?: string; +} + +export interface StorePlan { + store: 'ios' | 'android'; + /** The store's release of this version (best phase), or null when the version is not on the store yet. */ + release: StoreRelease | null; + lane: Lane; + steps: PlanStep[]; + done: boolean; +} + +export interface ReleasePlan { + version: string; + /** Offline config problems (storebound check): both stores need them fixed first. */ + shared: PlanStep[]; + ios: StorePlan | null; + android: StorePlan | null; + /** Every store the app is on has the version live to everyone. */ + done: boolean; + /** What the plan could not read ("unknown, never false"). */ + unknown: string[]; +} + +export interface PlanInput { + version: string; + platforms: { ios: boolean; android: boolean }; + /** `storebound check --json`, or null when it did not run. */ + check: { problems: string[]; warnings: string[] } | null; + /** `storebound validate --json` findings, or null when it did not run. Validate reads the editable App Store version + * and the Play edit, so its blockers count for a version that is not yet in review. */ + validate: Finding[] | null; + /** Every store release read (`AppStatus.release.all`), or null when the stores were not read. */ + releases: StoreRelease[] | null; + storeErrors?: { ios?: string; android?: string }; +} + +const STORE_NAME = { ios: 'App Store', android: 'Google Play' } as const; + +/** Phases where the store blockers of `validate` still matter (nothing is submitted yet). */ +const BEFORE_REVIEW = new Set(['none', 'draft', 'testing', 'rejected', 'other']); + +function storeSteps(store: 'ios' | 'android', v: string, r: StoreRelease | null, findings: Finding[] | null): PlanStep[] { + const steps: PlanStep[] = []; + const phase = r?.phase ?? 'none'; + const name = STORE_NAME[store]; + // 1. the version itself on the store + if (!r) { + steps.push(store === 'ios' + ? { kind: 'store', text: `${v} is not on ${name} yet: upload a build (Xcode / Transporter), then create the version with its texts`, fix: `storebound apple next-build; storebound apple listing --version ${v} --build --dry` } + : { kind: 'store', text: `${v} is not on ${name} yet: upload the AAB to a testing track`, fix: 'storebound play next-version-code; storebound play release --internal completed --dry' }); + } else if (phase === 'rejected') { + steps.push({ kind: 'blocker', text: `${v} was rejected (${r.state}): read the reason, fix it, then resubmit`, fix: 'review-rejections skill', code: 'rejected' }); + } + // 2. store blockers (validate, already in fix order), only while nothing is submitted + const tag = store === 'ios' ? 'apple' : 'play'; + const mine = (findings ?? []).filter(f => f.store === tag); + if (BEFORE_REVIEW.has(phase)) for (const f of mine.filter(x => x.level === 'blocker')) steps.push({ kind: 'blocker', text: f.msg, ...(f.fix ? { fix: f.fix } : {}), code: f.code }); + // 3. the next move on the track + switch (phase) { + case 'none': case 'other': + break; + case 'draft': + steps.push(store === 'ios' + ? { kind: 'owner', text: `submit ${v} for App Review (owner)`, fix: 'App Store Connect > the version > Add for Review' } + : r!.track && r!.track !== 'production' + ? { kind: 'owner', text: `roll out the ${r!.track} draft of ${v} to its testers (owner)`, fix: `Play Console > Test and release > ${r!.track}` } + : { kind: 'owner', text: `send the production draft of ${v} for review (owner)`, fix: 'Play Console > Publishing overview > Send for review' }); + break; + case 'testing': + steps.push({ kind: 'owner', text: `promote ${v} from ${r!.track ?? 'testing'} to production (owner)`, fix: 'Play Console > Test and release > Production, or `storebound play release --production draft` in a terminal' }); + break; + case 'rejected': + steps.push({ kind: 'owner', text: `resubmit ${v} after the fix (owner)`, fix: store === 'ios' ? 'App Store Connect > App Review > reply / resubmit' : 'Play Console > Publishing overview' }); + break; + case 'review': + steps.push({ kind: 'wait', text: `${v} is in review (${r!.state}); nothing to do until the store answers`, fix: store === 'ios' ? 'storebound apple status --wait-review' : 'storebound play status' }); + break; + case 'approved': + steps.push({ kind: 'owner', text: `${v} is approved (${r!.state}): release it (owner)`, fix: store === 'ios' ? 'App Store Connect > Release this version, or `storebound apple release --manual-release` in a terminal' : 'Play Console > Publishing overview' }); + break; + case 'rollout': + steps.push({ kind: 'owner', text: `${v} reaches ${pctText(r!.fraction) || 'part'} of users: raise or complete the rollout when health is good (owner)`, + fix: store === 'ios' ? 'storebound health; then `storebound apple release --phased complete` in a terminal' : 'storebound health; then `storebound play rollout --fraction ` or `--complete` in a terminal' }); + break; + case 'halted': + steps.push({ kind: 'owner', text: `the rollout of ${v} is halted at ${pctText(r!.fraction) || '?'}: fix and resume, or ship a new version (owner)`, + fix: store === 'ios' ? '`storebound apple release --phased resume` in a terminal' : '`storebound play rollout --resume` in a terminal' }); + break; + case 'live': + steps.push({ kind: 'done', text: `${v} is live on ${name} for everyone` }); + break; + } + // 4. warnings last (they do not block) + if (BEFORE_REVIEW.has(phase)) for (const f of mine.filter(x => x.level === 'warn')) steps.push({ kind: 'warning', text: f.msg, ...(f.fix ? { fix: f.fix } : {}), code: f.code }); + return steps; +} + +/** + * What is left for `version` on each store, in fix order: config problems (offline check) first, then per store the + * version itself, the store blockers (validate), the next move on the track (owner steps are named, never done) and + * the warnings. A store whose state could not be read is listed in `unknown`, never planned as "not there". + */ +export function releasePlan(i: PlanInput): ReleasePlan { + const unknown: string[] = []; + const shared: PlanStep[] = []; + if (i.check) { + for (const p of i.check.problems) shared.push({ kind: 'config', text: p, fix: 'storebound check' }); + } else unknown.push('config check did not run'); + const trains = i.releases ? versionHistory(i.releases) : []; + const train = trains.find(t => cmpVersion(t.version, i.version) === 0 && t.version.split('.').length === i.version.split('.').length) + ?? trains.find(t => cmpVersion(t.version, i.version) === 0) ?? null; + const one = (store: 'ios' | 'android'): StorePlan | null => { + if (!i.platforms[store]) return null; + const err = i.storeErrors?.[store]; + if (!i.releases || err) { + unknown.push(`${STORE_NAME[store]} state not read${err ? `: ${err}` : ''}`); + return { store, release: null, lane: laneOf(store, null), steps: [{ kind: 'store', text: `${STORE_NAME[store]} could not be read: the plan for this store is unknown`, fix: store === 'ios' ? 'storebound apple status' : 'storebound play status' }], done: false }; + } + const r = train?.[store] ?? null; + const steps = storeSteps(store, i.version, r, i.validate); + return { store, release: r, lane: laneOf(store, r), steps, done: r?.phase === 'live' }; + }; + if (!i.validate) unknown.push('store readiness (validate) did not run'); + const ios = one('ios'), android = one('android'); + const stores = [ios, android].filter((x): x is StorePlan => !!x); + return { version: i.version, shared, ios, android, done: !shared.length && stores.length > 0 && stores.every(s => s.done), unknown }; +} diff --git a/cli/lib/workspace.ts b/cli/lib/workspace.ts new file mode 100644 index 00000000..9412484e --- /dev/null +++ b/cli/lib/workspace.ts @@ -0,0 +1,404 @@ +// The multi-app workspace: one storebound.workspace.json (or .ts) in a folder above many app folders. It names the +// app folders (globs allowed), the studios and their store accounts (by credential profile, never a secret), an +// ignore list and the owner's pairing overrides. It is the same model as the desktop app's state (studios, accounts, +// projects, overrides: apps/desktop/src-tauri/src/store.rs, workspace.rs), so `storebound ws desktop export | import` +// moves it both ways. Pairing of store apps with folders is cli/lib/identity.ts, shared with the desktop. +// +// { +// "apps": ["apps/*", { "path": "games/puzzle", "apple": "acme-apple", "play": "acme-play" }], +// "studios": [{ "name": "Acme Games", "color": "indigo", "apps": ["games/*"], +// "accounts": [{ "store": "apple", "profile": "acme-apple" }, { "store": "play", "profile": "acme-play" }] }], +// "accounts": [{ "store": "play", "profile": "solo-play" }], +// "ignore": ["apps/old-*", "app:ios::", "account:solo-play"], +// "overrides": { "pairs": [], "unpairs": [], "links": [], "appStudio": [] }, +// "concurrency": 4 +// } +import { createHash } from 'node:crypto'; +import { existsSync, readFileSync, statSync } from 'node:fs'; +import { homedir } from 'node:os'; +import { basename, isAbsolute, join, relative, resolve, sep } from 'node:path'; +import { CONFIG_NAMES } from './config'; +import { PROFILE_RE } from './credentials'; +import type { StoreApp } from './desktop-protocol'; +import { type IdProject, NO_OVERRIDES, type Overrides, type Pair } from './identity'; + +export const WORKSPACE_NAMES = ['storebound.workspace.json', 'storebound.workspace.ts', 'storebound.workspace.js']; +/** Colours a studio can carry: the desktop's set (workspace.rs STUDIO_COLORS). */ +export const STUDIO_COLORS = ['indigo', 'violet', 'rose', 'amber', 'emerald', 'teal', 'sky', 'slate'] as const; +export type StudioColor = (typeof STUDIO_COLORS)[number]; +export type Store = 'apple' | 'play'; + +export interface WsAccount { + store: Store; + /** Credential profile: ~/.storebound/credentials/.json or env STOREBOUND_PROFILE__* */ + profile: string; + label?: string; + /** The desktop's account id (16 hex) when it came from there; else derived from store + profile. */ + id?: string; +} +export interface WsStudio { id?: string; name: string; color?: StudioColor; accounts?: WsAccount[]; apps?: string[] } +export interface WsAppEntry { path: string; name?: string; apple?: string; play?: string } +/** Pairing overrides as the desktop keeps them; a project is named by its folder (relative to the workspace). */ +export interface WsOverrides { pairs?: Pair[]; unpairs?: Pair[]; links?: { key: string; project: string }[]; appStudio?: { key: string; studio: string }[] } +export interface Workspace { + apps: (string | WsAppEntry)[]; + studios?: WsStudio[]; + accounts?: WsAccount[]; + ignore?: string[]; + overrides?: WsOverrides; + /** Apps read at the same time (1-8, default 4: the desktop's default). */ + concurrency?: number; +} + +/** For a storebound.workspace.ts: `export default defineWorkspace({ ... })`. */ +export const defineWorkspace = (w: Workspace): Workspace => w; + +export interface LoadedWorkspace { file: string; root: string; ws: Workspace } + +/** Resolved account: the workspace entry with its id and studio. */ +export interface Account extends WsAccount { id: string; studio: string | null } +export interface Studio { id: string; name: string; color: StudioColor } +/** One app folder of the workspace. `id` is its path relative to the workspace (forward slashes). */ +export interface AppFolder extends IdProject { rel: string; ignored: boolean; studio: string | null; appleProfile: string | null; playProfile: string | null } + +const hex16 = (s: string): string => createHash('sha256').update(s).digest('hex').slice(0, 16); +export const accountId = (a: WsAccount): string => (a.id && /^[0-9a-f]{16}$/.test(a.id) ? a.id : hex16(`${a.store}:${a.profile}`)); +export const slug = (s: string): string => s.toLowerCase().normalize('NFKD').replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '').slice(0, 48) || 'studio'; +export const studioId = (s: WsStudio): string => s.id || slug(s.name); +const posix = (p: string): string => p.split(sep).join('/'); + +/** Finds the workspace file in `from` or a folder above it. */ +export function findWorkspace(from: string, explicit?: string): string | null { + if (explicit) { + const p = resolve(from, explicit); + if (existsSync(p) && statSync(p).isDirectory()) return WORKSPACE_NAMES.map(n => join(p, n)).find(existsSync) ?? null; + return existsSync(p) ? p : null; + } + let d = resolve(from); + for (;;) { + const hit = WORKSPACE_NAMES.map(n => join(d, n)).find(existsSync); + if (hit) return hit; + const up = resolve(d, '..'); + if (up === d) return null; + d = up; + } +} + +export async function loadWorkspace(from: string, explicit?: string): Promise { + const file = findWorkspace(from, explicit); + if (!file) throw new Error(`no storebound.workspace.json in ${from} or above (storebound ws init creates one)`); + let raw: unknown; + if (file.endsWith('.json')) { + try { raw = JSON.parse(readFileSync(file, 'utf8')); } catch (e) { throw new Error(`${file}: ${(e as Error).message}`); } + } else raw = ((await import(file)) as { default?: unknown }).default; + const problems = checkWorkspace(raw); + if (problems.length) throw new Error(`${file}:\n ${problems.join('\n ')}`); + return { file, root: resolve(file, '..'), ws: raw as Workspace }; +} + +const ACCOUNT_KEYS = ['store', 'profile', 'label', 'id']; + +/** Problems of a workspace file (empty = fine). Secrets are refused: only profile names belong here. */ +export function checkWorkspace(raw: unknown): string[] { + const e: string[] = []; + if (typeof raw !== 'object' || raw === null || Array.isArray(raw)) return ['not an object']; + const w = raw as Record; + const known = ['$schema', 'apps', 'studios', 'accounts', 'ignore', 'overrides', 'concurrency']; + for (const k of Object.keys(w)) if (!known.includes(k)) e.push(`${k}: unknown field (${known.slice(1).join(', ')})`); + if (!Array.isArray(w.apps)) e.push('apps: a list of app folders or globs ("apps/*")'); + else w.apps.forEach((a, i) => { + if (typeof a === 'string') { if (!a.trim()) e.push(`apps[${i}]: empty`); return; } + if (typeof a !== 'object' || a === null || typeof (a as WsAppEntry).path !== 'string') { e.push(`apps[${i}]: a path or { path, name?, apple?, play? }`); return; } + for (const k of Object.keys(a)) if (!['path', 'name', 'apple', 'play'].includes(k)) e.push(`apps[${i}].${k}: unknown`); + for (const s of ['apple', 'play'] as const) { const p = (a as WsAppEntry)[s]; if (p !== undefined && (typeof p !== 'string' || !PROFILE_RE.test(p))) e.push(`apps[${i}].${s}: a credential profile name`); } + }); + const account = (a: unknown, where: string) => { + if (typeof a !== 'object' || a === null) { e.push(`${where}: { store, profile }`); return; } + const o = a as Record; + for (const k of Object.keys(o)) if (!ACCOUNT_KEYS.includes(k)) e.push(`${where}.${k}: unknown (secrets never go here: put them in the credential profile)`); + if (o.store !== 'apple' && o.store !== 'play') e.push(`${where}.store: apple or play`); + if (typeof o.profile !== 'string' || !PROFILE_RE.test(o.profile)) e.push(`${where}.profile: a credential profile name (letters, digits, . _ -)`); + if (o.id !== undefined && (typeof o.id !== 'string' || !/^[0-9a-f]{16}$/.test(o.id))) e.push(`${where}.id: 16 hex characters (the desktop's account id)`); + if (o.label !== undefined && (typeof o.label !== 'string' || o.label.length > 60)) e.push(`${where}.label: up to 60 characters`); + }; + if (w.accounts !== undefined) { if (!Array.isArray(w.accounts)) e.push('accounts: a list'); else w.accounts.forEach((a, i) => account(a, `accounts[${i}]`)); } + if (w.studios !== undefined) { + if (!Array.isArray(w.studios)) e.push('studios: a list'); + else w.studios.forEach((s, i) => { + if (typeof s !== 'object' || s === null) { e.push(`studios[${i}]: { name, color?, accounts?, apps? }`); return; } + const o = s as Record; + for (const k of Object.keys(o)) if (!['id', 'name', 'color', 'accounts', 'apps'].includes(k)) e.push(`studios[${i}].${k}: unknown`); + if (typeof o.name !== 'string' || !o.name.trim() || o.name.length > 48) e.push(`studios[${i}].name: 1 to 48 characters`); + if (o.color !== undefined && !(STUDIO_COLORS as readonly unknown[]).includes(o.color)) e.push(`studios[${i}].color: one of ${STUDIO_COLORS.join(', ')}`); + if (o.accounts !== undefined) { if (!Array.isArray(o.accounts)) e.push(`studios[${i}].accounts: a list`); else o.accounts.forEach((a, j) => account(a, `studios[${i}].accounts[${j}]`)); } + if (o.apps !== undefined && (!Array.isArray(o.apps) || o.apps.some(x => typeof x !== 'string'))) e.push(`studios[${i}].apps: a list of folder globs`); + }); + } + if (w.ignore !== undefined && (!Array.isArray(w.ignore) || w.ignore.some(x => typeof x !== 'string'))) e.push('ignore: a list of folder globs, app: or account:'); + if (w.concurrency !== undefined && !(Number.isInteger(w.concurrency) && (w.concurrency as number) >= 1 && (w.concurrency as number) <= 8)) e.push('concurrency: 1 to 8'); + if (w.overrides !== undefined && (typeof w.overrides !== 'object' || w.overrides === null || Array.isArray(w.overrides))) e.push('overrides: { pairs, unpairs, links, appStudio }'); + // duplicate profiles per store would make two accounts with one id + const all = [...((w.accounts as WsAccount[] | undefined) ?? []), ...(((w.studios as WsStudio[] | undefined) ?? []).flatMap(s => s?.accounts ?? []))]; + const seen = new Set(); + for (const a of all) { const k = `${a?.store}:${a?.profile}`; if (seen.has(k)) e.push(`account ${k}: listed twice`); seen.add(k); } + return e; +} + +/** Every account of the workspace (studio accounts and the loose ones) with ids and studios. */ +export function accountsOf(ws: Workspace): Account[] { + const out: Account[] = []; + for (const s of ws.studios ?? []) for (const a of s.accounts ?? []) out.push({ ...a, id: accountId(a), studio: studioId(s) }); + for (const a of ws.accounts ?? []) out.push({ ...a, id: accountId(a), studio: null }); + return out; +} + +export const studiosOf = (ws: Workspace): Studio[] => + (ws.studios ?? []).map((s, i) => ({ id: studioId(s), name: s.name, color: s.color ?? STUDIO_COLORS[i % STUDIO_COLORS.length]! })); + +const isGlob = (p: string): boolean => /[*?[{]/.test(p); +const matchAny = (globs: string[], rel: string): boolean => globs.some(g => new Bun.Glob(g.replace(/\/+$/, '')).match(rel)); +const hasConfig = (dir: string): boolean => CONFIG_NAMES.some(n => existsSync(join(dir, n))); + +/** + * The app folders: globs expanded (folders with a storebound config only; node_modules and dot folders skipped), the + * ignore globs applied (kept with `ignored: true`, so `ws list --all` can show them), accounts and studio resolved: + * an entry's own profiles > the single account of that store in the studio whose `apps` globs match > the single + * account of that store in the workspace > none (the folder's own credentials, env or .storebound/). + */ +export function resolveApps(l: LoadedWorkspace): { apps: AppFolder[]; warnings: string[] } { + const { root, ws } = l; + const warnings: string[] = []; + const found = new Map(); + for (const a of ws.apps) { + const entry: WsAppEntry = typeof a === 'string' ? { path: a } : a; + const p = entry.path.replace(/^~(?=\/)/, homedir()); + if (isGlob(p)) { + const base = isAbsolute(p) ? '/' : root; + const pattern = isAbsolute(p) ? p.slice(1) : p; + let hits = 0; + for (const m of new Bun.Glob(pattern.replace(/\/+$/, '')).scanSync({ cwd: base, onlyFiles: false, dot: false })) { + if (/(^|\/)(node_modules|\.git)(\/|$)/.test(m)) continue; + const dir = resolve(base, m); + try { if (!statSync(dir).isDirectory()) continue; } catch { continue; } + if (!hasConfig(dir)) continue; + hits++; + if (!found.has(dir)) found.set(dir, { ...entry, path: dir }); + } + if (!hits) warnings.push(`${entry.path}: no app folder (with a storebound config) matches`); + } else { + const dir = resolve(root, p); + if (!existsSync(dir)) { warnings.push(`${entry.path}: folder not found`); continue; } + if (!hasConfig(dir)) { warnings.push(`${entry.path}: no storebound.config.ts in it`); continue; } + found.set(dir, { ...found.get(dir), ...entry, path: dir }); + } + } + const accounts = accountsOf(ws); + const byProfile = (store: Store, profile: string | undefined) => (profile ? accounts.find(a => a.store === store && a.profile === profile) : undefined); + const ignoreGlobs = (ws.ignore ?? []).filter(x => !/^(app|account|project):/.test(x)); + const apps: AppFolder[] = []; + for (const [dir, entry] of found) { + const rel = posix(relative(root, dir)) || '.'; + const studio = (ws.studios ?? []).find(s => matchAny(s.apps ?? [], rel)) ?? null; + const pick = (store: Store): WsAccount | null => { + const named = entry[store]; + // a profile the workspace does not list is still usable (its id is derived the same way) + if (named) return byProfile(store, named) ?? { store, profile: named }; + const inStudio = (studio?.accounts ?? []).filter(a => a.store === store); + if (inStudio.length === 1) return inStudio[0]!; + const all = accounts.filter(a => a.store === store); + return all.length === 1 ? all[0]! : null; + }; + const apple = pick('apple'), play = pick('play'); + apps.push({ id: rel, rel, path: dir, name: entry.name ?? basename(dir), appleAccount: apple ? accountId(apple) : null, playAccount: play ? accountId(play) : null, + appleProfile: apple?.profile ?? null, playProfile: play?.profile ?? null, + ignored: matchAny(ignoreGlobs, rel) || (ws.ignore ?? []).includes(`project:${rel}`), studio: studio ? studioId(studio) : null }); + } + apps.sort((a, b) => a.rel.localeCompare(b.rel)); + return { apps, warnings }; +} + +/** Desktop-style overrides of the workspace: folder studios from `studios[].apps`, ignore keys with account ids. */ +export function overridesOf(ws: Workspace, apps: AppFolder[]): Overrides { + const o = ws.overrides ?? {}; + const accounts = accountsOf(ws); + const explicit = o.appStudio ?? []; + const fromGlobs = apps.filter(a => a.studio && !explicit.some(x => x.key === `project:${a.id}`)).map(a => ({ key: `project:${a.id}`, studio: a.studio! })); + const ignored: string[] = []; + for (const x of ws.ignore ?? []) { + if (x.startsWith('app:') || x.startsWith('project:')) ignored.push(x); + else if (x.startsWith('account:')) { + const p = x.slice(8); + const hit = accounts.filter(a => a.profile === p || a.id === p); + ignored.push(...(hit.length ? hit.map(a => `account:${a.id}`) : [x])); + } + } + for (const a of apps) if (a.ignored && !ignored.includes(`project:${a.id}`)) ignored.push(`project:${a.id}`); + return { ...NO_OVERRIDES, pairs: o.pairs ?? [], unpairs: o.unpairs ?? [], links: o.links ?? [], appStudio: [...explicit, ...fromGlobs], ignored }; +} + +/** Filters apps by `--apps a,b` (folder, folder name or app name, case-insensitive; globs allowed). */ +export function selectApps(apps: T[], names: string[]): { picked: T[]; unknown: string[] } { + if (!names.length) return { picked: apps, unknown: [] }; + const unknown: string[] = []; + const picked = new Set(); + for (const n of names) { + const lc = n.toLowerCase(); + const hits = apps.filter(a => a.rel.toLowerCase() === lc || basename(a.rel).toLowerCase() === lc || a.name.toLowerCase() === lc || (isGlob(n) && new Bun.Glob(n).match(a.rel))); + if (!hits.length) unknown.push(n); + hits.forEach(h => picked.add(h)); + } + return { picked: apps.filter(a => picked.has(a)), unknown }; +} + +// ---- Store app lists (ws apps import): a local cache, gitignored with the rest of .storebound/ ---- + +export interface StoreAppsCache { profile: string; store: Store; account: string; at: string; apps: StoreApp[] } + +export const cacheDir = (root: string): string => join(root, '.storebound', 'workspace'); +export const cacheFile = (root: string, a: { store: Store; profile: string }): string => join(cacheDir(root), `apps-${a.store}-${a.profile}.json`); + +export function readStoreApps(root: string, accounts: Account[]): { account: string; apps: StoreApp[]; at: string }[] { + const out: { account: string; apps: StoreApp[]; at: string }[] = []; + for (const a of accounts) { + const f = cacheFile(root, a); + if (!existsSync(f)) continue; + try { + const c = JSON.parse(readFileSync(f, 'utf8')) as StoreAppsCache; + if (Array.isArray(c.apps)) out.push({ account: a.id, apps: c.apps, at: c.at }); + } catch { /* a broken cache is a cache miss */ } + } + return out; +} + +// ---- The desktop's state (state.json in its data folder) <-> the workspace ---- + +export interface DesktopProject { id: string; path: string; name: string; playAccount: string | null; appleAccount: string | null; added: string } +export interface DesktopAccount { id: string; label: string; kind: Store; created: string; studio: string | null } +export interface DesktopStudio { id: string; name: string; color: string; logo: string | null; created: string } +export interface DesktopState { + version: number; + projects: DesktopProject[]; + accounts: DesktopAccount[]; + studios: DesktopStudio[]; + overrides: Overrides; + settings?: unknown; +} + +/** Where the desktop app keeps state.json (Tauri app data folder of dev.storebound.desktop). */ +export function desktopStateFile(env: Record = process.env, platform = process.platform): string { + if (env.STOREBOUND_DESKTOP_DATA) return join(env.STOREBOUND_DESKTOP_DATA, 'state.json'); + const id = 'dev.storebound.desktop'; + if (platform === 'darwin') return join(homedir(), 'Library', 'Application Support', id, 'state.json'); + if (platform === 'win32') return join(env.APPDATA ?? join(homedir(), 'AppData', 'Roaming'), id, 'state.json'); + return join(env.XDG_DATA_HOME ?? join(homedir(), '.local', 'share'), id, 'state.json'); +} + +/** The desktop's project id of a folder: stable per absolute path (16 hex, like the desktop's own ids). */ +export const desktopProjectId = (absPath: string): string => hex16(`project:${absPath}`); + +/** + * Workspace -> desktop state (format 2). Accounts carry labels only: their keys go into the desktop's keychain from + * its Accounts screen (the desktop never reads the profiles). Project keys in the overrides become the desktop's ids. + */ +export function toDesktopState(ws: Workspace, apps: AppFolder[], now = new Date().toISOString()): DesktopState { + const accounts = accountsOf(ws); + const idOf = new Map(apps.map(a => [a.id, desktopProjectId(a.path)] as const)); + const mapKey = (k: string) => (k.startsWith('project:') && idOf.has(k.slice(8)) ? `project:${idOf.get(k.slice(8))}` : k); + const o = overridesOf(ws, apps); + return { + version: 2, + projects: apps.map(a => ({ id: idOf.get(a.id)!, path: a.path, name: a.name, playAccount: a.playAccount, appleAccount: a.appleAccount, added: now })), + accounts: accounts.map(a => ({ id: a.id, label: a.label ?? a.profile, kind: a.store, created: now, studio: a.studio })), + studios: studiosOf(ws).map(s => ({ id: s.id, name: s.name, color: s.color, logo: null, created: now })), + overrides: { + pairs: o.pairs, unpairs: o.unpairs, + links: o.links.map(l => ({ key: l.key, project: idOf.get(l.project) ?? l.project })), + appStudio: o.appStudio.map(x => ({ key: mapKey(x.key), studio: x.studio })), + ignored: o.ignored.map(mapKey), + }, + }; +} + +/** A profile name for a desktop account: its label as a slug, made unique per store. */ +function profileFor(a: DesktopAccount, taken: Set): string { + const base = (slug(a.label).slice(0, 56) || 'account'); + let name = taken.has(base) ? `${base}-${a.kind}` : base; + for (let i = 2; taken.has(name); i++) name = `${base}-${a.kind}-${i}`; + taken.add(name); + return name; +} + +/** + * Desktop state -> workspace. Folders under `root` become relative paths, others stay absolute. Each account becomes + * a credential profile name (the owner creates ~/.storebound/credentials/.json; the desktop's keychain is + * never read). Account ids are kept, so the overrides' store app keys stay valid. + */ +export function fromDesktopState(state: DesktopState, root: string): { ws: Workspace; profiles: { profile: string; store: Store; label: string }[] } { + const taken = new Set(); + const profile = new Map(state.accounts.map(a => [a.id, profileFor(a, taken)] as const)); + const acc = (a: DesktopAccount): WsAccount => ({ store: a.kind, profile: profile.get(a.id)!, label: a.label, id: a.id }); + const relOf = new Map(state.projects.map(p => { + const r = posix(relative(root, p.path)); + return [p.id, !r || r.startsWith('..') || isAbsolute(r) ? p.path : r] as const; + })); + const proj = (k: string) => (k.startsWith('project:') && relOf.has(k.slice(8)) ? `project:${relOf.get(k.slice(8))}` : k); + const studios: WsStudio[] = state.studios.map(s => ({ id: s.id, name: s.name, ...((STUDIO_COLORS as readonly string[]).includes(s.color) ? { color: s.color as StudioColor } : {}), + accounts: state.accounts.filter(a => a.studio === s.id).map(acc) })); + const ignore: string[] = []; + for (const x of state.overrides?.ignored ?? []) { + if (x.startsWith('account:')) ignore.push(`account:${profile.get(x.slice(8)) ?? x.slice(8)}`); + else ignore.push(proj(x)); + } + const ws: Workspace = { + apps: state.projects.map(p => { + const e: WsAppEntry = { path: relOf.get(p.id)! }; + if (p.name && p.name !== basename(p.path)) e.name = p.name; + if (p.appleAccount && profile.has(p.appleAccount)) e.apple = profile.get(p.appleAccount)!; + if (p.playAccount && profile.has(p.playAccount)) e.play = profile.get(p.playAccount)!; + return Object.keys(e).length === 1 ? e.path : e; + }), + studios, + accounts: state.accounts.filter(a => !a.studio || !state.studios.some(s => s.id === a.studio)).map(acc), + ignore, + overrides: { + pairs: state.overrides?.pairs ?? [], unpairs: state.overrides?.unpairs ?? [], + links: (state.overrides?.links ?? []).map(l => ({ key: l.key, project: relOf.get(l.project) ?? l.project })), + appStudio: (state.overrides?.appStudio ?? []).map(x => ({ key: proj(x.key), studio: x.studio })), + }, + }; + return { ws, profiles: state.accounts.map(a => ({ profile: profile.get(a.id)!, store: a.kind, label: a.label })) }; +} + +/** + * Adds the workspace's desktop state to an existing desktop state: folders by path (an existing project keeps its id + * and accounts), accounts and studios by id (existing ones win), overrides as a union. Nothing is removed. + */ +export function mergeDesktopState(cur: DesktopState, add: DesktopState): { state: DesktopState; added: { projects: number; accounts: number; studios: number; overrides: number } } { + const idMap = new Map(); + const projects = [...cur.projects]; + let np = 0; + for (const p of add.projects) { + const have = projects.find(x => x.path === p.path); + if (have) idMap.set(p.id, have.id); + else { projects.push(p); np++; } + } + const remap = (k: string) => (k.startsWith('project:') && idMap.has(k.slice(8)) ? `project:${idMap.get(k.slice(8))}` : k); + const accounts = [...cur.accounts]; + let na = 0; + for (const a of add.accounts) if (!accounts.some(x => x.id === a.id)) { accounts.push(a); na++; } + const studios = [...cur.studios]; + let ns = 0; + for (const s of add.studios) if (!studios.some(x => x.id === s.id)) { studios.push(s); ns++; } + const co = { ...NO_OVERRIDES, ...cur.overrides }; + const ao = add.overrides; + const uniq = (xs: T[]) => { const seen = new Set(); return xs.filter(x => { const k = JSON.stringify(x); if (seen.has(k)) return false; seen.add(k); return true; }); }; + const overrides: Overrides = { + pairs: uniq([...co.pairs, ...ao.pairs]), + unpairs: uniq([...co.unpairs, ...ao.unpairs]), + links: uniq([...co.links, ...ao.links.map(l => ({ key: l.key, project: idMap.get(l.project) ?? l.project }))]), + appStudio: uniq([...co.appStudio, ...ao.appStudio.map(x => ({ key: remap(x.key), studio: x.studio })).filter(x => !co.appStudio.some(y => y.key === x.key))]), + ignored: uniq([...co.ignored, ...ao.ignored.map(remap)]), + }; + const count = (o: Overrides) => o.pairs.length + o.unpairs.length + o.links.length + o.appStudio.length + o.ignored.length; + return { state: { ...cur, version: Math.max(cur.version ?? 1, 2), projects, accounts, studios, overrides }, added: { projects: np, accounts: na, studios: ns, overrides: count(overrides) - count(co) } }; +} diff --git a/cli/mcp-tools.ts b/cli/mcp-tools.ts index 9b7e2aa2..e9892103 100644 --- a/cli/mcp-tools.ts +++ b/cli/mcp-tools.ts @@ -28,6 +28,7 @@ const only: JsonSchema = { type: 'string', description: 'Comma-separated ids / l const lang: JsonSchema = { type: 'string', description: 'Comma-separated language ids from the config (default: all)' }; const variant: JsonSchema = { type: 'string', pattern: '^[a-z0-9][a-z0-9-]*$', description: 'A/B variant id from shots.variants (default: the base renders)' }; const source: JsonSchema = { type: 'string', enum: ['web', 'ios-sim', 'android-emu', 'folder'], description: 'Default: from the config' }; +const APP_NAMES = '^[^,\\x00-\\x1f]{1,120}(,[^,\\x00-\\x1f]{1,120}){0,99}$'; const opt = (flag: string, v: unknown): string[] => (v === undefined || v === null || v === '' ? [] : [`--${flag}`, String(v)]); const flag = (name: string, v: unknown): string[] => (v === true ? [`--${name}`] : []); @@ -211,6 +212,25 @@ export const TOOLS: ToolDef[] = [ props: { dir: { type: 'string', pattern: '^(?!/)(?!.*\\.\\.)(?!.*,/)[A-Za-z0-9._ /,-]{1,400}$', description: 'fastlane folder(s) relative to the project, comma-separated (default: fastlane, ios/fastlane, android/fastlane)' }, profile: { type: 'string', enum: ['app', 'game', 'subscription-app'], description: 'Default: game for the GAMES category, else app' } }, args: i => [...opt('dir', i.dir), ...opt('profile', i.profile)] }, + { name: 'workspace_list', title: 'Workspace apps', command: ['ws', 'list'], write: false, network: false, + description: 'Offline: the apps of the storebound.workspace.json above the project (app folders from its globs, store-only apps from `ws apps import`), paired across iOS and Android by the desktop\'s rules, with studios and accounts (credential profile names and whether their keys are there; never a key).', + props: { all: { type: 'boolean', default: false, description: 'Also the ignored apps' }, json: { type: 'boolean', default: false } }, + args: i => [...flag('all', i.all), ...flag('json', i.json)] }, + { name: 'workspace_status', title: 'Workspace portfolio status', command: ['ws', 'status'], write: false, network: true, + description: 'Read-only portfolio table of every app in the workspace across both stores: the version that reaches users and the next one (build > testing > review > live > rollout %), catalog parity, offline check, read in parallel with each account\'s credential profile.', + props: { apps: { type: 'string', pattern: APP_NAMES, description: 'Comma-separated app names or folders (default: all)' }, + offline: { type: 'boolean', default: false, description: 'Skip the store reads' }, json: { type: 'boolean', default: false } }, + args: i => [...opt('apps', i.apps), ...flag('offline', i.offline), ...flag('json', i.json)] }, + { name: 'release_status', title: 'Release trains', command: ['release', 'status'], write: false, network: true, + description: 'Read-only release trains: per app, both stores on one train per version (build > testing > review > live > rollout %), the version that reaches users and the next one; versions lists every version. In an app folder that app, in a workspace every app (or app).', + props: { app: { type: 'string', pattern: APP_NAMES, description: 'Workspace app names (comma-separated)' }, + versions: { type: 'boolean', default: false }, json: { type: 'boolean', default: false } }, + args: i => [...opt('app', i.app), ...flag('versions', i.versions), ...flag('json', i.json)] }, + { name: 'release_plan', title: 'Release plan for a version', command: ['release', 'plan'], write: false, network: true, + description: 'Read-only: what is left for one version on each store, in fix order: config problems (check), the version on the store, store blockers (validate), the next move (owner steps such as submitting or releasing are named, never done), warnings.', + props: { version: { type: 'string', pattern: '^\\d+(\\.\\d+){0,3}$' }, app: { type: 'string', pattern: APP_NAMES, description: 'Workspace app names (comma-separated)' }, + no_validate: { type: 'boolean', default: false, description: 'Skip the store readiness read' }, json: { type: 'boolean', default: false } }, + required: ['version'], args: i => [String(i.version), ...opt('app', i.app), ...flag('no-validate', i.no_validate), ...flag('json', i.json)] }, ]; /** CLI flags / commands that must never be reachable through MCP. Tests assert none of the tools can produce them. */ diff --git a/cli/mcp.ts b/cli/mcp.ts index 04a552db..25238083 100644 --- a/cli/mcp.ts +++ b/cli/mcp.ts @@ -47,6 +47,7 @@ export const INSTRUCTIONS = [ 'Write tools default to dry_run: show the dry run to the owner and only call again with dry_run false after they agree.', 'Nothing here submits for review, releases, cancels, deletes or sends anything public (review replies, tester invitations, price changes, experiment starts): tell the owner which terminal command or console click does that.', 'Credentials come only from env or .storebound/ in the project; never ask for keys in chat or write them into files.', + 'Many apps: workspace_list / workspace_status read the storebound.workspace.json above the project; release_status and release_plan show both stores on one train per version.', 'Run `check` (offline) and `validate` (read-only) before writes. Long uploads (images, screenshots) are better run in a terminal with a log.', ].join(' '); diff --git a/cli/release.ts b/cli/release.ts new file mode 100644 index 00000000..7b4da70f --- /dev/null +++ b/cli/release.ts @@ -0,0 +1,171 @@ +// `storebound release`: release trains from the terminal, read-only. The same stages as the desktop's Releases tab +// (cli/lib/train.ts, cli/lib/app-status.ts are shared with it). +// release status [--app a,b] [--versions] [--json] +// per app: the version that reaches users and the next one, both stores on one train +// (build -> testing -> review -> live -> rollout %); --versions lists every version the stores know +// release plan [--app a] [--no-validate] [--json] +// what is left for on each store, in fix order: config problems (check), the version on the store, +// store blockers (validate), the next move (owner steps are named, never done), warnings +// In an app folder: that app (its own credentials). In a workspace (storebound.workspace.json above): every app, or +// --app a,b, with the credential profiles of the workspace. +import { existsSync } from 'node:fs'; +import { dirname, join, resolve } from 'node:path'; +import type { Args } from './lib/args'; +import { emptyStatus, fillAppStatus, lastLine, pool } from './lib/app-status'; +import { CONFIG_NAMES } from './lib/config'; +import type { AppStatus, ReleaseTrain } from './lib/desktop-protocol'; +import { log, printJson, warn } from './lib/log'; +import { runCommand, type RunResult } from './lib/runner'; +import { textTable } from './lib/table'; +import { laneOf, laneText, type PlanStep, releasePlan, type ReleasePlan, trackText, versionHistory } from './lib/train'; +import type { Finding } from './lib/validate-rules'; +import { findWorkspace, loadWorkspace, resolveApps, selectApps } from './lib/workspace'; +import { appDir, appEnv, workspaceApps } from './workspace'; + +interface Target { name: string; dir: string; virtual: boolean; env: Record; problems: string[] } + +const USAGE = 'usage: storebound release status [--app a,b] [--versions] [--json] | release plan [--app a] [--no-validate] [--json]'; + +function configDir(from: string): string | null { + for (let d = resolve(from); ; d = dirname(d)) { + if (CONFIG_NAMES.some(n => existsSync(join(d, n)))) return d; + if (dirname(d) === d) return null; + } +} + +/** The apps to read: this app folder, or the workspace's apps (filtered by --app). */ +async function targets(args: Args): Promise<{ list: Target[]; concurrency: number }> { + const cwd = process.cwd(); + const here = configDir(cwd); + const wsFile = findWorkspace(cwd, args.get('workspace')); + // an app folder wins unless --app asks for the workspace (or the workspace file is closer than the config) + if (here && !args.get('app') && (!wsFile || dirname(wsFile).length <= here.length)) { + return { list: [{ name: here.split(/[\\/]/).pop() ?? here, dir: here, virtual: false, env: {}, problems: [] }], concurrency: 1 }; + } + if (!wsFile) throw new Error('no storebound.config.ts here and no storebound.workspace.json above (run it in an app folder or a workspace)'); + const l = await loadWorkspace(cwd, args.get('workspace')); + const n = Math.min(8, Math.max(1, l.ws.concurrency ?? 4)); + const { apps: folders } = resolveApps(l); + const summaries = new Map(); + await pool(folders, n, async f => { + const r = await runCommand(['inspect', '--json'], { cwd: f.path, machine: true }).result; + if (r.code === 0 && r.data) summaries.set(f.id, r.data as AppStatus['summary']); + }); + const { apps, accounts } = workspaceApps(l, summaries); + const { picked, unknown } = selectApps(apps.filter(a => !a.ignored), args.list('app')); + if (unknown.length) throw new Error(`--app: no app named ${unknown.join(', ')} (storebound ws list shows the names)`); + return { list: picked.map(a => { const { env, problems } = appEnv(a.unified, accounts); return { name: a.name, dir: appDir(a), virtual: a.virtual, env, problems }; }), concurrency: n }; +} + +const exec = (env: Record) => (argv: string[], cwd: string): Promise => runCommand(argv, { cwd, env, machine: true }).result; + +async function readLive(t: Target): Promise { + const e = emptyStatus(t.dir); + if (t.virtual) e.virtual = true; + try { await fillAppStatus(e, t.dir, { live: true, virtual: t.virtual, exec: exec(t.env) }); } catch (err) { e.errors.push((err as Error).message); } + if (e.summary?.name) t.name = e.summary.name; + return e; +} + +export interface TrainRow { app: string; version: string; which: 'current' | 'next' | 'other'; ios: string; android: string } + +/** The trains of one app to show: current + next (the desktop's portfolio), or every version. */ +export function trainsOf(s: AppStatus, all: boolean): { which: TrainRow['which']; train: ReleaseTrain }[] { + if (all) { + const cur = s.release.current?.version, next = s.release.next?.version; + return versionHistory(s.release.all ?? []).map(t => ({ which: t.version === cur ? 'current' as const : t.version === next ? 'next' as const : 'other' as const, train: t })); + } + return [...(s.release.current ? [{ which: 'current' as const, train: s.release.current }] : []), ...(s.release.next ? [{ which: 'next' as const, train: s.release.next }] : [])]; +} + +const cell = (store: 'ios' | 'android', t: ReleaseTrain, s: AppStatus): string => { + if (s.storeErrors[store]) return 'unreadable'; + const on = store === 'ios' ? s.summary?.apple : s.summary?.play; + if (!on) return ''; + const r = t[store]; + if (!r) return '-'; + const extra = [r.build ? `build ${r.build}` : '', store === 'android' && r.track && r.track !== 'production' ? r.track : ''].filter(Boolean).join(', '); + return `${laneText(laneOf(store, r))}${extra ? ` (${extra})` : ''}`; +}; + +async function status(args: Args): Promise { + const { list, concurrency } = await targets(args); + const all = args.has('versions'); + const read = await pool(list, concurrency, async t => ({ t, s: await readLive(t) })); + if (args.has('json')) { + printJson({ apps: read.map(({ t, s }) => ({ + app: t.name, folder: t.virtual ? null : t.dir, errors: [...t.problems, ...s.errors], storeErrors: s.storeErrors, + trains: trainsOf(s, all).map(({ which, train }) => ({ which, version: train.version, ios: train.ios, android: train.android, + lanes: { ios: laneOf('ios', train.ios), android: laneOf('android', train.android) } })), + })), at: new Date().toISOString() }); + } else { + const rows: string[][] = []; + for (const { t, s } of read) { + const trains = trainsOf(s, all); + const unread = Object.keys(s.storeErrors).length > 0; + if (!trains.length) rows.push([t.name, '', '', s.errors[0] ? `error: ${s.errors[0]}` : unread ? 'not read (see the warnings)' : 'no version on either store yet', '']); + for (const { which, train } of trains) rows.push([t.name, train.version, which === 'other' ? '' : which, cell('ios', train, s), cell('android', train, s)]); + for (const p of [...t.problems, ...s.errors.slice(trains.length ? 0 : 1), ...Object.entries(s.storeErrors).map(([k, v]) => `${k}: ${v}`)]) warn('release', `${t.name}: ${p}`); + } + console.log(textTable(['app', 'version', 'train', 'App Store', 'Google Play'], rows)); + log('release', 'stages: build > testing > review > live > rollout (%); owner steps (submit, release, rollout) stay with the owner'); + } + if (read.some(({ s }) => s.errors.length || s.storeErrors.ios || s.storeErrors.android)) process.exitCode = 1; +} + +const KIND: Record = { config: 'CONFIG ', store: 'STORE ', blocker: 'BLOCKER', owner: 'OWNER ', wait: 'wait ', warning: 'warn ', done: 'done ' }; + +export function formatPlan(app: string, p: ReleasePlan): string { + const out: string[] = [`${app} ${p.version}${p.done ? ': live everywhere, nothing left' : ''}`]; + let i = 0; + const line = (s: PlanStep) => ` ${String(++i).padStart(2)}. ${KIND[s.kind]} ${s.text}${s.fix ? `\n -> ${s.fix}` : ''}`; + if (p.shared.length) { out.push(' both stores (fix first):'); out.push(...p.shared.map(line)); } + for (const sp of [p.ios, p.android]) { + if (!sp) continue; + out.push(` ${sp.store === 'ios' ? 'App Store' : 'Google Play'}: ${sp.release ? `${laneText(sp.lane)} [${trackText(sp.lane)}]` : 'not on the store'}`); + out.push(...sp.steps.map(line)); + } + for (const u of p.unknown) out.push(` unknown: ${u}`); + return out.join('\n'); +} + +async function plan(args: Args): Promise { + const version = args._[1]; + if (!version || !/^\d+(\.\d+){0,3}$/.test(version)) throw new Error('release plan , e.g. release plan 2.4.0'); + const { list, concurrency } = await targets(args); + const plans = await pool(list, concurrency, async t => { + const s = await readLive(t); + const check = s.check ? { problems: s.check.problems, warnings: s.check.warnings } : null; + let validate: Finding[] | null = null; + // validate only while something is not yet submitted on a store (it reads the editable version / the Play edit) + const pre = releasePlan({ version, platforms: { ios: !!s.summary?.apple, android: !!s.summary?.play }, check, validate: [], releases: s.release.all ?? null, storeErrors: s.storeErrors }); + const needs = [pre.ios, pre.android].some(x => x && !x.done && (!x.release || ['draft', 'testing', 'rejected', 'other'].includes(x.release.phase))); + if (needs && !args.has('no-validate') && !t.virtual && s.summary) { + if (!args.has('json')) log('release', `${t.name}: validate (read-only, both stores)`); + const r = await exec(t.env)(['validate', '--json', '--no-health'], t.dir); + const d = r.data as { findings?: Finding[] } | undefined; + if (d?.findings) validate = d.findings; + else s.errors.push(`validate: ${lastLine(r.out) || `exit ${r.code}`}`); + } else if (!needs) validate = []; + const p = releasePlan({ version, platforms: { ios: !!s.summary?.apple, android: !!s.summary?.play }, check, validate, releases: s.summary ? s.release.all ?? null : null, storeErrors: s.storeErrors }); + if (args.has('no-validate') && needs) p.unknown = p.unknown.map(u => (u.startsWith('store readiness') ? 'store readiness not checked (--no-validate)' : u)); + return { t, s, p }; + }); + if (args.has('json')) printJson({ version, apps: plans.map(({ t, s, p }) => ({ app: t.name, folder: t.virtual ? null : t.dir, errors: [...t.problems, ...s.errors], plan: p })) }); + else { + for (const { t, s, p } of plans) { + console.log(formatPlan(t.name, p)); + for (const e of [...t.problems, ...s.errors]) warn('release', `${t.name}: ${e}`); + console.log(''); + } + } + if (plans.some(({ s }) => s.errors.length)) process.exitCode = 1; +} + +export async function run(args: Args): Promise { + const sub = args._[0]; + if (sub === 'status') return status(args); + if (sub === 'plan') return plan(args); + console.error(USAGE); + process.exit(2); +} diff --git a/cli/serve.ts b/cli/serve.ts index f6fe3f5d..4abde32c 100644 --- a/cli/serve.ts +++ b/cli/serve.ts @@ -19,7 +19,7 @@ import { CONFIG_NAMES } from './lib/config'; import { DESKTOP_PROTOCOL, ERR, type AppStatus, type MethodDescriptor, type PortfolioResult, type ProjectSummary, type ToolResult, type VirtualProject, } from './lib/desktop-protocol'; -import { appIdentity, appleProductIds, appleReleases, catalogParity, playProductIds, playReleases, releaseTrains } from './lib/portfolio'; +import { emptyStatus, fillAppStatus, lastLine } from './lib/app-status'; import { RENDER_FILE_RE } from './lib/project-files'; import { detectTools } from './lib/tools'; import { compiled, pickCallEnv, runCommand, type RunOptions, type Running } from './lib/runner'; @@ -39,8 +39,8 @@ const lang = { type: 'string', pattern: '^[A-Za-z0-9_-]{1,20}(,[A-Za-z0-9_-]{1,2 export const PRICE_SHEET_RE = /^(?!-)[^\x00-\x1f]{1,1000}\.[cC][sS][vV]$/; /** MCP tools the desktop profile leaves out (sending builds to testers on Play, release state changes: the window has - * the owner actions for those). */ -export const DESKTOP_EXCLUDED = new Set(['play_release_testing', 'apple_phased_release']); + * the owner actions for those; workspace and release-train reads: the window has portfolio.status for those). */ +export const DESKTOP_EXCLUDED = new Set(['play_release_testing', 'apple_phased_release', 'workspace_list', 'workspace_status', 'release_status', 'release_plan']); /** Words no desktop method name may contain. */ export const FORBIDDEN_METHOD_WORDS = /submit|release|publish|rollout|resume|complete|send|start|stop|cancel|delete|remove|invite/i; @@ -420,7 +420,7 @@ export class Session { const raw = list[i] as unknown; // a store-only app: { key: "store:...", virtual: { name, apple?, play? } } const virt = typeof raw === 'object' && raw !== null && !Array.isArray(raw) ? raw as { key?: unknown; virtual?: unknown } : null; - const e: AppStatus = { project: virt ? String(virt.key ?? '') : String(raw), ok: false, app: null, summary: null, check: null, release: { source: 'none', current: null, next: null }, catalog: null, storeErrors: {}, errors: [] }; + const e: AppStatus = emptyStatus(virt ? String(virt.key ?? '') : String(raw)); out[i] = e; try { let dir: string; @@ -429,28 +429,7 @@ export class Session { dir = virtualDir(checkVirtual(virt.virtual)); e.virtual = true; } else { dir = checkProject(raw); e.project = dir; } - const summary = e.summary = await this.inspect(dir, env, id); - e.app = appIdentity(summary); - e.catalog = catalogParity(summary); - if (virt) e.check = { ok: true, problems: [], warnings: [] }; - else { - const c = await this.track(id, this.run(['check', '--json'], { cwd: dir, env, machine: true })).result; - const cd = c.data as { ok?: boolean; problems?: string[]; warnings?: string[] } | undefined; - e.check = cd ? { ok: !!cd.ok, problems: cd.problems ?? [], warnings: cd.warnings ?? [] } : { ok: false, problems: [lastLine(c.out) || `check exit ${c.code}`], warnings: [] }; - } - if (live) { - const store = async (argv: string[]): Promise<{ data?: unknown; error?: string }> => { - const r = await this.track(id, this.run(argv, { cwd: dir, env, machine: true })).result; - return r.code === 0 && r.data !== undefined ? { data: r.data } : { error: lastLine(r.out) || `exit ${r.code}` }; - }; - const [apple, play] = await Promise.all([summary.apple ? store(['apple', 'status', '--json']) : undefined, summary.play ? store(['play', 'status', '--json']) : undefined]); - if (apple?.error) e.storeErrors.ios = apple.error; - if (play?.error) e.storeErrors.android = play.error; - const ios = apple?.data ? appleReleases(apple.data) : [], android = play?.data ? playReleases(play.data) : []; - e.release = { source: 'live', ...releaseTrains(ios, android), all: [...ios, ...android] }; - e.catalog = catalogParity(summary, apple?.data ? appleProductIds(apple.data) : undefined, play?.data ? playProductIds(play.data) : undefined); - } - e.ok = e.check.ok && !e.storeErrors.ios && !e.storeErrors.android && (e.catalog?.ok ?? true); + await fillAppStatus(e, dir, { live, virtual: !!virt, exec: (argv, cwd) => this.track(id, this.run(argv, { cwd, env, machine: true })).result }); } catch (err) { if (this.cancelled.has(id)) throw err; e.errors.push((err as Error).message); @@ -468,7 +447,6 @@ export class Session { /** Store target keys of store-only apps ("store:ios:::;android::"). */ export const STORE_KEY_RE = /^store:[A-Za-z0-9:;._-]{1,400}$/; -const lastLine = (s: string): string => s.trim().split('\n').filter(Boolean).at(-1)?.replace(/^error:\s*/, '') ?? ''; /** Optional local tools with versions; app-managed copies (STOREBOUND_TOOL_PATH / STOREBOUND_CHROME) included. */ export function localTools(): Json { diff --git a/cli/workspace.ts b/cli/workspace.ts new file mode 100644 index 00000000..0aad10a1 --- /dev/null +++ b/cli/workspace.ts @@ -0,0 +1,450 @@ +// `storebound ws`: many apps and studios from one folder (storebound.workspace.json; model: cli/lib/workspace.ts). +// ws init [--dry] [--force] find the app folders below and write storebound.workspace.json +// ws list [--all] [--json] apps (folders + store-only apps from `ws apps import`), studios, accounts +// ws status [--offline] [--apps a,b] [--json] portfolio table: apps x stores (release trains, catalog, check), read +// in parallel (concurrency from the workspace, default 4) +// ws check | ws validate [--apps a,b] [--json] the offline check / read-only store readiness of every app +// ws run [args] [--apps a,b | --all] [--apply] +// any read command per app; write commands run as dry runs unless +// --apply; submit / release / rollout / send / start / stop never +// ws apps import --account [--json] the apps the account sees -> local cache, paired with the folders +// (the desktop's rules: cli/lib/identity.ts) +// ws desktop export [--out f | --merge [--apply]] the workspace as the desktop app's state (labels, never keys) +// ws desktop import [--state f] [--out f] [--dry] [--force] +// the desktop's studios, accounts, folders and overrides -> workspace +// Credentials: per account a credential profile (cli/lib/credentials.ts), handed to each app's child command as env. +// Nothing here prints a secret. +import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join, relative, resolve, sep } from 'node:path'; +import type { Args } from './lib/args'; +import { emptyStatus, fillAppStatus, lastLine, pool } from './lib/app-status'; +import { CONFIG_NAMES } from './lib/config'; +import { PROFILE_KEYS, profileEnv, profileStatus } from './lib/credentials'; +import type { AppStatus, AppsListResult } from './lib/desktop-protocol'; +import { buildApps, type UnifiedApp } from './lib/identity'; +import { log, printJson, warn } from './lib/log'; +import { runCommand, type RunResult } from './lib/runner'; +import { textTable } from './lib/table'; +import { laneOf, laneText } from './lib/train'; +import { + type Account, accountsOf, type AppFolder, cacheFile, type DesktopState, desktopStateFile, fromDesktopState, type LoadedWorkspace, loadWorkspace, mergeDesktopState, + overridesOf, readStoreApps, resolveApps, selectApps, type Store, type StoreAppsCache, studiosOf, toDesktopState, type Workspace, WORKSPACE_NAMES, +} from './lib/workspace'; +import { FORBIDDEN_ARGS, TOOLS } from './mcp-tools'; +import { checkVirtual, VIRTUAL_READS, virtualDir } from './serve'; + +/** One app of the workspace: a folder or a store-only app, with the credentials env its commands get. */ +export interface WsApp { key: string; rel: string; name: string; studio: string | null; dir: string | null; virtual: boolean; ignored: boolean; unified: UnifiedApp; summary: AppStatus['summary'] } + +const USAGE = `usage: storebound ws | apps import --account | desktop export | desktop import> + common: --workspace --apps a,b --json --concurrency 1-8`; + +// ---- building blocks (exported for tests) ---- + +/** Credentials env for one app: the apple account's ASC_* and the play account's PLAY_* from their profiles. */ +export function appEnv(u: UnifiedApp, accounts: Account[]): { env: Record; problems: string[] } { + const env: Record = { STOREBOUND_PROFILE: '' }; + const problems: string[] = []; + const profileOf = (store: Store): string | null => { + const fromFolder = store === 'apple' ? u.project?.appleProfile : u.project?.playProfile; + if (fromFolder) return fromFolder; + const ref = store === 'apple' ? u.ios : u.android; + return ref ? accounts.find(a => a.id === ref.account)?.profile ?? null : null; + }; + for (const store of ['apple', 'play'] as const) { + const p = profileOf(store); + if (!p) continue; + try { + const all = profileEnv(p); + const keys = store === 'apple' ? ['ASC_KEY_ID', 'ASC_ISSUER_ID', 'ASC_P8'] : ['PLAY_SERVICE_ACCOUNT']; + const got = keys.filter(k => all[k]); + if (!got.length) problems.push(`credential profile ${p}: no ${store === 'apple' ? 'ASC_KEY_ID / ASC_ISSUER_ID' : 'PLAY_SERVICE_ACCOUNT'}`); + for (const k of got) env[k] = all[k]!; + } catch (e) { problems.push((e as Error).message); } + } + return { env, problems }; +} + +/** Folder apps and store-only apps of the workspace, paired by the desktop's rules. */ +export function workspaceApps(l: LoadedWorkspace, summaries: Map): { apps: WsApp[]; accounts: Account[]; warnings: string[] } { + const { apps: folders, warnings } = resolveApps(l); + const accounts = accountsOf(l.ws); + const unified = buildApps({ + projects: folders, summaryOf: p => summaries.get(p.id) ?? null, accounts, + storeApps: readStoreApps(l.root, accounts), overrides: overridesOf(l.ws, folders), + }); + const apps: WsApp[] = unified.map(u => ({ + key: u.key, rel: u.project ? u.project.rel : u.target, name: u.project ? (summaries.get(u.project.id)?.name ?? u.name) : u.name, studio: u.studio, + dir: u.project?.path ?? null, virtual: !u.project, ignored: u.ignored, unified: u, summary: u.project ? summaries.get(u.project.id) ?? null : null, + })); + return { apps, accounts, warnings }; +} + +/** The directory a command for this app runs in: its folder, or a generated config for a store-only app. */ +export function appDir(a: WsApp): string { + if (a.dir) return a.dir; + const u = a.unified; + return virtualDir(checkVirtual({ name: u.name, ...(u.ios ? { apple: { bundleId: u.ios.app.bundleId, appId: u.ios.app.id } } : {}), ...(u.android ? { play: { packageName: u.android.app.id } } : {}) })); +} + +const words = (argv: string[]): string[] => { const w: string[] = []; for (const a of argv) { if (a.startsWith('-')) break; w.push(a); } return w; }; + +/** + * Whether `ws run` may run this command, and whether it writes (then it gets --dry unless --apply). Allowed: the MCP + * tool set (cli/mcp-tools.ts) plus `inspect`; never anything that submits, releases, rolls out, sends, starts / stops, + * removes or invites, and never --yes. + */ +export function runPolicy(argv: string[]): { ok: true; write: boolean } | { ok: false; why: string } { + const w = words(argv); + if (!w.length) return { ok: false, why: 'no command (e.g. ws run validate --play)' }; + const bad = argv.find(a => FORBIDDEN_ARGS.includes(a) || ['--manual-release', 'submit', 'publish', 'distribute', '--phased'].includes(a)); + if (bad) return { ok: false, why: `"${bad}" is an owner step: run it in the app folder yourself` }; + if (w.includes('release') || w.includes('rollout')) return { ok: false, why: 'release and rollout commands are owner steps: run them in the app folder yourself' }; + if (w[0] === 'ws') return { ok: false, why: 'ws inside ws run' }; + if (w.length === 1 && w[0] === 'inspect') return { ok: true, write: false }; + const cmdWords = (c: string[]) => words(c); + const matches = TOOLS.filter(t => { const cw = cmdWords(t.command); return cw.length <= w.length && cw.every((x, i) => w[i] === x); }); + if (!matches.length) return { ok: false, why: `${w.join(' ')}: not a command ws run offers (read commands and dry runs of the MCP tool set, plus inspect)` }; + const longest = Math.max(...matches.map(t => cmdWords(t.command).length)); + const same = matches.filter(t => cmdWords(t.command).length === longest); + // the variant whose extra flags are all present (health --weekly), else the plain one + const variant = same.filter(t => t.command.slice(longest).every(f => argv.includes(f))).sort((a, b) => b.command.length - a.command.length)[0] ?? same[0]!; + const write = variant.write || (variant.args?.({}) ?? []).includes('--dry'); + return { ok: true, write }; +} + +// ---- output helpers ---- + +const storeCell = (s: AppStatus, store: 'ios' | 'android'): string => { + const err = s.storeErrors[store]; + if (err) return 'unreadable'; + const has = store === 'ios' ? s.summary?.apple : s.summary?.play; + if (!has) return ''; + if (s.release.source !== 'live') return 'offline'; + const r = s.release.current?.[store] ?? null; + return r ? `${r.version} ${laneText(laneOf(store, r))}` : 'not live'; +}; +const nextCell = (s: AppStatus): string => { + const n = s.release.next; + if (!n) return ''; + const part = (store: 'ios' | 'android') => { const r = n[store]; return r ? `${store === 'ios' ? 'iOS' : 'Android'} ${laneText(laneOf(store, r))}` : ''; }; + return `${n.version}: ${[part('ios'), part('android')].filter(Boolean).join(', ')}`; +}; +const catalogCell = (s: AppStatus): string => { + const c = s.catalog; + if (!c) return ''; + if (!c.products && !c.subscriptions) return '-'; + const issues = c.onlyIos.length + c.onlyAndroid.length + c.missingIos.length + c.missingAndroid.length; + return `${c.products + c.subscriptions} items${c.checked === 'live' ? (issues ? `, ${issues} mismatched` : ', in parity') : ''}`; +}; + +async function loadAll(args: Args): Promise { + return loadWorkspace(process.cwd(), args.get('workspace')); +} + +function concurrencyOf(args: Args, ws: Workspace): number { + const n = args.num('concurrency', ws.concurrency ?? 4); + if (!Number.isInteger(n) || n < 1 || n > 8) throw new Error('--concurrency: 1 to 8'); + return n; +} + +function exec(env: Record) { + return (argv: string[], cwd: string): Promise => runCommand(argv, { cwd, env, machine: true }).result; +} + +/** Offline summaries of the folder apps (inspect --json), for pairing and names. */ +async function summariesOf(folders: AppFolder[], n: number): Promise> { + const m = new Map(); + await pool(folders, n, async f => { + const r = await runCommand(['inspect', '--json'], { cwd: f.path, machine: true }).result; + if (r.code === 0 && r.data) m.set(f.id, r.data as AppStatus['summary']); + }); + return m; +} + +async function prepared(args: Args, o: { includeIgnored?: boolean } = {}) { + const l = await loadAll(args); + const n = concurrencyOf(args, l.ws); + const { apps: folders } = resolveApps(l); + const summaries = await summariesOf(folders, n); + const { apps, accounts, warnings } = workspaceApps(l, summaries); + const visible = apps.filter(a => o.includeIgnored || !a.ignored); + const { picked, unknown } = selectApps(visible, args.list('apps')); + if (unknown.length) throw new Error(`--apps: no app named ${unknown.join(', ')} (ws list shows the names)`); + return { l, n, apps: picked, all: apps, accounts, warnings }; +} + +// ---- commands ---- + +/** App folders below `root` (depth <= 4), as the globs ws init writes: "parent/*" when a folder holds several. */ +export function discoverApps(root: string, depth = 4): string[] { + const found: string[] = []; + const walk = (dir: string, d: number) => { + if (CONFIG_NAMES.some(n => existsSync(join(dir, n))) && dir !== root) { found.push(relative(root, dir).split(sep).join('/')); return; } + if (d === 0) return; + let entries: string[] = []; + try { entries = readdirSync(dir); } catch { return; } + for (const e of entries.sort()) { + if (e.startsWith('.') || e === 'node_modules' || e === 'build' || e === 'dist') continue; + const p = join(dir, e); + try { if (statSync(p).isDirectory()) walk(p, d - 1); } catch { /* unreadable */ } + } + }; + walk(root, depth); + const byParent = new Map(); + for (const f of found) { const parent = f.includes('/') ? f.slice(0, f.lastIndexOf('/')) : ''; byParent.set(parent, [...(byParent.get(parent) ?? []), f]); } + const out: string[] = []; + for (const [parent, list] of byParent) out.push(...(list.length > 1 ? [parent ? `${parent}/*` : '*'] : list)); + return out.sort(); +} + +async function init(args: Args): Promise { + const root = process.cwd(); + const file = join(root, 'storebound.workspace.json'); + const existing = WORKSPACE_NAMES.map(n => join(root, n)).find(existsSync); + if (existing && !args.has('force')) throw new Error(`${existing} exists (--force overwrites)`); + const apps = discoverApps(root); + const ws: Workspace = { apps, studios: [], accounts: [], ignore: [], overrides: { pairs: [], unpairs: [], links: [], appStudio: [] }, concurrency: 4 }; + const text = JSON.stringify(ws, null, 2) + '\n'; + if (args.has('dry')) { console.log(text); log('ws', `dry run: ${file} not written (${apps.length} app folder pattern(s))`); return; } + writeFileSync(file, text); + const gi = join(root, '.gitignore'); + const giText = existsSync(gi) ? readFileSync(gi, 'utf8') : ''; + if (!/^\.storebound\/?$/m.test(giText)) writeFileSync(gi, giText + (giText && !giText.endsWith('\n') ? '\n' : '') + '.storebound/\n'); + log('ws', `wrote ${file}: ${apps.length ? apps.join(', ') : 'no app folders found yet (add them under "apps")'}`); + log('ws', 'next: add studios and accounts by credential profile (~/.storebound/credentials/.json), then storebound ws list'); +} + +async function list(args: Args): Promise { + const { l, apps, accounts, warnings } = await prepared(args, { includeIgnored: args.has('all') }); + const studios = studiosOf(l.ws); + const sName = (id: string | null) => (id ? studios.find(s => s.id === id)?.name ?? id : ''); + const profiles = accounts.map(a => ({ ...profileStatus(a.profile), store: a.store, id: a.id, studio: a.studio, label: a.label ?? null })); + if (args.has('json')) { + printJson({ workspace: l.file, studios, accounts: profiles, + apps: apps.map(a => ({ name: a.name, key: a.key, folder: a.dir, studio: a.studio, pairing: a.unified.pairing, ignored: a.ignored, + ios: a.unified.ios ? { account: a.unified.ios.account, appId: a.unified.ios.app.id, bundleId: a.unified.ios.app.bundleId } : null, + android: a.unified.android ? { account: a.unified.android.account, packageName: a.unified.android.app.id } : null, + accounts: { apple: a.unified.project?.appleProfile ?? null, play: a.unified.project?.playProfile ?? null } })), + warnings }); + return; + } + log('ws', `${l.file}: ${apps.length} app(s), ${studios.length} studio(s), ${accounts.length} account(s)`); + console.log(textTable(['app', 'studio', 'folder', 'iOS', 'Android', 'accounts', 'pairing'], apps.map(a => { + const u = a.unified; + // the config's ids; "(store app )" once `ws apps import` found the app on the account + const ios = [a.summary?.apple?.bundleId ?? u.ios?.app.bundleId, u.ios ? `(store ${u.ios.app.id})` : ''].filter(Boolean).join(' '); + const android = [a.summary?.play?.packageName ?? u.android?.app.id, u.android ? '(store)' : ''].filter(Boolean).join(' '); + return [a.name + (a.ignored ? ' (ignored)' : ''), sName(a.studio), a.dir ? a.rel : '(store only)', ios, android, + [u.project?.appleProfile, u.project?.playProfile].filter(Boolean).join(', '), u.pairing]; + }))); + if (profiles.length) { + console.log(''); + console.log(textTable(['account', 'store', 'studio', 'profile', 'keys'], profiles.map(p => [p.label ?? p.profile, p.store, sName(p.studio), p.profile, + p.source === 'missing' ? 'missing' : p.source === 'invalid' ? `invalid: ${p.error}` : (p.store === 'apple' ? p.apple : p.play) ? `ok (${p.source})` : `no ${p.store} keys in it`]))); + } + for (const w of warnings) warn('ws', w); +} + +export interface WsStatusRow { name: string; key: string; folder: string | null; studio: string | null; status: AppStatus; problems: string[] } + +async function status(args: Args): Promise { + const { l, n, apps, accounts } = await prepared(args); + const live = !args.has('offline'); + const studios = studiosOf(l.ws); + let done = 0; + const rows = await pool(apps, n, async (a): Promise => { + const e = emptyStatus(a.dir ?? a.key); + if (a.virtual) e.virtual = true; + const { env, problems } = appEnv(a.unified, accounts); + try { await fillAppStatus(e, appDir(a), { live, virtual: a.virtual, exec: exec(env) }); } catch (err) { e.errors.push((err as Error).message); } + if (!args.has('json')) log('ws', `${++done}/${apps.length} ${a.name}`); + return { name: a.name, key: a.key, folder: a.dir, studio: a.studio, status: e, problems: live ? problems : [] }; + }); + if (args.has('json')) { printJson({ workspace: l.file, live, apps: rows, at: new Date().toISOString() }); } + else { + const sName = (id: string | null) => (id ? studios.find(s => s.id === id)?.name ?? id : ''); + console.log(textTable(['app', 'studio', 'App Store', 'Google Play', 'next', 'catalog', 'check', 'notes'], rows.map(r => { + const s = r.status; + const notes = [...r.problems, ...s.errors, ...Object.entries(s.storeErrors).map(([k, v]) => `${k}: ${v}`)].join('; '); + return [r.name, sName(r.studio), storeCell(s, 'ios'), storeCell(s, 'android'), nextCell(s), catalogCell(s), + s.check ? (s.check.ok ? `ok${s.check.warnings.length ? ` (${s.check.warnings.length} warn)` : ''}` : `${s.check.problems.length} problem(s)`) : '', notes.slice(0, 160)]; + }))); + if (!live) log('ws', 'offline: store states not read (drop --offline to read both stores)'); + } + if (rows.some(r => !r.status.ok)) process.exitCode = 1; +} + +/** Runs one command in every picked app (bounded parallel), output buffered per app. */ +async function runEach(args: Args, argv: string[], o: { json: boolean; label: string }) { + const { n, apps, accounts } = await prepared(args); + // store-only apps (no folder) take the store reads the desktop allows them (serve.ts VIRTUAL_READS) and inspect + const w = words(argv); + const storeRead = w.join(' ') === 'inspect' || TOOLS.some(t => VIRTUAL_READS.has(t.name) && words(t.command).join(' ') === w.join(' ')); + const folderOnly = !storeRead; + const targets = apps.filter(a => !a.virtual || !folderOnly); + const skipped = apps.filter(a => !targets.includes(a)); + const results = await pool(targets, n, async a => { + const { env, problems } = appEnv(a.unified, accounts); + const r = await runCommand(o.json ? [...argv, '--json'] : argv, { cwd: appDir(a), env, machine: o.json }).result; + return { app: a, r, problems }; + }); + return { results, skipped }; +} + +async function checkAll(args: Args, kind: 'check' | 'validate'): Promise { + const extra = kind === 'validate' ? [...(args.has('apple') ? ['--apple'] : []), ...(args.has('play') ? ['--play'] : []), ...(args.has('no-health') ? ['--no-health'] : [])] : []; + const { results, skipped } = await runEach(args, [kind, ...extra], { json: true, label: kind }); + const rows = results.map(({ app, r, problems }) => { + const d = r.data as { ok?: boolean; problems?: string[]; warnings?: string[]; blockers?: number; findings?: { level: string; msg: string; store: string }[] } | undefined; + if (kind === 'check') return { app: app.name, folder: app.dir, ok: !!d?.ok, problems: d?.problems ?? (d ? [] : [lastLine(r.out) || `exit ${r.code}`]), warnings: d?.warnings ?? [], credentialProblems: [] as string[] }; + const blockers = d?.findings?.filter(f => f.level === 'blocker') ?? []; + return { app: app.name, folder: app.dir, ok: !!d && !d.blockers, blockers: d ? d.blockers ?? 0 : null, findings: d?.findings ?? [], error: d ? null : lastLine(r.out) || `exit ${r.code}`, first: blockers[0] ? `${blockers[0].store}: ${blockers[0].msg}` : '', credentialProblems: problems }; + }); + if (args.has('json')) printJson({ [kind]: rows, skipped: skipped.map(a => a.name) }); + else { + if (kind === 'check') console.log(textTable(['app', 'result', 'problems', 'warnings', 'first problem'], rows.map(x => { const c = x as { app: string; ok: boolean; problems: string[]; warnings: string[] }; return [c.app, c.ok ? 'ok' : 'PROBLEMS', c.problems.length, c.warnings.length, (c.problems[0] ?? '').slice(0, 100)]; }))); + else console.log(textTable(['app', 'result', 'blockers', 'first blocker'], rows.map(x => { const v = x as { app: string; ok: boolean; blockers: number | null; first: string; error: string | null }; return [v.app, v.blockers === null ? 'unreadable' : v.ok ? 'ready' : 'BLOCKED', v.blockers ?? '?', (v.error ?? v.first).slice(0, 110)]; }))); + for (const x of rows) for (const p of x.credentialProblems) warn('ws', `${x.app}: ${p}`); + if (skipped.length) log('ws', `store-only apps skipped (no app folder): ${skipped.map(a => a.name).join(', ')}`); + } + if (rows.some(x => !x.ok)) process.exitCode = 1; +} + +async function runCmd(args: Args): Promise { + // the command line after `ws run`, minus the ws options + const raw = process.argv.slice(process.argv.indexOf('run') + 1); + const forward: string[] = []; + const WS_VALUE = new Set(['--apps', '--concurrency', '--workspace']), WS_FLAG = new Set(['--all', '--apply']); + for (let i = 0; i < raw.length; i++) { + const a = raw[i]!; + const name = a.split('=')[0]!; + if (WS_VALUE.has(name)) { if (!a.includes('=')) i++; continue; } + if (WS_FLAG.has(a)) continue; + forward.push(a); + } + const p = runPolicy(forward); + if (!p.ok) throw new Error(`ws run: ${p.why}`); + if (!args.has('all') && !args.list('apps').length) throw new Error('ws run: say which apps: --apps a,b or --all'); + const argv = p.write && !args.has('apply') && !forward.includes('--dry') ? [...forward, '--dry'] : forward; + const json = forward.includes('--json'); + const { results, skipped } = await runEach(args, argv.filter(a => a !== '--json'), { json, label: 'run' }); + if (json) printJson({ command: `storebound ${argv.join(' ')}`, apps: results.map(({ app, r }) => ({ app: app.name, folder: app.dir, exitCode: r.code, data: r.data ?? null, output: r.data === undefined ? r.out : undefined })), skipped: skipped.map(a => a.name) }); + else { + for (const { app, r, problems } of results) { + console.log(`\n== ${app.name}${app.dir ? ` (${app.rel})` : ' (store only)'}: storebound ${argv.join(' ')} [exit ${r.code}]`); + for (const x of problems) warn('ws', x); + if (r.out) console.log(r.out); + } + if (skipped.length) log('ws', `store-only apps skipped (the command needs an app folder): ${skipped.map(a => a.name).join(', ')}`); + if (p.write && !args.has('apply')) log('ws', 'dry run: nothing was changed. After the owner agreed, the same command with --apply runs it.'); + } + if (results.some(x => x.r.code !== 0)) process.exitCode = 1; +} + +let neutral: string | null = null; +const neutralDir = (): string => { + if (!neutral) { neutral = join(tmpdir(), `storebound-ws-${process.pid}`); mkdirSync(neutral, { recursive: true }); } + return neutral; +}; + +async function appsImport(args: Args): Promise { + const l = await loadAll(args); + const profile = args.get('account'); + if (!profile) throw new Error('ws apps import --account '); + const accounts = accountsOf(l.ws); + const mine = accounts.filter(a => a.profile === profile); + const st = profileStatus(profile); + if (st.source === 'missing' || st.source === 'invalid') throw new Error(`credential profile ${profile}: ${st.error ?? 'not found (~/.storebound/credentials/.json or STOREBOUND_PROFILE__* env)'}`); + const stores: Store[] = mine.length ? mine.map(a => a.store) : [...(st.apple ? ['apple' as const] : []), ...(st.play ? ['play' as const] : [])]; + if (!mine.length) warn('ws', `profile ${profile} is not listed in the workspace: add { "store": "${stores[0] ?? 'apple'}", "profile": "${profile}" } to accounts (or a studio) so its apps show up`); + const env = profileEnv(profile); + const pass: Record = { STOREBOUND_PROFILE: '' }; + for (const k of PROFILE_KEYS) if (env[k]) pass[k] = env[k]!; + const imported: { store: Store; count: number; warnings: string[] }[] = []; + for (const store of stores) { + const r = await runCommand(['apps', 'list', '--store', store, '--json'], { cwd: neutralDir(), env: pass, machine: true }).result; + if (r.code !== 0 || !r.data) throw new Error(`${profile} (${store}): ${lastLine(r.out) || `exit ${r.code}`}`); + const res = r.data as AppsListResult; + const acc = mine.find(a => a.store === store); + const cache: StoreAppsCache = { profile, store, account: acc?.id ?? '', at: res.at, apps: res.apps.map(a => ({ ...a, icon: null })) }; + const f = cacheFile(l.root, { store, profile }); + mkdirSync(resolve(f, '..'), { recursive: true }); + writeFileSync(f, JSON.stringify(cache, null, 2) + '\n'); + imported.push({ store, count: res.apps.length, warnings: res.warnings }); + log('ws', `${profile} (${store}): ${res.apps.length} app(s) -> ${relative(l.root, f)}`); + } + // the pairing with the folders, as ws list shows it from now on + const { apps: folders } = resolveApps(l); + const { apps } = workspaceApps(l, await summariesOf(folders, concurrencyOf(args, l.ws))); + const touched = apps.filter(a => [a.unified.ios?.account, a.unified.android?.account].some(id => id && mine.some(m => m.id === id))); + if (args.has('json')) { printJson({ imported, apps: touched.map(a => ({ name: a.name, folder: a.dir, pairing: a.unified.pairing, ios: a.unified.ios?.app.bundleId ?? null, android: a.unified.android?.app.id ?? null, ignored: a.ignored })) }); return; } + console.log(textTable(['app', 'folder', 'iOS', 'Android', 'pairing'], touched.map(a => [a.name + (a.ignored ? ' (ignored)' : ''), a.dir ? a.rel : '(store only)', a.unified.ios?.app.bundleId ?? '', a.unified.android?.app.id ?? '', a.unified.pairing]))); + for (const i of imported) for (const w of i.warnings) warn('ws', w); + log('ws', 'wrong pair? add it to overrides.unpairs (or pairs / links) in the workspace file: the same rules as the desktop'); +} + +async function desktop(args: Args): Promise { + const sub = args._[1]; + if (sub === 'export') { + const l = await loadAll(args); + const { apps } = resolveApps(l); + const state = toDesktopState(l.ws, apps); + if (!args.has('merge')) { + const out = args.get('out'); + if (!out) { printJson(state); return; } + if (args.has('dry')) { log('ws', `dry run: ${out} not written`); printJson(state); return; } + writeFileSync(resolve(out), JSON.stringify(state, null, 2) + '\n'); + log('ws', `wrote ${out}: ${state.projects.length} app folder(s), ${state.accounts.length} account(s), ${state.studios.length} studio(s)`); + return; + } + const file = args.get('state') ? resolve(args.get('state')!) : desktopStateFile(); + const cur: DesktopState = existsSync(file) ? JSON.parse(readFileSync(file, 'utf8')) as DesktopState : { version: 2, projects: [], accounts: [], studios: [], overrides: { pairs: [], unpairs: [], links: [], appStudio: [], ignored: [] } }; + const { state: merged, added } = mergeDesktopState(cur, state); + log('ws', `${file}: +${added.projects} app folder(s), +${added.accounts} account(s), +${added.studios} studio(s), +${added.overrides} override(s)`); + if (!args.has('apply')) { log('ws', 'dry run: nothing written. Quit the desktop app, then run again with --apply (a backup of state.json is kept).'); return; } + mkdirSync(resolve(file, '..'), { recursive: true }); + if (existsSync(file)) copyFileSync(file, `${file}.ws-${new Date().toISOString().replace(/[:.]/g, '-')}.bak`); + writeFileSync(file, JSON.stringify(merged, null, 2) + '\n'); + log('ws', 'merged. New accounts need their keys in the desktop (Accounts > the account > Add key): the desktop keeps keys in the OS keychain, not in profiles.'); + return; + } + if (sub === 'import') { + const file = args.get('state') ? resolve(args.get('state')!) : desktopStateFile(); + if (!existsSync(file)) throw new Error(`no desktop state at ${file} (--state )`); + const root = process.cwd(); + const { ws, profiles } = fromDesktopState(JSON.parse(readFileSync(file, 'utf8')) as DesktopState, root); + const out = resolve(args.get('out') ?? join(root, 'storebound.workspace.json')); + const text = JSON.stringify({ ...ws, concurrency: 4 }, null, 2) + '\n'; + if (args.has('dry')) { console.log(text); log('ws', `dry run: ${out} not written`); } + else { + if (existsSync(out) && !args.has('force')) throw new Error(`${out} exists (--force overwrites, --out writes elsewhere)`); + writeFileSync(out, text); + log('ws', `wrote ${out}: ${ws.apps.length} app folder(s), ${(ws.studios ?? []).length} studio(s), ${profiles.length} account(s)`); + } + const missing = profiles.filter(p => profileStatus(p.profile).source === 'missing'); + if (missing.length) { + log('ws', `credential profiles to create (the desktop's keychain is not read; put each account's key in its file):`); + for (const p of missing) console.log(` ${p.label} (${p.store}): ~/.storebound/credentials/${p.profile}.json ${p.store === 'apple' ? '{ "ASC_KEY_ID", "ASC_ISSUER_ID", "ASC_P8" }' : '{ "PLAY_SERVICE_ACCOUNT" }'}`); + } + return; + } + throw new Error('ws desktop export [--out f | --merge [--apply]] | ws desktop import [--state f] [--out f]'); +} + +export async function run(args: Args): Promise { + const sub = args._[0]; + switch (sub) { + case 'init': return init(args); + case 'list': return list(args); + case 'status': return status(args); + case 'check': return checkAll(args, 'check'); + case 'validate': return checkAll(args, 'validate'); + case 'run': return runCmd(args); + case 'apps': if (args._[1] === 'import') return appsImport(args); break; + case 'desktop': return desktop(args); + } + console.error(USAGE); + process.exit(2); +} diff --git a/docs/agents-core.md b/docs/agents-core.md index 628e795c..6988daba 100644 --- a/docs/agents-core.md +++ b/docs/agents-core.md @@ -11,7 +11,8 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t for real only after the owner agrees. 3. **Read before you write.** `storebound check` (offline) and `storebound validate` (read-only, both stores) tell you what is missing and in which order to fix it. -4. **Credentials only from the environment or `.storebound/`** in the project (gitignored). Never ask for keys, +4. **Credentials only from the environment, `.storebound/`** in the project (gitignored) **or a credential profile** + (`~/.storebound/credentials/.json`, named by `--account ` or a workspace). Never ask for keys, passwords or tokens in chat, never print them, never write them into the config, docs or commits. The same goes for the App Review demo account (`reviewDemoAccount` in `.storebound/credentials.json`): the owner puts it there. 5. **Never answer a compliance question you cannot know.** Export compliance, Data safety, App Privacy, age rating, diff --git a/docs/desktop.md b/docs/desktop.md index 2013867c..4fc6a5fd 100644 --- a/docs/desktop.md +++ b/docs/desktop.md @@ -167,6 +167,16 @@ Each write is a dry run, then the native dialog, then the real run, with one pro - **TestFlight tab:** What to Test, internal groups, testers. - **Reviews tab:** reply editor (`reviews.reply`), approve, send (owner action). +### The same model in the terminal + +The CLI workspace (`storebound.workspace.json`, README "Many apps and studios") holds the same studios, accounts +(credential profile names instead of keychain entries), folders and overrides. The pairing rules +(`cli/lib/identity.ts`) and the release lanes (`cli/lib/train.ts`) are one implementation for both; the window +re-exports them (`src/lib/identity.ts`, `src/lib/model.ts`). `storebound ws desktop import` reads `state.json` into a +workspace file (the keychain is never read; the profiles to create are listed); `storebound ws desktop export --merge +--apply` adds a workspace to `state.json` while the app is closed (backup kept, nothing removed, new accounts get +their keys in the Accounts screen). Project ids in an exported state are stable per folder path (16 hex). + ## Every CLI area in the window | CLI | where in the window | diff --git a/skills/release-management/SKILL.md b/skills/release-management/SKILL.md index aaed7dfd..40d77db7 100644 --- a/skills/release-management/SKILL.md +++ b/skills/release-management/SKILL.md @@ -8,6 +8,17 @@ description: Ship updates safely after the first release - App Store phased rele CLI: `storebound` (on PATH as a plugin; or `bunx storebound` / `bun /cli/index.ts`). Rules: the owner presses release; you prepare, dry-run and report. `storebound mcp` deliberately offers only "phased on" and "pause". +## Where each version stands (release trains) +- `storebound release status` (MCP `release_status`, read-only): per app, both stores on one train per version: + build > testing > review > live > rollout (with the rollout %), the version that reaches users and the next one; + `--versions` lists every version the stores know. The same stages as the desktop's Releases tab. +- `storebound release plan 1.3.0` (MCP `release_plan`, read-only): what is left for that version on each store, in + fix order: config problems (`check`), the version on the store, store blockers (`validate`), the next move, warnings. + Owner steps (submit, release, raise / complete a rollout) are named with where the owner does them; you never run + them. "could not be read" means unknown, not "not there": fix the credentials first. +- Many apps (a `storebound.workspace.json` above the app folders): the same commands cover every app, or `--app a,b`. + `storebound ws status` is the portfolio table across apps and stores. + ## Defaults - **App Store**: release type **manual** (storebound sets `MANUAL` on every version it touches) and **phased release on**. Never choose "reset ratings" when releasing an update (storebound never sets it); only an owner who really diff --git a/skills/store-preflight/SKILL.md b/skills/store-preflight/SKILL.md index 44459be4..589e9aed 100644 --- a/skills/store-preflight/SKILL.md +++ b/skills/store-preflight/SKILL.md @@ -21,6 +21,13 @@ the stores; run them freely. Exit 1 while there is a blocker. `--json` for scripts. 5. With in-app products or subscriptions: `storebound catalog diff` (read-only): both stores against the config, prices per region, offers. Exit 1 on missing or mismatched items. +6. One list for the version you ship: `storebound release plan ` (MCP `release_plan`, read-only) puts the + check problems, the version's state on each store and the validate blockers in fix order, then names the owner's + next step (submit, promote, release). Report it as it is; the owner does the owner steps. + +Many apps (a `storebound.workspace.json` above the app folders, `storebound ws init` writes it): `storebound ws check` +and `storebound ws validate [--apps a,b]` run the same checks over every app, a few at a time, each with its studio's +credential profile; `storebound ws run --apps a,b` runs any other read command (writes only as dry runs). ## Reading `validate` Each line: number, level (`BLOCKER`, `warn`, `ok`), store, message, and a `fix:` with the command or skill. diff --git a/tests/fixtures/workspace/desktop-state.json b/tests/fixtures/workspace/desktop-state.json new file mode 100644 index 00000000..08836d00 --- /dev/null +++ b/tests/fixtures/workspace/desktop-state.json @@ -0,0 +1,23 @@ +{ + "version": 2, + "projects": [ + { "id": "0a1b2c3d4e5f6071", "path": "/Users/you/studio/games/puzzle", "name": "Puzzle Quest", "playAccount": "1111aaaa2222bbbb", "appleAccount": "3333cccc4444dddd", "added": "2026-09-01T10:00:00Z" }, + { "id": "8a9b0c1d2e3f4051", "path": "/Users/you/elsewhere/notes", "name": "notes", "playAccount": null, "appleAccount": null, "added": "2026-09-02T10:00:00Z" } + ], + "accounts": [ + { "id": "1111aaaa2222bbbb", "label": "Acme Play", "kind": "play", "created": "2026-09-01T09:00:00Z", "studio": "f00dfeedf00dfeed" }, + { "id": "3333cccc4444dddd", "label": "Acme", "kind": "apple", "created": "2026-09-01T09:00:00Z", "studio": "f00dfeedf00dfeed" }, + { "id": "5555eeee6666ffff", "label": "Acme", "kind": "play", "created": "2026-09-03T09:00:00Z", "studio": null } + ], + "studios": [ + { "id": "f00dfeedf00dfeed", "name": "Acme Games", "color": "teal", "logo": null, "created": "2026-09-01T08:00:00Z" } + ], + "overrides": { + "pairs": [{ "ios": "ios:3333cccc4444dddd:6400000101", "android": "android:1111aaaa2222bbbb:com.example.racer" }], + "unpairs": [], + "links": [{ "key": "android:5555eeee6666ffff:com.example.notes", "project": "8a9b0c1d2e3f4051" }], + "appStudio": [{ "key": "project:8a9b0c1d2e3f4051", "studio": "f00dfeedf00dfeed" }], + "ignored": ["account:5555eeee6666ffff", "project:0a1b2c3d4e5f6071", "app:ios:3333cccc4444dddd:6400000199"] + }, + "settings": { "refresh": { "autoMinutes": 0, "onLaunch": false, "parallel": 4, "icons": true }, "cache": { "keepDays": 30 }, "notify": { "reviewState": true, "lowReviews": true, "crash": true }, "channel": "stable" } +} diff --git a/tests/release-train.test.ts b/tests/release-train.test.ts new file mode 100644 index 00000000..01ac36fe --- /dev/null +++ b/tests/release-train.test.ts @@ -0,0 +1,107 @@ +// Release trains in the CLI (`storebound release status | plan`): the same lanes as the desktop's Releases tab +// (cli/lib/train.ts is the one implementation; apps/desktop/src/lib/model.ts re-exports it). Sanitized store shapes. +import { describe, expect, test } from 'bun:test'; +import type { StoreRelease } from '../cli/lib/desktop-protocol'; +import { appleReleases, playReleases, releaseTrains } from '../cli/lib/portfolio'; +import { laneOf, laneText, releasePlan, trackText, trainLanes, versionHistory } from '../cli/lib/train'; +import type { Finding } from '../cli/lib/validate-rules'; +import * as desktop from '../apps/desktop/src/lib/model'; +import { formatPlan, trainsOf } from '../cli/release'; + +const apple = { + versions: [ + { id: 'v3', attributes: { versionString: '2.4.0', appVersionState: 'PREPARE_FOR_SUBMISSION', platform: 'IOS' } }, + { id: 'v2', attributes: { versionString: '2.3.0', appStoreState: 'READY_FOR_SALE', platform: 'IOS' }, relationships: { build: { data: { id: 'b2' } } } }, + { id: 'v1', attributes: { versionString: '2.2.0', appStoreState: 'READY_FOR_SALE', platform: 'IOS' } }, + ], + builds: [{ id: 'b2', attributes: { version: '45' } }], + phased: { v2: { attributes: { phasedReleaseState: 'ACTIVE', currentDayNumber: 5 } } }, +}; +const play = { + tracks: [ + { track: 'production', releases: [{ name: '2.3.0', versionCodes: ['230'], status: 'inProgress', userFraction: 0.1 }, { name: '2.2.0', versionCodes: ['220'], status: 'completed' }] }, + { track: 'internal', releases: [{ name: '2.4.0', versionCodes: ['240'], status: 'completed' }] }, + ], +}; +const all: StoreRelease[] = [...appleReleases(apple), ...playReleases(play)]; + +describe('lanes (shared with the desktop)', () => { + test('the desktop re-exports the CLI implementation', () => { + expect(desktop.laneOf).toBe(laneOf); + expect(desktop.versionHistory).toBe(versionHistory); + expect(desktop.trainLanes).toBe(trainLanes); + }); + + test('stage words for the terminal', () => { + const [cur] = versionHistory(all).filter(t => t.version === '2.3.0'); + expect(laneText(laneOf('ios', cur!.ios))).toBe('rollout 20%'); + expect(laneText(laneOf('android', cur!.android))).toBe('rollout 10%'); + const next = versionHistory(all).find(t => t.version === '2.4.0')!; + expect(laneText(laneOf('ios', next.ios))).toBe('build'); + expect(laneText(laneOf('android', next.android))).toBe('testing'); + expect(trackText(laneOf('android', next.android))).toBe('build > [testing] > review > live > rollout'); + expect(laneText(laneOf('ios', null))).toBe('-'); + expect(laneText(laneOf('ios', { ...next.ios!, phase: 'approved' }))).toBe('review (approved)'); + expect(laneText(laneOf('ios', { ...next.ios!, phase: 'live' }))).toBe('live'); + }); + + test('status rows: current + next, or every version', () => { + const s = { release: { source: 'live' as const, ...releaseTrains(appleReleases(apple), playReleases(play)), all } } as never; + expect(trainsOf(s, false).map(x => [x.which, x.train.version])).toEqual([['current', '2.3.0'], ['next', '2.4.0']]); + expect(trainsOf(s, true).map(x => [x.which, x.train.version])).toEqual([['next', '2.4.0'], ['current', '2.3.0'], ['other', '2.2.0']]); + }); +}); + +describe('release plan', () => { + const findings: Finding[] = [ + { store: 'apple', level: 'blocker', code: 'build', msg: 'no build attached to 2.4.0', fix: 'storebound apple listing --version 2.4.0 --build 46' }, + { store: 'apple', level: 'warn', code: 'keywords', msg: 'keywords use 60 of 100 characters' }, + { store: 'play', level: 'blocker', code: 'images', msg: 'tr-TR: 1 phone screenshot (2 needed)' }, + ]; + const base = { version: '2.4.0', platforms: { ios: true, android: true }, check: { problems: ['store/appstore.md: subtitle over 30 characters'], warnings: [] }, validate: findings, releases: all }; + + test('fix order: config, store blockers, the owner move, warnings last', () => { + const p = releasePlan(base); + expect(p.shared.map(s => s.kind)).toEqual(['config']); + expect(p.ios!.steps.map(s => [s.kind, s.code ?? ''])).toEqual([['blocker', 'build'], ['owner', ''], ['warning', 'keywords']]); + expect(p.ios!.steps[1]!.text).toContain('submit 2.4.0 for App Review (owner)'); + expect(p.android!.steps.map(s => s.kind)).toEqual(['blocker', 'owner']); + expect(p.android!.steps[1]!.text).toContain('promote 2.4.0 from internal to production'); + expect(p.done).toBe(false); + expect(p.unknown).toEqual([]); + const text = formatPlan('Puzzle', p); + expect(text.indexOf('CONFIG')).toBeLessThan(text.indexOf('BLOCKER')); + expect(text).toContain('App Store: build [[build] > testing > review > live > rollout]'); + }); + + test('a version in rollout: no blockers, the owner raises or completes', () => { + const p = releasePlan({ ...base, version: '2.3.0', check: { problems: [], warnings: [] } }); + expect(p.ios!.steps.map(s => s.kind)).toEqual(['owner']); + expect(p.ios!.steps[0]!.text).toContain('20%'); + expect(p.android!.steps[0]!.fix).toContain('storebound play rollout'); + }); + + test('live everywhere is done; a missing version says how to start it', () => { + expect(releasePlan({ ...base, version: '2.2.0', check: { problems: [], warnings: [] } }).done).toBe(true); + const p = releasePlan({ ...base, version: '3.0.0', validate: [] }); + expect(p.ios!.steps[0]).toMatchObject({ kind: 'store' }); + expect(p.ios!.steps[0]!.text).toContain('not on App Store yet'); + expect(p.android!.steps[0]!.fix).toContain('play release --internal completed --dry'); + }); + + test('review, approved, rejected, halted', () => { + const r = (phase: StoreRelease['phase'], extra: Partial = {}): StoreRelease[] => [{ store: 'ios', version: '5.0.0', build: '9', state: 'X', phase, fraction: null, track: null, ...extra }]; + const one = (rs: StoreRelease[]) => releasePlan({ version: '5.0.0', platforms: { ios: true, android: false }, check: { problems: [], warnings: [] }, validate: findings, releases: rs }).ios!.steps; + expect(one(r('review')).map(s => s.kind)).toEqual(['wait']); + expect(one(r('approved'))[0]!.fix).toContain('--manual-release'); + expect(one(r('rejected')).map(s => s.kind)).toEqual(['blocker', 'blocker', 'owner', 'warning']); + expect(one(r('halted', { fraction: 0.05 }))[0]!.text).toContain('halted at 5%'); + }); + + test('unknown, never false: an unreadable store is not "not there"', () => { + const p = releasePlan({ ...base, releases: all, storeErrors: { android: 'PLAY_SERVICE_ACCOUNT is not set' }, validate: null, check: null }); + expect(p.unknown).toEqual(['config check did not run', 'store readiness (validate) did not run', 'Google Play state not read: PLAY_SERVICE_ACCOUNT is not set']); + expect(p.android!.steps[0]!.text).toContain('could not be read'); + expect(p.done).toBe(false); + }); +}); diff --git a/tests/workspace.test.ts b/tests/workspace.test.ts new file mode 100644 index 00000000..597c6be8 --- /dev/null +++ b/tests/workspace.test.ts @@ -0,0 +1,317 @@ +// Multi-app workspace (storebound ws), credential profiles and the desktop state import / export. Sanitized fixtures: +// example.com ids, placeholder account ids, no keys. +import { afterAll, beforeAll, describe, expect, test } from 'bun:test'; +import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { ascKey, profileEnv, profileStatus } from '../cli/lib/credentials'; +import type { StoreApp } from '../cli/lib/desktop-protocol'; +import { + accountId, accountsOf, checkWorkspace, type DesktopState, desktopProjectId, desktopStateFile, fromDesktopState, loadWorkspace, mergeDesktopState, overridesOf, + resolveApps, selectApps, toDesktopState, type Workspace, +} from '../cli/lib/workspace'; +import { listTools, TOOLS, toArgv } from '../cli/mcp-tools'; +import { DESKTOP_TOOLS } from '../cli/serve'; +import { appEnv, discoverApps, runPolicy, workspaceApps } from '../cli/workspace'; + +const CLI = join(import.meta.dir, '..', 'cli', 'index.ts'); +const SENTINEL = 'SENTINEL-KEY-VALUE-42'; +/** An inline service account (not a path), so profileEnv keeps it as it is. */ +const PLAY_INLINE = JSON.stringify({ sentinel: SENTINEL }); + +let root = ''; +let creds = ''; +const cfg = (name: string, id: string) => JSON.stringify({ + app: { name, privacyPolicyUrl: 'https://example.com/privacy', supportUrl: 'https://example.com/support', website: 'https://example.com/', contactEmail: 'dev@example.com' }, + languages: [{ id: 'en', play: 'en-US', apple: 'en-US' }], apple: { bundleId: id }, play: { packageName: id }, +}); +const WS: Workspace = { + apps: ['games/*', { path: 'apps/notes', apple: 'solo-apple' }], + studios: [{ name: 'Acme Games', color: 'indigo', apps: ['games/*'], accounts: [{ store: 'apple', profile: 'acme-apple' }, { store: 'play', profile: 'acme-play' }] }], + accounts: [{ store: 'apple', profile: 'solo-apple', label: 'Solo' }], + ignore: ['games/old-*'], + overrides: { pairs: [], unpairs: [], links: [], appStudio: [] }, +}; + +/** A clean env for CLI children: no store keys of the machine running the tests. */ +function env(extra: Record = {}): Record { + const e: Record = {}; + for (const [k, v] of Object.entries(process.env)) if (v !== undefined && !/^(ASC_|PLAY_SERVICE|STOREBOUND_PROFILE|REVIEW_DEMO)/.test(k)) e[k] = v; + return { ...e, STOREBOUND_CREDENTIALS_DIR: creds, NO_COLOR: '1', ...extra }; +} +function cli(args: string[], cwd = root, extra: Record = {}) { + const r = Bun.spawnSync(['bun', CLI, ...args], { cwd, env: env(extra), stdout: 'pipe', stderr: 'pipe' }); + return { code: r.exitCode, out: r.stdout.toString(), err: r.stderr.toString() }; +} + +beforeAll(() => { + root = mkdtempSync(join(tmpdir(), 'sb-ws-')); + creds = join(root, '..', `${root.split('/').pop()}-creds`); + mkdirSync(creds, { recursive: true }); + for (const [dir, name, id] of [['games/puzzle', 'Puzzle', 'com.example.puzzle'], ['games/racer', 'Racer', 'com.example.racer'], ['games/old-tetra', 'Old', 'com.example.oldtetra'], ['apps/notes', 'Notes', 'com.example.notes']] as const) { + mkdirSync(join(root, dir), { recursive: true }); + writeFileSync(join(root, dir, 'storebound.config.json'), cfg(name, id)); + } + mkdirSync(join(root, 'games', 'not-an-app'), { recursive: true }); + writeFileSync(join(root, 'storebound.workspace.json'), JSON.stringify(WS, null, 2)); + writeFileSync(join(creds, 'acme-apple.json'), JSON.stringify({ ASC_KEY_ID: SENTINEL, ASC_ISSUER_ID: SENTINEL, ASC_P8: 'keys/acme.p8' })); + writeFileSync(join(creds, 'acme-play.json'), JSON.stringify({ PLAY_SERVICE_ACCOUNT: PLAY_INLINE })); + process.env.STOREBOUND_CREDENTIALS_DIR = creds; +}); +afterAll(() => { delete process.env.STOREBOUND_CREDENTIALS_DIR; rmSync(root, { recursive: true, force: true }); rmSync(creds, { recursive: true, force: true }); }); + +describe('workspace file', () => { + test('a valid file passes; secrets, bad profiles and duplicates are refused', () => { + expect(checkWorkspace(WS)).toEqual([]); + expect(checkWorkspace({ apps: [], accounts: [{ store: 'apple', profile: 'x', ASC_P8: 'k' }] }).join(' ')).toContain('secrets never go here'); + expect(checkWorkspace({ apps: [], accounts: [{ store: 'apple', profile: '../etc' }] }).join(' ')).toContain('profile'); + expect(checkWorkspace({ apps: [], accounts: [{ store: 'play', profile: 'a' }], studios: [{ name: 'S', accounts: [{ store: 'play', profile: 'a' }] }] }).join(' ')).toContain('listed twice'); + expect(checkWorkspace({ apps: 'x' })).toContain('apps: a list of app folders or globs ("apps/*")'); + expect(checkWorkspace({ apps: [], studios: [{ name: 'S', color: 'pink' }] }).join(' ')).toContain('color'); + expect(checkWorkspace({ apps: [], concurrency: 20 })).toContain('concurrency: 1 to 8'); + }); + + test('account ids: the desktop id when given, else stable from store + profile (16 hex)', () => { + const a = accountId({ store: 'apple', profile: 'acme-apple' }); + expect(a).toMatch(/^[0-9a-f]{16}$/); + expect(accountId({ store: 'apple', profile: 'acme-apple' })).toBe(a); + expect(accountId({ store: 'play', profile: 'acme-apple' })).not.toBe(a); + expect(accountId({ store: 'play', profile: 'x', id: '1111aaaa2222bbbb' })).toBe('1111aaaa2222bbbb'); + expect(accountsOf(WS).map(x => [x.profile, x.studio])).toEqual([['acme-apple', 'acme-games'], ['acme-play', 'acme-games'], ['solo-apple', null]]); + }); + + test('globs, ignore list and account resolution', async () => { + const l = await loadWorkspace(join(root, 'games', 'puzzle')); + expect(l.root).toBe(root); + const { apps, warnings } = resolveApps(l); + expect(apps.map(a => [a.rel, a.ignored, a.studio, a.appleProfile, a.playProfile])).toEqual([ + ['apps/notes', false, null, 'solo-apple', 'acme-play'], // own apple profile; the only play account + ['games/old-tetra', true, 'acme-games', 'acme-apple', 'acme-play'], + ['games/puzzle', false, 'acme-games', 'acme-apple', 'acme-play'], + ['games/racer', false, 'acme-games', 'acme-apple', 'acme-play'], + ]); + expect(warnings).toEqual([]); // games/not-an-app has no config: skipped by the glob without a warning + const o = overridesOf(l.ws, apps); + expect(o.appStudio).toContainEqual({ key: 'project:games/puzzle', studio: 'acme-games' }); + expect(o.ignored).toContain('project:games/old-tetra'); + expect(selectApps(apps, ['puzzle', 'games/r*']).picked.map(a => a.rel)).toEqual(['games/puzzle', 'games/racer']); + expect(selectApps(apps, ['nope']).unknown).toEqual(['nope']); + }); + + test('ws init discovers app folders as globs', () => { + expect(discoverApps(root)).toEqual(['apps/notes', 'games/*']); + }); +}); + +describe('pairing (the desktop rules, shared)', () => { + test('folders take their store apps; leftover iOS + Android pair; account ignore hides store apps', async () => { + const l = await loadWorkspace(root); + const [appleAcc, playAcc] = accountsOf(l.ws); + const ios = (id: string, bundleId: string, name: string): StoreApp => ({ store: 'ios', id, bundleId, name, platforms: ['IOS'] }); + const and = (pkg: string, name: string): StoreApp => ({ store: 'android', id: pkg, bundleId: pkg, name, platforms: ['ANDROID'] }); + const cache = (a: { store: 'apple' | 'play'; profile: string }, apps: StoreApp[]) => { + mkdirSync(join(root, '.storebound', 'workspace'), { recursive: true }); + writeFileSync(join(root, '.storebound', 'workspace', `apps-${a.store}-${a.profile}.json`), JSON.stringify({ ...a, account: '', at: '2026-10-01T00:00:00Z', apps })); + }; + try { + cache(appleAcc!, [ios('6400000101', 'com.example.puzzle', 'Puzzle'), ios('6400000102', 'com.example.blocks.ios', 'Blocks')]); + cache(playAcc!, [and('com.example.puzzle', 'Puzzle'), and('com.example.blocks', 'Blocks'), and('com.example.solo', 'Solo Game')]); + const summaries = new Map([['games/puzzle', { apple: { bundleId: 'com.example.puzzle', appId: null }, play: { packageName: 'com.example.puzzle' } } as never]]); + const { apps } = workspaceApps(l, summaries); + const puzzle = apps.find(a => a.rel === 'games/puzzle')!; + expect([puzzle.unified.pairing, puzzle.unified.ios?.app.id, puzzle.unified.android?.app.id]).toEqual(['folder', '6400000101', 'com.example.puzzle']); + const blocks = apps.find(a => a.name === 'Blocks')!; + expect([blocks.virtual, blocks.unified.pairing, blocks.studio]).toEqual([true, 'close', 'acme-games']); + expect(apps.find(a => a.name === 'Solo Game')!.unified.pairing).toBe('single'); + // the store-only app reads with both studio accounts' profiles; values stay in the env object + const e = appEnv(blocks.unified, accountsOf(l.ws)); + expect(Object.keys(e.env).sort()).toEqual(['ASC_ISSUER_ID', 'ASC_KEY_ID', 'ASC_P8', 'PLAY_SERVICE_ACCOUNT', 'STOREBOUND_PROFILE']); + expect(e.env.STOREBOUND_PROFILE).toBe(''); + expect(e.env.ASC_P8).toBe(join(creds, 'keys', 'acme.p8')); // relative to the profile folder + // an unpair keeps them apart + const split = workspaceApps({ ...l, ws: { ...l.ws, overrides: { unpairs: [{ ios: blocks.unified.ios!.key, android: blocks.unified.android!.key }] } } }, summaries); + expect(split.apps.filter(a => a.name === 'Blocks').map(a => a.unified.pairing)).toEqual(['single', 'single']); + // ignoring the play account drops its store apps + const ign = workspaceApps({ ...l, ws: { ...l.ws, ignore: [...(l.ws.ignore ?? []), 'account:acme-play'] } }, summaries); + expect(ign.apps.some(a => a.name === 'Solo Game')).toBe(false); + } finally { rmSync(join(root, '.storebound'), { recursive: true, force: true }); } + }); +}); + +describe('credential profiles', () => { + test('file, env override, status without values, and --account precedence', () => { + const saved = { ...process.env }; + try { + process.env.STOREBOUND_CREDENTIALS_DIR = creds; + expect(profileEnv('acme-play')).toEqual({ PLAY_SERVICE_ACCOUNT: PLAY_INLINE }); + process.env.STOREBOUND_PROFILE_ACME_PLAY_PLAY_SERVICE_ACCOUNT = '/keys/other.json'; + expect(profileEnv('acme-play').PLAY_SERVICE_ACCOUNT).toBe('/keys/other.json'); + expect(profileStatus('acme-play')).toEqual({ profile: 'acme-play', source: 'env', apple: false, play: true }); + expect(profileStatus('nobody')).toEqual({ profile: 'nobody', source: 'missing', apple: false, play: false }); + expect(JSON.stringify(profileStatus('acme-apple'))).not.toContain(SENTINEL); + expect(() => profileEnv('../x')).toThrow('credential profile'); + // a profile chosen for the run wins over env and the project file + const pem = ['-----BEGIN PRIVATE KEY-----', 'abc', '-----END PRIVATE KEY-----'].join('\n'); + writeFileSync(join(creds, 'pick.json'), JSON.stringify({ ASC_KEY_ID: 'PICKED', ASC_ISSUER_ID: 'iss', ASC_P8: pem })); + process.env.ASC_KEY_ID = 'FROM-ENV'; + process.env.ASC_ISSUER_ID = 'iss-env'; + process.env.STOREBOUND_PROFILE = 'pick'; + expect(ascKey(root).keyId).toBe('PICKED'); + delete process.env.STOREBOUND_PROFILE; + process.env.ASC_P8 = pem; + expect(ascKey(root).keyId).toBe('FROM-ENV'); + } finally { + for (const k of Object.keys(process.env)) if (!(k in saved)) delete process.env[k]; + Object.assign(process.env, saved); + } + }); +}); + +describe('desktop state <-> workspace', () => { + const state = JSON.parse(readFileSync(join(import.meta.dir, 'fixtures', 'workspace', 'desktop-state.json'), 'utf8')) as DesktopState; + + test('import: folders, studios, accounts as profiles, overrides with folder names', () => { + const { ws, profiles } = fromDesktopState(state, '/Users/you/studio'); + expect(ws.apps).toEqual([{ path: 'games/puzzle', name: 'Puzzle Quest', apple: 'acme', play: 'acme-play' }, '/Users/you/elsewhere/notes']); + expect(profiles).toEqual([{ profile: 'acme-play', store: 'play', label: 'Acme Play' }, { profile: 'acme', store: 'apple', label: 'Acme' }, { profile: 'acme-play-2', store: 'play', label: 'Acme' }]); + expect(ws.studios).toEqual([{ id: 'f00dfeedf00dfeed', name: 'Acme Games', color: 'teal', accounts: [ + { store: 'play', profile: 'acme-play', label: 'Acme Play', id: '1111aaaa2222bbbb' }, { store: 'apple', profile: 'acme', label: 'Acme', id: '3333cccc4444dddd' }] }]); + expect(ws.accounts).toEqual([{ store: 'play', profile: 'acme-play-2', label: 'Acme', id: '5555eeee6666ffff' }]); + expect(ws.ignore).toEqual(['account:acme-play-2', 'project:games/puzzle', 'app:ios:3333cccc4444dddd:6400000199']); + expect(ws.overrides?.links).toEqual([{ key: 'android:5555eeee6666ffff:com.example.notes', project: '/Users/you/elsewhere/notes' }]); + expect(ws.overrides?.appStudio).toEqual([{ key: 'project:/Users/you/elsewhere/notes', studio: 'f00dfeedf00dfeed' }]); + expect(checkWorkspace(ws)).toEqual([]); + expect(JSON.stringify(ws)).not.toMatch(/PRIVATE KEY|service_account/); + }); + + test('export: the desktop format (version 2), account ids kept, project ids stable per path', async () => { + const l = await loadWorkspace(root); + const { apps } = resolveApps(l); + const s = toDesktopState(l.ws, apps, '2026-10-01T00:00:00Z'); + expect(s.version).toBe(2); + expect(s.projects.map(p => p.id)).toEqual(apps.map(a => desktopProjectId(a.path))); + expect(s.projects.every(p => /^[0-9a-f]{16}$/.test(p.id))).toBe(true); + expect(s.accounts.map(a => [a.label, a.kind, a.studio])).toEqual([['acme-apple', 'apple', 'acme-games'], ['acme-play', 'play', 'acme-games'], ['Solo', 'apple', null]]); + expect(s.overrides.ignored).toContain(`project:${desktopProjectId(join(root, 'games', 'old-tetra'))}`); + expect(s.overrides.appStudio).toContainEqual({ key: `project:${desktopProjectId(join(root, 'games', 'puzzle'))}`, studio: 'acme-games' }); + expect(JSON.stringify(s)).not.toContain(SENTINEL); + // the desktop's state.json shape: every key its Rust State reads + expect(Object.keys(s).sort()).toEqual(['accounts', 'overrides', 'projects', 'studios', 'version']); + }); + + test('merge: nothing removed, existing projects keep their ids and accounts', () => { + const incoming: DesktopState = { version: 2, projects: [{ ...state.projects[0]!, id: 'ffffffffffffffff', appleAccount: null }, { id: 'eeeeeeeeeeeeeeee', path: '/Users/you/new', name: 'new', playAccount: null, appleAccount: null, added: '' }], + accounts: [state.accounts[0]!, { id: '9999999999999999', label: 'New', kind: 'apple', created: '', studio: null }], studios: [], + overrides: { pairs: [], unpairs: [], links: [], appStudio: [{ key: 'project:ffffffffffffffff', studio: 'x' }], ignored: ['project:ffffffffffffffff'] } }; + const { state: m, added } = mergeDesktopState(state, incoming); + expect(added).toEqual({ projects: 1, accounts: 1, studios: 0, overrides: 1 }); + expect(m.projects[0]).toEqual(state.projects[0]!); + expect(m.overrides.ignored.filter(x => x === 'project:0a1b2c3d4e5f6071')).toHaveLength(1); + expect(m.settings).toEqual(state.settings); + }); + + test('state file location per platform', () => { + expect(desktopStateFile({ STOREBOUND_DESKTOP_DATA: '/d' })).toBe('/d/state.json'); + expect(desktopStateFile({}, 'darwin')).toContain(join('Application Support', 'dev.storebound.desktop', 'state.json')); + expect(desktopStateFile({ XDG_DATA_HOME: '/x' }, 'linux')).toBe('/x/dev.storebound.desktop/state.json'); + }); +}); + +describe('ws run policy', () => { + test('reads run, writes get --dry, owner steps never', () => { + expect(runPolicy(['validate', '--play'])).toEqual({ ok: true, write: false }); + expect(runPolicy(['inspect'])).toEqual({ ok: true, write: false }); + expect(runPolicy(['apple', 'testflight', 'status'])).toEqual({ ok: true, write: false }); + expect(runPolicy(['play', 'listing'])).toEqual({ ok: true, write: true }); + expect(runPolicy(['health', '--weekly'])).toEqual({ ok: true, write: true }); + expect(runPolicy(['health'])).toEqual({ ok: true, write: false }); + expect(runPolicy(['prices', 'import'])).toEqual({ ok: true, write: true }); + for (const bad of [['play', 'release', 'x.aab'], ['apple', 'release', '--phased', 'complete'], ['play', 'rollout', '--complete'], ['reviews', 'send'], ['apple', 'ppo', 'start'], + ['apple', 'testflight', 'distribute', '--build', '3'], ['play', 'listing', '--yes'], ['apple', 'status', '--cancel-submission', '1'], ['ws', 'list'], ['rm', '-rf'], []]) { + expect(runPolicy(bad).ok).toBe(false); + } + }); +}); + +describe('MCP', () => { + test('workspace and release tools: read-only, in MCP, not in the desktop profile', () => { + const names = ['workspace_list', 'workspace_status', 'release_status', 'release_plan']; + for (const n of names) { + const t = TOOLS.find(x => x.name === n)!; + expect(t.write).toBe(false); + expect((listTools().find(x => x.name === n)!.annotations as { readOnlyHint: boolean }).readOnlyHint).toBe(true); + expect(DESKTOP_TOOLS.some(x => x.name === n)).toBe(false); + } + expect(toArgv(TOOLS.find(x => x.name === 'release_plan')!, { version: '2.4.0', app: 'puzzle', json: true }).argv).toEqual(['release', 'plan', '2.4.0', '--app', 'puzzle', '--json']); + expect(toArgv(TOOLS.find(x => x.name === 'workspace_status')!, { offline: true }).argv).toEqual(['ws', 'status', '--offline']); + }); +}); + +describe('CLI end to end (offline)', () => { + test('ws list --json: apps, studios, accounts; never a key value', () => { + const r = cli(['ws', 'list', '--json'], join(root, 'games')); + expect(r.code).toBe(0); + const d = JSON.parse(r.out); + expect(d.apps.map((a: { name: string }) => a.name)).toEqual(['Notes', 'Puzzle', 'Racer']); + expect(d.accounts.map((a: { profile: string; source: string }) => [a.profile, a.source])).toEqual([['acme-apple', 'file'], ['acme-play', 'file'], ['solo-apple', 'missing']]); + expect(r.out + r.err).not.toContain(SENTINEL); + expect(cli(['ws', 'list', '--all', '--json']).out).toContain('"Old"'); + }); + + test('ws status --offline --json and ws check', () => { + const r = cli(['ws', 'status', '--offline', '--json', '--apps', 'puzzle,racer']); + const d = JSON.parse(r.out); + expect(d.live).toBe(false); + expect(d.apps.map((a: { name: string; status: { summary: { name: string } } }) => [a.name, a.status.summary.name])).toEqual([['Puzzle', 'Puzzle'], ['Racer', 'Racer']]); + expect(d.apps[0].status.release.source).toBe('none'); + const c = cli(['ws', 'check', '--json']); + expect(JSON.parse(c.out).check).toHaveLength(3); + expect(c.code).toBe(1); // the fixture apps have no listing files yet + }); + + test('ws run: needs --apps / --all, adds --dry to writes, refuses owner steps', () => { + expect(cli(['ws', 'run', 'inspect']).err).toContain('--apps a,b or --all'); + const i = cli(['ws', 'run', 'inspect', '--all', '--json']); + expect(i.code).toBe(0); + expect(JSON.parse(i.out).apps.map((a: { data: { name: string } }) => a.data.name)).toEqual(['Notes', 'Puzzle', 'Racer']); + const w = cli(['ws', 'run', 'play', 'listing', '--apps', 'puzzle']); + expect(w.out).toContain('storebound play listing --dry'); + const bad = cli(['ws', 'run', 'play', 'rollout', '--complete', '--all']); + expect(bad.code).toBe(1); + expect(bad.err).toContain('owner step'); + }); + + test('ws desktop export / import round trip through files', () => { + const out = join(root, '.storebound', 'state.json'); + mkdirSync(join(root, '.storebound'), { recursive: true }); + expect(cli(['ws', 'desktop', 'export', '--out', out]).code).toBe(0); + const s = JSON.parse(readFileSync(out, 'utf8')) as DesktopState; + expect(s.projects).toHaveLength(4); + const back = join(root, '.storebound', 'ws.json'); + const r = cli(['ws', 'desktop', 'import', '--state', out, '--out', back]); + expect(r.code).toBe(0); + const ws = JSON.parse(readFileSync(back, 'utf8')) as Workspace; + expect(checkWorkspace(ws)).toEqual([]); + expect(ws.apps).toHaveLength(4); + expect(ws.ignore).toContain('project:games/old-tetra'); + // merge into a desktop state: dry unless --apply + const target = join(root, '.storebound', 'desktop'); + mkdirSync(target, { recursive: true }); + const m = cli(['ws', 'desktop', 'export', '--merge'], root, { STOREBOUND_DESKTOP_DATA: target }); + expect(m.out).toContain('dry run'); + expect(cli(['ws', 'desktop', 'export', '--merge', '--apply'], root, { STOREBOUND_DESKTOP_DATA: target }).code).toBe(0); + expect((JSON.parse(readFileSync(join(target, 'state.json'), 'utf8')) as DesktopState).projects).toHaveLength(4); + }); + + test('release status in an app folder without keys: unreadable, never "not there"', () => { + const r = cli(['release', 'status', '--json'], join(root, 'games', 'puzzle')); + expect(r.code).toBe(1); + const d = JSON.parse(r.out); + expect(d.apps[0].storeErrors.ios).toContain('ASC_KEY_ID'); + expect(d.apps[0].trains).toEqual([]); + const p = cli(['release', 'plan', '1.0.0', '--no-validate', '--json'], join(root, 'games', 'puzzle')); + const plan = JSON.parse(p.out).apps[0].plan; + expect(plan.unknown.join(' ')).toContain('App Store state not read'); + expect(plan.done).toBe(false); + }); +}); From 1ed3f12eee377c27a4cef9d5b412c346d4169694 Mon Sep 17 00:00:00 2001 From: CRT Date: Sun, 11 Oct 2026 15:37:09 +0000 Subject: [PATCH 3/8] storebound api: every App Store Connect and Google Play operation - specs/: Apple's App Store Connect OpenAPI 4.5.1 and the Google discovery docs for androidpublisher v3 and playdeveloperreporting v1beta1, pinned with URL, date and SHA-256 (specs/SOURCES.json) - tools/gen-api.ts: one row per operation (cli/api/apple.gen.ts 1303, cli/api/play.gen.ts 170), a scan of which operations the commands already call (cli/api/wrapped.gen.ts) and docs/api-coverage.md; CI checks freshness - cli/api/client.ts + types.ts: generic URL / parameter building, retries with Retry-After, pagination, types derived from the rows; auth reuses ascJwt and the Play service account - cli/api/gate.ts: GET runs, writes dry unless --yes in a TTY, owner-only operations need the id typed, nothing written under MCP or serve; MCP gets the read-only api_get - storebound api list | coverage | apple|play ; skill store-api, README, CHANGELOG, tests --- .cursor/rules/storebound.mdc | 2 + .github/copilot-instructions.md | 2 + AGENTS.md | 2 + CHANGELOG.md | 19 + GEMINI.md | 2 + README.md | 37 +- cli/api.ts | 174 + cli/api/apple.gen.ts | 1311 + cli/api/client.ts | 341 + cli/api/gate.ts | 99 + cli/api/play.gen.ts | 181 + cli/api/types.ts | 68 + cli/api/wrapped.gen.ts | 171 + cli/apple/asc.ts | 10 +- cli/index.ts | 1 + cli/lib/args.ts | 13 +- cli/mcp-tools.ts | 16 +- cli/mcp.ts | 3 +- cli/serve.ts | 4 +- docs/api-coverage.md | 1768 + skills/store-api/SKILL.md | 55 + specs/SOURCES.json | 36 + specs/androidpublisher_v3.discovery.json | 14995 + specs/app-store-connect.oas.json | 258516 +++++++++++++++ ...ydeveloperreporting_v1beta1.discovery.json | 2678 + tests/api.test.ts | 333 + tests/desktop-d3.test.ts | 2 +- tools/ci.ts | 2 + tools/gen-adapters.ts | 1 + tools/gen-api.ts | 341 + 30 files changed, 281170 insertions(+), 13 deletions(-) create mode 100644 cli/api.ts create mode 100644 cli/api/apple.gen.ts create mode 100644 cli/api/client.ts create mode 100644 cli/api/gate.ts create mode 100644 cli/api/play.gen.ts create mode 100644 cli/api/types.ts create mode 100644 cli/api/wrapped.gen.ts create mode 100644 docs/api-coverage.md create mode 100644 skills/store-api/SKILL.md create mode 100644 specs/SOURCES.json create mode 100644 specs/androidpublisher_v3.discovery.json create mode 100644 specs/app-store-connect.oas.json create mode 100644 specs/playdeveloperreporting_v1beta1.discovery.json create mode 100644 tests/api.test.ts create mode 100644 tools/gen-api.ts diff --git a/.cursor/rules/storebound.mdc b/.cursor/rules/storebound.mdc index 2c41da63..fbd07be0 100644 --- a/.cursor/rules/storebound.mdc +++ b/.cursor/rules/storebound.mdc @@ -35,6 +35,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`. - MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed. - Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores). +- Every endpoint: `storebound api apple|play ` (skill store-api). GETs run; writes are dry unless the owner adds `--yes` in a terminal; MCP has the read-only `api_get`. ## Skills @@ -56,6 +57,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - `skills/review-rejections/SKILL.md`: Triage and answer an App Store or Google Play rejection, policy warning or strike for a mobile app or game - `skills/review-replies/SKILL.md`: Reply to App Store and Google Play reviews of a mobile app or game the safe way - `skills/store-analytics/SKILL.md`: Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git +- `skills/store-api/SKILL.md`: Call any App Store Connect API or Google Play Developer API operation that storebound's commands do not wrap, safely - `skills/store-declarations/SKILL.md`: Answer the store compliance forms for a mobile app or game - `skills/store-health/SKILL.md`: Watch a released mobile app's or game's crash and ANR health on both stores - `skills/store-iap-setup/SKILL.md`: Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ecfa9e79..21a2c0a4 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -35,6 +35,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`. - MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed. - Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores). +- Every endpoint: `storebound api apple|play ` (skill store-api). GETs run; writes are dry unless the owner adds `--yes` in a terminal; MCP has the read-only `api_get`. ## Skills @@ -58,6 +59,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t | `review-rejections` | Triage and answer an App Store or Google Play rejection, policy warning or strike for a mobile app or game | | `review-replies` | Reply to App Store and Google Play reviews of a mobile app or game the safe way | | `store-analytics` | Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git | +| `store-api` | Call any App Store Connect API or Google Play Developer API operation that storebound's commands do not wrap, safely | | `store-declarations` | Answer the store compliance forms for a mobile app or game | | `store-health` | Watch a released mobile app's or game's crash and ANR health on both stores | | `store-iap-setup` | Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list | diff --git a/AGENTS.md b/AGENTS.md index 19cf225e..de898fe2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -36,6 +36,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`. - MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed. - Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores). +- Every endpoint: `storebound api apple|play ` (skill store-api). GETs run; writes are dry unless the owner adds `--yes` in a terminal; MCP has the read-only `api_get`. ## Skills @@ -57,6 +58,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - `skills/review-rejections/SKILL.md`: Triage and answer an App Store or Google Play rejection, policy warning or strike for a mobile app or game - `skills/review-replies/SKILL.md`: Reply to App Store and Google Play reviews of a mobile app or game the safe way - `skills/store-analytics/SKILL.md`: Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git +- `skills/store-api/SKILL.md`: Call any App Store Connect API or Google Play Developer API operation that storebound's commands do not wrap, safely - `skills/store-declarations/SKILL.md`: Answer the store compliance forms for a mobile app or game - `skills/store-health/SKILL.md`: Watch a released mobile app's or game's crash and ANR health on both stores - `skills/store-iap-setup/SKILL.md`: Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list diff --git a/CHANGELOG.md b/CHANGELOG.md index ba686186..b3a6d338 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,25 @@ ## Unreleased +- Every endpoint: `storebound api` calls any operation of the App Store Connect API (1303 operations, OpenAPI 4.5.1) + and the Google Play Developer APIs (Android Publisher v3: 145 methods, Play Developer Reporting v1beta1: 25; v1alpha1 + has no methods of its own), from the official specs pinned in `specs/` (URLs, dates, SHA-256 in + `specs/SOURCES.json`). `tools/gen-api.ts` turns them into one row per operation (`cli/api/apple.gen.ts`, + `cli/api/play.gen.ts`) plus generic helpers (`cli/api/client.ts`: URL and parameter building, retries on 429 / 5xx + with Retry-After, `--all-pages` over Apple's `links.next` and Google's page tokens), typed from the rows + (`cli/api/types.ts`: path and required parameters, loosely typed JSON:API requests and responses). About 44 KB more + in the npm tarball. Same credentials as every other command (`ascJwt` is now shared from `cli/apple/asc.ts`). + - `storebound api apple|play [--param k=v ...] [--body file.json] [--upload file] + [--out file] [--all-pages] [--json] [--dry] [--yes]`: GETs (and the read-only Reporting `:query` POSTs) run; + every write prints the exact request and is only sent with `--yes` in an interactive terminal; owner-only + operations (`cli/api/gate.ts`: deletes, submissions, releases, phased release changes, product page tests, prices, + testers and users, review replies, Play `edits.commit`, activation, refunds, app signing) also need the operation + id typed. Under MCP or the desktop app no write is sent at all. + - `storebound api list [--store] [--search]` and `storebound api coverage`: every operation, counts per API and + resource, and which ones storebound's commands already call (a scan of `cli/`, `cli/api/wrapped.gen.ts`); the full + table is `docs/api-coverage.md`. CI fails when the tables, the scan or the doc are stale against `specs/`. + - MCP: one new read-only tool, `api_get` (GET operations only; not in the desktop profile). New skill `store-api`. + - New logo: a glossy indigo box with an upward arrow (`brand/master/logo-mark.png`, `brand/README.md`). Every logo file comes from it through `tools/brand-assets.py`: desktop app icons (PNG sizes, `.icns`, a `.ico` with its own image per size, Windows tiles), the site's favicon.ico, maskable web app icons with a manifest, apple-touch-icon, diff --git a/GEMINI.md b/GEMINI.md index dd0810f0..5fdd4c9a 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -34,6 +34,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`. - MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed. - Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores). +- Every endpoint: `storebound api apple|play ` (skill store-api). GETs run; writes are dry unless the owner adds `--yes` in a terminal; MCP has the read-only `api_get`. ## Skills @@ -57,6 +58,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t | `review-rejections` | Triage and answer an App Store or Google Play rejection, policy warning or strike for a mobile app or game | | `review-replies` | Reply to App Store and Google Play reviews of a mobile app or game the safe way | | `store-analytics` | Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git | +| `store-api` | Call any App Store Connect API or Google Play Developer API operation that storebound's commands do not wrap, safely | | `store-declarations` | Answer the store compliance forms for a mobile app or game | | `store-health` | Watch a released mobile app's or game's crash and ANR health on both stores | | `store-iap-setup` | Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list | diff --git a/README.md b/README.md index 4940806f..7fe5a9b2 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,7 @@ run in the background with a log (`storebound shots render > .storebound/render. | `validate [--apple] [--play]` | API, read-only | readiness report with ordered blockers plus the local renders checks (`--no-local` skips); exit 1 while any blocker is left | | `whats-new [--since ]` | local | draft player-facing release notes from git log into both listing files | | `privacy-manifest --ios ` | local | PrivacyInfo.xcprivacy, required-reason APIs, SDKs without manifests | +| `api list \| coverage \| apple\|play ` | API | every App Store Connect / Google Play operation (see [Every endpoint](#every-endpoint)); GET runs, writes are dry unless `--yes` in a terminal | | `desktop [--download]` | local | open the storebound desktop app (in an app folder: add or select it there); not installed: the download for this system, `--download` saves it to ~/Downloads after checking its signature (never installs) | | `doctor [--json]` | local | which local tools are here (ffmpeg, Chrome, playwright, Xcode, adb, git) and how to install the missing ones | | `icons` | local | App Store 1024 (no alpha), Play 512, web, Capacitor sources, Android legacy launcher icons | @@ -304,6 +305,36 @@ run in the background with a log (`storebound shots render > .storebound/render. +## Every endpoint + +The commands above cover the journey. For anything else, `storebound api` calls **every operation** of the App Store +Connect API (1303 operations, OpenAPI 4.5.1) and of the Google Play Developer APIs (Android Publisher v3: 145, +Play Developer Reporting v1beta1: 25), generated from the official specs pinned in `specs/` (source URLs, dates and +SHA-256 in `specs/SOURCES.json`). Same credentials, same retries on 429 / 5xx (Retry-After honoured), JSON:API +documents on the Apple side. + +```sh +storebound api list --store apple --search "customerReviews" # find an operation +storebound api apple apps_getCollection --param 'filter[bundleId]=com.example.app' +storebound api apple GET /v1/apps/123/appStoreVersions --all-pages # METHOD path works too +storebound api play reviews.list --param packageName=com.example.app --all-pages --json +storebound api play POST /v1beta1/apps/com.example.app/crashRateMetricSet:query --body query.json +storebound api coverage # counts per API and resource, what commands wrap +``` + +- **GET runs right away** (so do the Reporting API `:query` calls and other POSTs that only read). +- **Every write is a dry run by default**: it prints the exact request (method, URL, body; the credential is never + shown) and is only sent with `--yes` from an interactive terminal. +- **Owner-only operations** (submit, release, delete, cancel, refunds, prices, testers and users, review replies, + product page tests, Play `edits.commit`, app signing; the list is in `cli/api/gate.ts`) also ask you to type the + operation id before anything is sent. +- **Agents read, never write**: MCP has one tool for this, `api_get` (GET operations only). Under MCP or the desktop + app no write goes out, whatever the flags. +- Small on purpose: one table row per operation plus generic helpers (`cli/api/`), typed from the rows (path and + required parameters, JSON:API request and response shapes). `bun tools/gen-api.ts` regenerates the tables and + [docs/api-coverage.md](docs/api-coverage.md) (every operation, its gate and the commands that already call it); + CI fails when they are stale. + ## Store art Screenshots and previews are one step of the journey, but the one that takes the longest by hand, so storebound @@ -378,6 +409,7 @@ navigation. | `store-screenshots` | capture from any engine, copy, fonts, render, checks, gallery, variants, App Store product page tests, Play experiments, upload | | `app-previews` | app or gameplay clips, App Store previews, Play promo video, checks, upload | | `store-preflight` | run and read `check`, `check --aso`, `validate`, `privacy-manifest` before submitting | +| `store-api` | any App Store Connect / Google Play operation without a command: find it, read freely, writes dry until the owner sends them | | `release-management` | updates: Apple phased + manual release, Play staged rollout, halt / pause (not a rollback), review wait | | `store-health` | crash / ANR vitals vs Play's bad behavior thresholds, App Store diagnostics, weekly report | | `review-replies` | reply drafts, tone, no incentives, store limits, the owner approves and sends | @@ -396,7 +428,8 @@ per-request `_meta`, `resultType`, cacheable `tools/list`) and, on the same proc - One tool per command. Read-only: `check`, `check_aso`, `validate`, `catalog_diff`, `health`, `reviews_list`, `prices_diff`, `analytics_compare`, `apple_status`, `apple_next_build`, `apple_testflight_status`, `apple_ppo_status`, - `play_status`, `play_next_version_code`, `privacy_manifest`, `shots_check`. Local writes: `import_fastlane`, `whats_new`, `icons`, + `play_status`, `play_next_version_code`, `privacy_manifest`, `shots_check`, `api_get` (any App Store Connect or + Google Play GET operation by id). Local writes: `import_fastlane`, `whats_new`, `icons`, `health_report`, `reviews_draft`, `prices_export`, `analytics_snapshot`, `shots_capture`, `shots_render`, `shots_gallery`, `shots_record`, `shots_video`. Store writes: `play_listing`, `play_images`, `play_products`, `play_data_safety`, `play_subscriptions`, `play_release_testing`, `apple_bundle`, `apple_iap`, `apple_iap_review`, @@ -430,6 +463,8 @@ model and the Dependencies screen (tool sources and licenses): [docs/desktop.md] storebound only talks to the official store APIs (plus Google Fonts, your own Play reports bucket and your own URLs); see [SECURITY.md](SECURITY.md). - **Dry run everywhere.** Every write command takes `--dry`; every MCP write tool has `dry_run`, **default true**. + Raw API writes (`storebound api`) are dry unless `--yes` is given in an interactive terminal; owner-only operations + also need the operation id typed, and MCP only gets the read-only `api_get`. - **Nothing public or irreversible through an agent.** Submitting for review (App Review and Beta App Review), releasing a version, production releases, resuming or completing a rollout or phased release, canceling a submission, deleting, inviting or removing testers, sending review replies, applying prices and starting or diff --git a/cli/api.ts b/cli/api.ts new file mode 100644 index 00000000..6d67e364 --- /dev/null +++ b/cli/api.ts @@ -0,0 +1,174 @@ +// storebound api: every App Store Connect and Google Play Developer API operation, from the pinned specs. +// +// storebound api list [--store apple|play] [--search text] [--json] +// storebound api coverage [--store apple|play] [--json] +// storebound api apple|play [--param k=v ...] [--body file.json] [--upload file] +// [--out file] [--all-pages] [--json] [--dry] [--yes] +// storebound api get apple|play ... GET only (what the MCP tool api_get runs) +// +// GETs run right away. Writes print the exact request and are only sent with --yes in an interactive terminal; +// owner-only operations (submit, release, delete, cancel, prices, testers, review replies, experiments: cli/api/gate.ts) +// also need the operation id typed at the prompt. Under MCP or the desktop app no write is ever sent. +import { readFileSync, writeFileSync } from 'node:fs'; +import { resolve } from 'node:path'; +import type { Args } from './lib/args'; +import { allOps, authFor, type BuiltRequest, buildRequest, resolveOp, send, sendAll } from './api/client'; +import { decide, gateOf, ownerReason, resourceOf, type GateKind, type Store } from './api/gate'; +import { APPLE_SPEC } from './api/apple.gen'; +import { PLAY_APIS } from './api/play.gen'; +import { WRAPPED } from './api/wrapped.gen'; +import type { ParamValue } from './api/types'; + +const STORES: Store[] = ['apple', 'play']; + +export const USAGE = `usage: + storebound api list [--store apple|play] [--search text] [--json] + storebound api coverage [--store apple|play] [--json] + storebound api apple|play [--param k=v ...] [--body file.json] [--upload file] + [--out file] [--all-pages] [--json] [--dry] [--yes] + storebound api get apple|play [--param k=v ...] [--all-pages] [--json] (GET only) + +GETs run right away. Writes print the exact request and are sent only with --yes in a terminal; owner-only +operations (submit, release, delete, cancel, prices, testers, review replies, experiments) also ask you to type the +operation id. Full table: docs/api-coverage.md`; + +export interface Row { store: Store; id: string; method: string; path: string; gate: GateKind; wrapped: string } + +export function rows(store?: Store): Row[] { + return (store ? [store] : STORES).flatMap(s => allOps(s).map(o => ({ + store: s, id: o.id, method: o.method, path: o.path, gate: gateOf(s, o.id, o.method), wrapped: WRAPPED[s][o.id] ?? '', + }))); +} + +export function search(list: Row[], text: string): Row[] { + const words = text.toLowerCase().split(/\s+/).filter(Boolean); + return list.filter(r => words.every(w => `${r.id} ${r.method} ${r.path}`.toLowerCase().includes(w))); +} + +export interface Coverage { + apis: { api: string; title: string; operations: number; get: number; write: number; owner: number; wrapped: number }[]; + resources: { store: Store; resource: string; operations: number; wrapped: number }[]; +} + +export function coverage(store?: Store): Coverage { + const list = rows(store); + const groups: [string, string, Row[]][] = []; + if (!store || store === 'apple') groups.push(['appstoreconnect', `${APPLE_SPEC.title} ${APPLE_SPEC.version}`, list.filter(r => r.store === 'apple')]); + if (!store || store === 'play') for (const [name, a] of Object.entries(PLAY_APIS)) groups.push([name, `${a.title} (${a.revision})`, list.filter(r => r.store === 'play' && r.id.startsWith(name + '.'))]); + const res = new Map(); + for (const r of list) { + const k = `${r.store} ${resourceOf(r)}`; + const cur = res.get(k) ?? { store: r.store, resource: resourceOf(r), operations: 0, wrapped: 0 }; + cur.operations++; + if (r.wrapped) cur.wrapped++; + res.set(k, cur); + } + return { + apis: groups.map(([api, title, rs]) => ({ api, title, operations: rs.length, get: rs.filter(r => r.method === 'GET').length, + write: rs.filter(r => r.gate === 'write').length, owner: rs.filter(r => r.gate === 'owner').length, wrapped: rs.filter(r => r.wrapped).length })), + resources: [...res.values()], + }; +} + +/** --param k=v (repeatable; a repeated name becomes a list). */ +export function parseParams(values: string[]): Record { + const out: Record = {}; + for (const kv of values) { + const eq = kv.indexOf('='); + if (eq <= 0) throw new Error(`--param ${kv}: expected name=value`); + const k = kv.slice(0, eq), v = kv.slice(eq + 1); + const cur = out[k]; + out[k] = cur === undefined ? v : [...(Array.isArray(cur) ? cur : [String(cur)]), v]; + } + return out; +} + +const UPLOAD_TYPES: Record = { png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg', apk: 'application/vnd.android.package-archive' }; + +/** The exact request as text, the credential replaced by a placeholder. */ +export function describeRequest(req: BuiltRequest): string { + const lines = [`${req.method} ${req.url}`, `Authorization: Bearer <${req.op.store === 'apple' ? 'App Store Connect API key JWT' : 'Google service account token'}, not shown>`]; + if (req.contentType) lines.push(`Content-Type: ${req.contentType}`); + if (typeof req.body === 'string') lines.push('', JSON.stringify(JSON.parse(req.body), null, 2)); + else if (req.body) lines.push('', `<${req.body.length} bytes of file data>`); + return lines.join('\n'); +} + +async function readLine(): Promise { + for await (const line of console) return line.trim(); + return ''; +} + +export async function run(args: Args): Promise { + const [sub, ...rest] = args._; + const json = args.has('json'); + const store = args.get('store') as Store | undefined; + if (store && !STORES.includes(store)) throw new Error('--store: apple or play'); + if (!sub || args.has('help')) { console.log(USAGE); return; } + + if (sub === 'list') { + const list = args.get('search') ? search(rows(store), args.get('search')!) : rows(store); + if (json) { console.log(JSON.stringify(list)); return; } + for (const r of list) console.log(`${r.store.padEnd(5)} ${r.method.padEnd(6)} ${r.id.padEnd(60)} ${r.path}${r.gate === 'owner' ? ' [owner only]' : ''}${r.wrapped ? ` (wrapped: ${r.wrapped})` : ''}`); + console.error(`${list.length} operation(s)`); + return; + } + if (sub === 'coverage') { + const c = coverage(store); + if (json) { console.log(JSON.stringify(c)); return; } + for (const a of c.apis) console.log(`${a.title}: ${a.operations} operations (${a.get} GET, ${a.write} write, ${a.owner} owner only), ${a.wrapped} wrapped by storebound commands`); + console.log(`\n${'resource'.padEnd(62)} ops wrapped`); + for (const r of c.resources) console.log(`${(r.store + ' ' + r.resource).padEnd(62)} ${String(r.operations).padStart(3)} ${String(r.wrapped).padStart(7)}`); + const total = c.apis.reduce((n, a) => n + a.operations, 0); + console.log(`\n${total} operations, every one callable with storebound api; full table: docs/api-coverage.md`); + return; + } + + const getOnly = sub === 'get'; + const st = (getOnly ? rest.shift() : sub) as Store; + if (!STORES.includes(st)) { console.error(USAGE); throw new Error(`unknown api subcommand: ${sub}`); } + const [ref, maybePath] = rest; + if (!ref) throw new Error(`storebound api ${getOnly ? 'get ' : ''}${st} `); + const { op, params: fromPath } = resolveOp(st, ref, maybePath); + const params = { ...fromPath, ...parseParams(args.many('param')) }; + const body = args.get('body') ? JSON.parse(readFileSync(resolve(args.get('body')!), 'utf8')) as unknown : undefined; + const uploadFile = args.get('upload'); + const upload = uploadFile ? { bytes: new Uint8Array(readFileSync(resolve(uploadFile))), contentType: UPLOAD_TYPES[uploadFile.split('.').pop()!.toLowerCase()] ?? 'application/octet-stream' } : undefined; + const out = args.get('out'); + const req = buildRequest(op, params, body, { upload, download: !!out && op.flags.includes('d') }); + + const kind = gateOf(st, op.id, op.method); + const decision = decide({ + kind, method: op.method, dry: args.has('dry'), yes: args.has('yes'), getOnly, + tty: !!process.stdin.isTTY && !!process.stdout.isTTY, + agent: process.env.STOREBOUND_SERVE === '1' || process.env.STOREBOUND_MCP === '1', + }); + if (decision.action === 'refuse') throw new Error(`${op.id}: ${decision.why}`); + if (decision.action === 'dry') { + if (json) console.log(JSON.stringify({ dryRun: true, operation: op.id, gate: kind, why: decision.why, request: { method: req.method, url: req.url, body: typeof req.body === 'string' ? JSON.parse(req.body) : req.body ? `<${req.body.length} bytes>` : undefined } })); + else console.log(`dry run (${decision.why}): nothing sent\n${kind === 'owner' ? `owner only: this ${ownerReason(st, op.id, op.method)}; sending also asks you to type the operation id\n` : ''}\n${describeRequest(req)}`); + return; + } + if (decision.action === 'confirm') { + console.log(describeRequest(req)); + process.stdout.write(`\nThis ${ownerReason(st, op.id, op.method)}. Type the operation id (${op.id}) to send it: `); + if ((await readLine()) !== op.id) { console.log('not sent'); process.exitCode = 1; return; } + } + + const root = process.env.STOREBOUND_PROJECT || process.cwd(); + const auth = await authFor(st, root); + const onRetry = (m: string) => console.error(`api: ${m}`); + const all = args.has('all-pages'); + if (all && op.method !== 'GET' && !(op.store === 'play' && /[pt]/.test(op.flags))) throw new Error(`${op.id}: --all-pages is for paged reads`); + const r = all ? await sendAll(req, auth, { onRetry, onPage: n => { if (!json) console.error(`api: page ${n}`); } }) : { ...(await send(req, auth, { onRetry })), pages: 1 }; + if (!json) console.error(`${req.method} ${req.url.replace(/\?.*$/, '')} -> ${r.status}${r.pages > 1 ? ` · ${r.pages} pages` : ''}${r.rateLimit ? ` · rate limit ${r.rateLimit}` : ''}`); + if (r.bytes) { + if (!out) throw new Error(`${op.id}: binary response (${r.bytes.length} bytes): pass --out `); + writeFileSync(resolve(out), r.bytes); + console.log(json ? JSON.stringify({ status: r.status, out, bytes: r.bytes.length }) : `wrote ${out} (${r.bytes.length} bytes)`); + return; + } + if (out) { writeFileSync(resolve(out), JSON.stringify(r.json, null, 2) + '\n'); if (!json) console.log(`wrote ${out}`); return; } + console.log(json ? JSON.stringify(r.json) : JSON.stringify(r.json, null, 2)); +} + diff --git a/cli/api/apple.gen.ts b/cli/api/apple.gen.ts new file mode 100644 index 00000000..5fa1033a --- /dev/null +++ b/cli/api/apple.gen.ts @@ -0,0 +1,1311 @@ +// GENERATED by tools/gen-api.ts from specs/app-store-connect.oas.json (App Store Connect API 4.5.1, https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip, downloaded 2026-10-11). Do not edit: run `bun tools/gen-api.ts` (CI checks it is fresh). +// One row per operation: [method, path, query parameters ("name", "name!" when required; arrays are comma-joined), +// request body resource type ("type", "type[]" for a relationship list, "json" for another body, "" for none), +// response ("many:type" | "one:type" | "json" | "raw:" for another body, sent as Accept | "none")]. +export const APPLE_SPEC = { title: 'App Store Connect API', version: '4.5.1', sha256: '7518d3a94a8bd701ac25c1c601b95b8f53aad92091affb15a2a9d331713dac1a', base: 'https://api.appstoreconnect.apple.com' } as const; + +export const APPLE_OPS = { + accessibilityDeclarations_createInstance: ['POST', '/v1/accessibilityDeclarations', '', 'accessibilityDeclarations', 'one:accessibilityDeclarations'], + accessibilityDeclarations_deleteInstance: ['DELETE', '/v1/accessibilityDeclarations/{id}', '', '', 'none'], + accessibilityDeclarations_getInstance: ['GET', '/v1/accessibilityDeclarations/{id}', 'fields[accessibilityDeclarations]', '', 'one:accessibilityDeclarations'], + accessibilityDeclarations_updateInstance: ['PATCH', '/v1/accessibilityDeclarations/{id}', '', 'accessibilityDeclarations', 'one:accessibilityDeclarations'], + actors_getCollection: ['GET', '/v1/actors', 'filter[id]! fields[actors] limit', '', 'many:actors'], + actors_getInstance: ['GET', '/v1/actors/{id}', 'fields[actors]', '', 'one:actors'], + ageRatingDeclarations_updateInstance: ['PATCH', '/v1/ageRatingDeclarations/{id}', '', 'ageRatingDeclarations', 'one:ageRatingDeclarations'], + alternativeDistributionDomains_createInstance: ['POST', '/v1/alternativeDistributionDomains', '', 'alternativeDistributionDomains', 'one:alternativeDistributionDomains'], + alternativeDistributionDomains_deleteInstance: ['DELETE', '/v1/alternativeDistributionDomains/{id}', '', '', 'none'], + alternativeDistributionDomains_getCollection: ['GET', '/v1/alternativeDistributionDomains', 'fields[alternativeDistributionDomains] limit', '', 'many:alternativeDistributionDomains'], + alternativeDistributionDomains_getInstance: ['GET', '/v1/alternativeDistributionDomains/{id}', 'fields[alternativeDistributionDomains]', '', 'one:alternativeDistributionDomains'], + alternativeDistributionKeys_createInstance: ['POST', '/v1/alternativeDistributionKeys', '', 'alternativeDistributionKeys', 'one:alternativeDistributionKeys'], + alternativeDistributionKeys_deleteInstance: ['DELETE', '/v1/alternativeDistributionKeys/{id}', '', '', 'none'], + alternativeDistributionKeys_getCollection: ['GET', '/v1/alternativeDistributionKeys', 'exists[app] fields[alternativeDistributionKeys] limit', '', 'many:alternativeDistributionKeys'], + alternativeDistributionKeys_getInstance: ['GET', '/v1/alternativeDistributionKeys/{id}', 'fields[alternativeDistributionKeys]', '', 'one:alternativeDistributionKeys'], + alternativeDistributionPackageDeltas_getInstance: ['GET', '/v1/alternativeDistributionPackageDeltas/{id}', 'fields[alternativeDistributionPackageDeltas]', '', 'one:alternativeDistributionPackageDeltas'], + alternativeDistributionPackageVariants_getInstance: ['GET', '/v1/alternativeDistributionPackageVariants/{id}', 'fields[alternativeDistributionPackageVariants]', '', 'one:alternativeDistributionPackageVariants'], + alternativeDistributionPackageVersions_deltas_getToManyRelated: ['GET', '/v1/alternativeDistributionPackageVersions/{id}/deltas', 'fields[alternativeDistributionPackageDeltas] limit', '', 'many:alternativeDistributionPackageDeltas'], + alternativeDistributionPackageVersions_deltas_getToManyRelationship: ['GET', '/v1/alternativeDistributionPackageVersions/{id}/relationships/deltas', 'limit', '', 'many:alternativeDistributionPackageDeltas'], + alternativeDistributionPackageVersions_getInstance: ['GET', '/v1/alternativeDistributionPackageVersions/{id}', 'fields[alternativeDistributionPackageVersions] fields[alternativeDistributionPackageVariants] fields[alternativeDistributionPackageDeltas] fields[alternativeDistributionPackages] include limit[deltas] limit[variants]', '', 'one:alternativeDistributionPackageVersions'], + alternativeDistributionPackageVersions_variants_getToManyRelated: ['GET', '/v1/alternativeDistributionPackageVersions/{id}/variants', 'fields[alternativeDistributionPackageVariants] limit', '', 'many:alternativeDistributionPackageVariants'], + alternativeDistributionPackageVersions_variants_getToManyRelationship: ['GET', '/v1/alternativeDistributionPackageVersions/{id}/relationships/variants', 'limit', '', 'many:alternativeDistributionPackageVariants'], + alternativeDistributionPackages_createInstance: ['POST', '/v1/alternativeDistributionPackages', '', 'alternativeDistributionPackages', 'one:alternativeDistributionPackages'], + alternativeDistributionPackages_getInstance: ['GET', '/v1/alternativeDistributionPackages/{id}', 'fields[alternativeDistributionPackages] fields[alternativeDistributionPackageVersions] include limit[versions]', '', 'one:alternativeDistributionPackages'], + alternativeDistributionPackages_versions_getToManyRelated: ['GET', '/v1/alternativeDistributionPackages/{id}/versions', 'filter[state] fields[alternativeDistributionPackageVersions] fields[alternativeDistributionPackageVariants] fields[alternativeDistributionPackageDeltas] fields[alternativeDistributionPackages] limit include limit[variants] limit[deltas]', '', 'many:alternativeDistributionPackageVersions'], + alternativeDistributionPackages_versions_getToManyRelationship: ['GET', '/v1/alternativeDistributionPackages/{id}/relationships/versions', 'limit', '', 'many:alternativeDistributionPackageVersions'], + analyticsReportInstances_getInstance: ['GET', '/v1/analyticsReportInstances/{id}', 'fields[analyticsReportInstances]', '', 'one:analyticsReportInstances'], + analyticsReportInstances_segments_getToManyRelated: ['GET', '/v1/analyticsReportInstances/{id}/segments', 'fields[analyticsReportSegments] limit', '', 'many:analyticsReportSegments'], + analyticsReportInstances_segments_getToManyRelationship: ['GET', '/v1/analyticsReportInstances/{id}/relationships/segments', 'limit', '', 'many:analyticsReportSegments'], + analyticsReportRequests_createInstance: ['POST', '/v1/analyticsReportRequests', '', 'analyticsReportRequests', 'one:analyticsReportRequests'], + analyticsReportRequests_deleteInstance: ['DELETE', '/v1/analyticsReportRequests/{id}', '', '', 'none'], + analyticsReportRequests_getInstance: ['GET', '/v1/analyticsReportRequests/{id}', 'fields[analyticsReportRequests] fields[analyticsReports] include limit[reports]', '', 'one:analyticsReportRequests'], + analyticsReportRequests_reports_getToManyRelated: ['GET', '/v1/analyticsReportRequests/{id}/reports', 'filter[name] filter[category] fields[analyticsReports] limit', '', 'many:analyticsReports'], + analyticsReportRequests_reports_getToManyRelationship: ['GET', '/v1/analyticsReportRequests/{id}/relationships/reports', 'limit', '', 'many:analyticsReports'], + analyticsReportSegments_getInstance: ['GET', '/v1/analyticsReportSegments/{id}', 'fields[analyticsReportSegments]', '', 'one:analyticsReportSegments'], + analyticsReports_getInstance: ['GET', '/v1/analyticsReports/{id}', 'fields[analyticsReports]', '', 'one:analyticsReports'], + analyticsReports_instances_getToManyRelated: ['GET', '/v1/analyticsReports/{id}/instances', 'filter[granularity] filter[processingDate] fields[analyticsReportInstances] limit', '', 'many:analyticsReportInstances'], + analyticsReports_instances_getToManyRelationship: ['GET', '/v1/analyticsReports/{id}/relationships/instances', 'limit', '', 'many:analyticsReportInstances'], + androidToIosAppMappingDetails_createInstance: ['POST', '/v1/androidToIosAppMappingDetails', '', 'androidToIosAppMappingDetails', 'one:androidToIosAppMappingDetails'], + androidToIosAppMappingDetails_deleteInstance: ['DELETE', '/v1/androidToIosAppMappingDetails/{id}', '', '', 'none'], + androidToIosAppMappingDetails_getInstance: ['GET', '/v1/androidToIosAppMappingDetails/{id}', 'fields[androidToIosAppMappingDetails]', '', 'one:androidToIosAppMappingDetails'], + androidToIosAppMappingDetails_updateInstance: ['PATCH', '/v1/androidToIosAppMappingDetails/{id}', '', 'androidToIosAppMappingDetails', 'one:androidToIosAppMappingDetails'], + appAssetLibraries_getInstance: ['GET', '/v1/appAssetLibraries/{id}', 'fields[appAssetLibraries]', '', 'one:appAssetLibraries'], + appAssetLibraries_images_getToManyRelated: ['GET', '/v1/appAssetLibraries/{id}/images', 'filter[category] filter[state] filter[referenceName] filter[specId] filter[id] sort fields[appAssetLibraryImages] fields[appAssetLibraryPlacements] limit include limit[placements]', '', 'many:appAssetLibraryImages'], + appAssetLibraries_images_getToManyRelationship: ['GET', '/v1/appAssetLibraries/{id}/relationships/images', 'limit', '', 'many:appAssetLibraryImages'], + appAssetLibraries_videos_getToManyRelated: ['GET', '/v1/appAssetLibraries/{id}/videos', 'filter[category] filter[state] filter[referenceName] filter[specId] filter[id] sort fields[appAssetLibraryVideos] fields[appAssetLibraryPlacements] limit include limit[placements]', '', 'many:appAssetLibraryVideos'], + appAssetLibraries_videos_getToManyRelationship: ['GET', '/v1/appAssetLibraries/{id}/relationships/videos', 'limit', '', 'many:appAssetLibraryVideos'], + appAssetLibraryImages_createInstance: ['POST', '/v1/appAssetLibraryImages', '', 'appAssetLibraryImages', 'one:appAssetLibraryImages'], + appAssetLibraryImages_deleteInstance: ['DELETE', '/v1/appAssetLibraryImages/{id}', '', '', 'none'], + appAssetLibraryImages_getInstance: ['GET', '/v1/appAssetLibraryImages/{id}', 'fields[appAssetLibraryImages] fields[appAssetLibraryPlacements] include limit[placements]', '', 'one:appAssetLibraryImages'], + appAssetLibraryImages_placements_getToManyRelated: ['GET', '/v1/appAssetLibraryImages/{id}/placements', 'filter[placementType] filter[placementGroup] filter[state] filter[video] filter[appEventLocalization] filter[appStoreVersionLocalization] filter[appCustomProductPageLocalization] filter[appStoreVersionExperimentTreatmentLocalization] filter[id] sort fields[appAssetLibraryPlacements] fields[appAssetLibraryImages] fields[appAssetLibraryVideos] fields[appEventLocalizations] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] limit include', '', 'many:appAssetLibraryPlacements'], + appAssetLibraryImages_placements_getToManyRelationship: ['GET', '/v1/appAssetLibraryImages/{id}/relationships/placements', 'limit', '', 'many:appAssetLibraryPlacements'], + appAssetLibraryImages_updateInstance: ['PATCH', '/v1/appAssetLibraryImages/{id}', '', 'appAssetLibraryImages', 'one:appAssetLibraryImages'], + appAssetLibraryPlacementOrderingRequests_createInstance: ['POST', '/v1/appAssetLibraryPlacementOrderingRequests', 'fields[appAssetLibraryPlacements] include limit[orderedPlacements] fields[appAssetLibraryPlacementOrderingRequests]', 'appAssetLibraryPlacementOrderingRequests', 'one:appAssetLibraryPlacementOrderingRequests'], + appAssetLibraryPlacements_createInstance: ['POST', '/v1/appAssetLibraryPlacements', '', 'appAssetLibraryPlacements', 'one:appAssetLibraryPlacements'], + appAssetLibraryPlacements_deleteInstance: ['DELETE', '/v1/appAssetLibraryPlacements/{id}', '', '', 'none'], + appAssetLibraryPlacements_getInstance: ['GET', '/v1/appAssetLibraryPlacements/{id}', 'fields[appAssetLibraryPlacements] fields[appAssetLibraryImages] fields[appAssetLibraryVideos] fields[appEventLocalizations] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] include', '', 'one:appAssetLibraryPlacements'], + appAssetLibraryRefData_getCollection: ['GET', '/v1/appAssetLibraryRefData', 'filter[placementTypes] filter[placementProfileGroups] filter[features] filter[specs] fields[appAssetLibraryRefData]', '', 'many:appAssetLibraryRefData'], + appAssetLibraryRefData_getInstance: ['GET', '/v1/appAssetLibraryRefData/{id}', 'fields[appAssetLibraryRefData]', '', 'one:appAssetLibraryRefData'], + appAssetLibraryVideos_createInstance: ['POST', '/v1/appAssetLibraryVideos', '', 'appAssetLibraryVideos', 'one:appAssetLibraryVideos'], + appAssetLibraryVideos_deleteInstance: ['DELETE', '/v1/appAssetLibraryVideos/{id}', '', '', 'none'], + appAssetLibraryVideos_getInstance: ['GET', '/v1/appAssetLibraryVideos/{id}', 'fields[appAssetLibraryVideos] fields[appAssetLibraryPlacements] include limit[placements]', '', 'one:appAssetLibraryVideos'], + appAssetLibraryVideos_placements_getToManyRelated: ['GET', '/v1/appAssetLibraryVideos/{id}/placements', 'filter[placementType] filter[placementGroup] filter[state] filter[image] filter[appEventLocalization] filter[appStoreVersionLocalization] filter[appCustomProductPageLocalization] filter[appStoreVersionExperimentTreatmentLocalization] filter[id] sort fields[appAssetLibraryPlacements] fields[appAssetLibraryImages] fields[appAssetLibraryVideos] fields[appEventLocalizations] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] limit include', '', 'many:appAssetLibraryPlacements'], + appAssetLibraryVideos_placements_getToManyRelationship: ['GET', '/v1/appAssetLibraryVideos/{id}/relationships/placements', 'limit', '', 'many:appAssetLibraryPlacements'], + appAssetLibraryVideos_updateInstance: ['PATCH', '/v1/appAssetLibraryVideos/{id}', '', 'appAssetLibraryVideos', 'one:appAssetLibraryVideos'], + appAvailabilitiesV2_createInstance: ['POST', '/v2/appAvailabilities', '', 'appAvailabilities', 'one:appAvailabilities'], + appAvailabilitiesV2_getInstance: ['GET', '/v2/appAvailabilities/{id}', 'fields[appAvailabilities] fields[territoryAvailabilities] include limit[territoryAvailabilities]', '', 'one:appAvailabilities'], + appAvailabilitiesV2_territoryAvailabilities_getToManyRelated: ['GET', '/v2/appAvailabilities/{id}/territoryAvailabilities', 'fields[territoryAvailabilities] fields[territories] limit include', '', 'many:territoryAvailabilities'], + appAvailabilitiesV2_territoryAvailabilities_getToManyRelationship: ['GET', '/v2/appAvailabilities/{id}/relationships/territoryAvailabilities', 'limit', '', 'many:territoryAvailabilities'], + appCategories_getCollection: ['GET', '/v1/appCategories', 'filter[platforms] exists[parent] fields[appCategories] limit include limit[subcategories]', '', 'many:appCategories'], + appCategories_getInstance: ['GET', '/v1/appCategories/{id}', 'fields[appCategories] include limit[subcategories]', '', 'one:appCategories'], + appCategories_parent_getToOneRelated: ['GET', '/v1/appCategories/{id}/parent', 'fields[appCategories]', '', 'one:appCategories'], + appCategories_parent_getToOneRelationship: ['GET', '/v1/appCategories/{id}/relationships/parent', '', '', 'one:appCategories'], + appCategories_subcategories_getToManyRelated: ['GET', '/v1/appCategories/{id}/subcategories', 'fields[appCategories] limit', '', 'many:appCategories'], + appCategories_subcategories_getToManyRelationship: ['GET', '/v1/appCategories/{id}/relationships/subcategories', 'limit', '', 'many:appCategories'], + appClipAdvancedExperienceImages_createInstance: ['POST', '/v1/appClipAdvancedExperienceImages', '', 'appClipAdvancedExperienceImages', 'one:appClipAdvancedExperienceImages'], + appClipAdvancedExperienceImages_getInstance: ['GET', '/v1/appClipAdvancedExperienceImages/{id}', 'fields[appClipAdvancedExperienceImages]', '', 'one:appClipAdvancedExperienceImages'], + appClipAdvancedExperienceImages_updateInstance: ['PATCH', '/v1/appClipAdvancedExperienceImages/{id}', '', 'appClipAdvancedExperienceImages', 'one:appClipAdvancedExperienceImages'], + appClipAdvancedExperiences_createInstance: ['POST', '/v1/appClipAdvancedExperiences', '', 'appClipAdvancedExperiences', 'one:appClipAdvancedExperiences'], + appClipAdvancedExperiences_getInstance: ['GET', '/v1/appClipAdvancedExperiences/{id}', 'fields[appClipAdvancedExperiences] fields[appClips] fields[appClipAdvancedExperienceImages] fields[appClipAdvancedExperienceLocalizations] include limit[localizations]', '', 'one:appClipAdvancedExperiences'], + appClipAdvancedExperiences_updateInstance: ['PATCH', '/v1/appClipAdvancedExperiences/{id}', '', 'appClipAdvancedExperiences', 'one:appClipAdvancedExperiences'], + appClipAppStoreReviewDetails_createInstance: ['POST', '/v1/appClipAppStoreReviewDetails', '', 'appClipAppStoreReviewDetails', 'one:appClipAppStoreReviewDetails'], + appClipAppStoreReviewDetails_getInstance: ['GET', '/v1/appClipAppStoreReviewDetails/{id}', 'fields[appClipAppStoreReviewDetails] fields[appClipDefaultExperiences] include', '', 'one:appClipAppStoreReviewDetails'], + appClipAppStoreReviewDetails_updateInstance: ['PATCH', '/v1/appClipAppStoreReviewDetails/{id}', '', 'appClipAppStoreReviewDetails', 'one:appClipAppStoreReviewDetails'], + appClipDefaultExperienceLocalizations_appClipHeaderImage_getToOneRelated: ['GET', '/v1/appClipDefaultExperienceLocalizations/{id}/appClipHeaderImage', 'fields[appClipHeaderImages] fields[appClipDefaultExperienceLocalizations] include', '', 'one:appClipHeaderImages'], + appClipDefaultExperienceLocalizations_appClipHeaderImage_getToOneRelationship: ['GET', '/v1/appClipDefaultExperienceLocalizations/{id}/relationships/appClipHeaderImage', '', '', 'one:appClipHeaderImages'], + appClipDefaultExperienceLocalizations_createInstance: ['POST', '/v1/appClipDefaultExperienceLocalizations', '', 'appClipDefaultExperienceLocalizations', 'one:appClipDefaultExperienceLocalizations'], + appClipDefaultExperienceLocalizations_deleteInstance: ['DELETE', '/v1/appClipDefaultExperienceLocalizations/{id}', '', '', 'none'], + appClipDefaultExperienceLocalizations_getInstance: ['GET', '/v1/appClipDefaultExperienceLocalizations/{id}', 'fields[appClipDefaultExperienceLocalizations] fields[appClipDefaultExperiences] fields[appClipHeaderImages] include', '', 'one:appClipDefaultExperienceLocalizations'], + appClipDefaultExperienceLocalizations_updateInstance: ['PATCH', '/v1/appClipDefaultExperienceLocalizations/{id}', '', 'appClipDefaultExperienceLocalizations', 'one:appClipDefaultExperienceLocalizations'], + appClipDefaultExperiences_appClipAppStoreReviewDetail_getToOneRelated: ['GET', '/v1/appClipDefaultExperiences/{id}/appClipAppStoreReviewDetail', 'fields[appClipAppStoreReviewDetails] fields[appClipDefaultExperiences] include', '', 'one:appClipAppStoreReviewDetails'], + appClipDefaultExperiences_appClipAppStoreReviewDetail_getToOneRelationship: ['GET', '/v1/appClipDefaultExperiences/{id}/relationships/appClipAppStoreReviewDetail', '', '', 'one:appClipAppStoreReviewDetails'], + appClipDefaultExperiences_appClipDefaultExperienceLocalizations_getToManyRelated: ['GET', '/v1/appClipDefaultExperiences/{id}/appClipDefaultExperienceLocalizations', 'filter[locale] fields[appClipDefaultExperienceLocalizations] fields[appClipDefaultExperiences] fields[appClipHeaderImages] limit include', '', 'many:appClipDefaultExperienceLocalizations'], + appClipDefaultExperiences_appClipDefaultExperienceLocalizations_getToManyRelationship: ['GET', '/v1/appClipDefaultExperiences/{id}/relationships/appClipDefaultExperienceLocalizations', 'limit', '', 'many:appClipDefaultExperienceLocalizations'], + appClipDefaultExperiences_createInstance: ['POST', '/v1/appClipDefaultExperiences', '', 'appClipDefaultExperiences', 'one:appClipDefaultExperiences'], + appClipDefaultExperiences_deleteInstance: ['DELETE', '/v1/appClipDefaultExperiences/{id}', '', '', 'none'], + appClipDefaultExperiences_getInstance: ['GET', '/v1/appClipDefaultExperiences/{id}', 'fields[appClipDefaultExperiences] fields[appClips] fields[appStoreVersions] fields[appClipDefaultExperienceLocalizations] fields[appClipAppStoreReviewDetails] include limit[appClipDefaultExperienceLocalizations]', '', 'one:appClipDefaultExperiences'], + appClipDefaultExperiences_releaseWithAppStoreVersion_getToOneRelated: ['GET', '/v1/appClipDefaultExperiences/{id}/releaseWithAppStoreVersion', 'fields[appStoreVersions] fields[apps] fields[appStoreVersionLocalizations] fields[builds] fields[appStoreVersionPhasedReleases] fields[gameCenterAppVersions] fields[routingAppCoverages] fields[appStoreReviewDetails] fields[appStoreVersionSubmissions] fields[appClipDefaultExperiences] fields[appStoreVersionExperiments] fields[alternativeDistributionPackages] include limit[appStoreVersionLocalizations] limit[appStoreVersionExperiments] limit[appStoreVersionExperimentsV2]', '', 'one:appStoreVersions'], + appClipDefaultExperiences_releaseWithAppStoreVersion_getToOneRelationship: ['GET', '/v1/appClipDefaultExperiences/{id}/relationships/releaseWithAppStoreVersion', '', '', 'one:appStoreVersions'], + appClipDefaultExperiences_releaseWithAppStoreVersion_updateToOneRelationship: ['PATCH', '/v1/appClipDefaultExperiences/{id}/relationships/releaseWithAppStoreVersion', '', 'appStoreVersions', 'none'], + appClipDefaultExperiences_updateInstance: ['PATCH', '/v1/appClipDefaultExperiences/{id}', '', 'appClipDefaultExperiences', 'one:appClipDefaultExperiences'], + appClipHeaderImages_createInstance: ['POST', '/v1/appClipHeaderImages', '', 'appClipHeaderImages', 'one:appClipHeaderImages'], + appClipHeaderImages_deleteInstance: ['DELETE', '/v1/appClipHeaderImages/{id}', '', '', 'none'], + appClipHeaderImages_getInstance: ['GET', '/v1/appClipHeaderImages/{id}', 'fields[appClipHeaderImages] fields[appClipDefaultExperienceLocalizations] include', '', 'one:appClipHeaderImages'], + appClipHeaderImages_updateInstance: ['PATCH', '/v1/appClipHeaderImages/{id}', '', 'appClipHeaderImages', 'one:appClipHeaderImages'], + appClips_appClipAdvancedExperiences_getToManyRelated: ['GET', '/v1/appClips/{id}/appClipAdvancedExperiences', 'filter[status] filter[placeStatus] filter[action] fields[appClipAdvancedExperiences] fields[appClips] fields[appClipAdvancedExperienceImages] fields[appClipAdvancedExperienceLocalizations] limit include limit[localizations]', '', 'many:appClipAdvancedExperiences'], + appClips_appClipAdvancedExperiences_getToManyRelationship: ['GET', '/v1/appClips/{id}/relationships/appClipAdvancedExperiences', 'limit', '', 'many:appClipAdvancedExperiences'], + appClips_appClipDefaultExperiences_getToManyRelated: ['GET', '/v1/appClips/{id}/appClipDefaultExperiences', 'exists[releaseWithAppStoreVersion] fields[appClipDefaultExperiences] fields[appClips] fields[appStoreVersions] fields[appClipDefaultExperienceLocalizations] fields[appClipAppStoreReviewDetails] limit include limit[appClipDefaultExperienceLocalizations]', '', 'many:appClipDefaultExperiences'], + appClips_appClipDefaultExperiences_getToManyRelationship: ['GET', '/v1/appClips/{id}/relationships/appClipDefaultExperiences', 'limit', '', 'many:appClipDefaultExperiences'], + appClips_getInstance: ['GET', '/v1/appClips/{id}', 'fields[appClips] fields[apps] fields[appClipDefaultExperiences] include limit[appClipDefaultExperiences]', '', 'one:appClips'], + appCustomProductPageLocalizations_appPreviewSets_getToManyRelated: ['GET', '/v1/appCustomProductPageLocalizations/{id}/appPreviewSets', 'filter[previewType] filter[appStoreVersionLocalization] filter[appStoreVersionExperimentTreatmentLocalization] fields[appPreviewSets] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appPreviews] limit include limit[appPreviews]', '', 'many:appPreviewSets'], + appCustomProductPageLocalizations_appPreviewSets_getToManyRelationship: ['GET', '/v1/appCustomProductPageLocalizations/{id}/relationships/appPreviewSets', 'limit', '', 'many:appPreviewSets'], + appCustomProductPageLocalizations_appScreenshotSets_getToManyRelated: ['GET', '/v1/appCustomProductPageLocalizations/{id}/appScreenshotSets', 'filter[screenshotDisplayType] filter[appStoreVersionLocalization] filter[appStoreVersionExperimentTreatmentLocalization] fields[appScreenshotSets] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appScreenshots] limit include limit[appScreenshots]', '', 'many:appScreenshotSets'], + appCustomProductPageLocalizations_appScreenshotSets_getToManyRelationship: ['GET', '/v1/appCustomProductPageLocalizations/{id}/relationships/appScreenshotSets', 'limit', '', 'many:appScreenshotSets'], + appCustomProductPageLocalizations_createInstance: ['POST', '/v1/appCustomProductPageLocalizations', '', 'appCustomProductPageLocalizations', 'one:appCustomProductPageLocalizations'], + appCustomProductPageLocalizations_deleteInstance: ['DELETE', '/v1/appCustomProductPageLocalizations/{id}', '', '', 'none'], + appCustomProductPageLocalizations_getInstance: ['GET', '/v1/appCustomProductPageLocalizations/{id}', 'fields[appCustomProductPageLocalizations] fields[appCustomProductPageVersions] fields[appScreenshotSets] fields[appPreviewSets] fields[appAssetLibraryPlacements] include limit[appPreviewSets] limit[appScreenshotSets] limit[placements] limit[searchKeywords]', '', 'one:appCustomProductPageLocalizations'], + appCustomProductPageLocalizations_placements_getToManyRelated: ['GET', '/v1/appCustomProductPageLocalizations/{id}/placements', 'filter[placementType] filter[placementGroup] filter[state] filter[image] filter[video] filter[appEventLocalization] filter[appStoreVersionLocalization] filter[appStoreVersionExperimentTreatmentLocalization] filter[id] sort fields[appAssetLibraryPlacements] fields[appAssetLibraryImages] fields[appAssetLibraryVideos] fields[appEventLocalizations] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] limit include', '', 'many:appAssetLibraryPlacements'], + appCustomProductPageLocalizations_placements_getToManyRelationship: ['GET', '/v1/appCustomProductPageLocalizations/{id}/relationships/placements', 'limit', '', 'many:appAssetLibraryPlacements'], + appCustomProductPageLocalizations_searchKeywords_createToManyRelationship: ['POST', '/v1/appCustomProductPageLocalizations/{id}/relationships/searchKeywords', '', 'appKeywords[]', 'none'], + appCustomProductPageLocalizations_searchKeywords_deleteToManyRelationship: ['DELETE', '/v1/appCustomProductPageLocalizations/{id}/relationships/searchKeywords', '', 'appKeywords[]', 'none'], + appCustomProductPageLocalizations_searchKeywords_getToManyRelated: ['GET', '/v1/appCustomProductPageLocalizations/{id}/searchKeywords', 'filter[platform] filter[locale] fields[appKeywords] limit', '', 'many:appKeywords'], + appCustomProductPageLocalizations_searchKeywords_getToManyRelationship: ['GET', '/v1/appCustomProductPageLocalizations/{id}/relationships/searchKeywords', 'limit', '', 'many:appKeywords'], + appCustomProductPageLocalizations_updateInstance: ['PATCH', '/v1/appCustomProductPageLocalizations/{id}', '', 'appCustomProductPageLocalizations', 'one:appCustomProductPageLocalizations'], + appCustomProductPageVersions_appCustomProductPageLocalizations_getToManyRelated: ['GET', '/v1/appCustomProductPageVersions/{id}/appCustomProductPageLocalizations', 'filter[locale] fields[appCustomProductPageLocalizations] fields[appCustomProductPageVersions] fields[appScreenshotSets] fields[appPreviewSets] fields[appKeywords] fields[appAssetLibraryPlacements] limit include limit[appScreenshotSets] limit[appPreviewSets] limit[searchKeywords] limit[placements]', '', 'many:appCustomProductPageLocalizations'], + appCustomProductPageVersions_appCustomProductPageLocalizations_getToManyRelationship: ['GET', '/v1/appCustomProductPageVersions/{id}/relationships/appCustomProductPageLocalizations', 'limit', '', 'many:appCustomProductPageLocalizations'], + appCustomProductPageVersions_createInstance: ['POST', '/v1/appCustomProductPageVersions', '', 'appCustomProductPageVersions', 'one:appCustomProductPageVersions'], + appCustomProductPageVersions_getInstance: ['GET', '/v1/appCustomProductPageVersions/{id}', 'fields[appCustomProductPageVersions] fields[appCustomProductPages] fields[appCustomProductPageLocalizations] include limit[appCustomProductPageLocalizations]', '', 'one:appCustomProductPageVersions'], + appCustomProductPageVersions_updateInstance: ['PATCH', '/v1/appCustomProductPageVersions/{id}', '', 'appCustomProductPageVersions', 'one:appCustomProductPageVersions'], + appCustomProductPages_appCustomProductPageVersions_getToManyRelated: ['GET', '/v1/appCustomProductPages/{id}/appCustomProductPageVersions', 'filter[state] fields[appCustomProductPageVersions] fields[appCustomProductPages] fields[appCustomProductPageLocalizations] limit include limit[appCustomProductPageLocalizations]', '', 'many:appCustomProductPageVersions'], + appCustomProductPages_appCustomProductPageVersions_getToManyRelationship: ['GET', '/v1/appCustomProductPages/{id}/relationships/appCustomProductPageVersions', 'limit', '', 'many:appCustomProductPageVersions'], + appCustomProductPages_createInstance: ['POST', '/v1/appCustomProductPages', '', 'appCustomProductPages', 'one:appCustomProductPages'], + appCustomProductPages_deleteInstance: ['DELETE', '/v1/appCustomProductPages/{id}', '', '', 'none'], + appCustomProductPages_getInstance: ['GET', '/v1/appCustomProductPages/{id}', 'fields[appCustomProductPages] fields[apps] fields[appCustomProductPageVersions] include limit[appCustomProductPageVersions]', '', 'one:appCustomProductPages'], + appCustomProductPages_updateInstance: ['PATCH', '/v1/appCustomProductPages/{id}', '', 'appCustomProductPages', 'one:appCustomProductPages'], + appEncryptionDeclarationDocuments_createInstance: ['POST', '/v1/appEncryptionDeclarationDocuments', '', 'appEncryptionDeclarationDocuments', 'one:appEncryptionDeclarationDocuments'], + appEncryptionDeclarationDocuments_getInstance: ['GET', '/v1/appEncryptionDeclarationDocuments/{id}', 'fields[appEncryptionDeclarationDocuments]', '', 'one:appEncryptionDeclarationDocuments'], + appEncryptionDeclarationDocuments_updateInstance: ['PATCH', '/v1/appEncryptionDeclarationDocuments/{id}', '', 'appEncryptionDeclarationDocuments', 'one:appEncryptionDeclarationDocuments'], + appEncryptionDeclarations_appEncryptionDeclarationDocument_getToOneRelated: ['GET', '/v1/appEncryptionDeclarations/{id}/appEncryptionDeclarationDocument', 'fields[appEncryptionDeclarationDocuments]', '', 'one:appEncryptionDeclarationDocuments'], + appEncryptionDeclarations_appEncryptionDeclarationDocument_getToOneRelationship: ['GET', '/v1/appEncryptionDeclarations/{id}/relationships/appEncryptionDeclarationDocument', '', '', 'one:appEncryptionDeclarationDocuments'], + appEncryptionDeclarations_app_getToOneRelated: ['GET', '/v1/appEncryptionDeclarations/{id}/app', 'fields[apps]', '', 'one:apps'], + appEncryptionDeclarations_app_getToOneRelationship: ['GET', '/v1/appEncryptionDeclarations/{id}/relationships/app', '', '', 'one:apps'], + appEncryptionDeclarations_builds_createToManyRelationship: ['POST', '/v1/appEncryptionDeclarations/{id}/relationships/builds', '', 'builds[]', 'none'], + appEncryptionDeclarations_createInstance: ['POST', '/v1/appEncryptionDeclarations', '', 'appEncryptionDeclarations', 'one:appEncryptionDeclarations'], + appEncryptionDeclarations_getCollection: ['GET', '/v1/appEncryptionDeclarations', 'filter[platform] filter[app] filter[builds] fields[appEncryptionDeclarations] fields[apps] fields[builds] fields[appEncryptionDeclarationDocuments] limit include limit[builds]', '', 'many:appEncryptionDeclarations'], + appEncryptionDeclarations_getInstance: ['GET', '/v1/appEncryptionDeclarations/{id}', 'fields[appEncryptionDeclarations] fields[apps] fields[builds] fields[appEncryptionDeclarationDocuments] include limit[builds]', '', 'one:appEncryptionDeclarations'], + appEventLocalizations_appEventScreenshots_getToManyRelated: ['GET', '/v1/appEventLocalizations/{id}/appEventScreenshots', 'fields[appEventScreenshots] fields[appEventLocalizations] limit include', '', 'many:appEventScreenshots'], + appEventLocalizations_appEventScreenshots_getToManyRelationship: ['GET', '/v1/appEventLocalizations/{id}/relationships/appEventScreenshots', 'limit', '', 'many:appEventScreenshots'], + appEventLocalizations_appEventVideoClips_getToManyRelated: ['GET', '/v1/appEventLocalizations/{id}/appEventVideoClips', 'fields[appEventVideoClips] fields[appEventLocalizations] limit include', '', 'many:appEventVideoClips'], + appEventLocalizations_appEventVideoClips_getToManyRelationship: ['GET', '/v1/appEventLocalizations/{id}/relationships/appEventVideoClips', 'limit', '', 'many:appEventVideoClips'], + appEventLocalizations_createInstance: ['POST', '/v1/appEventLocalizations', '', 'appEventLocalizations', 'one:appEventLocalizations'], + appEventLocalizations_deleteInstance: ['DELETE', '/v1/appEventLocalizations/{id}', '', '', 'none'], + appEventLocalizations_getInstance: ['GET', '/v1/appEventLocalizations/{id}', 'fields[appEventLocalizations] fields[appEvents] fields[appEventScreenshots] fields[appEventVideoClips] fields[appAssetLibraryPlacements] include limit[appEventScreenshots] limit[appEventVideoClips] limit[placements]', '', 'one:appEventLocalizations'], + appEventLocalizations_placements_getToManyRelated: ['GET', '/v1/appEventLocalizations/{id}/placements', 'filter[placementType] filter[placementGroup] filter[state] filter[image] filter[video] filter[appStoreVersionLocalization] filter[appCustomProductPageLocalization] filter[appStoreVersionExperimentTreatmentLocalization] filter[id] sort fields[appAssetLibraryPlacements] fields[appAssetLibraryImages] fields[appAssetLibraryVideos] fields[appEventLocalizations] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] limit include', '', 'many:appAssetLibraryPlacements'], + appEventLocalizations_placements_getToManyRelationship: ['GET', '/v1/appEventLocalizations/{id}/relationships/placements', 'limit', '', 'many:appAssetLibraryPlacements'], + appEventLocalizations_updateInstance: ['PATCH', '/v1/appEventLocalizations/{id}', '', 'appEventLocalizations', 'one:appEventLocalizations'], + appEventScreenshots_createInstance: ['POST', '/v1/appEventScreenshots', '', 'appEventScreenshots', 'one:appEventScreenshots'], + appEventScreenshots_deleteInstance: ['DELETE', '/v1/appEventScreenshots/{id}', '', '', 'none'], + appEventScreenshots_getInstance: ['GET', '/v1/appEventScreenshots/{id}', 'fields[appEventScreenshots] fields[appEventLocalizations] include', '', 'one:appEventScreenshots'], + appEventScreenshots_updateInstance: ['PATCH', '/v1/appEventScreenshots/{id}', '', 'appEventScreenshots', 'one:appEventScreenshots'], + appEventVideoClips_createInstance: ['POST', '/v1/appEventVideoClips', '', 'appEventVideoClips', 'one:appEventVideoClips'], + appEventVideoClips_deleteInstance: ['DELETE', '/v1/appEventVideoClips/{id}', '', '', 'none'], + appEventVideoClips_getInstance: ['GET', '/v1/appEventVideoClips/{id}', 'fields[appEventVideoClips] fields[appEventLocalizations] include', '', 'one:appEventVideoClips'], + appEventVideoClips_updateInstance: ['PATCH', '/v1/appEventVideoClips/{id}', '', 'appEventVideoClips', 'one:appEventVideoClips'], + appEvents_createInstance: ['POST', '/v1/appEvents', '', 'appEvents', 'one:appEvents'], + appEvents_deleteInstance: ['DELETE', '/v1/appEvents/{id}', '', '', 'none'], + appEvents_getInstance: ['GET', '/v1/appEvents/{id}', 'fields[appEvents] fields[appEventLocalizations] include limit[localizations]', '', 'one:appEvents'], + appEvents_localizations_getToManyRelated: ['GET', '/v1/appEvents/{id}/localizations', 'fields[appEventLocalizations] fields[appEvents] fields[appEventScreenshots] fields[appEventVideoClips] fields[appAssetLibraryPlacements] limit include limit[appEventScreenshots] limit[appEventVideoClips] limit[placements]', '', 'many:appEventLocalizations'], + appEvents_localizations_getToManyRelationship: ['GET', '/v1/appEvents/{id}/relationships/localizations', 'limit', '', 'many:appEventLocalizations'], + appEvents_updateInstance: ['PATCH', '/v1/appEvents/{id}', '', 'appEvents', 'one:appEvents'], + appInfoLocalizations_createInstance: ['POST', '/v1/appInfoLocalizations', '', 'appInfoLocalizations', 'one:appInfoLocalizations'], + appInfoLocalizations_deleteInstance: ['DELETE', '/v1/appInfoLocalizations/{id}', '', '', 'none'], + appInfoLocalizations_getInstance: ['GET', '/v1/appInfoLocalizations/{id}', 'fields[appInfoLocalizations] fields[appInfos] include', '', 'one:appInfoLocalizations'], + appInfoLocalizations_updateInstance: ['PATCH', '/v1/appInfoLocalizations/{id}', '', 'appInfoLocalizations', 'one:appInfoLocalizations'], + appInfos_ageRatingDeclaration_getToOneRelated: ['GET', '/v1/appInfos/{id}/ageRatingDeclaration', 'fields[ageRatingDeclarations]', '', 'one:ageRatingDeclarations'], + appInfos_ageRatingDeclaration_getToOneRelationship: ['GET', '/v1/appInfos/{id}/relationships/ageRatingDeclaration', '', '', 'one:ageRatingDeclarations'], + appInfos_appInfoLocalizations_getToManyRelated: ['GET', '/v1/appInfos/{id}/appInfoLocalizations', 'filter[locale] fields[appInfoLocalizations] fields[appInfos] limit include', '', 'many:appInfoLocalizations'], + appInfos_appInfoLocalizations_getToManyRelationship: ['GET', '/v1/appInfos/{id}/relationships/appInfoLocalizations', 'limit', '', 'many:appInfoLocalizations'], + appInfos_getInstance: ['GET', '/v1/appInfos/{id}', 'fields[appInfos] fields[apps] fields[ageRatingDeclarations] fields[appInfoLocalizations] fields[appCategories] include limit[appInfoLocalizations]', '', 'one:appInfos'], + appInfos_primaryCategory_getToOneRelated: ['GET', '/v1/appInfos/{id}/primaryCategory', 'fields[appCategories] include limit[subcategories]', '', 'one:appCategories'], + appInfos_primaryCategory_getToOneRelationship: ['GET', '/v1/appInfos/{id}/relationships/primaryCategory', '', '', 'one:appCategories'], + appInfos_primarySubcategoryOne_getToOneRelated: ['GET', '/v1/appInfos/{id}/primarySubcategoryOne', 'fields[appCategories] include limit[subcategories]', '', 'one:appCategories'], + appInfos_primarySubcategoryOne_getToOneRelationship: ['GET', '/v1/appInfos/{id}/relationships/primarySubcategoryOne', '', '', 'one:appCategories'], + appInfos_primarySubcategoryTwo_getToOneRelated: ['GET', '/v1/appInfos/{id}/primarySubcategoryTwo', 'fields[appCategories] include limit[subcategories]', '', 'one:appCategories'], + appInfos_primarySubcategoryTwo_getToOneRelationship: ['GET', '/v1/appInfos/{id}/relationships/primarySubcategoryTwo', '', '', 'one:appCategories'], + appInfos_secondaryCategory_getToOneRelated: ['GET', '/v1/appInfos/{id}/secondaryCategory', 'fields[appCategories] include limit[subcategories]', '', 'one:appCategories'], + appInfos_secondaryCategory_getToOneRelationship: ['GET', '/v1/appInfos/{id}/relationships/secondaryCategory', '', '', 'one:appCategories'], + appInfos_secondarySubcategoryOne_getToOneRelated: ['GET', '/v1/appInfos/{id}/secondarySubcategoryOne', 'fields[appCategories] include limit[subcategories]', '', 'one:appCategories'], + appInfos_secondarySubcategoryOne_getToOneRelationship: ['GET', '/v1/appInfos/{id}/relationships/secondarySubcategoryOne', '', '', 'one:appCategories'], + appInfos_secondarySubcategoryTwo_getToOneRelated: ['GET', '/v1/appInfos/{id}/secondarySubcategoryTwo', 'fields[appCategories] include limit[subcategories]', '', 'one:appCategories'], + appInfos_secondarySubcategoryTwo_getToOneRelationship: ['GET', '/v1/appInfos/{id}/relationships/secondarySubcategoryTwo', '', '', 'one:appCategories'], + appInfos_territoryAgeRatings_getToManyRelated: ['GET', '/v1/appInfos/{id}/territoryAgeRatings', 'fields[territoryAgeRatings] fields[territories] limit include', '', 'many:territoryAgeRatings'], + appInfos_territoryAgeRatings_getToManyRelationship: ['GET', '/v1/appInfos/{id}/relationships/territoryAgeRatings', 'limit', '', 'many:territoryAgeRatings'], + appInfos_updateInstance: ['PATCH', '/v1/appInfos/{id}', '', 'appInfos', 'one:appInfos'], + appPreviewSets_appPreviews_getToManyRelated: ['GET', '/v1/appPreviewSets/{id}/appPreviews', 'fields[appPreviews] fields[appPreviewSets] limit include', '', 'many:appPreviews'], + appPreviewSets_appPreviews_getToManyRelationship: ['GET', '/v1/appPreviewSets/{id}/relationships/appPreviews', 'limit', '', 'many:appPreviews'], + appPreviewSets_appPreviews_replaceToManyRelationship: ['PATCH', '/v1/appPreviewSets/{id}/relationships/appPreviews', '', 'appPreviews[]', 'none'], + appPreviewSets_createInstance: ['POST', '/v1/appPreviewSets', '', 'appPreviewSets', 'one:appPreviewSets'], + appPreviewSets_deleteInstance: ['DELETE', '/v1/appPreviewSets/{id}', '', '', 'none'], + appPreviewSets_getInstance: ['GET', '/v1/appPreviewSets/{id}', 'fields[appPreviewSets] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appPreviews] include limit[appPreviews]', '', 'one:appPreviewSets'], + appPreviews_createInstance: ['POST', '/v1/appPreviews', '', 'appPreviews', 'one:appPreviews'], + appPreviews_deleteInstance: ['DELETE', '/v1/appPreviews/{id}', '', '', 'none'], + appPreviews_getInstance: ['GET', '/v1/appPreviews/{id}', 'fields[appPreviews] fields[appPreviewSets] include', '', 'one:appPreviews'], + appPreviews_updateInstance: ['PATCH', '/v1/appPreviews/{id}', '', 'appPreviews', 'one:appPreviews'], + appPricePointsV3_equalizations_getToManyRelated: ['GET', '/v3/appPricePoints/{id}/equalizations', 'filter[territory] fields[appPricePoints] fields[apps] fields[territories] limit include', '', 'many:appPricePoints'], + appPricePointsV3_equalizations_getToManyRelationship: ['GET', '/v3/appPricePoints/{id}/relationships/equalizations', 'limit', '', 'many:appPricePoints'], + appPricePointsV3_getInstance: ['GET', '/v3/appPricePoints/{id}', 'fields[appPricePoints] fields[apps] fields[territories] include', '', 'one:appPricePoints'], + appPriceSchedules_automaticPrices_getToManyRelated: ['GET', '/v1/appPriceSchedules/{id}/automaticPrices', 'filter[startDate] filter[endDate] filter[territory] fields[appPrices] fields[appPricePoints] fields[territories] limit include', '', 'many:appPrices'], + appPriceSchedules_automaticPrices_getToManyRelationship: ['GET', '/v1/appPriceSchedules/{id}/relationships/automaticPrices', 'limit', '', 'many:appPrices'], + appPriceSchedules_baseTerritory_getToOneRelated: ['GET', '/v1/appPriceSchedules/{id}/baseTerritory', 'fields[territories]', '', 'one:territories'], + appPriceSchedules_baseTerritory_getToOneRelationship: ['GET', '/v1/appPriceSchedules/{id}/relationships/baseTerritory', '', '', 'one:territories'], + appPriceSchedules_createInstance: ['POST', '/v1/appPriceSchedules', '', 'appPriceSchedules', 'one:appPriceSchedules'], + appPriceSchedules_getInstance: ['GET', '/v1/appPriceSchedules/{id}', 'fields[appPriceSchedules] fields[apps] fields[territories] fields[appPrices] include limit[automaticPrices] limit[manualPrices]', '', 'one:appPriceSchedules'], + appPriceSchedules_manualPrices_getToManyRelated: ['GET', '/v1/appPriceSchedules/{id}/manualPrices', 'filter[startDate] filter[endDate] filter[territory] fields[appPrices] fields[appPricePoints] fields[territories] limit include', '', 'many:appPrices'], + appPriceSchedules_manualPrices_getToManyRelationship: ['GET', '/v1/appPriceSchedules/{id}/relationships/manualPrices', 'limit', '', 'many:appPrices'], + appScreenshotSets_appScreenshots_getToManyRelated: ['GET', '/v1/appScreenshotSets/{id}/appScreenshots', 'fields[appScreenshots] fields[appScreenshotSets] limit include', '', 'many:appScreenshots'], + appScreenshotSets_appScreenshots_getToManyRelationship: ['GET', '/v1/appScreenshotSets/{id}/relationships/appScreenshots', 'limit', '', 'many:appScreenshots'], + appScreenshotSets_appScreenshots_replaceToManyRelationship: ['PATCH', '/v1/appScreenshotSets/{id}/relationships/appScreenshots', '', 'appScreenshots[]', 'none'], + appScreenshotSets_createInstance: ['POST', '/v1/appScreenshotSets', '', 'appScreenshotSets', 'one:appScreenshotSets'], + appScreenshotSets_deleteInstance: ['DELETE', '/v1/appScreenshotSets/{id}', '', '', 'none'], + appScreenshotSets_getInstance: ['GET', '/v1/appScreenshotSets/{id}', 'fields[appScreenshotSets] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appScreenshots] include limit[appScreenshots]', '', 'one:appScreenshotSets'], + appScreenshots_createInstance: ['POST', '/v1/appScreenshots', '', 'appScreenshots', 'one:appScreenshots'], + appScreenshots_deleteInstance: ['DELETE', '/v1/appScreenshots/{id}', '', '', 'none'], + appScreenshots_getInstance: ['GET', '/v1/appScreenshots/{id}', 'fields[appScreenshots] fields[appScreenshotSets] include', '', 'one:appScreenshots'], + appScreenshots_updateInstance: ['PATCH', '/v1/appScreenshots/{id}', '', 'appScreenshots', 'one:appScreenshots'], + appStoreReviewAttachments_createInstance: ['POST', '/v1/appStoreReviewAttachments', '', 'appStoreReviewAttachments', 'one:appStoreReviewAttachments'], + appStoreReviewAttachments_deleteInstance: ['DELETE', '/v1/appStoreReviewAttachments/{id}', '', '', 'none'], + appStoreReviewAttachments_getInstance: ['GET', '/v1/appStoreReviewAttachments/{id}', 'fields[appStoreReviewAttachments] fields[appStoreReviewDetails] include', '', 'one:appStoreReviewAttachments'], + appStoreReviewAttachments_updateInstance: ['PATCH', '/v1/appStoreReviewAttachments/{id}', '', 'appStoreReviewAttachments', 'one:appStoreReviewAttachments'], + appStoreReviewDetails_appStoreReviewAttachments_getToManyRelated: ['GET', '/v1/appStoreReviewDetails/{id}/appStoreReviewAttachments', 'fields[appStoreReviewAttachments] fields[appStoreReviewDetails] limit include', '', 'many:appStoreReviewAttachments'], + appStoreReviewDetails_appStoreReviewAttachments_getToManyRelationship: ['GET', '/v1/appStoreReviewDetails/{id}/relationships/appStoreReviewAttachments', 'limit', '', 'many:appStoreReviewAttachments'], + appStoreReviewDetails_createInstance: ['POST', '/v1/appStoreReviewDetails', '', 'appStoreReviewDetails', 'one:appStoreReviewDetails'], + appStoreReviewDetails_getInstance: ['GET', '/v1/appStoreReviewDetails/{id}', 'fields[appStoreReviewDetails] fields[appStoreVersions] fields[appStoreReviewAttachments] include limit[appStoreReviewAttachments]', '', 'one:appStoreReviewDetails'], + appStoreReviewDetails_updateInstance: ['PATCH', '/v1/appStoreReviewDetails/{id}', '', 'appStoreReviewDetails', 'one:appStoreReviewDetails'], + appStoreVersionExperimentTreatmentLocalizations_appPreviewSets_getToManyRelated: ['GET', '/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appPreviewSets', 'filter[previewType] filter[appStoreVersionLocalization] filter[appCustomProductPageLocalization] fields[appPreviewSets] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appPreviews] limit include limit[appPreviews]', '', 'many:appPreviewSets'], + appStoreVersionExperimentTreatmentLocalizations_appPreviewSets_getToManyRelationship: ['GET', '/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appPreviewSets', 'limit', '', 'many:appPreviewSets'], + appStoreVersionExperimentTreatmentLocalizations_appScreenshotSets_getToManyRelated: ['GET', '/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appScreenshotSets', 'filter[screenshotDisplayType] filter[appStoreVersionLocalization] filter[appCustomProductPageLocalization] fields[appScreenshotSets] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appScreenshots] limit include limit[appScreenshots]', '', 'many:appScreenshotSets'], + appStoreVersionExperimentTreatmentLocalizations_appScreenshotSets_getToManyRelationship: ['GET', '/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appScreenshotSets', 'limit', '', 'many:appScreenshotSets'], + appStoreVersionExperimentTreatmentLocalizations_createInstance: ['POST', '/v1/appStoreVersionExperimentTreatmentLocalizations', '', 'appStoreVersionExperimentTreatmentLocalizations', 'one:appStoreVersionExperimentTreatmentLocalizations'], + appStoreVersionExperimentTreatmentLocalizations_deleteInstance: ['DELETE', '/v1/appStoreVersionExperimentTreatmentLocalizations/{id}', '', '', 'none'], + appStoreVersionExperimentTreatmentLocalizations_getInstance: ['GET', '/v1/appStoreVersionExperimentTreatmentLocalizations/{id}', 'fields[appStoreVersionExperimentTreatmentLocalizations] fields[appStoreVersionExperimentTreatments] fields[appScreenshotSets] fields[appPreviewSets] fields[appAssetLibraryPlacements] include limit[appPreviewSets] limit[appScreenshotSets] limit[placements]', '', 'one:appStoreVersionExperimentTreatmentLocalizations'], + appStoreVersionExperimentTreatmentLocalizations_placements_getToManyRelated: ['GET', '/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/placements', 'filter[placementType] filter[placementGroup] filter[state] filter[image] filter[video] filter[appEventLocalization] filter[appStoreVersionLocalization] filter[appCustomProductPageLocalization] filter[id] sort fields[appAssetLibraryPlacements] fields[appAssetLibraryImages] fields[appAssetLibraryVideos] fields[appEventLocalizations] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] limit include', '', 'many:appAssetLibraryPlacements'], + appStoreVersionExperimentTreatmentLocalizations_placements_getToManyRelationship: ['GET', '/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/placements', 'limit', '', 'many:appAssetLibraryPlacements'], + appStoreVersionExperimentTreatments_appStoreVersionExperimentTreatmentLocalizations_getToManyRelated: ['GET', '/v1/appStoreVersionExperimentTreatments/{id}/appStoreVersionExperimentTreatmentLocalizations', 'filter[locale] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appStoreVersionExperimentTreatments] fields[appScreenshotSets] fields[appPreviewSets] fields[appAssetLibraryPlacements] limit include limit[appScreenshotSets] limit[appPreviewSets] limit[placements]', '', 'many:appStoreVersionExperimentTreatmentLocalizations'], + appStoreVersionExperimentTreatments_appStoreVersionExperimentTreatmentLocalizations_getToManyRelationship: ['GET', '/v1/appStoreVersionExperimentTreatments/{id}/relationships/appStoreVersionExperimentTreatmentLocalizations', 'limit', '', 'many:appStoreVersionExperimentTreatmentLocalizations'], + appStoreVersionExperimentTreatments_createInstance: ['POST', '/v1/appStoreVersionExperimentTreatments', '', 'appStoreVersionExperimentTreatments', 'one:appStoreVersionExperimentTreatments'], + appStoreVersionExperimentTreatments_deleteInstance: ['DELETE', '/v1/appStoreVersionExperimentTreatments/{id}', '', '', 'none'], + appStoreVersionExperimentTreatments_getInstance: ['GET', '/v1/appStoreVersionExperimentTreatments/{id}', 'fields[appStoreVersionExperimentTreatments] fields[appStoreVersionExperiments] fields[appStoreVersionExperimentTreatmentLocalizations] include limit[appStoreVersionExperimentTreatmentLocalizations]', '', 'one:appStoreVersionExperimentTreatments'], + appStoreVersionExperimentTreatments_updateInstance: ['PATCH', '/v1/appStoreVersionExperimentTreatments/{id}', '', 'appStoreVersionExperimentTreatments', 'one:appStoreVersionExperimentTreatments'], + appStoreVersionExperimentsV2_appStoreVersionExperimentTreatments_getToManyRelated: ['GET', '/v2/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments', 'fields[appStoreVersionExperimentTreatments] fields[appStoreVersionExperiments] fields[appStoreVersionExperimentTreatmentLocalizations] limit include limit[appStoreVersionExperimentTreatmentLocalizations]', '', 'many:appStoreVersionExperimentTreatments'], + appStoreVersionExperimentsV2_appStoreVersionExperimentTreatments_getToManyRelationship: ['GET', '/v2/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments', 'limit', '', 'many:appStoreVersionExperimentTreatments'], + appStoreVersionExperimentsV2_createInstance: ['POST', '/v2/appStoreVersionExperiments', '', 'appStoreVersionExperiments', 'one:appStoreVersionExperiments'], + appStoreVersionExperimentsV2_deleteInstance: ['DELETE', '/v2/appStoreVersionExperiments/{id}', '', '', 'none'], + appStoreVersionExperimentsV2_getInstance: ['GET', '/v2/appStoreVersionExperiments/{id}', 'fields[appStoreVersionExperiments] fields[apps] fields[appStoreVersions] fields[appStoreVersionExperimentTreatments] include limit[appStoreVersionExperimentTreatments] limit[controlVersions]', '', 'one:appStoreVersionExperiments'], + appStoreVersionExperimentsV2_updateInstance: ['PATCH', '/v2/appStoreVersionExperiments/{id}', '', 'appStoreVersionExperiments', 'one:appStoreVersionExperiments'], + appStoreVersionExperiments_appStoreVersionExperimentTreatments_getToManyRelated: ['GET', '/v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments', 'fields[appStoreVersionExperimentTreatments] fields[appStoreVersionExperiments] fields[appStoreVersionExperimentTreatmentLocalizations] limit include limit[appStoreVersionExperimentTreatmentLocalizations]', '', 'many:appStoreVersionExperimentTreatments'], + appStoreVersionExperiments_appStoreVersionExperimentTreatments_getToManyRelationship: ['GET', '/v1/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments', 'limit', '', 'many:appStoreVersionExperimentTreatments'], + appStoreVersionExperiments_createInstance: ['POST', '/v1/appStoreVersionExperiments', '', 'appStoreVersionExperiments', 'one:appStoreVersionExperiments'], + appStoreVersionExperiments_deleteInstance: ['DELETE', '/v1/appStoreVersionExperiments/{id}', '', '', 'none'], + appStoreVersionExperiments_getInstance: ['GET', '/v1/appStoreVersionExperiments/{id}', 'fields[appStoreVersionExperiments] fields[appStoreVersions] fields[appStoreVersionExperimentTreatments] include limit[appStoreVersionExperimentTreatments]', '', 'one:appStoreVersionExperiments'], + appStoreVersionExperiments_updateInstance: ['PATCH', '/v1/appStoreVersionExperiments/{id}', '', 'appStoreVersionExperiments', 'one:appStoreVersionExperiments'], + appStoreVersionLocalizations_appPreviewSets_getToManyRelated: ['GET', '/v1/appStoreVersionLocalizations/{id}/appPreviewSets', 'filter[previewType] filter[appCustomProductPageLocalization] filter[appStoreVersionExperimentTreatmentLocalization] fields[appPreviewSets] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appPreviews] limit include limit[appPreviews]', '', 'many:appPreviewSets'], + appStoreVersionLocalizations_appPreviewSets_getToManyRelationship: ['GET', '/v1/appStoreVersionLocalizations/{id}/relationships/appPreviewSets', 'limit', '', 'many:appPreviewSets'], + appStoreVersionLocalizations_appScreenshotSets_getToManyRelated: ['GET', '/v1/appStoreVersionLocalizations/{id}/appScreenshotSets', 'filter[screenshotDisplayType] filter[appCustomProductPageLocalization] filter[appStoreVersionExperimentTreatmentLocalization] fields[appScreenshotSets] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] fields[appScreenshots] limit include limit[appScreenshots]', '', 'many:appScreenshotSets'], + appStoreVersionLocalizations_appScreenshotSets_getToManyRelationship: ['GET', '/v1/appStoreVersionLocalizations/{id}/relationships/appScreenshotSets', 'limit', '', 'many:appScreenshotSets'], + appStoreVersionLocalizations_createInstance: ['POST', '/v1/appStoreVersionLocalizations', '', 'appStoreVersionLocalizations', 'one:appStoreVersionLocalizations'], + appStoreVersionLocalizations_deleteInstance: ['DELETE', '/v1/appStoreVersionLocalizations/{id}', '', '', 'none'], + appStoreVersionLocalizations_getInstance: ['GET', '/v1/appStoreVersionLocalizations/{id}', 'fields[appStoreVersionLocalizations] fields[appStoreVersions] fields[appScreenshotSets] fields[appPreviewSets] fields[appAssetLibraryPlacements] include limit[appPreviewSets] limit[appScreenshotSets] limit[placements] limit[searchKeywords]', '', 'one:appStoreVersionLocalizations'], + appStoreVersionLocalizations_placements_getToManyRelated: ['GET', '/v1/appStoreVersionLocalizations/{id}/placements', 'filter[placementType] filter[placementGroup] filter[state] filter[image] filter[video] filter[appEventLocalization] filter[appCustomProductPageLocalization] filter[appStoreVersionExperimentTreatmentLocalization] filter[id] sort fields[appAssetLibraryPlacements] fields[appAssetLibraryImages] fields[appAssetLibraryVideos] fields[appEventLocalizations] fields[appStoreVersionLocalizations] fields[appCustomProductPageLocalizations] fields[appStoreVersionExperimentTreatmentLocalizations] limit include', '', 'many:appAssetLibraryPlacements'], + appStoreVersionLocalizations_placements_getToManyRelationship: ['GET', '/v1/appStoreVersionLocalizations/{id}/relationships/placements', 'limit', '', 'many:appAssetLibraryPlacements'], + appStoreVersionLocalizations_searchKeywords_createToManyRelationship: ['POST', '/v1/appStoreVersionLocalizations/{id}/relationships/searchKeywords', '', 'appKeywords[]', 'none'], + appStoreVersionLocalizations_searchKeywords_deleteToManyRelationship: ['DELETE', '/v1/appStoreVersionLocalizations/{id}/relationships/searchKeywords', '', 'appKeywords[]', 'none'], + appStoreVersionLocalizations_searchKeywords_getToManyRelated: ['GET', '/v1/appStoreVersionLocalizations/{id}/searchKeywords', 'filter[platform] filter[locale] fields[appKeywords] limit', '', 'many:appKeywords'], + appStoreVersionLocalizations_searchKeywords_getToManyRelationship: ['GET', '/v1/appStoreVersionLocalizations/{id}/relationships/searchKeywords', 'limit', '', 'many:appKeywords'], + appStoreVersionLocalizations_updateInstance: ['PATCH', '/v1/appStoreVersionLocalizations/{id}', '', 'appStoreVersionLocalizations', 'one:appStoreVersionLocalizations'], + appStoreVersionPhasedReleases_createInstance: ['POST', '/v1/appStoreVersionPhasedReleases', '', 'appStoreVersionPhasedReleases', 'one:appStoreVersionPhasedReleases'], + appStoreVersionPhasedReleases_deleteInstance: ['DELETE', '/v1/appStoreVersionPhasedReleases/{id}', '', '', 'none'], + appStoreVersionPhasedReleases_updateInstance: ['PATCH', '/v1/appStoreVersionPhasedReleases/{id}', '', 'appStoreVersionPhasedReleases', 'one:appStoreVersionPhasedReleases'], + appStoreVersionPromotions_createInstance: ['POST', '/v1/appStoreVersionPromotions', '', 'appStoreVersionPromotions', 'one:appStoreVersionPromotions'], + appStoreVersionReleaseRequests_createInstance: ['POST', '/v1/appStoreVersionReleaseRequests', '', 'appStoreVersionReleaseRequests', 'one:appStoreVersionReleaseRequests'], + appStoreVersionSubmissions_deleteInstance: ['DELETE', '/v1/appStoreVersionSubmissions/{id}', '', '', 'none'], + appStoreVersions_alternativeDistributionPackage_getToOneRelated: ['GET', '/v1/appStoreVersions/{id}/alternativeDistributionPackage', 'fields[alternativeDistributionPackages] fields[alternativeDistributionPackageVersions] include limit[versions]', '', 'one:alternativeDistributionPackages'], + appStoreVersions_alternativeDistributionPackage_getToOneRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/alternativeDistributionPackage', '', '', 'one:alternativeDistributionPackages'], + appStoreVersions_appClipDefaultExperience_getToOneRelated: ['GET', '/v1/appStoreVersions/{id}/appClipDefaultExperience', 'fields[appClipDefaultExperiences] fields[appClips] fields[appStoreVersions] fields[appClipDefaultExperienceLocalizations] fields[appClipAppStoreReviewDetails] include limit[appClipDefaultExperienceLocalizations]', '', 'one:appClipDefaultExperiences'], + appStoreVersions_appClipDefaultExperience_getToOneRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/appClipDefaultExperience', '', '', 'one:appClipDefaultExperiences'], + appStoreVersions_appClipDefaultExperience_updateToOneRelationship: ['PATCH', '/v1/appStoreVersions/{id}/relationships/appClipDefaultExperience', '', 'appClipDefaultExperiences', 'none'], + appStoreVersions_appStoreReviewDetail_getToOneRelated: ['GET', '/v1/appStoreVersions/{id}/appStoreReviewDetail', 'fields[appStoreReviewDetails] fields[appStoreVersions] fields[appStoreReviewAttachments] include limit[appStoreReviewAttachments]', '', 'one:appStoreReviewDetails'], + appStoreVersions_appStoreReviewDetail_getToOneRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/appStoreReviewDetail', '', '', 'one:appStoreReviewDetails'], + appStoreVersions_appStoreVersionExperimentsV2_getToManyRelated: ['GET', '/v1/appStoreVersions/{id}/appStoreVersionExperimentsV2', 'filter[state] fields[appStoreVersionExperiments] fields[apps] fields[appStoreVersions] fields[appStoreVersionExperimentTreatments] limit include limit[controlVersions] limit[appStoreVersionExperimentTreatments]', '', 'many:appStoreVersionExperiments'], + appStoreVersions_appStoreVersionExperimentsV2_getToManyRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/appStoreVersionExperimentsV2', 'limit', '', 'many:appStoreVersionExperiments'], + appStoreVersions_appStoreVersionExperiments_getToManyRelated: ['GET', '/v1/appStoreVersions/{id}/appStoreVersionExperiments', 'filter[state] fields[appStoreVersionExperiments] fields[appStoreVersions] fields[appStoreVersionExperimentTreatments] limit include limit[appStoreVersionExperimentTreatments]', '', 'many:appStoreVersionExperiments'], + appStoreVersions_appStoreVersionExperiments_getToManyRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/appStoreVersionExperiments', 'limit', '', 'many:appStoreVersionExperiments'], + appStoreVersions_appStoreVersionLocalizations_getToManyRelated: ['GET', '/v1/appStoreVersions/{id}/appStoreVersionLocalizations', 'filter[locale] fields[appStoreVersionLocalizations] fields[appStoreVersions] fields[appScreenshotSets] fields[appPreviewSets] fields[appKeywords] fields[appAssetLibraryPlacements] limit include limit[appScreenshotSets] limit[appPreviewSets] limit[searchKeywords] limit[placements]', '', 'many:appStoreVersionLocalizations'], + appStoreVersions_appStoreVersionLocalizations_getToManyRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/appStoreVersionLocalizations', 'limit', '', 'many:appStoreVersionLocalizations'], + appStoreVersions_appStoreVersionPhasedRelease_getToOneRelated: ['GET', '/v1/appStoreVersions/{id}/appStoreVersionPhasedRelease', 'fields[appStoreVersionPhasedReleases]', '', 'one:appStoreVersionPhasedReleases'], + appStoreVersions_appStoreVersionPhasedRelease_getToOneRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/appStoreVersionPhasedRelease', '', '', 'one:appStoreVersionPhasedReleases'], + appStoreVersions_appStoreVersionSubmission_getToOneRelated: ['GET', '/v1/appStoreVersions/{id}/appStoreVersionSubmission', 'fields[appStoreVersionSubmissions] fields[appStoreVersions] include', '', 'one:appStoreVersionSubmissions'], + appStoreVersions_appStoreVersionSubmission_getToOneRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/appStoreVersionSubmission', '', '', 'one:appStoreVersionSubmissions'], + appStoreVersions_build_getToOneRelated: ['GET', '/v1/appStoreVersions/{id}/build', 'fields[builds]', '', 'one:builds'], + appStoreVersions_build_getToOneRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/build', '', '', 'one:builds'], + appStoreVersions_build_updateToOneRelationship: ['PATCH', '/v1/appStoreVersions/{id}/relationships/build', '', 'builds', 'none'], + appStoreVersions_createInstance: ['POST', '/v1/appStoreVersions', '', 'appStoreVersions', 'one:appStoreVersions'], + appStoreVersions_customerReviews_getToManyRelated: ['GET', '/v1/appStoreVersions/{id}/customerReviews', 'filter[territory] filter[rating] filter[reviewTerritory] exists[publishedResponse] sort fields[customerReviews] fields[customerReviewResponses] fields[territories] limit include', '', 'many:customerReviews'], + appStoreVersions_customerReviews_getToManyRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/customerReviews', 'limit', '', 'many:customerReviews'], + appStoreVersions_deleteInstance: ['DELETE', '/v1/appStoreVersions/{id}', '', '', 'none'], + appStoreVersions_gameCenterAppVersion_getToOneRelated: ['GET', '/v1/appStoreVersions/{id}/gameCenterAppVersion', 'fields[gameCenterAppVersions] fields[appStoreVersions] include limit[compatibilityVersions]', '', 'one:gameCenterAppVersions'], + appStoreVersions_gameCenterAppVersion_getToOneRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/gameCenterAppVersion', '', '', 'one:gameCenterAppVersions'], + appStoreVersions_getInstance: ['GET', '/v1/appStoreVersions/{id}', 'fields[appStoreVersions] fields[apps] fields[appStoreVersionLocalizations] fields[builds] fields[appStoreVersionPhasedReleases] fields[gameCenterAppVersions] fields[routingAppCoverages] fields[appStoreReviewDetails] fields[appStoreVersionSubmissions] fields[appClipDefaultExperiences] fields[appStoreVersionExperiments] fields[alternativeDistributionPackages] include limit[appStoreVersionExperiments] limit[appStoreVersionExperimentsV2] limit[appStoreVersionLocalizations]', '', 'one:appStoreVersions'], + appStoreVersions_routingAppCoverage_getToOneRelated: ['GET', '/v1/appStoreVersions/{id}/routingAppCoverage', 'fields[routingAppCoverages] fields[appStoreVersions] include', '', 'one:routingAppCoverages'], + appStoreVersions_routingAppCoverage_getToOneRelationship: ['GET', '/v1/appStoreVersions/{id}/relationships/routingAppCoverage', '', '', 'one:routingAppCoverages'], + appStoreVersions_updateInstance: ['PATCH', '/v1/appStoreVersions/{id}', '', 'appStoreVersions', 'one:appStoreVersions'], + appTags_territories_getToManyRelated: ['GET', '/v1/appTags/{id}/territories', 'fields[territories] limit', '', 'many:territories'], + appTags_territories_getToManyRelationship: ['GET', '/v1/appTags/{id}/relationships/territories', 'limit', '', 'many:territories'], + appTags_updateInstance: ['PATCH', '/v1/appTags/{id}', '', 'appTags', 'one:appTags'], + apps_accessibilityDeclarations_getToManyRelated: ['GET', '/v1/apps/{id}/accessibilityDeclarations', 'filter[deviceFamily] filter[state] fields[accessibilityDeclarations] limit', '', 'many:accessibilityDeclarations'], + apps_accessibilityDeclarations_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/accessibilityDeclarations', 'limit', '', 'many:accessibilityDeclarations'], + apps_alternativeDistributionKey_getToOneRelated: ['GET', '/v1/apps/{id}/alternativeDistributionKey', 'fields[alternativeDistributionKeys]', '', 'one:alternativeDistributionKeys'], + apps_alternativeDistributionKey_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/alternativeDistributionKey', '', '', 'one:alternativeDistributionKeys'], + apps_analyticsReportRequests_getToManyRelated: ['GET', '/v1/apps/{id}/analyticsReportRequests', 'filter[accessType] fields[analyticsReportRequests] fields[analyticsReports] limit include limit[reports]', '', 'many:analyticsReportRequests'], + apps_analyticsReportRequests_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/analyticsReportRequests', 'limit', '', 'many:analyticsReportRequests'], + apps_androidToIosAppMappingDetails_getToManyRelated: ['GET', '/v1/apps/{id}/androidToIosAppMappingDetails', 'fields[androidToIosAppMappingDetails] limit', '', 'many:androidToIosAppMappingDetails'], + apps_androidToIosAppMappingDetails_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/androidToIosAppMappingDetails', 'limit', '', 'many:androidToIosAppMappingDetails'], + apps_appAvailabilityV2_getToOneRelated: ['GET', '/v1/apps/{id}/appAvailabilityV2', 'fields[appAvailabilities] fields[territoryAvailabilities] include limit[territoryAvailabilities]', '', 'one:appAvailabilities'], + apps_appAvailabilityV2_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/appAvailabilityV2', '', '', 'one:appAvailabilities'], + apps_appClips_getToManyRelated: ['GET', '/v1/apps/{id}/appClips', 'filter[bundleId] fields[appClips] fields[apps] fields[appClipDefaultExperiences] limit include limit[appClipDefaultExperiences]', '', 'many:appClips'], + apps_appClips_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appClips', 'limit', '', 'many:appClips'], + apps_appCustomProductPages_getToManyRelated: ['GET', '/v1/apps/{id}/appCustomProductPages', 'filter[visible] fields[appCustomProductPages] fields[apps] fields[appCustomProductPageVersions] limit include limit[appCustomProductPageVersions]', '', 'many:appCustomProductPages'], + apps_appCustomProductPages_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appCustomProductPages', 'limit', '', 'many:appCustomProductPages'], + apps_appEncryptionDeclarations_getToManyRelated: ['GET', '/v1/apps/{id}/appEncryptionDeclarations', 'filter[platform] filter[builds] fields[appEncryptionDeclarations] fields[apps] fields[builds] fields[appEncryptionDeclarationDocuments] limit include limit[builds]', '', 'many:appEncryptionDeclarations'], + apps_appEncryptionDeclarations_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appEncryptionDeclarations', 'limit', '', 'many:appEncryptionDeclarations'], + apps_appEvents_getToManyRelated: ['GET', '/v1/apps/{id}/appEvents', 'filter[eventState] filter[id] fields[appEvents] fields[appEventLocalizations] limit include limit[localizations]', '', 'many:appEvents'], + apps_appEvents_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appEvents', 'limit', '', 'many:appEvents'], + apps_appInfos_getToManyRelated: ['GET', '/v1/apps/{id}/appInfos', 'fields[appInfos] fields[apps] fields[ageRatingDeclarations] fields[appInfoLocalizations] fields[appCategories] limit include limit[appInfoLocalizations]', '', 'many:appInfos'], + apps_appInfos_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appInfos', 'limit', '', 'many:appInfos'], + apps_appPricePoints_getToManyRelated: ['GET', '/v1/apps/{id}/appPricePoints', 'filter[territory] fields[appPricePoints] fields[apps] fields[territories] limit include', '', 'many:appPricePoints'], + apps_appPricePoints_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appPricePoints', 'limit', '', 'many:appPricePoints'], + apps_appPriceSchedule_getToOneRelated: ['GET', '/v1/apps/{id}/appPriceSchedule', 'fields[appPriceSchedules] fields[apps] fields[territories] fields[appPrices] include limit[manualPrices] limit[automaticPrices]', '', 'one:appPriceSchedules'], + apps_appPriceSchedule_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/appPriceSchedule', '', '', 'one:appPriceSchedules'], + apps_appStoreVersionExperimentsV2_getToManyRelated: ['GET', '/v1/apps/{id}/appStoreVersionExperimentsV2', 'filter[state] fields[appStoreVersionExperiments] fields[apps] fields[appStoreVersions] fields[appStoreVersionExperimentTreatments] limit include limit[controlVersions] limit[appStoreVersionExperimentTreatments]', '', 'many:appStoreVersionExperiments'], + apps_appStoreVersionExperimentsV2_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appStoreVersionExperimentsV2', 'limit', '', 'many:appStoreVersionExperiments'], + apps_appStoreVersions_getToManyRelated: ['GET', '/v1/apps/{id}/appStoreVersions', 'filter[platform] filter[versionString] filter[appStoreState] filter[appVersionState] filter[id] fields[appStoreVersions] fields[apps] fields[appStoreVersionLocalizations] fields[builds] fields[appStoreVersionPhasedReleases] fields[gameCenterAppVersions] fields[routingAppCoverages] fields[appStoreReviewDetails] fields[appStoreVersionSubmissions] fields[appClipDefaultExperiences] fields[appStoreVersionExperiments] fields[alternativeDistributionPackages] limit include limit[appStoreVersionLocalizations] limit[appStoreVersionExperiments] limit[appStoreVersionExperimentsV2]', '', 'many:appStoreVersions'], + apps_appStoreVersions_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appStoreVersions', 'limit', '', 'many:appStoreVersions'], + apps_appTags_getToManyRelated: ['GET', '/v1/apps/{id}/appTags', 'filter[visibleInAppStore] sort fields[appTags] fields[territories] limit include limit[territories]', '', 'many:appTags'], + apps_appTags_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/appTags', 'limit', '', 'many:appTags'], + apps_assetLibrary_getToOneRelated: ['GET', '/v1/apps/{id}/assetLibrary', 'fields[appAssetLibraries]', '', 'one:appAssetLibraries'], + apps_assetLibrary_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/assetLibrary', '', '', 'one:appAssetLibraries'], + apps_backgroundAssets_getToManyRelated: ['GET', '/v1/apps/{id}/backgroundAssets', 'filter[archived] filter[assetPackIdentifier] filter[versions.locale] filter[versions.platforms] sort fields[backgroundAssets] fields[apps] fields[backgroundAssetVersions] limit include', '', 'many:backgroundAssets'], + apps_backgroundAssets_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/backgroundAssets', 'limit', '', 'many:backgroundAssets'], + apps_betaAppLocalizations_getToManyRelated: ['GET', '/v1/apps/{id}/betaAppLocalizations', 'fields[betaAppLocalizations] limit', '', 'many:betaAppLocalizations'], + apps_betaAppLocalizations_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/betaAppLocalizations', 'limit', '', 'many:betaAppLocalizations'], + apps_betaAppReviewDetail_getToOneRelated: ['GET', '/v1/apps/{id}/betaAppReviewDetail', 'fields[betaAppReviewDetails]', '', 'one:betaAppReviewDetails'], + apps_betaAppReviewDetail_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/betaAppReviewDetail', '', '', 'one:betaAppReviewDetails'], + apps_betaFeedbackCrashSubmissions_getToManyRelated: ['GET', '/v1/apps/{id}/betaFeedbackCrashSubmissions', 'filter[deviceModel] filter[osVersion] filter[appPlatform] filter[devicePlatform] filter[build] filter[build.preReleaseVersion] filter[tester] sort fields[betaFeedbackCrashSubmissions] fields[builds] fields[betaTesters] limit include', '', 'many:betaFeedbackCrashSubmissions'], + apps_betaFeedbackCrashSubmissions_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/betaFeedbackCrashSubmissions', 'limit', '', 'many:betaFeedbackCrashSubmissions'], + apps_betaFeedbackScreenshotSubmissions_getToManyRelated: ['GET', '/v1/apps/{id}/betaFeedbackScreenshotSubmissions', 'filter[deviceModel] filter[osVersion] filter[appPlatform] filter[devicePlatform] filter[build] filter[build.preReleaseVersion] filter[tester] sort fields[betaFeedbackScreenshotSubmissions] fields[builds] fields[betaTesters] limit include', '', 'many:betaFeedbackScreenshotSubmissions'], + apps_betaFeedbackScreenshotSubmissions_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/betaFeedbackScreenshotSubmissions', 'limit', '', 'many:betaFeedbackScreenshotSubmissions'], + apps_betaGroups_getToManyRelated: ['GET', '/v1/apps/{id}/betaGroups', 'fields[betaGroups] limit', '', 'many:betaGroups'], + apps_betaGroups_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/betaGroups', 'limit', '', 'many:betaGroups'], + apps_betaLicenseAgreement_getToOneRelated: ['GET', '/v1/apps/{id}/betaLicenseAgreement', 'fields[betaLicenseAgreements]', '', 'one:betaLicenseAgreements'], + apps_betaLicenseAgreement_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/betaLicenseAgreement', '', '', 'one:betaLicenseAgreements'], + apps_betaTesterUsages_getMetrics: ['GET', '/v1/apps/{id}/metrics/betaTesterUsages', 'period groupBy filter[betaTesters] limit', '', 'many:'], + apps_betaTesters_deleteToManyRelationship: ['DELETE', '/v1/apps/{id}/relationships/betaTesters', '', 'betaTesters[]', 'none'], + apps_buildUploads_getToManyRelated: ['GET', '/v1/apps/{id}/buildUploads', 'filter[cfBundleShortVersionString] filter[cfBundleVersion] filter[platform] filter[state] sort fields[buildUploads] fields[builds] fields[buildUploadFiles] limit include', '', 'many:buildUploads'], + apps_buildUploads_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/buildUploads', 'limit', '', 'many:buildUploads'], + apps_builds_getToManyRelated: ['GET', '/v1/apps/{id}/builds', 'fields[builds] limit', '', 'many:builds'], + apps_builds_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/builds', 'limit', '', 'many:builds'], + apps_ciProduct_getToOneRelated: ['GET', '/v1/apps/{id}/ciProduct', 'fields[ciProducts] fields[apps] fields[bundleIds] fields[scmRepositories] include limit[primaryRepositories]', '', 'one:ciProducts'], + apps_ciProduct_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/ciProduct', '', '', 'one:ciProducts'], + apps_customerReviewSummarizations_getToManyRelated: ['GET', '/v1/apps/{id}/customerReviewSummarizations', 'filter[platform]! filter[territory] fields[customerReviewSummarizations] fields[territories] limit include', '', 'many:customerReviewSummarizations'], + apps_customerReviews_getToManyRelated: ['GET', '/v1/apps/{id}/customerReviews', 'filter[territory] filter[rating] filter[reviewTerritory] exists[publishedResponse] sort fields[customerReviews] fields[customerReviewResponses] fields[territories] limit include', '', 'many:customerReviews'], + apps_customerReviews_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/customerReviews', 'limit', '', 'many:customerReviews'], + apps_endUserLicenseAgreement_getToOneRelated: ['GET', '/v1/apps/{id}/endUserLicenseAgreement', 'fields[endUserLicenseAgreements]', '', 'one:endUserLicenseAgreements'], + apps_endUserLicenseAgreement_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/endUserLicenseAgreement', '', '', 'one:endUserLicenseAgreements'], + apps_gameCenterDetail_getToOneRelated: ['GET', '/v1/apps/{id}/gameCenterDetail', 'fields[gameCenterDetails] fields[apps] fields[gameCenterAppVersions] fields[gameCenterGroups] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSets] fields[gameCenterAchievements] fields[gameCenterActivities] fields[gameCenterChallenges] fields[gameCenterAchievementReleases] fields[gameCenterActivityVersionReleases] fields[gameCenterChallengeVersionReleases] fields[gameCenterLeaderboardReleases] fields[gameCenterLeaderboardSetReleases] fields[appStoreVersions] include limit[gameCenterAppVersions] limit[gameCenterLeaderboards] limit[gameCenterLeaderboardsV2] limit[gameCenterLeaderboardSets] limit[gameCenterLeaderboardSetsV2] limit[gameCenterAchievements] limit[gameCenterAchievementsV2] limit[gameCenterActivities] limit[gameCenterChallenges] limit[achievementReleases] limit[activityReleases] limit[challengeReleases] limit[leaderboardReleases] limit[leaderboardSetReleases] limit[challengesMinimumPlatformVersions]', '', 'one:gameCenterDetails'], + apps_gameCenterDetail_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/gameCenterDetail', '', '', 'one:gameCenterDetails'], + apps_gameCenterEnabledVersions_getToManyRelated: ['GET', '/v1/apps/{id}/gameCenterEnabledVersions', 'filter[platform] filter[versionString] filter[id] sort fields[gameCenterEnabledVersions] fields[apps] limit include limit[compatibleVersions]', '', 'many:gameCenterEnabledVersions'], + apps_gameCenterEnabledVersions_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/gameCenterEnabledVersions', 'limit', '', 'many:gameCenterEnabledVersions'], + apps_getCollection: ['GET', '/v1/apps', 'filter[name] filter[bundleId] filter[sku] filter[appStoreVersions.appStoreState] filter[appStoreVersions.platform] filter[appStoreVersions.appVersionState] filter[reviewSubmissions.state] filter[reviewSubmissions.platform] filter[appStoreVersions] filter[id] exists[gameCenterEnabledVersions] sort fields[apps] fields[appEncryptionDeclarations] fields[buildIcons] fields[ciProducts] fields[betaGroups] fields[appStoreVersions] fields[preReleaseVersions] fields[betaAppLocalizations] fields[builds] fields[betaLicenseAgreements] fields[betaAppReviewDetails] fields[appInfos] fields[appClips] fields[endUserLicenseAgreements] fields[inAppPurchases] fields[subscriptionGroups] fields[gameCenterEnabledVersions] fields[appCustomProductPages] fields[promotedPurchases] fields[appEvents] fields[reviewSubmissions] fields[subscriptionGracePeriods] fields[gameCenterDetails] fields[appStoreVersionExperiments] fields[androidToIosAppMappingDetails] limit include limit[androidToIosAppMappingDetails] limit[appClips] limit[appCustomProductPages] limit[appEncryptionDeclarations] limit[appEvents] limit[appInfos] limit[appStoreVersionExperimentsV2] limit[appStoreVersions] limit[betaAppLocalizations] limit[betaGroups] limit[builds] limit[gameCenterEnabledVersions] limit[inAppPurchases] limit[inAppPurchasesV2] limit[preReleaseVersions] limit[promotedPurchases] limit[reviewSubmissions] limit[subscriptionGroups]', '', 'many:apps'], + apps_getInstance: ['GET', '/v1/apps/{id}', 'fields[apps] fields[appEncryptionDeclarations] fields[buildIcons] fields[ciProducts] fields[betaGroups] fields[appStoreVersions] fields[preReleaseVersions] fields[betaAppLocalizations] fields[builds] fields[betaLicenseAgreements] fields[betaAppReviewDetails] fields[appInfos] fields[appClips] fields[endUserLicenseAgreements] fields[inAppPurchases] fields[subscriptionGroups] fields[gameCenterEnabledVersions] fields[appCustomProductPages] fields[promotedPurchases] fields[appEvents] fields[reviewSubmissions] fields[subscriptionGracePeriods] fields[gameCenterDetails] fields[appStoreVersionExperiments] fields[androidToIosAppMappingDetails] include limit[androidToIosAppMappingDetails] limit[appClips] limit[appCustomProductPages] limit[appEncryptionDeclarations] limit[appEvents] limit[appInfos] limit[appStoreVersionExperimentsV2] limit[appStoreVersions] limit[betaAppLocalizations] limit[betaGroups] limit[builds] limit[gameCenterEnabledVersions] limit[inAppPurchases] limit[inAppPurchasesV2] limit[preReleaseVersions] limit[promotedPurchases] limit[reviewSubmissions] limit[subscriptionGroups]', '', 'one:apps'], + apps_inAppPurchasesV2_getToManyRelated: ['GET', '/v1/apps/{id}/inAppPurchasesV2', 'filter[productId] filter[name] filter[state] filter[inAppPurchaseType] sort fields[inAppPurchases] fields[inAppPurchaseLocalizations] fields[inAppPurchaseContents] fields[inAppPurchaseAppStoreReviewScreenshots] fields[promotedPurchases] fields[inAppPurchasePriceSchedules] fields[inAppPurchaseAvailabilities] fields[inAppPurchaseImages] fields[inAppPurchaseOfferCodes] fields[inAppPurchaseVersions] limit include limit[inAppPurchaseLocalizations] limit[images] limit[offerCodes] limit[versions]', '', 'many:inAppPurchases'], + apps_inAppPurchasesV2_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/inAppPurchasesV2', 'limit', '', 'many:inAppPurchases'], + apps_inAppPurchases_getToManyRelated: ['GET', '/v1/apps/{id}/inAppPurchases', 'filter[inAppPurchaseType] filter[canBeSubmitted] sort fields[inAppPurchases] fields[apps] limit include limit[apps]', '', 'many:inAppPurchases'], + apps_inAppPurchases_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/inAppPurchases', 'limit', '', 'many:inAppPurchases'], + apps_marketplaceSearchDetail_getToOneRelated: ['GET', '/v1/apps/{id}/marketplaceSearchDetail', 'fields[marketplaceSearchDetails]', '', 'one:marketplaceSearchDetails'], + apps_marketplaceSearchDetail_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/marketplaceSearchDetail', '', '', 'one:marketplaceSearchDetails'], + apps_perfPowerMetrics_getToManyRelated: ['GET', '/v1/apps/{id}/perfPowerMetrics', 'filter[platform] filter[metricType] filter[deviceType]', '', 'raw:application/vnd.apple.xcode-metrics+json'], + apps_performanceOverviews_getToManyRelated: ['GET', '/v1/apps/{id}/performanceOverviews', 'filter[deviceType]', '', 'raw:application/vnd.apple.xcode-overview+json'], + apps_preReleaseVersions_getToManyRelated: ['GET', '/v1/apps/{id}/preReleaseVersions', 'fields[preReleaseVersions] limit', '', 'many:preReleaseVersions'], + apps_preReleaseVersions_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/preReleaseVersions', 'limit', '', 'many:preReleaseVersions'], + apps_promotedPurchases_getToManyRelated: ['GET', '/v1/apps/{id}/promotedPurchases', 'fields[promotedPurchases] fields[inAppPurchases] fields[subscriptions] limit include', '', 'many:promotedPurchases'], + apps_promotedPurchases_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/promotedPurchases', 'limit', '', 'many:promotedPurchases'], + apps_promotedPurchases_replaceToManyRelationship: ['PATCH', '/v1/apps/{id}/relationships/promotedPurchases', '', 'promotedPurchases[]', 'none'], + apps_reviewSubmissions_getToManyRelated: ['GET', '/v1/apps/{id}/reviewSubmissions', 'filter[platform] filter[state] fields[reviewSubmissions] fields[apps] fields[reviewSubmissionItems] fields[appStoreVersions] fields[actors] limit include limit[items]', '', 'many:reviewSubmissions'], + apps_reviewSubmissions_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/reviewSubmissions', 'limit', '', 'many:reviewSubmissions'], + apps_searchKeywords_getToManyRelated: ['GET', '/v1/apps/{id}/searchKeywords', 'filter[platform] filter[locale] fields[appKeywords] limit', '', 'many:appKeywords'], + apps_searchKeywords_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/searchKeywords', 'limit', '', 'many:appKeywords'], + apps_subscriptionGracePeriod_getToOneRelated: ['GET', '/v1/apps/{id}/subscriptionGracePeriod', 'fields[subscriptionGracePeriods]', '', 'one:subscriptionGracePeriods'], + apps_subscriptionGracePeriod_getToOneRelationship: ['GET', '/v1/apps/{id}/relationships/subscriptionGracePeriod', '', '', 'one:subscriptionGracePeriods'], + apps_subscriptionGroups_getToManyRelated: ['GET', '/v1/apps/{id}/subscriptionGroups', 'filter[referenceName] filter[subscriptions.state] sort fields[subscriptionGroups] fields[subscriptions] fields[subscriptionGroupLocalizations] fields[subscriptionGroupVersions] limit include limit[subscriptions] limit[subscriptionGroupLocalizations] limit[versions]', '', 'many:subscriptionGroups'], + apps_subscriptionGroups_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/subscriptionGroups', 'limit', '', 'many:subscriptionGroups'], + apps_updateInstance: ['PATCH', '/v1/apps/{id}', '', 'apps', 'one:apps'], + apps_webhooks_getToManyRelated: ['GET', '/v1/apps/{id}/webhooks', 'fields[webhooks] fields[apps] limit include', '', 'many:webhooks'], + apps_webhooks_getToManyRelationship: ['GET', '/v1/apps/{id}/relationships/webhooks', 'limit', '', 'many:webhooks'], + backgroundAssetUploadFiles_createInstance: ['POST', '/v1/backgroundAssetUploadFiles', '', 'backgroundAssetUploadFiles', 'one:backgroundAssetUploadFiles'], + backgroundAssetUploadFiles_getInstance: ['GET', '/v1/backgroundAssetUploadFiles/{id}', 'fields[backgroundAssetUploadFiles]', '', 'one:backgroundAssetUploadFiles'], + backgroundAssetUploadFiles_updateInstance: ['PATCH', '/v1/backgroundAssetUploadFiles/{id}', '', 'backgroundAssetUploadFiles', 'one:backgroundAssetUploadFiles'], + backgroundAssetVersionAppStoreReleases_getInstance: ['GET', '/v1/backgroundAssetVersionAppStoreReleases/{id}', 'fields[backgroundAssetVersionAppStoreReleases] fields[backgroundAssetVersions] include', '', 'one:backgroundAssetVersionAppStoreReleases'], + backgroundAssetVersionExternalBetaReleases_getInstance: ['GET', '/v1/backgroundAssetVersionExternalBetaReleases/{id}', 'fields[backgroundAssetVersionExternalBetaReleases] fields[backgroundAssetVersions] include', '', 'one:backgroundAssetVersionExternalBetaReleases'], + backgroundAssetVersionInternalBetaReleases_getInstance: ['GET', '/v1/backgroundAssetVersionInternalBetaReleases/{id}', 'fields[backgroundAssetVersionInternalBetaReleases] fields[backgroundAssetVersions] include', '', 'one:backgroundAssetVersionInternalBetaReleases'], + backgroundAssetVersions_backgroundAssetUploadFiles_getToManyRelated: ['GET', '/v1/backgroundAssetVersions/{id}/backgroundAssetUploadFiles', 'fields[backgroundAssetUploadFiles] limit', '', 'many:backgroundAssetUploadFiles'], + backgroundAssetVersions_backgroundAssetUploadFiles_getToManyRelationship: ['GET', '/v1/backgroundAssetVersions/{id}/relationships/backgroundAssetUploadFiles', 'limit', '', 'many:backgroundAssetUploadFiles'], + backgroundAssetVersions_createInstance: ['POST', '/v1/backgroundAssetVersions', '', 'backgroundAssetVersions', 'one:backgroundAssetVersions'], + backgroundAssetVersions_getInstance: ['GET', '/v1/backgroundAssetVersions/{id}', 'fields[backgroundAssetVersions] fields[backgroundAssets] fields[backgroundAssetVersionInternalBetaReleases] fields[backgroundAssetVersionExternalBetaReleases] fields[backgroundAssetVersionAppStoreReleases] fields[backgroundAssetUploadFiles] include', '', 'one:backgroundAssetVersions'], + backgroundAssets_createInstance: ['POST', '/v1/backgroundAssets', '', 'backgroundAssets', 'one:backgroundAssets'], + backgroundAssets_getInstance: ['GET', '/v1/backgroundAssets/{id}', 'fields[backgroundAssets] fields[apps] fields[backgroundAssetVersions] include', '', 'one:backgroundAssets'], + backgroundAssets_updateInstance: ['PATCH', '/v1/backgroundAssets/{id}', '', 'backgroundAssets', 'one:backgroundAssets'], + backgroundAssets_versions_getToManyRelated: ['GET', '/v1/backgroundAssets/{id}/versions', 'filter[locale] filter[platforms] filter[state] filter[version] filter[internalBetaRelease.state] filter[externalBetaRelease.state] filter[appStoreRelease.state] sort fields[backgroundAssetVersions] fields[backgroundAssets] fields[backgroundAssetVersionInternalBetaReleases] fields[backgroundAssetVersionExternalBetaReleases] fields[backgroundAssetVersionAppStoreReleases] fields[backgroundAssetUploadFiles] limit include', '', 'many:backgroundAssetVersions'], + backgroundAssets_versions_getToManyRelationship: ['GET', '/v1/backgroundAssets/{id}/relationships/versions', 'limit', '', 'many:backgroundAssetVersions'], + betaAppClipInvocationLocalizations_createInstance: ['POST', '/v1/betaAppClipInvocationLocalizations', '', 'betaAppClipInvocationLocalizations', 'one:betaAppClipInvocationLocalizations'], + betaAppClipInvocationLocalizations_deleteInstance: ['DELETE', '/v1/betaAppClipInvocationLocalizations/{id}', '', '', 'none'], + betaAppClipInvocationLocalizations_updateInstance: ['PATCH', '/v1/betaAppClipInvocationLocalizations/{id}', '', 'betaAppClipInvocationLocalizations', 'one:betaAppClipInvocationLocalizations'], + betaAppClipInvocations_createInstance: ['POST', '/v1/betaAppClipInvocations', '', 'betaAppClipInvocations', 'one:betaAppClipInvocations'], + betaAppClipInvocations_deleteInstance: ['DELETE', '/v1/betaAppClipInvocations/{id}', '', '', 'none'], + betaAppClipInvocations_getInstance: ['GET', '/v1/betaAppClipInvocations/{id}', 'fields[betaAppClipInvocations] fields[betaAppClipInvocationLocalizations] include limit[betaAppClipInvocationLocalizations]', '', 'one:betaAppClipInvocations'], + betaAppClipInvocations_updateInstance: ['PATCH', '/v1/betaAppClipInvocations/{id}', '', 'betaAppClipInvocations', 'one:betaAppClipInvocations'], + betaAppLocalizations_app_getToOneRelated: ['GET', '/v1/betaAppLocalizations/{id}/app', 'fields[apps]', '', 'one:apps'], + betaAppLocalizations_app_getToOneRelationship: ['GET', '/v1/betaAppLocalizations/{id}/relationships/app', '', '', 'one:apps'], + betaAppLocalizations_createInstance: ['POST', '/v1/betaAppLocalizations', '', 'betaAppLocalizations', 'one:betaAppLocalizations'], + betaAppLocalizations_deleteInstance: ['DELETE', '/v1/betaAppLocalizations/{id}', '', '', 'none'], + betaAppLocalizations_getCollection: ['GET', '/v1/betaAppLocalizations', 'filter[locale] filter[app] fields[betaAppLocalizations] fields[apps] limit include', '', 'many:betaAppLocalizations'], + betaAppLocalizations_getInstance: ['GET', '/v1/betaAppLocalizations/{id}', 'fields[betaAppLocalizations] fields[apps] include', '', 'one:betaAppLocalizations'], + betaAppLocalizations_updateInstance: ['PATCH', '/v1/betaAppLocalizations/{id}', '', 'betaAppLocalizations', 'one:betaAppLocalizations'], + betaAppReviewDetails_app_getToOneRelated: ['GET', '/v1/betaAppReviewDetails/{id}/app', 'fields[apps]', '', 'one:apps'], + betaAppReviewDetails_app_getToOneRelationship: ['GET', '/v1/betaAppReviewDetails/{id}/relationships/app', '', '', 'one:apps'], + betaAppReviewDetails_getCollection: ['GET', '/v1/betaAppReviewDetails', 'filter[app]! fields[betaAppReviewDetails] fields[apps] limit include', '', 'many:betaAppReviewDetails'], + betaAppReviewDetails_getInstance: ['GET', '/v1/betaAppReviewDetails/{id}', 'fields[betaAppReviewDetails] fields[apps] include', '', 'one:betaAppReviewDetails'], + betaAppReviewDetails_updateInstance: ['PATCH', '/v1/betaAppReviewDetails/{id}', '', 'betaAppReviewDetails', 'one:betaAppReviewDetails'], + betaAppReviewSubmissions_build_getToOneRelated: ['GET', '/v1/betaAppReviewSubmissions/{id}/build', 'fields[builds]', '', 'one:builds'], + betaAppReviewSubmissions_build_getToOneRelationship: ['GET', '/v1/betaAppReviewSubmissions/{id}/relationships/build', '', '', 'one:builds'], + betaAppReviewSubmissions_createInstance: ['POST', '/v1/betaAppReviewSubmissions', '', 'betaAppReviewSubmissions', 'one:betaAppReviewSubmissions'], + betaAppReviewSubmissions_getCollection: ['GET', '/v1/betaAppReviewSubmissions', 'filter[betaReviewState] filter[build]! fields[betaAppReviewSubmissions] fields[builds] limit include', '', 'many:betaAppReviewSubmissions'], + betaAppReviewSubmissions_getInstance: ['GET', '/v1/betaAppReviewSubmissions/{id}', 'fields[betaAppReviewSubmissions] fields[builds] include', '', 'one:betaAppReviewSubmissions'], + betaBuildLocalizations_build_getToOneRelated: ['GET', '/v1/betaBuildLocalizations/{id}/build', 'fields[builds]', '', 'one:builds'], + betaBuildLocalizations_build_getToOneRelationship: ['GET', '/v1/betaBuildLocalizations/{id}/relationships/build', '', '', 'one:builds'], + betaBuildLocalizations_createInstance: ['POST', '/v1/betaBuildLocalizations', '', 'betaBuildLocalizations', 'one:betaBuildLocalizations'], + betaBuildLocalizations_deleteInstance: ['DELETE', '/v1/betaBuildLocalizations/{id}', '', '', 'none'], + betaBuildLocalizations_getCollection: ['GET', '/v1/betaBuildLocalizations', 'filter[locale] filter[build] fields[betaBuildLocalizations] fields[builds] limit include', '', 'many:betaBuildLocalizations'], + betaBuildLocalizations_getInstance: ['GET', '/v1/betaBuildLocalizations/{id}', 'fields[betaBuildLocalizations] fields[builds] include', '', 'one:betaBuildLocalizations'], + betaBuildLocalizations_updateInstance: ['PATCH', '/v1/betaBuildLocalizations/{id}', '', 'betaBuildLocalizations', 'one:betaBuildLocalizations'], + betaCrashLogs_getInstance: ['GET', '/v1/betaCrashLogs/{id}', 'fields[betaCrashLogs]', '', 'one:betaCrashLogs'], + betaFeedbackCrashSubmissions_crashLog_getToOneRelated: ['GET', '/v1/betaFeedbackCrashSubmissions/{id}/crashLog', 'fields[betaCrashLogs]', '', 'one:betaCrashLogs'], + betaFeedbackCrashSubmissions_crashLog_getToOneRelationship: ['GET', '/v1/betaFeedbackCrashSubmissions/{id}/relationships/crashLog', '', '', 'one:betaCrashLogs'], + betaFeedbackCrashSubmissions_deleteInstance: ['DELETE', '/v1/betaFeedbackCrashSubmissions/{id}', '', '', 'none'], + betaFeedbackCrashSubmissions_getInstance: ['GET', '/v1/betaFeedbackCrashSubmissions/{id}', 'fields[betaFeedbackCrashSubmissions] fields[builds] fields[betaTesters] include', '', 'one:betaFeedbackCrashSubmissions'], + betaFeedbackScreenshotSubmissions_deleteInstance: ['DELETE', '/v1/betaFeedbackScreenshotSubmissions/{id}', '', '', 'none'], + betaFeedbackScreenshotSubmissions_getInstance: ['GET', '/v1/betaFeedbackScreenshotSubmissions/{id}', 'fields[betaFeedbackScreenshotSubmissions] fields[builds] fields[betaTesters] include', '', 'one:betaFeedbackScreenshotSubmissions'], + betaGroups_app_getToOneRelated: ['GET', '/v1/betaGroups/{id}/app', 'fields[apps]', '', 'one:apps'], + betaGroups_app_getToOneRelationship: ['GET', '/v1/betaGroups/{id}/relationships/app', '', '', 'one:apps'], + betaGroups_betaRecruitmentCriteria_getToOneRelated: ['GET', '/v1/betaGroups/{id}/betaRecruitmentCriteria', 'fields[betaRecruitmentCriteria]', '', 'one:betaRecruitmentCriteria'], + betaGroups_betaRecruitmentCriteria_getToOneRelationship: ['GET', '/v1/betaGroups/{id}/relationships/betaRecruitmentCriteria', '', '', 'one:betaRecruitmentCriteria'], + betaGroups_betaRecruitmentCriterionCompatibleBuildCheck_getToOneRelated: ['GET', '/v1/betaGroups/{id}/betaRecruitmentCriterionCompatibleBuildCheck', 'fields[betaRecruitmentCriterionCompatibleBuildChecks]', '', 'one:betaRecruitmentCriterionCompatibleBuildChecks'], + betaGroups_betaRecruitmentCriterionCompatibleBuildCheck_getToOneRelationship: ['GET', '/v1/betaGroups/{id}/relationships/betaRecruitmentCriterionCompatibleBuildCheck', '', '', 'one:betaRecruitmentCriterionCompatibleBuildChecks'], + betaGroups_betaTesterUsages_getMetrics: ['GET', '/v1/betaGroups/{id}/metrics/betaTesterUsages', 'period groupBy filter[betaTesters] limit', '', 'many:'], + betaGroups_betaTesters_createToManyRelationship: ['POST', '/v1/betaGroups/{id}/relationships/betaTesters', '', 'betaTesters[]', 'none'], + betaGroups_betaTesters_deleteToManyRelationship: ['DELETE', '/v1/betaGroups/{id}/relationships/betaTesters', '', 'betaTesters[]', 'none'], + betaGroups_betaTesters_getToManyRelated: ['GET', '/v1/betaGroups/{id}/betaTesters', 'fields[betaTesters] limit', '', 'many:betaTesters'], + betaGroups_betaTesters_getToManyRelationship: ['GET', '/v1/betaGroups/{id}/relationships/betaTesters', 'limit', '', 'many:betaTesters'], + betaGroups_builds_createToManyRelationship: ['POST', '/v1/betaGroups/{id}/relationships/builds', '', 'builds[]', 'none'], + betaGroups_builds_deleteToManyRelationship: ['DELETE', '/v1/betaGroups/{id}/relationships/builds', '', 'builds[]', 'none'], + betaGroups_builds_getToManyRelated: ['GET', '/v1/betaGroups/{id}/builds', 'fields[builds] limit', '', 'many:builds'], + betaGroups_builds_getToManyRelationship: ['GET', '/v1/betaGroups/{id}/relationships/builds', 'limit', '', 'many:builds'], + betaGroups_createInstance: ['POST', '/v1/betaGroups', '', 'betaGroups', 'one:betaGroups'], + betaGroups_deleteInstance: ['DELETE', '/v1/betaGroups/{id}', '', '', 'none'], + betaGroups_getCollection: ['GET', '/v1/betaGroups', 'filter[name] filter[isInternalGroup] filter[publicLinkEnabled] filter[publicLinkLimitEnabled] filter[publicLink] filter[app] filter[builds] filter[id] sort fields[betaGroups] fields[apps] fields[builds] fields[betaTesters] fields[betaRecruitmentCriteria] limit include limit[betaTesters] limit[builds]', '', 'many:betaGroups'], + betaGroups_getInstance: ['GET', '/v1/betaGroups/{id}', 'fields[betaGroups] fields[apps] fields[builds] fields[betaTesters] fields[betaRecruitmentCriteria] include limit[betaTesters] limit[builds]', '', 'one:betaGroups'], + betaGroups_publicLinkUsages_getMetrics: ['GET', '/v1/betaGroups/{id}/metrics/publicLinkUsages', 'limit', '', 'many:'], + betaGroups_updateInstance: ['PATCH', '/v1/betaGroups/{id}', '', 'betaGroups', 'one:betaGroups'], + betaLicenseAgreements_app_getToOneRelated: ['GET', '/v1/betaLicenseAgreements/{id}/app', 'fields[apps]', '', 'one:apps'], + betaLicenseAgreements_app_getToOneRelationship: ['GET', '/v1/betaLicenseAgreements/{id}/relationships/app', '', '', 'one:apps'], + betaLicenseAgreements_getCollection: ['GET', '/v1/betaLicenseAgreements', 'filter[app] fields[betaLicenseAgreements] fields[apps] limit include', '', 'many:betaLicenseAgreements'], + betaLicenseAgreements_getInstance: ['GET', '/v1/betaLicenseAgreements/{id}', 'fields[betaLicenseAgreements] fields[apps] include', '', 'one:betaLicenseAgreements'], + betaLicenseAgreements_updateInstance: ['PATCH', '/v1/betaLicenseAgreements/{id}', '', 'betaLicenseAgreements', 'one:betaLicenseAgreements'], + betaRecruitmentCriteria_createInstance: ['POST', '/v1/betaRecruitmentCriteria', '', 'betaRecruitmentCriteria', 'one:betaRecruitmentCriteria'], + betaRecruitmentCriteria_deleteInstance: ['DELETE', '/v1/betaRecruitmentCriteria/{id}', '', '', 'none'], + betaRecruitmentCriteria_updateInstance: ['PATCH', '/v1/betaRecruitmentCriteria/{id}', '', 'betaRecruitmentCriteria', 'one:betaRecruitmentCriteria'], + betaRecruitmentCriterionOptions_getCollection: ['GET', '/v1/betaRecruitmentCriterionOptions', 'fields[betaRecruitmentCriterionOptions] limit', '', 'many:betaRecruitmentCriterionOptions'], + betaTesterInvitations_createInstance: ['POST', '/v1/betaTesterInvitations', '', 'betaTesterInvitations', 'one:betaTesterInvitations'], + betaTesters_apps_deleteToManyRelationship: ['DELETE', '/v1/betaTesters/{id}/relationships/apps', '', 'apps[]', 'none'], + betaTesters_apps_getToManyRelated: ['GET', '/v1/betaTesters/{id}/apps', 'fields[apps] limit', '', 'many:apps'], + betaTesters_apps_getToManyRelationship: ['GET', '/v1/betaTesters/{id}/relationships/apps', 'limit', '', 'many:apps'], + betaTesters_betaGroups_createToManyRelationship: ['POST', '/v1/betaTesters/{id}/relationships/betaGroups', '', 'betaGroups[]', 'none'], + betaTesters_betaGroups_deleteToManyRelationship: ['DELETE', '/v1/betaTesters/{id}/relationships/betaGroups', '', 'betaGroups[]', 'none'], + betaTesters_betaGroups_getToManyRelated: ['GET', '/v1/betaTesters/{id}/betaGroups', 'fields[betaGroups] limit', '', 'many:betaGroups'], + betaTesters_betaGroups_getToManyRelationship: ['GET', '/v1/betaTesters/{id}/relationships/betaGroups', 'limit', '', 'many:betaGroups'], + betaTesters_betaTesterUsages_getMetrics: ['GET', '/v1/betaTesters/{id}/metrics/betaTesterUsages', 'period filter[apps]! limit', '', 'many:'], + betaTesters_builds_createToManyRelationship: ['POST', '/v1/betaTesters/{id}/relationships/builds', '', 'builds[]', 'none'], + betaTesters_builds_deleteToManyRelationship: ['DELETE', '/v1/betaTesters/{id}/relationships/builds', '', 'builds[]', 'none'], + betaTesters_builds_getToManyRelated: ['GET', '/v1/betaTesters/{id}/builds', 'fields[builds] limit', '', 'many:builds'], + betaTesters_builds_getToManyRelationship: ['GET', '/v1/betaTesters/{id}/relationships/builds', 'limit', '', 'many:builds'], + betaTesters_createInstance: ['POST', '/v1/betaTesters', '', 'betaTesters', 'one:betaTesters'], + betaTesters_deleteInstance: ['DELETE', '/v1/betaTesters/{id}', '', '', 'none'], + betaTesters_getCollection: ['GET', '/v1/betaTesters', 'filter[firstName] filter[lastName] filter[email] filter[inviteType] filter[apps] filter[betaGroups] filter[builds] filter[id] sort fields[betaTesters] fields[apps] fields[betaGroups] fields[builds] limit include limit[apps] limit[betaGroups] limit[builds]', '', 'many:betaTesters'], + betaTesters_getInstance: ['GET', '/v1/betaTesters/{id}', 'fields[betaTesters] fields[apps] fields[betaGroups] fields[builds] include limit[apps] limit[betaGroups] limit[builds]', '', 'one:betaTesters'], + buildBetaDetails_build_getToOneRelated: ['GET', '/v1/buildBetaDetails/{id}/build', 'fields[builds] fields[preReleaseVersions] fields[betaTesters] fields[betaGroups] fields[betaBuildLocalizations] fields[appEncryptionDeclarations] fields[betaAppReviewSubmissions] fields[apps] fields[buildBetaDetails] fields[appStoreVersions] fields[buildIcons] fields[buildBundles] fields[buildUploads] include limit[individualTesters] limit[betaGroups] limit[betaBuildLocalizations] limit[icons] limit[buildBundles]', '', 'one:builds'], + buildBetaDetails_build_getToOneRelationship: ['GET', '/v1/buildBetaDetails/{id}/relationships/build', '', '', 'one:builds'], + buildBetaDetails_getCollection: ['GET', '/v1/buildBetaDetails', 'filter[build] filter[id] fields[buildBetaDetails] fields[builds] limit include', '', 'many:buildBetaDetails'], + buildBetaDetails_getInstance: ['GET', '/v1/buildBetaDetails/{id}', 'fields[buildBetaDetails] fields[builds] include', '', 'one:buildBetaDetails'], + buildBetaDetails_updateInstance: ['PATCH', '/v1/buildBetaDetails/{id}', '', 'buildBetaDetails', 'one:buildBetaDetails'], + buildBetaNotifications_createInstance: ['POST', '/v1/buildBetaNotifications', '', 'buildBetaNotifications', 'one:buildBetaNotifications'], + buildBundles_appClipDomainCacheStatus_getToOneRelated: ['GET', '/v1/buildBundles/{id}/appClipDomainCacheStatus', 'fields[appClipDomainStatuses]', '', 'one:appClipDomainStatuses'], + buildBundles_appClipDomainCacheStatus_getToOneRelationship: ['GET', '/v1/buildBundles/{id}/relationships/appClipDomainCacheStatus', '', '', 'one:appClipDomainStatuses'], + buildBundles_appClipDomainDebugStatus_getToOneRelated: ['GET', '/v1/buildBundles/{id}/appClipDomainDebugStatus', 'fields[appClipDomainStatuses]', '', 'one:appClipDomainStatuses'], + buildBundles_appClipDomainDebugStatus_getToOneRelationship: ['GET', '/v1/buildBundles/{id}/relationships/appClipDomainDebugStatus', '', '', 'one:appClipDomainStatuses'], + buildBundles_betaAppClipInvocations_getToManyRelated: ['GET', '/v1/buildBundles/{id}/betaAppClipInvocations', 'fields[betaAppClipInvocations] fields[betaAppClipInvocationLocalizations] limit include limit[betaAppClipInvocationLocalizations]', '', 'many:betaAppClipInvocations'], + buildBundles_betaAppClipInvocations_getToManyRelationship: ['GET', '/v1/buildBundles/{id}/relationships/betaAppClipInvocations', 'limit', '', 'many:betaAppClipInvocations'], + buildBundles_buildBundleFileSizes_getToManyRelated: ['GET', '/v1/buildBundles/{id}/buildBundleFileSizes', 'fields[buildBundleFileSizes] limit', '', 'many:buildBundleFileSizes'], + buildBundles_buildBundleFileSizes_getToManyRelationship: ['GET', '/v1/buildBundles/{id}/relationships/buildBundleFileSizes', 'limit', '', 'many:buildBundleFileSizes'], + buildUploadFiles_createInstance: ['POST', '/v1/buildUploadFiles', '', 'buildUploadFiles', 'one:buildUploadFiles'], + buildUploadFiles_getInstance: ['GET', '/v1/buildUploadFiles/{id}', 'fields[buildUploadFiles]', '', 'one:buildUploadFiles'], + buildUploadFiles_updateInstance: ['PATCH', '/v1/buildUploadFiles/{id}', '', 'buildUploadFiles', 'one:buildUploadFiles'], + buildUploads_buildUploadFiles_getToManyRelated: ['GET', '/v1/buildUploads/{id}/buildUploadFiles', 'fields[buildUploadFiles] limit', '', 'many:buildUploadFiles'], + buildUploads_buildUploadFiles_getToManyRelationship: ['GET', '/v1/buildUploads/{id}/relationships/buildUploadFiles', 'limit', '', 'many:buildUploadFiles'], + buildUploads_createInstance: ['POST', '/v1/buildUploads', '', 'buildUploads', 'one:buildUploads'], + buildUploads_deleteInstance: ['DELETE', '/v1/buildUploads/{id}', '', '', 'none'], + buildUploads_getInstance: ['GET', '/v1/buildUploads/{id}', 'fields[buildUploads] fields[builds] fields[buildUploadFiles] include', '', 'one:buildUploads'], + builds_appEncryptionDeclaration_getToOneRelated: ['GET', '/v1/builds/{id}/appEncryptionDeclaration', 'fields[appEncryptionDeclarations]', '', 'one:appEncryptionDeclarations'], + builds_appEncryptionDeclaration_getToOneRelationship: ['GET', '/v1/builds/{id}/relationships/appEncryptionDeclaration', '', '', 'one:appEncryptionDeclarations'], + builds_appEncryptionDeclaration_updateToOneRelationship: ['PATCH', '/v1/builds/{id}/relationships/appEncryptionDeclaration', '', 'appEncryptionDeclarations', 'none'], + builds_appStoreVersion_getToOneRelated: ['GET', '/v1/builds/{id}/appStoreVersion', 'fields[appStoreVersions] fields[apps] fields[appStoreVersionLocalizations] fields[builds] fields[appStoreVersionPhasedReleases] fields[gameCenterAppVersions] fields[routingAppCoverages] fields[appStoreReviewDetails] fields[appStoreVersionSubmissions] fields[appClipDefaultExperiences] fields[appStoreVersionExperiments] fields[alternativeDistributionPackages] include limit[appStoreVersionLocalizations] limit[appStoreVersionExperiments] limit[appStoreVersionExperimentsV2]', '', 'one:appStoreVersions'], + builds_appStoreVersion_getToOneRelationship: ['GET', '/v1/builds/{id}/relationships/appStoreVersion', '', '', 'one:appStoreVersions'], + builds_app_getToOneRelated: ['GET', '/v1/builds/{id}/app', 'fields[apps]', '', 'one:apps'], + builds_app_getToOneRelationship: ['GET', '/v1/builds/{id}/relationships/app', '', '', 'one:apps'], + builds_betaAppReviewSubmission_getToOneRelated: ['GET', '/v1/builds/{id}/betaAppReviewSubmission', 'fields[betaAppReviewSubmissions]', '', 'one:betaAppReviewSubmissions'], + builds_betaAppReviewSubmission_getToOneRelationship: ['GET', '/v1/builds/{id}/relationships/betaAppReviewSubmission', '', '', 'one:betaAppReviewSubmissions'], + builds_betaBuildLocalizations_getToManyRelated: ['GET', '/v1/builds/{id}/betaBuildLocalizations', 'fields[betaBuildLocalizations] limit', '', 'many:betaBuildLocalizations'], + builds_betaBuildLocalizations_getToManyRelationship: ['GET', '/v1/builds/{id}/relationships/betaBuildLocalizations', 'limit', '', 'many:betaBuildLocalizations'], + builds_betaBuildUsages_getMetrics: ['GET', '/v1/builds/{id}/metrics/betaBuildUsages', 'limit', '', 'many:'], + builds_betaGroups_createToManyRelationship: ['POST', '/v1/builds/{id}/relationships/betaGroups', '', 'betaGroups[]', 'none'], + builds_betaGroups_deleteToManyRelationship: ['DELETE', '/v1/builds/{id}/relationships/betaGroups', '', 'betaGroups[]', 'none'], + builds_buildBetaDetail_getToOneRelated: ['GET', '/v1/builds/{id}/buildBetaDetail', 'fields[buildBetaDetails] fields[builds] include', '', 'one:buildBetaDetails'], + builds_buildBetaDetail_getToOneRelationship: ['GET', '/v1/builds/{id}/relationships/buildBetaDetail', '', '', 'one:buildBetaDetails'], + builds_diagnosticSignatures_getToManyRelated: ['GET', '/v1/builds/{id}/diagnosticSignatures', 'filter[diagnosticType] fields[diagnosticSignatures] limit', '', 'many:diagnosticSignatures'], + builds_diagnosticSignatures_getToManyRelationship: ['GET', '/v1/builds/{id}/relationships/diagnosticSignatures', 'limit', '', 'many:diagnosticSignatures'], + builds_getCollection: ['GET', '/v1/builds', 'filter[version] filter[expired] filter[processingState] filter[betaAppReviewSubmission.betaReviewState] filter[usesNonExemptEncryption] filter[preReleaseVersion.version] filter[preReleaseVersion.platform] filter[buildAudienceType] filter[preReleaseVersion] filter[app] filter[betaGroups] filter[appStoreVersion] filter[id] exists[usesNonExemptEncryption] sort fields[builds] fields[preReleaseVersions] fields[betaTesters] fields[betaGroups] fields[betaBuildLocalizations] fields[appEncryptionDeclarations] fields[betaAppReviewSubmissions] fields[apps] fields[buildBetaDetails] fields[appStoreVersions] fields[buildIcons] fields[buildBundles] fields[buildUploads] limit include limit[betaBuildLocalizations] limit[betaGroups] limit[buildBundles] limit[icons] limit[individualTesters]', '', 'many:builds'], + builds_getInstance: ['GET', '/v1/builds/{id}', 'fields[builds] fields[preReleaseVersions] fields[betaTesters] fields[betaGroups] fields[betaBuildLocalizations] fields[appEncryptionDeclarations] fields[betaAppReviewSubmissions] fields[apps] fields[buildBetaDetails] fields[appStoreVersions] fields[buildIcons] fields[buildBundles] fields[buildUploads] include limit[betaBuildLocalizations] limit[betaGroups] limit[buildBundles] limit[icons] limit[individualTesters]', '', 'one:builds'], + builds_icons_getToManyRelated: ['GET', '/v1/builds/{id}/icons', 'fields[buildIcons] limit', '', 'many:buildIcons'], + builds_icons_getToManyRelationship: ['GET', '/v1/builds/{id}/relationships/icons', 'limit', '', 'many:buildIcons'], + builds_individualTesters_createToManyRelationship: ['POST', '/v1/builds/{id}/relationships/individualTesters', '', 'betaTesters[]', 'none'], + builds_individualTesters_deleteToManyRelationship: ['DELETE', '/v1/builds/{id}/relationships/individualTesters', '', 'betaTesters[]', 'none'], + builds_individualTesters_getToManyRelated: ['GET', '/v1/builds/{id}/individualTesters', 'fields[betaTesters] limit', '', 'many:betaTesters'], + builds_individualTesters_getToManyRelationship: ['GET', '/v1/builds/{id}/relationships/individualTesters', 'limit', '', 'many:betaTesters'], + builds_perfPowerMetrics_getToManyRelated: ['GET', '/v1/builds/{id}/perfPowerMetrics', 'filter[platform] filter[metricType] filter[deviceType]', '', 'raw:application/vnd.apple.xcode-metrics+json'], + builds_preReleaseVersion_getToOneRelated: ['GET', '/v1/builds/{id}/preReleaseVersion', 'fields[preReleaseVersions]', '', 'one:preReleaseVersions'], + builds_preReleaseVersion_getToOneRelationship: ['GET', '/v1/builds/{id}/relationships/preReleaseVersion', '', '', 'one:preReleaseVersions'], + builds_updateInstance: ['PATCH', '/v1/builds/{id}', '', 'builds', 'one:builds'], + bundleIdCapabilities_createInstance: ['POST', '/v1/bundleIdCapabilities', '', 'bundleIdCapabilities', 'one:bundleIdCapabilities'], + bundleIdCapabilities_deleteInstance: ['DELETE', '/v1/bundleIdCapabilities/{id}', '', '', 'none'], + bundleIdCapabilities_updateInstance: ['PATCH', '/v1/bundleIdCapabilities/{id}', '', 'bundleIdCapabilities', 'one:bundleIdCapabilities'], + bundleIds_app_getToOneRelated: ['GET', '/v1/bundleIds/{id}/app', 'fields[apps]', '', 'one:apps'], + bundleIds_app_getToOneRelationship: ['GET', '/v1/bundleIds/{id}/relationships/app', '', '', 'one:apps'], + bundleIds_bundleIdCapabilities_getToManyRelated: ['GET', '/v1/bundleIds/{id}/bundleIdCapabilities', 'fields[bundleIdCapabilities] limit', '', 'many:bundleIdCapabilities'], + bundleIds_bundleIdCapabilities_getToManyRelationship: ['GET', '/v1/bundleIds/{id}/relationships/bundleIdCapabilities', 'limit', '', 'many:bundleIdCapabilities'], + bundleIds_createInstance: ['POST', '/v1/bundleIds', '', 'bundleIds', 'one:bundleIds'], + bundleIds_deleteInstance: ['DELETE', '/v1/bundleIds/{id}', '', '', 'none'], + bundleIds_getCollection: ['GET', '/v1/bundleIds', 'filter[name] filter[platform] filter[identifier] filter[seedId] filter[id] sort fields[bundleIds] fields[profiles] fields[bundleIdCapabilities] fields[apps] limit include limit[bundleIdCapabilities] limit[profiles]', '', 'many:bundleIds'], + bundleIds_getInstance: ['GET', '/v1/bundleIds/{id}', 'fields[bundleIds] fields[profiles] fields[bundleIdCapabilities] fields[apps] include limit[bundleIdCapabilities] limit[profiles]', '', 'one:bundleIds'], + bundleIds_profiles_getToManyRelated: ['GET', '/v1/bundleIds/{id}/profiles', 'fields[profiles] limit', '', 'many:profiles'], + bundleIds_profiles_getToManyRelationship: ['GET', '/v1/bundleIds/{id}/relationships/profiles', 'limit', '', 'many:profiles'], + bundleIds_updateInstance: ['PATCH', '/v1/bundleIds/{id}', '', 'bundleIds', 'one:bundleIds'], + certificates_createInstance: ['POST', '/v1/certificates', '', 'certificates', 'one:certificates'], + certificates_deleteInstance: ['DELETE', '/v1/certificates/{id}', '', '', 'none'], + certificates_getCollection: ['GET', '/v1/certificates', 'filter[displayName] filter[certificateType] filter[serialNumber] filter[id] sort fields[certificates] fields[passTypeIds] limit include', '', 'many:certificates'], + certificates_getInstance: ['GET', '/v1/certificates/{id}', 'fields[certificates] fields[passTypeIds] include', '', 'one:certificates'], + certificates_passTypeId_getToOneRelated: ['GET', '/v1/certificates/{id}/passTypeId', 'fields[passTypeIds] fields[certificates] include limit[certificates]', '', 'one:passTypeIds'], + certificates_passTypeId_getToOneRelationship: ['GET', '/v1/certificates/{id}/relationships/passTypeId', '', '', 'one:passTypeIds'], + certificates_updateInstance: ['PATCH', '/v1/certificates/{id}', '', 'certificates', 'one:certificates'], + ciArtifacts_getInstance: ['GET', '/v1/ciArtifacts/{id}', 'fields[ciArtifacts]', '', 'one:ciArtifacts'], + ciBuildActions_artifacts_getToManyRelated: ['GET', '/v1/ciBuildActions/{id}/artifacts', 'fields[ciArtifacts] limit', '', 'many:ciArtifacts'], + ciBuildActions_artifacts_getToManyRelationship: ['GET', '/v1/ciBuildActions/{id}/relationships/artifacts', 'limit', '', 'many:ciArtifacts'], + ciBuildActions_buildRun_getToOneRelated: ['GET', '/v1/ciBuildActions/{id}/buildRun', 'fields[ciBuildRuns] fields[builds] fields[ciWorkflows] fields[ciProducts] fields[scmGitReferences] fields[scmPullRequests] include limit[builds]', '', 'one:ciBuildRuns'], + ciBuildActions_buildRun_getToOneRelationship: ['GET', '/v1/ciBuildActions/{id}/relationships/buildRun', '', '', 'one:ciBuildRuns'], + ciBuildActions_getInstance: ['GET', '/v1/ciBuildActions/{id}', 'fields[ciBuildActions] fields[ciBuildRuns] include', '', 'one:ciBuildActions'], + ciBuildActions_issues_getToManyRelated: ['GET', '/v1/ciBuildActions/{id}/issues', 'fields[ciIssues] limit', '', 'many:ciIssues'], + ciBuildActions_issues_getToManyRelationship: ['GET', '/v1/ciBuildActions/{id}/relationships/issues', 'limit', '', 'many:ciIssues'], + ciBuildActions_testResults_getToManyRelated: ['GET', '/v1/ciBuildActions/{id}/testResults', 'fields[ciTestResults] limit', '', 'many:ciTestResults'], + ciBuildActions_testResults_getToManyRelationship: ['GET', '/v1/ciBuildActions/{id}/relationships/testResults', 'limit', '', 'many:ciTestResults'], + ciBuildRuns_actions_getToManyRelated: ['GET', '/v1/ciBuildRuns/{id}/actions', 'fields[ciBuildActions] fields[ciBuildRuns] limit include', '', 'many:ciBuildActions'], + ciBuildRuns_actions_getToManyRelationship: ['GET', '/v1/ciBuildRuns/{id}/relationships/actions', 'limit', '', 'many:ciBuildActions'], + ciBuildRuns_builds_getToManyRelated: ['GET', '/v1/ciBuildRuns/{id}/builds', 'filter[version] filter[expired] filter[processingState] filter[betaAppReviewSubmission.betaReviewState] filter[usesNonExemptEncryption] filter[preReleaseVersion.version] filter[preReleaseVersion.platform] filter[buildAudienceType] filter[preReleaseVersion] filter[app] filter[betaGroups] filter[appStoreVersion] filter[id] exists[usesNonExemptEncryption] sort fields[builds] fields[preReleaseVersions] fields[betaTesters] fields[betaGroups] fields[betaBuildLocalizations] fields[appEncryptionDeclarations] fields[betaAppReviewSubmissions] fields[apps] fields[buildBetaDetails] fields[appStoreVersions] fields[buildIcons] fields[buildBundles] fields[buildUploads] limit include limit[individualTesters] limit[betaGroups] limit[betaBuildLocalizations] limit[icons] limit[buildBundles]', '', 'many:builds'], + ciBuildRuns_builds_getToManyRelationship: ['GET', '/v1/ciBuildRuns/{id}/relationships/builds', 'limit', '', 'many:builds'], + ciBuildRuns_createInstance: ['POST', '/v1/ciBuildRuns', '', 'ciBuildRuns', 'one:ciBuildRuns'], + ciBuildRuns_getInstance: ['GET', '/v1/ciBuildRuns/{id}', 'fields[ciBuildRuns] fields[builds] fields[ciWorkflows] fields[ciProducts] fields[scmGitReferences] fields[scmPullRequests] include limit[builds]', '', 'one:ciBuildRuns'], + ciIssues_getInstance: ['GET', '/v1/ciIssues/{id}', 'fields[ciIssues]', '', 'one:ciIssues'], + ciMacOsVersions_getCollection: ['GET', '/v1/ciMacOsVersions', 'fields[ciMacOsVersions] fields[ciXcodeVersions] limit include limit[xcodeVersions]', '', 'many:ciMacOsVersions'], + ciMacOsVersions_getInstance: ['GET', '/v1/ciMacOsVersions/{id}', 'fields[ciMacOsVersions] fields[ciXcodeVersions] include limit[xcodeVersions]', '', 'one:ciMacOsVersions'], + ciMacOsVersions_xcodeVersions_getToManyRelated: ['GET', '/v1/ciMacOsVersions/{id}/xcodeVersions', 'fields[ciXcodeVersions] fields[ciMacOsVersions] limit include limit[macOsVersions]', '', 'many:ciXcodeVersions'], + ciMacOsVersions_xcodeVersions_getToManyRelationship: ['GET', '/v1/ciMacOsVersions/{id}/relationships/xcodeVersions', 'limit', '', 'many:ciXcodeVersions'], + ciProducts_additionalRepositories_getToManyRelated: ['GET', '/v1/ciProducts/{id}/additionalRepositories', 'filter[id] fields[scmRepositories] fields[scmProviders] fields[scmGitReferences] limit include', '', 'many:scmRepositories'], + ciProducts_additionalRepositories_getToManyRelationship: ['GET', '/v1/ciProducts/{id}/relationships/additionalRepositories', 'limit', '', 'many:scmRepositories'], + ciProducts_app_getToOneRelated: ['GET', '/v1/ciProducts/{id}/app', 'fields[apps] fields[appEncryptionDeclarations] fields[buildIcons] fields[ciProducts] fields[betaGroups] fields[appStoreVersions] fields[preReleaseVersions] fields[betaAppLocalizations] fields[builds] fields[betaLicenseAgreements] fields[betaAppReviewDetails] fields[appInfos] fields[appClips] fields[endUserLicenseAgreements] fields[inAppPurchases] fields[subscriptionGroups] fields[gameCenterEnabledVersions] fields[appCustomProductPages] fields[promotedPurchases] fields[appEvents] fields[reviewSubmissions] fields[subscriptionGracePeriods] fields[gameCenterDetails] fields[appStoreVersionExperiments] fields[androidToIosAppMappingDetails] include limit[appEncryptionDeclarations] limit[betaGroups] limit[appStoreVersions] limit[preReleaseVersions] limit[betaAppLocalizations] limit[builds] limit[appInfos] limit[appClips] limit[inAppPurchases] limit[subscriptionGroups] limit[gameCenterEnabledVersions] limit[appCustomProductPages] limit[inAppPurchasesV2] limit[promotedPurchases] limit[appEvents] limit[reviewSubmissions] limit[appStoreVersionExperimentsV2] limit[androidToIosAppMappingDetails]', '', 'one:apps'], + ciProducts_app_getToOneRelationship: ['GET', '/v1/ciProducts/{id}/relationships/app', '', '', 'one:apps'], + ciProducts_buildRuns_getToManyRelated: ['GET', '/v1/ciProducts/{id}/buildRuns', 'filter[builds] sort fields[ciBuildRuns] fields[builds] fields[ciWorkflows] fields[ciProducts] fields[scmGitReferences] fields[scmPullRequests] limit include limit[builds]', '', 'many:ciBuildRuns'], + ciProducts_buildRuns_getToManyRelationship: ['GET', '/v1/ciProducts/{id}/relationships/buildRuns', 'limit', '', 'many:ciBuildRuns'], + ciProducts_deleteInstance: ['DELETE', '/v1/ciProducts/{id}', '', '', 'none'], + ciProducts_getCollection: ['GET', '/v1/ciProducts', 'filter[productType] filter[app] fields[ciProducts] fields[apps] fields[bundleIds] fields[scmRepositories] limit include limit[primaryRepositories]', '', 'many:ciProducts'], + ciProducts_getInstance: ['GET', '/v1/ciProducts/{id}', 'fields[ciProducts] fields[apps] fields[bundleIds] fields[scmRepositories] include limit[primaryRepositories]', '', 'one:ciProducts'], + ciProducts_primaryRepositories_getToManyRelated: ['GET', '/v1/ciProducts/{id}/primaryRepositories', 'filter[id] fields[scmRepositories] fields[scmProviders] fields[scmGitReferences] limit include', '', 'many:scmRepositories'], + ciProducts_primaryRepositories_getToManyRelationship: ['GET', '/v1/ciProducts/{id}/relationships/primaryRepositories', 'limit', '', 'many:scmRepositories'], + ciProducts_workflows_getToManyRelated: ['GET', '/v1/ciProducts/{id}/workflows', 'fields[ciWorkflows] fields[ciProducts] fields[scmRepositories] fields[ciXcodeVersions] fields[ciMacOsVersions] limit include', '', 'many:ciWorkflows'], + ciProducts_workflows_getToManyRelationship: ['GET', '/v1/ciProducts/{id}/relationships/workflows', 'limit', '', 'many:ciWorkflows'], + ciTestResults_getInstance: ['GET', '/v1/ciTestResults/{id}', 'fields[ciTestResults]', '', 'one:ciTestResults'], + ciWorkflows_buildRuns_getToManyRelated: ['GET', '/v1/ciWorkflows/{id}/buildRuns', 'filter[builds] sort fields[ciBuildRuns] fields[builds] fields[ciWorkflows] fields[ciProducts] fields[scmGitReferences] fields[scmPullRequests] limit include limit[builds]', '', 'many:ciBuildRuns'], + ciWorkflows_buildRuns_getToManyRelationship: ['GET', '/v1/ciWorkflows/{id}/relationships/buildRuns', 'limit', '', 'many:ciBuildRuns'], + ciWorkflows_createInstance: ['POST', '/v1/ciWorkflows', '', 'ciWorkflows', 'one:ciWorkflows'], + ciWorkflows_deleteInstance: ['DELETE', '/v1/ciWorkflows/{id}', '', '', 'none'], + ciWorkflows_getInstance: ['GET', '/v1/ciWorkflows/{id}', 'fields[ciWorkflows] fields[ciProducts] fields[scmRepositories] fields[ciXcodeVersions] fields[ciMacOsVersions] include', '', 'one:ciWorkflows'], + ciWorkflows_repository_getToOneRelated: ['GET', '/v1/ciWorkflows/{id}/repository', 'fields[scmRepositories] fields[scmProviders] fields[scmGitReferences] include', '', 'one:scmRepositories'], + ciWorkflows_repository_getToOneRelationship: ['GET', '/v1/ciWorkflows/{id}/relationships/repository', '', '', 'one:scmRepositories'], + ciWorkflows_updateInstance: ['PATCH', '/v1/ciWorkflows/{id}', '', 'ciWorkflows', 'one:ciWorkflows'], + ciXcodeVersions_getCollection: ['GET', '/v1/ciXcodeVersions', 'fields[ciXcodeVersions] fields[ciMacOsVersions] limit include limit[macOsVersions]', '', 'many:ciXcodeVersions'], + ciXcodeVersions_getInstance: ['GET', '/v1/ciXcodeVersions/{id}', 'fields[ciXcodeVersions] fields[ciMacOsVersions] include limit[macOsVersions]', '', 'one:ciXcodeVersions'], + ciXcodeVersions_macOsVersions_getToManyRelated: ['GET', '/v1/ciXcodeVersions/{id}/macOsVersions', 'fields[ciMacOsVersions] fields[ciXcodeVersions] limit include limit[xcodeVersions]', '', 'many:ciMacOsVersions'], + ciXcodeVersions_macOsVersions_getToManyRelationship: ['GET', '/v1/ciXcodeVersions/{id}/relationships/macOsVersions', 'limit', '', 'many:ciMacOsVersions'], + customerReviewResponses_createInstance: ['POST', '/v1/customerReviewResponses', '', 'customerReviewResponses', 'one:customerReviewResponses'], + customerReviewResponses_deleteInstance: ['DELETE', '/v1/customerReviewResponses/{id}', '', '', 'none'], + customerReviewResponses_getInstance: ['GET', '/v1/customerReviewResponses/{id}', 'fields[customerReviewResponses] fields[customerReviews] include', '', 'one:customerReviewResponses'], + customerReviews_getInstance: ['GET', '/v1/customerReviews/{id}', 'fields[customerReviews] fields[customerReviewResponses] fields[territories] include', '', 'one:customerReviews'], + customerReviews_response_getToOneRelated: ['GET', '/v1/customerReviews/{id}/response', 'fields[customerReviewResponses] fields[customerReviews] include', '', 'one:customerReviewResponses'], + customerReviews_response_getToOneRelationship: ['GET', '/v1/customerReviews/{id}/relationships/response', '', '', 'one:customerReviewResponses'], + devices_createInstance: ['POST', '/v1/devices', '', 'devices', 'one:devices'], + devices_getCollection: ['GET', '/v1/devices', 'filter[name] filter[platform] filter[udid] filter[status] filter[id] sort fields[devices] limit', '', 'many:devices'], + devices_getInstance: ['GET', '/v1/devices/{id}', 'fields[devices]', '', 'one:devices'], + devices_updateInstance: ['PATCH', '/v1/devices/{id}', '', 'devices', 'one:devices'], + diagnosticSignatures_logs_getToManyRelated: ['GET', '/v1/diagnosticSignatures/{id}/logs', 'limit', '', 'raw:application/vnd.apple.diagnostic-logs+json'], + endAppAvailabilityPreOrders_createInstance: ['POST', '/v1/endAppAvailabilityPreOrders', '', 'endAppAvailabilityPreOrders', 'one:endAppAvailabilityPreOrders'], + endUserLicenseAgreements_createInstance: ['POST', '/v1/endUserLicenseAgreements', '', 'endUserLicenseAgreements', 'one:endUserLicenseAgreements'], + endUserLicenseAgreements_deleteInstance: ['DELETE', '/v1/endUserLicenseAgreements/{id}', '', '', 'none'], + endUserLicenseAgreements_getInstance: ['GET', '/v1/endUserLicenseAgreements/{id}', 'fields[endUserLicenseAgreements] fields[apps] fields[territories] include limit[territories]', '', 'one:endUserLicenseAgreements'], + endUserLicenseAgreements_territories_getToManyRelated: ['GET', '/v1/endUserLicenseAgreements/{id}/territories', 'fields[territories] limit', '', 'many:territories'], + endUserLicenseAgreements_territories_getToManyRelationship: ['GET', '/v1/endUserLicenseAgreements/{id}/relationships/territories', 'limit', '', 'many:territories'], + endUserLicenseAgreements_updateInstance: ['PATCH', '/v1/endUserLicenseAgreements/{id}', '', 'endUserLicenseAgreements', 'one:endUserLicenseAgreements'], + financeReports_getCollection: ['GET', '/v1/financeReports', 'filter[vendorNumber]! filter[reportType]! filter[regionCode]! filter[reportDate]!', '', 'raw:application/a-gzip'], + gameCenterAchievementImagesV2_createInstance: ['POST', '/v2/gameCenterAchievementImages', '', 'gameCenterAchievementImages', 'one:gameCenterAchievementImages'], + gameCenterAchievementImagesV2_deleteInstance: ['DELETE', '/v2/gameCenterAchievementImages/{id}', '', '', 'none'], + gameCenterAchievementImagesV2_getInstance: ['GET', '/v2/gameCenterAchievementImages/{id}', 'fields[gameCenterAchievementImages] fields[gameCenterAchievementLocalizations] include', '', 'one:gameCenterAchievementImages'], + gameCenterAchievementImagesV2_updateInstance: ['PATCH', '/v2/gameCenterAchievementImages/{id}', '', 'gameCenterAchievementImages', 'one:gameCenterAchievementImages'], + gameCenterAchievementImages_createInstance: ['POST', '/v1/gameCenterAchievementImages', '', 'gameCenterAchievementImages', 'one:gameCenterAchievementImages'], + gameCenterAchievementImages_deleteInstance: ['DELETE', '/v1/gameCenterAchievementImages/{id}', '', '', 'none'], + gameCenterAchievementImages_getInstance: ['GET', '/v1/gameCenterAchievementImages/{id}', 'fields[gameCenterAchievementImages] fields[gameCenterAchievementLocalizations] include', '', 'one:gameCenterAchievementImages'], + gameCenterAchievementImages_updateInstance: ['PATCH', '/v1/gameCenterAchievementImages/{id}', '', 'gameCenterAchievementImages', 'one:gameCenterAchievementImages'], + gameCenterAchievementLocalizationsV2_createInstance: ['POST', '/v2/gameCenterAchievementLocalizations', '', 'gameCenterAchievementLocalizations', 'one:gameCenterAchievementLocalizations'], + gameCenterAchievementLocalizationsV2_deleteInstance: ['DELETE', '/v2/gameCenterAchievementLocalizations/{id}', '', '', 'none'], + gameCenterAchievementLocalizationsV2_getInstance: ['GET', '/v2/gameCenterAchievementLocalizations/{id}', 'fields[gameCenterAchievementLocalizations] fields[gameCenterAchievementVersions] fields[gameCenterAchievementImages] include', '', 'one:gameCenterAchievementLocalizations'], + gameCenterAchievementLocalizationsV2_image_getToOneRelated: ['GET', '/v2/gameCenterAchievementLocalizations/{id}/image', 'fields[gameCenterAchievementImages] fields[gameCenterAchievementLocalizations] include', '', 'one:gameCenterAchievementImages'], + gameCenterAchievementLocalizationsV2_image_getToOneRelationship: ['GET', '/v2/gameCenterAchievementLocalizations/{id}/relationships/image', '', '', 'one:gameCenterAchievementImages'], + gameCenterAchievementLocalizationsV2_updateInstance: ['PATCH', '/v2/gameCenterAchievementLocalizations/{id}', '', 'gameCenterAchievementLocalizations', 'one:gameCenterAchievementLocalizations'], + gameCenterAchievementLocalizations_createInstance: ['POST', '/v1/gameCenterAchievementLocalizations', '', 'gameCenterAchievementLocalizations', 'one:gameCenterAchievementLocalizations'], + gameCenterAchievementLocalizations_deleteInstance: ['DELETE', '/v1/gameCenterAchievementLocalizations/{id}', '', '', 'none'], + gameCenterAchievementLocalizations_gameCenterAchievementImage_getToOneRelated: ['GET', '/v1/gameCenterAchievementLocalizations/{id}/gameCenterAchievementImage', 'fields[gameCenterAchievementImages] fields[gameCenterAchievementLocalizations] include', '', 'one:gameCenterAchievementImages'], + gameCenterAchievementLocalizations_gameCenterAchievementImage_getToOneRelationship: ['GET', '/v1/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievementImage', '', '', 'one:gameCenterAchievementImages'], + gameCenterAchievementLocalizations_gameCenterAchievement_getToOneRelated: ['GET', '/v1/gameCenterAchievementLocalizations/{id}/gameCenterAchievement', 'fields[gameCenterAchievements] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterAchievementLocalizations] fields[gameCenterAchievementReleases] fields[gameCenterActivities] include limit[localizations] limit[releases]', '', 'one:gameCenterAchievements'], + gameCenterAchievementLocalizations_gameCenterAchievement_getToOneRelationship: ['GET', '/v1/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievement', '', '', 'one:gameCenterAchievements'], + gameCenterAchievementLocalizations_getInstance: ['GET', '/v1/gameCenterAchievementLocalizations/{id}', 'fields[gameCenterAchievementLocalizations] fields[gameCenterAchievements] fields[gameCenterAchievementImages] include', '', 'one:gameCenterAchievementLocalizations'], + gameCenterAchievementLocalizations_updateInstance: ['PATCH', '/v1/gameCenterAchievementLocalizations/{id}', '', 'gameCenterAchievementLocalizations', 'one:gameCenterAchievementLocalizations'], + gameCenterAchievementReleases_createInstance: ['POST', '/v1/gameCenterAchievementReleases', '', 'gameCenterAchievementReleases', 'one:gameCenterAchievementReleases'], + gameCenterAchievementReleases_deleteInstance: ['DELETE', '/v1/gameCenterAchievementReleases/{id}', '', '', 'none'], + gameCenterAchievementReleases_getInstance: ['GET', '/v1/gameCenterAchievementReleases/{id}', 'fields[gameCenterAchievementReleases] fields[gameCenterDetails] fields[gameCenterAchievements] include', '', 'one:gameCenterAchievementReleases'], + gameCenterAchievementVersionsV2_createInstance: ['POST', '/v2/gameCenterAchievementVersions', '', 'gameCenterAchievementVersions', 'one:gameCenterAchievementVersions'], + gameCenterAchievementVersionsV2_getInstance: ['GET', '/v2/gameCenterAchievementVersions/{id}', 'fields[gameCenterAchievementVersions] fields[gameCenterAchievements] fields[gameCenterAchievementLocalizations] include limit[localizations]', '', 'one:gameCenterAchievementVersions'], + gameCenterAchievementVersionsV2_localizations_getToManyRelated: ['GET', '/v2/gameCenterAchievementVersions/{id}/localizations', 'fields[gameCenterAchievementLocalizations] fields[gameCenterAchievementVersions] fields[gameCenterAchievementImages] limit include', '', 'many:gameCenterAchievementLocalizations'], + gameCenterAchievementVersionsV2_localizations_getToManyRelationship: ['GET', '/v2/gameCenterAchievementVersions/{id}/relationships/localizations', 'limit', '', 'many:gameCenterAchievementLocalizations'], + gameCenterAchievementsV2_activity_updateToOneRelationship: ['PATCH', '/v2/gameCenterAchievements/{id}/relationships/activity', '', 'gameCenterActivities', 'none'], + gameCenterAchievementsV2_createInstance: ['POST', '/v2/gameCenterAchievements', '', 'gameCenterAchievements', 'one:gameCenterAchievements'], + gameCenterAchievementsV2_deleteInstance: ['DELETE', '/v2/gameCenterAchievements/{id}', '', '', 'none'], + gameCenterAchievementsV2_getInstance: ['GET', '/v2/gameCenterAchievements/{id}', 'fields[gameCenterAchievements] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterActivities] fields[gameCenterAchievementVersions] include limit[versions]', '', 'one:gameCenterAchievements'], + gameCenterAchievementsV2_updateInstance: ['PATCH', '/v2/gameCenterAchievements/{id}', '', 'gameCenterAchievements', 'one:gameCenterAchievements'], + gameCenterAchievementsV2_versions_getToManyRelated: ['GET', '/v2/gameCenterAchievements/{id}/versions', 'fields[gameCenterAchievementVersions] fields[gameCenterAchievements] fields[gameCenterAchievementLocalizations] limit include limit[localizations]', '', 'many:gameCenterAchievementVersions'], + gameCenterAchievementsV2_versions_getToManyRelationship: ['GET', '/v2/gameCenterAchievements/{id}/relationships/versions', 'limit', '', 'many:gameCenterAchievementVersions'], + gameCenterAchievements_activity_updateToOneRelationship: ['PATCH', '/v1/gameCenterAchievements/{id}/relationships/activity', '', 'gameCenterActivities', 'none'], + gameCenterAchievements_createInstance: ['POST', '/v1/gameCenterAchievements', '', 'gameCenterAchievements', 'one:gameCenterAchievements'], + gameCenterAchievements_deleteInstance: ['DELETE', '/v1/gameCenterAchievements/{id}', '', '', 'none'], + gameCenterAchievements_getInstance: ['GET', '/v1/gameCenterAchievements/{id}', 'fields[gameCenterAchievements] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterAchievementLocalizations] fields[gameCenterAchievementReleases] fields[gameCenterActivities] include limit[localizations] limit[releases]', '', 'one:gameCenterAchievements'], + gameCenterAchievements_groupAchievement_getToOneRelated: ['GET', '/v1/gameCenterAchievements/{id}/groupAchievement', 'fields[gameCenterAchievements] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterAchievementLocalizations] fields[gameCenterAchievementReleases] fields[gameCenterActivities] include limit[localizations] limit[releases]', '', 'one:gameCenterAchievements'], + gameCenterAchievements_groupAchievement_getToOneRelationship: ['GET', '/v1/gameCenterAchievements/{id}/relationships/groupAchievement', '', '', 'one:gameCenterAchievements'], + gameCenterAchievements_groupAchievement_updateToOneRelationship: ['PATCH', '/v1/gameCenterAchievements/{id}/relationships/groupAchievement', '', 'gameCenterAchievements', 'none'], + gameCenterAchievements_localizations_getToManyRelated: ['GET', '/v1/gameCenterAchievements/{id}/localizations', 'fields[gameCenterAchievementLocalizations] fields[gameCenterAchievements] fields[gameCenterAchievementImages] limit include', '', 'many:gameCenterAchievementLocalizations'], + gameCenterAchievements_localizations_getToManyRelationship: ['GET', '/v1/gameCenterAchievements/{id}/relationships/localizations', 'limit', '', 'many:gameCenterAchievementLocalizations'], + gameCenterAchievements_releases_getToManyRelated: ['GET', '/v1/gameCenterAchievements/{id}/releases', 'filter[live] filter[gameCenterDetail] fields[gameCenterAchievementReleases] fields[gameCenterDetails] fields[gameCenterAchievements] limit include', '', 'many:gameCenterAchievementReleases'], + gameCenterAchievements_releases_getToManyRelationship: ['GET', '/v1/gameCenterAchievements/{id}/relationships/releases', 'limit', '', 'many:gameCenterAchievementReleases'], + gameCenterAchievements_updateInstance: ['PATCH', '/v1/gameCenterAchievements/{id}', '', 'gameCenterAchievements', 'one:gameCenterAchievements'], + gameCenterActivities_achievementsV2_createToManyRelationship: ['POST', '/v1/gameCenterActivities/{id}/relationships/achievementsV2', '', 'gameCenterAchievements[]', 'none'], + gameCenterActivities_achievementsV2_deleteToManyRelationship: ['DELETE', '/v1/gameCenterActivities/{id}/relationships/achievementsV2', '', 'gameCenterAchievements[]', 'none'], + gameCenterActivities_achievements_createToManyRelationship: ['POST', '/v1/gameCenterActivities/{id}/relationships/achievements', '', 'gameCenterAchievements[]', 'none'], + gameCenterActivities_achievements_deleteToManyRelationship: ['DELETE', '/v1/gameCenterActivities/{id}/relationships/achievements', '', 'gameCenterAchievements[]', 'none'], + gameCenterActivities_createInstance: ['POST', '/v1/gameCenterActivities', '', 'gameCenterActivities', 'one:gameCenterActivities'], + gameCenterActivities_deleteInstance: ['DELETE', '/v1/gameCenterActivities/{id}', '', '', 'none'], + gameCenterActivities_getInstance: ['GET', '/v1/gameCenterActivities/{id}', 'fields[gameCenterActivities] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterAchievements] fields[gameCenterLeaderboards] fields[gameCenterActivityVersions] include limit[achievements] limit[achievementsV2] limit[leaderboards] limit[leaderboardsV2] limit[versions]', '', 'one:gameCenterActivities'], + gameCenterActivities_leaderboardsV2_createToManyRelationship: ['POST', '/v1/gameCenterActivities/{id}/relationships/leaderboardsV2', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterActivities_leaderboardsV2_deleteToManyRelationship: ['DELETE', '/v1/gameCenterActivities/{id}/relationships/leaderboardsV2', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterActivities_leaderboards_createToManyRelationship: ['POST', '/v1/gameCenterActivities/{id}/relationships/leaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterActivities_leaderboards_deleteToManyRelationship: ['DELETE', '/v1/gameCenterActivities/{id}/relationships/leaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterActivities_updateInstance: ['PATCH', '/v1/gameCenterActivities/{id}', '', 'gameCenterActivities', 'one:gameCenterActivities'], + gameCenterActivities_versions_getToManyRelated: ['GET', '/v1/gameCenterActivities/{id}/versions', 'fields[gameCenterActivityVersions] fields[gameCenterActivities] fields[gameCenterActivityLocalizations] fields[gameCenterActivityImages] fields[gameCenterActivityVersionReleases] limit include limit[localizations] limit[releases]', '', 'many:gameCenterActivityVersions'], + gameCenterActivities_versions_getToManyRelationship: ['GET', '/v1/gameCenterActivities/{id}/relationships/versions', 'limit', '', 'many:gameCenterActivityVersions'], + gameCenterActivityImages_createInstance: ['POST', '/v1/gameCenterActivityImages', '', 'gameCenterActivityImages', 'one:gameCenterActivityImages'], + gameCenterActivityImages_deleteInstance: ['DELETE', '/v1/gameCenterActivityImages/{id}', '', '', 'none'], + gameCenterActivityImages_getInstance: ['GET', '/v1/gameCenterActivityImages/{id}', 'fields[gameCenterActivityImages]', '', 'one:gameCenterActivityImages'], + gameCenterActivityImages_updateInstance: ['PATCH', '/v1/gameCenterActivityImages/{id}', '', 'gameCenterActivityImages', 'one:gameCenterActivityImages'], + gameCenterActivityLocalizations_createInstance: ['POST', '/v1/gameCenterActivityLocalizations', '', 'gameCenterActivityLocalizations', 'one:gameCenterActivityLocalizations'], + gameCenterActivityLocalizations_deleteInstance: ['DELETE', '/v1/gameCenterActivityLocalizations/{id}', '', '', 'none'], + gameCenterActivityLocalizations_getInstance: ['GET', '/v1/gameCenterActivityLocalizations/{id}', 'fields[gameCenterActivityLocalizations] fields[gameCenterActivityVersions] fields[gameCenterActivityImages] include', '', 'one:gameCenterActivityLocalizations'], + gameCenterActivityLocalizations_image_getToOneRelated: ['GET', '/v1/gameCenterActivityLocalizations/{id}/image', 'fields[gameCenterActivityImages]', '', 'one:gameCenterActivityImages'], + gameCenterActivityLocalizations_image_getToOneRelationship: ['GET', '/v1/gameCenterActivityLocalizations/{id}/relationships/image', '', '', 'one:gameCenterActivityImages'], + gameCenterActivityLocalizations_updateInstance: ['PATCH', '/v1/gameCenterActivityLocalizations/{id}', '', 'gameCenterActivityLocalizations', 'one:gameCenterActivityLocalizations'], + gameCenterActivityVersionReleases_createInstance: ['POST', '/v1/gameCenterActivityVersionReleases', '', 'gameCenterActivityVersionReleases', 'one:gameCenterActivityVersionReleases'], + gameCenterActivityVersionReleases_deleteInstance: ['DELETE', '/v1/gameCenterActivityVersionReleases/{id}', '', '', 'none'], + gameCenterActivityVersionReleases_getInstance: ['GET', '/v1/gameCenterActivityVersionReleases/{id}', 'fields[gameCenterActivityVersionReleases] fields[gameCenterActivityVersions] include', '', 'one:gameCenterActivityVersionReleases'], + gameCenterActivityVersions_createInstance: ['POST', '/v1/gameCenterActivityVersions', '', 'gameCenterActivityVersions', 'one:gameCenterActivityVersions'], + gameCenterActivityVersions_defaultImage_getToOneRelated: ['GET', '/v1/gameCenterActivityVersions/{id}/defaultImage', 'fields[gameCenterActivityImages]', '', 'one:gameCenterActivityImages'], + gameCenterActivityVersions_defaultImage_getToOneRelationship: ['GET', '/v1/gameCenterActivityVersions/{id}/relationships/defaultImage', '', '', 'one:gameCenterActivityImages'], + gameCenterActivityVersions_getInstance: ['GET', '/v1/gameCenterActivityVersions/{id}', 'fields[gameCenterActivityVersions] fields[gameCenterActivities] fields[gameCenterActivityLocalizations] fields[gameCenterActivityImages] fields[gameCenterActivityVersionReleases] include limit[localizations] limit[releases]', '', 'one:gameCenterActivityVersions'], + gameCenterActivityVersions_localizations_getToManyRelated: ['GET', '/v1/gameCenterActivityVersions/{id}/localizations', 'fields[gameCenterActivityLocalizations] fields[gameCenterActivityVersions] fields[gameCenterActivityImages] limit include', '', 'many:gameCenterActivityLocalizations'], + gameCenterActivityVersions_localizations_getToManyRelationship: ['GET', '/v1/gameCenterActivityVersions/{id}/relationships/localizations', 'limit', '', 'many:gameCenterActivityLocalizations'], + gameCenterActivityVersions_updateInstance: ['PATCH', '/v1/gameCenterActivityVersions/{id}', '', 'gameCenterActivityVersions', 'one:gameCenterActivityVersions'], + gameCenterAppVersions_appStoreVersion_getToOneRelated: ['GET', '/v1/gameCenterAppVersions/{id}/appStoreVersion', 'fields[appStoreVersions] fields[apps] fields[appStoreVersionLocalizations] fields[builds] fields[appStoreVersionPhasedReleases] fields[gameCenterAppVersions] fields[routingAppCoverages] fields[appStoreReviewDetails] fields[appStoreVersionSubmissions] fields[appClipDefaultExperiences] fields[appStoreVersionExperiments] fields[alternativeDistributionPackages] include limit[appStoreVersionLocalizations] limit[appStoreVersionExperiments] limit[appStoreVersionExperimentsV2]', '', 'one:appStoreVersions'], + gameCenterAppVersions_appStoreVersion_getToOneRelationship: ['GET', '/v1/gameCenterAppVersions/{id}/relationships/appStoreVersion', '', '', 'one:appStoreVersions'], + gameCenterAppVersions_compatibilityVersions_createToManyRelationship: ['POST', '/v1/gameCenterAppVersions/{id}/relationships/compatibilityVersions', '', 'gameCenterAppVersions[]', 'none'], + gameCenterAppVersions_compatibilityVersions_deleteToManyRelationship: ['DELETE', '/v1/gameCenterAppVersions/{id}/relationships/compatibilityVersions', '', 'gameCenterAppVersions[]', 'none'], + gameCenterAppVersions_compatibilityVersions_getToManyRelated: ['GET', '/v1/gameCenterAppVersions/{id}/compatibilityVersions', 'filter[enabled] fields[gameCenterAppVersions] fields[appStoreVersions] limit include limit[compatibilityVersions]', '', 'many:gameCenterAppVersions'], + gameCenterAppVersions_compatibilityVersions_getToManyRelationship: ['GET', '/v1/gameCenterAppVersions/{id}/relationships/compatibilityVersions', 'limit', '', 'many:gameCenterAppVersions'], + gameCenterAppVersions_createInstance: ['POST', '/v1/gameCenterAppVersions', '', 'gameCenterAppVersions', 'one:gameCenterAppVersions'], + gameCenterAppVersions_getInstance: ['GET', '/v1/gameCenterAppVersions/{id}', 'fields[gameCenterAppVersions] fields[appStoreVersions] include limit[compatibilityVersions]', '', 'one:gameCenterAppVersions'], + gameCenterAppVersions_updateInstance: ['PATCH', '/v1/gameCenterAppVersions/{id}', '', 'gameCenterAppVersions', 'one:gameCenterAppVersions'], + gameCenterChallengeImages_createInstance: ['POST', '/v1/gameCenterChallengeImages', '', 'gameCenterChallengeImages', 'one:gameCenterChallengeImages'], + gameCenterChallengeImages_deleteInstance: ['DELETE', '/v1/gameCenterChallengeImages/{id}', '', '', 'none'], + gameCenterChallengeImages_getInstance: ['GET', '/v1/gameCenterChallengeImages/{id}', 'fields[gameCenterChallengeImages]', '', 'one:gameCenterChallengeImages'], + gameCenterChallengeImages_updateInstance: ['PATCH', '/v1/gameCenterChallengeImages/{id}', '', 'gameCenterChallengeImages', 'one:gameCenterChallengeImages'], + gameCenterChallengeLocalizations_createInstance: ['POST', '/v1/gameCenterChallengeLocalizations', '', 'gameCenterChallengeLocalizations', 'one:gameCenterChallengeLocalizations'], + gameCenterChallengeLocalizations_deleteInstance: ['DELETE', '/v1/gameCenterChallengeLocalizations/{id}', '', '', 'none'], + gameCenterChallengeLocalizations_getInstance: ['GET', '/v1/gameCenterChallengeLocalizations/{id}', 'fields[gameCenterChallengeLocalizations] fields[gameCenterChallengeVersions] fields[gameCenterChallengeImages] include', '', 'one:gameCenterChallengeLocalizations'], + gameCenterChallengeLocalizations_image_getToOneRelated: ['GET', '/v1/gameCenterChallengeLocalizations/{id}/image', 'fields[gameCenterChallengeImages]', '', 'one:gameCenterChallengeImages'], + gameCenterChallengeLocalizations_image_getToOneRelationship: ['GET', '/v1/gameCenterChallengeLocalizations/{id}/relationships/image', '', '', 'one:gameCenterChallengeImages'], + gameCenterChallengeLocalizations_updateInstance: ['PATCH', '/v1/gameCenterChallengeLocalizations/{id}', '', 'gameCenterChallengeLocalizations', 'one:gameCenterChallengeLocalizations'], + gameCenterChallengeVersionReleases_createInstance: ['POST', '/v1/gameCenterChallengeVersionReleases', '', 'gameCenterChallengeVersionReleases', 'one:gameCenterChallengeVersionReleases'], + gameCenterChallengeVersionReleases_deleteInstance: ['DELETE', '/v1/gameCenterChallengeVersionReleases/{id}', '', '', 'none'], + gameCenterChallengeVersionReleases_getInstance: ['GET', '/v1/gameCenterChallengeVersionReleases/{id}', 'fields[gameCenterChallengeVersionReleases] fields[gameCenterChallengeVersions] include', '', 'one:gameCenterChallengeVersionReleases'], + gameCenterChallengeVersions_createInstance: ['POST', '/v1/gameCenterChallengeVersions', '', 'gameCenterChallengeVersions', 'one:gameCenterChallengeVersions'], + gameCenterChallengeVersions_defaultImage_getToOneRelated: ['GET', '/v1/gameCenterChallengeVersions/{id}/defaultImage', 'fields[gameCenterChallengeImages]', '', 'one:gameCenterChallengeImages'], + gameCenterChallengeVersions_defaultImage_getToOneRelationship: ['GET', '/v1/gameCenterChallengeVersions/{id}/relationships/defaultImage', '', '', 'one:gameCenterChallengeImages'], + gameCenterChallengeVersions_getInstance: ['GET', '/v1/gameCenterChallengeVersions/{id}', 'fields[gameCenterChallengeVersions] fields[gameCenterChallenges] fields[gameCenterChallengeLocalizations] fields[gameCenterChallengeVersionReleases] fields[gameCenterChallengeImages] include limit[localizations] limit[releases]', '', 'one:gameCenterChallengeVersions'], + gameCenterChallengeVersions_localizations_getToManyRelated: ['GET', '/v1/gameCenterChallengeVersions/{id}/localizations', 'fields[gameCenterChallengeLocalizations] fields[gameCenterChallengeVersions] fields[gameCenterChallengeImages] limit include', '', 'many:gameCenterChallengeLocalizations'], + gameCenterChallengeVersions_localizations_getToManyRelationship: ['GET', '/v1/gameCenterChallengeVersions/{id}/relationships/localizations', 'limit', '', 'many:gameCenterChallengeLocalizations'], + gameCenterChallenges_createInstance: ['POST', '/v1/gameCenterChallenges', '', 'gameCenterChallenges', 'one:gameCenterChallenges'], + gameCenterChallenges_deleteInstance: ['DELETE', '/v1/gameCenterChallenges/{id}', '', '', 'none'], + gameCenterChallenges_getInstance: ['GET', '/v1/gameCenterChallenges/{id}', 'fields[gameCenterChallenges] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterChallengeVersions] fields[gameCenterLeaderboards] include limit[versions]', '', 'one:gameCenterChallenges'], + gameCenterChallenges_leaderboardV2_updateToOneRelationship: ['PATCH', '/v1/gameCenterChallenges/{id}/relationships/leaderboardV2', '', 'gameCenterLeaderboards', 'none'], + gameCenterChallenges_leaderboard_updateToOneRelationship: ['PATCH', '/v1/gameCenterChallenges/{id}/relationships/leaderboard', '', 'gameCenterLeaderboards', 'none'], + gameCenterChallenges_updateInstance: ['PATCH', '/v1/gameCenterChallenges/{id}', '', 'gameCenterChallenges', 'one:gameCenterChallenges'], + gameCenterChallenges_versions_getToManyRelated: ['GET', '/v1/gameCenterChallenges/{id}/versions', 'fields[gameCenterChallengeVersions] fields[gameCenterChallenges] fields[gameCenterChallengeLocalizations] fields[gameCenterChallengeVersionReleases] fields[gameCenterChallengeImages] limit include limit[localizations] limit[releases]', '', 'many:gameCenterChallengeVersions'], + gameCenterChallenges_versions_getToManyRelationship: ['GET', '/v1/gameCenterChallenges/{id}/relationships/versions', 'limit', '', 'many:gameCenterChallengeVersions'], + gameCenterDetailPlayers_updateInstance: ['PATCH', '/v1/gameCenterDetailPlayers/{id}', '', 'gameCenterDetailPlayers', 'one:gameCenterDetailPlayers'], + gameCenterDetails_achievementReleases_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/achievementReleases', 'filter[live] filter[gameCenterAchievement] fields[gameCenterAchievementReleases] fields[gameCenterDetails] fields[gameCenterAchievements] limit include', '', 'many:gameCenterAchievementReleases'], + gameCenterDetails_achievementReleases_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/achievementReleases', 'limit', '', 'many:gameCenterAchievementReleases'], + gameCenterDetails_activityReleases_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/activityReleases', 'fields[gameCenterActivityVersionReleases] fields[gameCenterActivityVersions] limit include', '', 'many:gameCenterActivityVersionReleases'], + gameCenterDetails_activityReleases_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/activityReleases', 'limit', '', 'many:gameCenterActivityVersionReleases'], + gameCenterDetails_blockedPlayers_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/blockedPlayers', 'fields[gameCenterDetailPlayers] limit', '', 'many:gameCenterDetailPlayers'], + gameCenterDetails_blockedPlayers_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/blockedPlayers', 'limit', '', 'many:gameCenterDetailPlayers'], + gameCenterDetails_challengeReleases_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/challengeReleases', 'fields[gameCenterChallengeVersionReleases] fields[gameCenterChallengeVersions] limit include', '', 'many:gameCenterChallengeVersionReleases'], + gameCenterDetails_challengeReleases_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/challengeReleases', 'limit', '', 'many:gameCenterChallengeVersionReleases'], + gameCenterDetails_challengesMinimumPlatformVersions_replaceToManyRelationship: ['PATCH', '/v1/gameCenterDetails/{id}/relationships/challengesMinimumPlatformVersions', '', 'appStoreVersions[]', 'none'], + gameCenterDetails_classicMatchmakingRequests_getMetrics: ['GET', '/v1/gameCenterDetails/{id}/metrics/classicMatchmakingRequests', 'granularity! groupBy filter[result] sort limit', '', 'many:'], + gameCenterDetails_createInstance: ['POST', '/v1/gameCenterDetails', '', 'gameCenterDetails', 'one:gameCenterDetails'], + gameCenterDetails_gameCenterAchievementsV2_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterAchievementsV2', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterAchievements] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterActivities] fields[gameCenterAchievementVersions] limit include limit[versions]', '', 'many:gameCenterAchievements'], + gameCenterDetails_gameCenterAchievementsV2_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterAchievementsV2', 'limit', '', 'many:gameCenterAchievements'], + gameCenterDetails_gameCenterAchievementsV2_replaceToManyRelationship: ['PATCH', '/v1/gameCenterDetails/{id}/relationships/gameCenterAchievementsV2', '', 'gameCenterAchievements[]', 'none'], + gameCenterDetails_gameCenterAchievements_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterAchievements', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterAchievements] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterAchievementLocalizations] fields[gameCenterAchievementReleases] fields[gameCenterActivities] limit include limit[localizations] limit[releases]', '', 'many:gameCenterAchievements'], + gameCenterDetails_gameCenterAchievements_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterAchievements', 'limit', '', 'many:gameCenterAchievements'], + gameCenterDetails_gameCenterAchievements_replaceToManyRelationship: ['PATCH', '/v1/gameCenterDetails/{id}/relationships/gameCenterAchievements', '', 'gameCenterAchievements[]', 'none'], + gameCenterDetails_gameCenterActivities_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterActivities', 'fields[gameCenterActivities] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterAchievements] fields[gameCenterLeaderboards] fields[gameCenterActivityVersions] limit include limit[achievements] limit[achievementsV2] limit[leaderboards] limit[leaderboardsV2] limit[versions]', '', 'many:gameCenterActivities'], + gameCenterDetails_gameCenterActivities_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterActivities', 'limit', '', 'many:gameCenterActivities'], + gameCenterDetails_gameCenterAppVersions_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterAppVersions', 'filter[enabled] fields[gameCenterAppVersions] fields[appStoreVersions] limit include limit[compatibilityVersions]', '', 'many:gameCenterAppVersions'], + gameCenterDetails_gameCenterAppVersions_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterAppVersions', 'limit', '', 'many:gameCenterAppVersions'], + gameCenterDetails_gameCenterChallenges_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterChallenges', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterChallenges] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterChallengeVersions] fields[gameCenterLeaderboards] limit include limit[versions]', '', 'many:gameCenterChallenges'], + gameCenterDetails_gameCenterChallenges_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterChallenges', 'limit', '', 'many:gameCenterChallenges'], + gameCenterDetails_gameCenterGroup_getToOneRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterGroup', 'fields[gameCenterGroups] fields[gameCenterDetails] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSets] fields[gameCenterAchievements] fields[gameCenterActivities] fields[gameCenterChallenges] include limit[gameCenterDetails] limit[gameCenterLeaderboards] limit[gameCenterLeaderboardsV2] limit[gameCenterLeaderboardSets] limit[gameCenterLeaderboardSetsV2] limit[gameCenterAchievements] limit[gameCenterAchievementsV2] limit[gameCenterActivities] limit[gameCenterChallenges]', '', 'one:gameCenterGroups'], + gameCenterDetails_gameCenterGroup_getToOneRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterGroup', '', '', 'one:gameCenterGroups'], + gameCenterDetails_gameCenterLeaderboardSetsV2_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterLeaderboardSetsV2', 'filter[referenceName] filter[id] fields[gameCenterLeaderboardSets] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSetVersions] limit include limit[gameCenterLeaderboards] limit[versions]', '', 'many:gameCenterLeaderboardSets'], + gameCenterDetails_gameCenterLeaderboardSetsV2_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSetsV2', 'limit', '', 'many:gameCenterLeaderboardSets'], + gameCenterDetails_gameCenterLeaderboardSetsV2_replaceToManyRelationship: ['PATCH', '/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSetsV2', '', 'gameCenterLeaderboardSets[]', 'none'], + gameCenterDetails_gameCenterLeaderboardSets_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterLeaderboardSets', 'filter[referenceName] filter[id] fields[gameCenterLeaderboardSets] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSetReleases] limit include limit[localizations] limit[gameCenterLeaderboards] limit[releases]', '', 'many:gameCenterLeaderboardSets'], + gameCenterDetails_gameCenterLeaderboardSets_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSets', 'limit', '', 'many:gameCenterLeaderboardSets'], + gameCenterDetails_gameCenterLeaderboardSets_replaceToManyRelationship: ['PATCH', '/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSets', '', 'gameCenterLeaderboardSets[]', 'none'], + gameCenterDetails_gameCenterLeaderboardsV2_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterLeaderboardsV2', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterActivities] fields[gameCenterChallenges] fields[gameCenterLeaderboardVersions] limit include limit[gameCenterLeaderboardSets] limit[versions]', '', 'many:gameCenterLeaderboards'], + gameCenterDetails_gameCenterLeaderboardsV2_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardsV2', 'limit', '', 'many:gameCenterLeaderboards'], + gameCenterDetails_gameCenterLeaderboardsV2_replaceToManyRelationship: ['PATCH', '/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardsV2', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterDetails_gameCenterLeaderboards_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/gameCenterLeaderboards', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboardReleases] fields[gameCenterActivities] fields[gameCenterChallenges] limit include limit[gameCenterLeaderboardSets] limit[localizations] limit[releases]', '', 'many:gameCenterLeaderboards'], + gameCenterDetails_gameCenterLeaderboards_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboards', 'limit', '', 'many:gameCenterLeaderboards'], + gameCenterDetails_gameCenterLeaderboards_replaceToManyRelationship: ['PATCH', '/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterDetails_getInstance: ['GET', '/v1/gameCenterDetails/{id}', 'fields[gameCenterDetails] fields[apps] fields[gameCenterAppVersions] fields[gameCenterGroups] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSets] fields[gameCenterAchievements] fields[gameCenterActivities] fields[gameCenterChallenges] fields[gameCenterAchievementReleases] fields[gameCenterActivityVersionReleases] fields[gameCenterChallengeVersionReleases] fields[gameCenterLeaderboardReleases] fields[gameCenterLeaderboardSetReleases] fields[appStoreVersions] include limit[achievementReleases] limit[activityReleases] limit[challengeReleases] limit[challengesMinimumPlatformVersions] limit[gameCenterAchievements] limit[gameCenterAchievementsV2] limit[gameCenterActivities] limit[gameCenterAppVersions] limit[gameCenterChallenges] limit[gameCenterLeaderboardSets] limit[gameCenterLeaderboardSetsV2] limit[gameCenterLeaderboards] limit[gameCenterLeaderboardsV2] limit[leaderboardReleases] limit[leaderboardSetReleases]', '', 'one:gameCenterDetails'], + gameCenterDetails_leaderboardReleases_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/leaderboardReleases', 'filter[live] filter[gameCenterLeaderboard] fields[gameCenterLeaderboardReleases] fields[gameCenterDetails] fields[gameCenterLeaderboards] limit include', '', 'many:gameCenterLeaderboardReleases'], + gameCenterDetails_leaderboardReleases_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/leaderboardReleases', 'limit', '', 'many:gameCenterLeaderboardReleases'], + gameCenterDetails_leaderboardSetReleases_getToManyRelated: ['GET', '/v1/gameCenterDetails/{id}/leaderboardSetReleases', 'filter[live] filter[gameCenterLeaderboardSet] fields[gameCenterLeaderboardSetReleases] fields[gameCenterDetails] fields[gameCenterLeaderboardSets] limit include', '', 'many:gameCenterLeaderboardSetReleases'], + gameCenterDetails_leaderboardSetReleases_getToManyRelationship: ['GET', '/v1/gameCenterDetails/{id}/relationships/leaderboardSetReleases', 'limit', '', 'many:gameCenterLeaderboardSetReleases'], + gameCenterDetails_ruleBasedMatchmakingRequests_getMetrics: ['GET', '/v1/gameCenterDetails/{id}/metrics/ruleBasedMatchmakingRequests', 'granularity! groupBy filter[result] sort limit', '', 'many:'], + gameCenterDetails_updateInstance: ['PATCH', '/v1/gameCenterDetails/{id}', '', 'gameCenterDetails', 'one:gameCenterDetails'], + gameCenterEnabledVersions_compatibleVersions_createToManyRelationship: ['POST', '/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions', '', 'gameCenterEnabledVersions[]', 'none'], + gameCenterEnabledVersions_compatibleVersions_deleteToManyRelationship: ['DELETE', '/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions', '', 'gameCenterEnabledVersions[]', 'none'], + gameCenterEnabledVersions_compatibleVersions_getToManyRelated: ['GET', '/v1/gameCenterEnabledVersions/{id}/compatibleVersions', 'filter[platform] filter[versionString] filter[app] filter[id] sort fields[gameCenterEnabledVersions] fields[apps] limit include limit[compatibleVersions]', '', 'many:gameCenterEnabledVersions'], + gameCenterEnabledVersions_compatibleVersions_getToManyRelationship: ['GET', '/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions', 'limit', '', 'many:gameCenterEnabledVersions'], + gameCenterEnabledVersions_compatibleVersions_replaceToManyRelationship: ['PATCH', '/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions', '', 'gameCenterEnabledVersions[]', 'none'], + gameCenterGroups_createInstance: ['POST', '/v1/gameCenterGroups', '', 'gameCenterGroups', 'one:gameCenterGroups'], + gameCenterGroups_deleteInstance: ['DELETE', '/v1/gameCenterGroups/{id}', '', '', 'none'], + gameCenterGroups_gameCenterAchievementsV2_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterAchievementsV2', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterAchievements] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterActivities] fields[gameCenterAchievementVersions] limit include limit[versions]', '', 'many:gameCenterAchievements'], + gameCenterGroups_gameCenterAchievementsV2_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterAchievementsV2', 'limit', '', 'many:gameCenterAchievements'], + gameCenterGroups_gameCenterAchievementsV2_replaceToManyRelationship: ['PATCH', '/v1/gameCenterGroups/{id}/relationships/gameCenterAchievementsV2', '', 'gameCenterAchievements[]', 'none'], + gameCenterGroups_gameCenterAchievements_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterAchievements', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterAchievements] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterAchievementLocalizations] fields[gameCenterAchievementReleases] fields[gameCenterActivities] limit include limit[localizations] limit[releases]', '', 'many:gameCenterAchievements'], + gameCenterGroups_gameCenterAchievements_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterAchievements', 'limit', '', 'many:gameCenterAchievements'], + gameCenterGroups_gameCenterAchievements_replaceToManyRelationship: ['PATCH', '/v1/gameCenterGroups/{id}/relationships/gameCenterAchievements', '', 'gameCenterAchievements[]', 'none'], + gameCenterGroups_gameCenterActivities_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterActivities', 'fields[gameCenterActivities] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterAchievements] fields[gameCenterLeaderboards] fields[gameCenterActivityVersions] limit include limit[achievements] limit[achievementsV2] limit[leaderboards] limit[leaderboardsV2] limit[versions]', '', 'many:gameCenterActivities'], + gameCenterGroups_gameCenterActivities_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterActivities', 'limit', '', 'many:gameCenterActivities'], + gameCenterGroups_gameCenterChallenges_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterChallenges', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterChallenges] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterChallengeVersions] fields[gameCenterLeaderboards] limit include limit[versions]', '', 'many:gameCenterChallenges'], + gameCenterGroups_gameCenterChallenges_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterChallenges', 'limit', '', 'many:gameCenterChallenges'], + gameCenterGroups_gameCenterDetails_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterDetails', 'filter[gameCenterAppVersions.enabled] fields[gameCenterDetails] fields[apps] fields[gameCenterAppVersions] fields[gameCenterGroups] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSets] fields[gameCenterAchievements] fields[gameCenterActivities] fields[gameCenterChallenges] fields[gameCenterAchievementReleases] fields[gameCenterActivityVersionReleases] fields[gameCenterChallengeVersionReleases] fields[gameCenterLeaderboardReleases] fields[gameCenterLeaderboardSetReleases] fields[appStoreVersions] limit include limit[gameCenterAppVersions] limit[gameCenterLeaderboards] limit[gameCenterLeaderboardsV2] limit[gameCenterLeaderboardSets] limit[gameCenterLeaderboardSetsV2] limit[gameCenterAchievements] limit[gameCenterAchievementsV2] limit[gameCenterActivities] limit[gameCenterChallenges] limit[achievementReleases] limit[activityReleases] limit[challengeReleases] limit[leaderboardReleases] limit[leaderboardSetReleases] limit[challengesMinimumPlatformVersions]', '', 'many:gameCenterDetails'], + gameCenterGroups_gameCenterDetails_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterDetails', 'limit', '', 'many:gameCenterDetails'], + gameCenterGroups_gameCenterLeaderboardSetsV2_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterLeaderboardSetsV2', 'filter[referenceName] filter[id] fields[gameCenterLeaderboardSets] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSetVersions] limit include limit[gameCenterLeaderboards] limit[versions]', '', 'many:gameCenterLeaderboardSets'], + gameCenterGroups_gameCenterLeaderboardSetsV2_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSetsV2', 'limit', '', 'many:gameCenterLeaderboardSets'], + gameCenterGroups_gameCenterLeaderboardSetsV2_replaceToManyRelationship: ['PATCH', '/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSetsV2', '', 'gameCenterLeaderboardSets[]', 'none'], + gameCenterGroups_gameCenterLeaderboardSets_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterLeaderboardSets', 'filter[referenceName] filter[id] fields[gameCenterLeaderboardSets] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSetReleases] limit include limit[localizations] limit[gameCenterLeaderboards] limit[releases]', '', 'many:gameCenterLeaderboardSets'], + gameCenterGroups_gameCenterLeaderboardSets_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSets', 'limit', '', 'many:gameCenterLeaderboardSets'], + gameCenterGroups_gameCenterLeaderboardSets_replaceToManyRelationship: ['PATCH', '/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSets', '', 'gameCenterLeaderboardSets[]', 'none'], + gameCenterGroups_gameCenterLeaderboardsV2_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterLeaderboardsV2', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterActivities] fields[gameCenterChallenges] fields[gameCenterLeaderboardVersions] limit include limit[gameCenterLeaderboardSets] limit[versions]', '', 'many:gameCenterLeaderboards'], + gameCenterGroups_gameCenterLeaderboardsV2_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardsV2', 'limit', '', 'many:gameCenterLeaderboards'], + gameCenterGroups_gameCenterLeaderboardsV2_replaceToManyRelationship: ['PATCH', '/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardsV2', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterGroups_gameCenterLeaderboards_getToManyRelated: ['GET', '/v1/gameCenterGroups/{id}/gameCenterLeaderboards', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboardReleases] fields[gameCenterActivities] fields[gameCenterChallenges] limit include limit[gameCenterLeaderboardSets] limit[localizations] limit[releases]', '', 'many:gameCenterLeaderboards'], + gameCenterGroups_gameCenterLeaderboards_getToManyRelationship: ['GET', '/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboards', 'limit', '', 'many:gameCenterLeaderboards'], + gameCenterGroups_gameCenterLeaderboards_replaceToManyRelationship: ['PATCH', '/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterGroups_getCollection: ['GET', '/v1/gameCenterGroups', 'filter[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterDetails] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSets] fields[gameCenterAchievements] fields[gameCenterActivities] fields[gameCenterChallenges] limit include limit[gameCenterAchievements] limit[gameCenterAchievementsV2] limit[gameCenterActivities] limit[gameCenterChallenges] limit[gameCenterDetails] limit[gameCenterLeaderboardSets] limit[gameCenterLeaderboardSetsV2] limit[gameCenterLeaderboards] limit[gameCenterLeaderboardsV2]', '', 'many:gameCenterGroups'], + gameCenterGroups_getInstance: ['GET', '/v1/gameCenterGroups/{id}', 'fields[gameCenterGroups] fields[gameCenterDetails] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSets] fields[gameCenterAchievements] fields[gameCenterActivities] fields[gameCenterChallenges] include limit[gameCenterAchievements] limit[gameCenterAchievementsV2] limit[gameCenterActivities] limit[gameCenterChallenges] limit[gameCenterDetails] limit[gameCenterLeaderboardSets] limit[gameCenterLeaderboardSetsV2] limit[gameCenterLeaderboards] limit[gameCenterLeaderboardsV2]', '', 'one:gameCenterGroups'], + gameCenterGroups_updateInstance: ['PATCH', '/v1/gameCenterGroups/{id}', '', 'gameCenterGroups', 'one:gameCenterGroups'], + gameCenterLeaderboardEntrySubmissions_createInstance: ['POST', '/v1/gameCenterLeaderboardEntrySubmissions', '', 'gameCenterLeaderboardEntrySubmissions', 'one:gameCenterLeaderboardEntrySubmissions'], + gameCenterLeaderboardImagesV2_createInstance: ['POST', '/v2/gameCenterLeaderboardImages', '', 'gameCenterLeaderboardImages', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardImagesV2_deleteInstance: ['DELETE', '/v2/gameCenterLeaderboardImages/{id}', '', '', 'none'], + gameCenterLeaderboardImagesV2_getInstance: ['GET', '/v2/gameCenterLeaderboardImages/{id}', 'fields[gameCenterLeaderboardImages] fields[gameCenterLeaderboardLocalizations] include', '', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardImagesV2_updateInstance: ['PATCH', '/v2/gameCenterLeaderboardImages/{id}', '', 'gameCenterLeaderboardImages', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardImages_createInstance: ['POST', '/v1/gameCenterLeaderboardImages', '', 'gameCenterLeaderboardImages', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardImages_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboardImages/{id}', '', '', 'none'], + gameCenterLeaderboardImages_getInstance: ['GET', '/v1/gameCenterLeaderboardImages/{id}', 'fields[gameCenterLeaderboardImages] fields[gameCenterLeaderboardLocalizations] include', '', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardImages_updateInstance: ['PATCH', '/v1/gameCenterLeaderboardImages/{id}', '', 'gameCenterLeaderboardImages', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardLocalizationsV2_createInstance: ['POST', '/v2/gameCenterLeaderboardLocalizations', '', 'gameCenterLeaderboardLocalizations', 'one:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboardLocalizationsV2_deleteInstance: ['DELETE', '/v2/gameCenterLeaderboardLocalizations/{id}', '', '', 'none'], + gameCenterLeaderboardLocalizationsV2_getInstance: ['GET', '/v2/gameCenterLeaderboardLocalizations/{id}', 'fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboardVersions] fields[gameCenterLeaderboardImages] include', '', 'one:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboardLocalizationsV2_image_getToOneRelated: ['GET', '/v2/gameCenterLeaderboardLocalizations/{id}/image', 'fields[gameCenterLeaderboardImages] fields[gameCenterLeaderboardLocalizations] include', '', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardLocalizationsV2_image_getToOneRelationship: ['GET', '/v2/gameCenterLeaderboardLocalizations/{id}/relationships/image', '', '', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardLocalizationsV2_updateInstance: ['PATCH', '/v2/gameCenterLeaderboardLocalizations/{id}', '', 'gameCenterLeaderboardLocalizations', 'one:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboardLocalizations_createInstance: ['POST', '/v1/gameCenterLeaderboardLocalizations', '', 'gameCenterLeaderboardLocalizations', 'one:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboardLocalizations_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboardLocalizations/{id}', '', '', 'none'], + gameCenterLeaderboardLocalizations_gameCenterLeaderboardImage_getToOneRelated: ['GET', '/v1/gameCenterLeaderboardLocalizations/{id}/gameCenterLeaderboardImage', 'fields[gameCenterLeaderboardImages] fields[gameCenterLeaderboardLocalizations] include', '', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardLocalizations_gameCenterLeaderboardImage_getToOneRelationship: ['GET', '/v1/gameCenterLeaderboardLocalizations/{id}/relationships/gameCenterLeaderboardImage', '', '', 'one:gameCenterLeaderboardImages'], + gameCenterLeaderboardLocalizations_getInstance: ['GET', '/v1/gameCenterLeaderboardLocalizations/{id}', 'fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardImages] include', '', 'one:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboardLocalizations_updateInstance: ['PATCH', '/v1/gameCenterLeaderboardLocalizations/{id}', '', 'gameCenterLeaderboardLocalizations', 'one:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboardReleases_createInstance: ['POST', '/v1/gameCenterLeaderboardReleases', '', 'gameCenterLeaderboardReleases', 'one:gameCenterLeaderboardReleases'], + gameCenterLeaderboardReleases_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboardReleases/{id}', '', '', 'none'], + gameCenterLeaderboardReleases_getInstance: ['GET', '/v1/gameCenterLeaderboardReleases/{id}', 'fields[gameCenterLeaderboardReleases] fields[gameCenterDetails] fields[gameCenterLeaderboards] include', '', 'one:gameCenterLeaderboardReleases'], + gameCenterLeaderboardSetImagesV2_createInstance: ['POST', '/v2/gameCenterLeaderboardSetImages', '', 'gameCenterLeaderboardSetImages', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetImagesV2_deleteInstance: ['DELETE', '/v2/gameCenterLeaderboardSetImages/{id}', '', '', 'none'], + gameCenterLeaderboardSetImagesV2_getInstance: ['GET', '/v2/gameCenterLeaderboardSetImages/{id}', 'fields[gameCenterLeaderboardSetImages] fields[gameCenterLeaderboardSetLocalizations] include', '', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetImagesV2_updateInstance: ['PATCH', '/v2/gameCenterLeaderboardSetImages/{id}', '', 'gameCenterLeaderboardSetImages', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetImages_createInstance: ['POST', '/v1/gameCenterLeaderboardSetImages', '', 'gameCenterLeaderboardSetImages', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetImages_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboardSetImages/{id}', '', '', 'none'], + gameCenterLeaderboardSetImages_getInstance: ['GET', '/v1/gameCenterLeaderboardSetImages/{id}', 'fields[gameCenterLeaderboardSetImages] fields[gameCenterLeaderboardSetLocalizations] include', '', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetImages_updateInstance: ['PATCH', '/v1/gameCenterLeaderboardSetImages/{id}', '', 'gameCenterLeaderboardSetImages', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetLocalizationsV2_createInstance: ['POST', '/v2/gameCenterLeaderboardSetLocalizations', '', 'gameCenterLeaderboardSetLocalizations', 'one:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSetLocalizationsV2_deleteInstance: ['DELETE', '/v2/gameCenterLeaderboardSetLocalizations/{id}', '', '', 'none'], + gameCenterLeaderboardSetLocalizationsV2_getInstance: ['GET', '/v2/gameCenterLeaderboardSetLocalizations/{id}', 'fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboardSetVersions] fields[gameCenterLeaderboardSetImages] include', '', 'one:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSetLocalizationsV2_image_getToOneRelated: ['GET', '/v2/gameCenterLeaderboardSetLocalizations/{id}/image', 'fields[gameCenterLeaderboardSetImages] fields[gameCenterLeaderboardSetLocalizations] include', '', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetLocalizationsV2_image_getToOneRelationship: ['GET', '/v2/gameCenterLeaderboardSetLocalizations/{id}/relationships/image', '', '', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetLocalizationsV2_updateInstance: ['PATCH', '/v2/gameCenterLeaderboardSetLocalizations/{id}', '', 'gameCenterLeaderboardSetLocalizations', 'one:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSetLocalizations_createInstance: ['POST', '/v1/gameCenterLeaderboardSetLocalizations', '', 'gameCenterLeaderboardSetLocalizations', 'one:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSetLocalizations_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboardSetLocalizations/{id}', '', '', 'none'], + gameCenterLeaderboardSetLocalizations_gameCenterLeaderboardSetImage_getToOneRelated: ['GET', '/v1/gameCenterLeaderboardSetLocalizations/{id}/gameCenterLeaderboardSetImage', 'fields[gameCenterLeaderboardSetImages] fields[gameCenterLeaderboardSetLocalizations] include', '', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetLocalizations_gameCenterLeaderboardSetImage_getToOneRelationship: ['GET', '/v1/gameCenterLeaderboardSetLocalizations/{id}/relationships/gameCenterLeaderboardSetImage', '', '', 'one:gameCenterLeaderboardSetImages'], + gameCenterLeaderboardSetLocalizations_getInstance: ['GET', '/v1/gameCenterLeaderboardSetLocalizations/{id}', 'fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardSetImages] include', '', 'one:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSetLocalizations_updateInstance: ['PATCH', '/v1/gameCenterLeaderboardSetLocalizations/{id}', '', 'gameCenterLeaderboardSetLocalizations', 'one:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSetMemberLocalizations_createInstance: ['POST', '/v1/gameCenterLeaderboardSetMemberLocalizations', '', 'gameCenterLeaderboardSetMemberLocalizations', 'one:gameCenterLeaderboardSetMemberLocalizations'], + gameCenterLeaderboardSetMemberLocalizations_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboardSetMemberLocalizations/{id}', '', '', 'none'], + gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboardSet_getToOneRelated: ['GET', '/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboardSet', 'fields[gameCenterLeaderboardSets] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSetReleases] include limit[localizations] limit[gameCenterLeaderboards] limit[releases]', '', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboardSet_getToOneRelationship: ['GET', '/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboardSet', '', '', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboard_getToOneRelated: ['GET', '/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboard', 'fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboardReleases] fields[gameCenterActivities] fields[gameCenterChallenges] include limit[gameCenterLeaderboardSets] limit[localizations] limit[releases]', '', 'one:gameCenterLeaderboards'], + gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboard_getToOneRelationship: ['GET', '/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboard', '', '', 'one:gameCenterLeaderboards'], + gameCenterLeaderboardSetMemberLocalizations_getCollection: ['GET', '/v1/gameCenterLeaderboardSetMemberLocalizations', 'filter[gameCenterLeaderboardSet]! filter[gameCenterLeaderboard]! fields[gameCenterLeaderboardSetMemberLocalizations] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboards] limit include', '', 'many:gameCenterLeaderboardSetMemberLocalizations'], + gameCenterLeaderboardSetMemberLocalizations_updateInstance: ['PATCH', '/v1/gameCenterLeaderboardSetMemberLocalizations/{id}', '', 'gameCenterLeaderboardSetMemberLocalizations', 'one:gameCenterLeaderboardSetMemberLocalizations'], + gameCenterLeaderboardSetReleases_createInstance: ['POST', '/v1/gameCenterLeaderboardSetReleases', '', 'gameCenterLeaderboardSetReleases', 'one:gameCenterLeaderboardSetReleases'], + gameCenterLeaderboardSetReleases_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboardSetReleases/{id}', '', '', 'none'], + gameCenterLeaderboardSetReleases_getInstance: ['GET', '/v1/gameCenterLeaderboardSetReleases/{id}', 'fields[gameCenterLeaderboardSetReleases] fields[gameCenterDetails] fields[gameCenterLeaderboardSets] include', '', 'one:gameCenterLeaderboardSetReleases'], + gameCenterLeaderboardSetVersionsV2_createInstance: ['POST', '/v2/gameCenterLeaderboardSetVersions', '', 'gameCenterLeaderboardSetVersions', 'one:gameCenterLeaderboardSetVersions'], + gameCenterLeaderboardSetVersionsV2_getInstance: ['GET', '/v2/gameCenterLeaderboardSetVersions/{id}', 'fields[gameCenterLeaderboardSetVersions] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardSetLocalizations] include limit[localizations]', '', 'one:gameCenterLeaderboardSetVersions'], + gameCenterLeaderboardSetVersionsV2_localizations_getToManyRelated: ['GET', '/v2/gameCenterLeaderboardSetVersions/{id}/localizations', 'fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboardSetVersions] fields[gameCenterLeaderboardSetImages] limit include', '', 'many:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSetVersionsV2_localizations_getToManyRelationship: ['GET', '/v2/gameCenterLeaderboardSetVersions/{id}/relationships/localizations', 'limit', '', 'many:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSetsV2_createInstance: ['POST', '/v2/gameCenterLeaderboardSets', '', 'gameCenterLeaderboardSets', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSetsV2_deleteInstance: ['DELETE', '/v2/gameCenterLeaderboardSets/{id}', '', '', 'none'], + gameCenterLeaderboardSetsV2_gameCenterLeaderboards_createToManyRelationship: ['POST', '/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterLeaderboardSetsV2_gameCenterLeaderboards_deleteToManyRelationship: ['DELETE', '/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterLeaderboardSetsV2_gameCenterLeaderboards_getToManyRelated: ['GET', '/v2/gameCenterLeaderboardSets/{id}/gameCenterLeaderboards', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterActivities] fields[gameCenterChallenges] fields[gameCenterLeaderboardVersions] limit include limit[gameCenterLeaderboardSets] limit[versions]', '', 'many:gameCenterLeaderboards'], + gameCenterLeaderboardSetsV2_gameCenterLeaderboards_getToManyRelationship: ['GET', '/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards', 'limit', '', 'many:gameCenterLeaderboards'], + gameCenterLeaderboardSetsV2_gameCenterLeaderboards_replaceToManyRelationship: ['PATCH', '/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterLeaderboardSetsV2_getInstance: ['GET', '/v2/gameCenterLeaderboardSets/{id}', 'fields[gameCenterLeaderboardSets] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSetVersions] include limit[gameCenterLeaderboards] limit[versions]', '', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSetsV2_updateInstance: ['PATCH', '/v2/gameCenterLeaderboardSets/{id}', '', 'gameCenterLeaderboardSets', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSetsV2_versions_getToManyRelated: ['GET', '/v2/gameCenterLeaderboardSets/{id}/versions', 'fields[gameCenterLeaderboardSetVersions] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardSetLocalizations] limit include limit[localizations]', '', 'many:gameCenterLeaderboardSetVersions'], + gameCenterLeaderboardSetsV2_versions_getToManyRelationship: ['GET', '/v2/gameCenterLeaderboardSets/{id}/relationships/versions', 'limit', '', 'many:gameCenterLeaderboardSetVersions'], + gameCenterLeaderboardSets_createInstance: ['POST', '/v1/gameCenterLeaderboardSets', '', 'gameCenterLeaderboardSets', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSets_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboardSets/{id}', '', '', 'none'], + gameCenterLeaderboardSets_gameCenterLeaderboards_createToManyRelationship: ['POST', '/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterLeaderboardSets_gameCenterLeaderboards_deleteToManyRelationship: ['DELETE', '/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterLeaderboardSets_gameCenterLeaderboards_getToManyRelated: ['GET', '/v1/gameCenterLeaderboardSets/{id}/gameCenterLeaderboards', 'filter[referenceName] filter[archived] filter[id] fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboardReleases] fields[gameCenterActivities] fields[gameCenterChallenges] limit include limit[gameCenterLeaderboardSets] limit[localizations] limit[releases]', '', 'many:gameCenterLeaderboards'], + gameCenterLeaderboardSets_gameCenterLeaderboards_getToManyRelationship: ['GET', '/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards', 'limit', '', 'many:gameCenterLeaderboards'], + gameCenterLeaderboardSets_gameCenterLeaderboards_replaceToManyRelationship: ['PATCH', '/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards', '', 'gameCenterLeaderboards[]', 'none'], + gameCenterLeaderboardSets_getInstance: ['GET', '/v1/gameCenterLeaderboardSets/{id}', 'fields[gameCenterLeaderboardSets] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSetReleases] include limit[gameCenterLeaderboards] limit[localizations] limit[releases]', '', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSets_groupLeaderboardSet_getToOneRelated: ['GET', '/v1/gameCenterLeaderboardSets/{id}/groupLeaderboardSet', 'fields[gameCenterLeaderboardSets] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardSetReleases] include limit[localizations] limit[gameCenterLeaderboards] limit[releases]', '', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSets_groupLeaderboardSet_getToOneRelationship: ['GET', '/v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet', '', '', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardSets_groupLeaderboardSet_updateToOneRelationship: ['PATCH', '/v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet', '', 'gameCenterLeaderboardSets', 'none'], + gameCenterLeaderboardSets_localizations_getToManyRelated: ['GET', '/v1/gameCenterLeaderboardSets/{id}/localizations', 'fields[gameCenterLeaderboardSetLocalizations] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardSetImages] limit include', '', 'many:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSets_localizations_getToManyRelationship: ['GET', '/v1/gameCenterLeaderboardSets/{id}/relationships/localizations', 'limit', '', 'many:gameCenterLeaderboardSetLocalizations'], + gameCenterLeaderboardSets_releases_getToManyRelated: ['GET', '/v1/gameCenterLeaderboardSets/{id}/releases', 'filter[live] filter[gameCenterDetail] fields[gameCenterLeaderboardSetReleases] fields[gameCenterDetails] fields[gameCenterLeaderboardSets] limit include', '', 'many:gameCenterLeaderboardSetReleases'], + gameCenterLeaderboardSets_releases_getToManyRelationship: ['GET', '/v1/gameCenterLeaderboardSets/{id}/relationships/releases', 'limit', '', 'many:gameCenterLeaderboardSetReleases'], + gameCenterLeaderboardSets_updateInstance: ['PATCH', '/v1/gameCenterLeaderboardSets/{id}', '', 'gameCenterLeaderboardSets', 'one:gameCenterLeaderboardSets'], + gameCenterLeaderboardVersionsV2_createInstance: ['POST', '/v2/gameCenterLeaderboardVersions', '', 'gameCenterLeaderboardVersions', 'one:gameCenterLeaderboardVersions'], + gameCenterLeaderboardVersionsV2_getInstance: ['GET', '/v2/gameCenterLeaderboardVersions/{id}', 'fields[gameCenterLeaderboardVersions] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardLocalizations] include limit[localizations]', '', 'one:gameCenterLeaderboardVersions'], + gameCenterLeaderboardVersionsV2_localizations_getToManyRelated: ['GET', '/v2/gameCenterLeaderboardVersions/{id}/localizations', 'fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboardVersions] fields[gameCenterLeaderboardImages] limit include', '', 'many:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboardVersionsV2_localizations_getToManyRelationship: ['GET', '/v2/gameCenterLeaderboardVersions/{id}/relationships/localizations', 'limit', '', 'many:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboardsV2_activity_updateToOneRelationship: ['PATCH', '/v2/gameCenterLeaderboards/{id}/relationships/activity', '', 'gameCenterActivities', 'none'], + gameCenterLeaderboardsV2_challenge_updateToOneRelationship: ['PATCH', '/v2/gameCenterLeaderboards/{id}/relationships/challenge', '', 'gameCenterChallenges', 'none'], + gameCenterLeaderboardsV2_createInstance: ['POST', '/v2/gameCenterLeaderboards', '', 'gameCenterLeaderboards', 'one:gameCenterLeaderboards'], + gameCenterLeaderboardsV2_deleteInstance: ['DELETE', '/v2/gameCenterLeaderboards/{id}', '', '', 'none'], + gameCenterLeaderboardsV2_gameCenterScoreModerations_getToManyRelated: ['GET', '/v2/gameCenterLeaderboards/{id}/gameCenterScoreModerations', 'exists[blocked] fields[gameCenterScoreModerations] fields[gameCenterDetailPlayers] limit include', '', 'many:gameCenterScoreModerations'], + gameCenterLeaderboardsV2_gameCenterScoreModerations_getToManyRelationship: ['GET', '/v2/gameCenterLeaderboards/{id}/relationships/gameCenterScoreModerations', 'limit', '', 'many:gameCenterScoreModerations'], + gameCenterLeaderboardsV2_getInstance: ['GET', '/v2/gameCenterLeaderboards/{id}', 'fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterActivities] fields[gameCenterChallenges] fields[gameCenterLeaderboardVersions] include limit[gameCenterLeaderboardSets] limit[versions]', '', 'one:gameCenterLeaderboards'], + gameCenterLeaderboardsV2_updateInstance: ['PATCH', '/v2/gameCenterLeaderboards/{id}', '', 'gameCenterLeaderboards', 'one:gameCenterLeaderboards'], + gameCenterLeaderboardsV2_versions_getToManyRelated: ['GET', '/v2/gameCenterLeaderboards/{id}/versions', 'fields[gameCenterLeaderboardVersions] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardLocalizations] limit include limit[localizations]', '', 'many:gameCenterLeaderboardVersions'], + gameCenterLeaderboardsV2_versions_getToManyRelationship: ['GET', '/v2/gameCenterLeaderboards/{id}/relationships/versions', 'limit', '', 'many:gameCenterLeaderboardVersions'], + gameCenterLeaderboards_activity_updateToOneRelationship: ['PATCH', '/v1/gameCenterLeaderboards/{id}/relationships/activity', '', 'gameCenterActivities', 'none'], + gameCenterLeaderboards_challenge_updateToOneRelationship: ['PATCH', '/v1/gameCenterLeaderboards/{id}/relationships/challenge', '', 'gameCenterChallenges', 'none'], + gameCenterLeaderboards_createInstance: ['POST', '/v1/gameCenterLeaderboards', '', 'gameCenterLeaderboards', 'one:gameCenterLeaderboards'], + gameCenterLeaderboards_deleteInstance: ['DELETE', '/v1/gameCenterLeaderboards/{id}', '', '', 'none'], + gameCenterLeaderboards_getInstance: ['GET', '/v1/gameCenterLeaderboards/{id}', 'fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboardReleases] fields[gameCenterActivities] fields[gameCenterChallenges] include limit[gameCenterLeaderboardSets] limit[localizations] limit[releases]', '', 'one:gameCenterLeaderboards'], + gameCenterLeaderboards_groupLeaderboard_getToOneRelated: ['GET', '/v1/gameCenterLeaderboards/{id}/groupLeaderboard', 'fields[gameCenterLeaderboards] fields[gameCenterDetails] fields[gameCenterGroups] fields[gameCenterLeaderboardSets] fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboardReleases] fields[gameCenterActivities] fields[gameCenterChallenges] include limit[gameCenterLeaderboardSets] limit[localizations] limit[releases]', '', 'one:gameCenterLeaderboards'], + gameCenterLeaderboards_groupLeaderboard_getToOneRelationship: ['GET', '/v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard', '', '', 'one:gameCenterLeaderboards'], + gameCenterLeaderboards_groupLeaderboard_updateToOneRelationship: ['PATCH', '/v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard', '', 'gameCenterLeaderboards', 'none'], + gameCenterLeaderboards_localizations_getToManyRelated: ['GET', '/v1/gameCenterLeaderboards/{id}/localizations', 'fields[gameCenterLeaderboardLocalizations] fields[gameCenterLeaderboards] fields[gameCenterLeaderboardImages] limit include', '', 'many:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboards_localizations_getToManyRelationship: ['GET', '/v1/gameCenterLeaderboards/{id}/relationships/localizations', 'limit', '', 'many:gameCenterLeaderboardLocalizations'], + gameCenterLeaderboards_releases_getToManyRelated: ['GET', '/v1/gameCenterLeaderboards/{id}/releases', 'filter[live] filter[gameCenterDetail] fields[gameCenterLeaderboardReleases] fields[gameCenterDetails] fields[gameCenterLeaderboards] limit include', '', 'many:gameCenterLeaderboardReleases'], + gameCenterLeaderboards_releases_getToManyRelationship: ['GET', '/v1/gameCenterLeaderboards/{id}/relationships/releases', 'limit', '', 'many:gameCenterLeaderboardReleases'], + gameCenterLeaderboards_updateInstance: ['PATCH', '/v1/gameCenterLeaderboards/{id}', '', 'gameCenterLeaderboards', 'one:gameCenterLeaderboards'], + gameCenterMatchmakingQueues_createInstance: ['POST', '/v1/gameCenterMatchmakingQueues', '', 'gameCenterMatchmakingQueues', 'one:gameCenterMatchmakingQueues'], + gameCenterMatchmakingQueues_deleteInstance: ['DELETE', '/v1/gameCenterMatchmakingQueues/{id}', '', '', 'none'], + gameCenterMatchmakingQueues_experimentMatchmakingQueueSizes_getMetrics: ['GET', '/v1/gameCenterMatchmakingQueues/{id}/metrics/experimentMatchmakingQueueSizes', 'granularity! sort limit', '', 'many:'], + gameCenterMatchmakingQueues_experimentMatchmakingRequests_getMetrics: ['GET', '/v1/gameCenterMatchmakingQueues/{id}/metrics/experimentMatchmakingRequests', 'granularity! groupBy filter[result] filter[gameCenterDetail] sort limit', '', 'many:'], + gameCenterMatchmakingQueues_getCollection: ['GET', '/v1/gameCenterMatchmakingQueues', 'fields[gameCenterMatchmakingQueues] fields[gameCenterMatchmakingRuleSets] limit include', '', 'many:gameCenterMatchmakingQueues'], + gameCenterMatchmakingQueues_getInstance: ['GET', '/v1/gameCenterMatchmakingQueues/{id}', 'fields[gameCenterMatchmakingQueues] fields[gameCenterMatchmakingRuleSets] include', '', 'one:gameCenterMatchmakingQueues'], + gameCenterMatchmakingQueues_matchmakingQueueSizes_getMetrics: ['GET', '/v1/gameCenterMatchmakingQueues/{id}/metrics/matchmakingQueueSizes', 'granularity! sort limit', '', 'many:'], + gameCenterMatchmakingQueues_matchmakingRequests_getMetrics: ['GET', '/v1/gameCenterMatchmakingQueues/{id}/metrics/matchmakingRequests', 'granularity! groupBy filter[result] filter[gameCenterDetail] sort limit', '', 'many:'], + gameCenterMatchmakingQueues_matchmakingSessions_getMetrics: ['GET', '/v1/gameCenterMatchmakingQueues/{id}/metrics/matchmakingSessions', 'granularity! sort limit', '', 'many:'], + gameCenterMatchmakingQueues_updateInstance: ['PATCH', '/v1/gameCenterMatchmakingQueues/{id}', '', 'gameCenterMatchmakingQueues', 'one:gameCenterMatchmakingQueues'], + gameCenterMatchmakingRuleSetTests_createInstance: ['POST', '/v1/gameCenterMatchmakingRuleSetTests', '', 'gameCenterMatchmakingRuleSetTests', 'one:gameCenterMatchmakingRuleSetTests'], + gameCenterMatchmakingRuleSets_createInstance: ['POST', '/v1/gameCenterMatchmakingRuleSets', '', 'gameCenterMatchmakingRuleSets', 'one:gameCenterMatchmakingRuleSets'], + gameCenterMatchmakingRuleSets_deleteInstance: ['DELETE', '/v1/gameCenterMatchmakingRuleSets/{id}', '', '', 'none'], + gameCenterMatchmakingRuleSets_getCollection: ['GET', '/v1/gameCenterMatchmakingRuleSets', 'fields[gameCenterMatchmakingRuleSets] fields[gameCenterMatchmakingTeams] fields[gameCenterMatchmakingRules] fields[gameCenterMatchmakingQueues] limit include limit[matchmakingQueues] limit[rules] limit[teams]', '', 'many:gameCenterMatchmakingRuleSets'], + gameCenterMatchmakingRuleSets_getInstance: ['GET', '/v1/gameCenterMatchmakingRuleSets/{id}', 'fields[gameCenterMatchmakingRuleSets] fields[gameCenterMatchmakingTeams] fields[gameCenterMatchmakingRules] fields[gameCenterMatchmakingQueues] include limit[matchmakingQueues] limit[rules] limit[teams]', '', 'one:gameCenterMatchmakingRuleSets'], + gameCenterMatchmakingRuleSets_matchmakingQueues_getToManyRelated: ['GET', '/v1/gameCenterMatchmakingRuleSets/{id}/matchmakingQueues', 'fields[gameCenterMatchmakingQueues] fields[gameCenterMatchmakingRuleSets] limit include', '', 'many:gameCenterMatchmakingQueues'], + gameCenterMatchmakingRuleSets_matchmakingQueues_getToManyRelationship: ['GET', '/v1/gameCenterMatchmakingRuleSets/{id}/relationships/matchmakingQueues', 'limit', '', 'many:gameCenterMatchmakingQueues'], + gameCenterMatchmakingRuleSets_rules_getToManyRelated: ['GET', '/v1/gameCenterMatchmakingRuleSets/{id}/rules', 'fields[gameCenterMatchmakingRules] limit', '', 'many:gameCenterMatchmakingRules'], + gameCenterMatchmakingRuleSets_rules_getToManyRelationship: ['GET', '/v1/gameCenterMatchmakingRuleSets/{id}/relationships/rules', 'limit', '', 'many:gameCenterMatchmakingRules'], + gameCenterMatchmakingRuleSets_teams_getToManyRelated: ['GET', '/v1/gameCenterMatchmakingRuleSets/{id}/teams', 'fields[gameCenterMatchmakingTeams] limit', '', 'many:gameCenterMatchmakingTeams'], + gameCenterMatchmakingRuleSets_teams_getToManyRelationship: ['GET', '/v1/gameCenterMatchmakingRuleSets/{id}/relationships/teams', 'limit', '', 'many:gameCenterMatchmakingTeams'], + gameCenterMatchmakingRuleSets_updateInstance: ['PATCH', '/v1/gameCenterMatchmakingRuleSets/{id}', '', 'gameCenterMatchmakingRuleSets', 'one:gameCenterMatchmakingRuleSets'], + gameCenterMatchmakingRules_createInstance: ['POST', '/v1/gameCenterMatchmakingRules', '', 'gameCenterMatchmakingRules', 'one:gameCenterMatchmakingRules'], + gameCenterMatchmakingRules_deleteInstance: ['DELETE', '/v1/gameCenterMatchmakingRules/{id}', '', '', 'none'], + gameCenterMatchmakingRules_matchmakingBooleanRuleResults_getMetrics: ['GET', '/v1/gameCenterMatchmakingRules/{id}/metrics/matchmakingBooleanRuleResults', 'granularity! groupBy filter[result] filter[gameCenterMatchmakingQueue] sort limit', '', 'many:'], + gameCenterMatchmakingRules_matchmakingNumberRuleResults_getMetrics: ['GET', '/v1/gameCenterMatchmakingRules/{id}/metrics/matchmakingNumberRuleResults', 'granularity! groupBy filter[gameCenterMatchmakingQueue] sort limit', '', 'many:'], + gameCenterMatchmakingRules_matchmakingRuleErrors_getMetrics: ['GET', '/v1/gameCenterMatchmakingRules/{id}/metrics/matchmakingRuleErrors', 'granularity! groupBy filter[gameCenterMatchmakingQueue] sort limit', '', 'many:'], + gameCenterMatchmakingRules_updateInstance: ['PATCH', '/v1/gameCenterMatchmakingRules/{id}', '', 'gameCenterMatchmakingRules', 'one:gameCenterMatchmakingRules'], + gameCenterMatchmakingTeams_createInstance: ['POST', '/v1/gameCenterMatchmakingTeams', '', 'gameCenterMatchmakingTeams', 'one:gameCenterMatchmakingTeams'], + gameCenterMatchmakingTeams_deleteInstance: ['DELETE', '/v1/gameCenterMatchmakingTeams/{id}', '', '', 'none'], + gameCenterMatchmakingTeams_updateInstance: ['PATCH', '/v1/gameCenterMatchmakingTeams/{id}', '', 'gameCenterMatchmakingTeams', 'one:gameCenterMatchmakingTeams'], + gameCenterPlayerAchievementSubmissions_createInstance: ['POST', '/v1/gameCenterPlayerAchievementSubmissions', '', 'gameCenterPlayerAchievementSubmissions', 'one:gameCenterPlayerAchievementSubmissions'], + gameCenterScoreModerations_updateInstance: ['PATCH', '/v1/gameCenterScoreModerations/{id}', '', 'gameCenterScoreModerations', 'one:gameCenterScoreModerations'], + inAppPurchaseAppStoreReviewScreenshots_createInstance: ['POST', '/v1/inAppPurchaseAppStoreReviewScreenshots', '', 'inAppPurchaseAppStoreReviewScreenshots', 'one:inAppPurchaseAppStoreReviewScreenshots'], + inAppPurchaseAppStoreReviewScreenshots_deleteInstance: ['DELETE', '/v1/inAppPurchaseAppStoreReviewScreenshots/{id}', '', '', 'none'], + inAppPurchaseAppStoreReviewScreenshots_getInstance: ['GET', '/v1/inAppPurchaseAppStoreReviewScreenshots/{id}', 'fields[inAppPurchaseAppStoreReviewScreenshots] fields[inAppPurchases] include', '', 'one:inAppPurchaseAppStoreReviewScreenshots'], + inAppPurchaseAppStoreReviewScreenshots_updateInstance: ['PATCH', '/v1/inAppPurchaseAppStoreReviewScreenshots/{id}', '', 'inAppPurchaseAppStoreReviewScreenshots', 'one:inAppPurchaseAppStoreReviewScreenshots'], + inAppPurchaseAvailabilities_availableTerritories_getToManyRelated: ['GET', '/v1/inAppPurchaseAvailabilities/{id}/availableTerritories', 'fields[territories] limit', '', 'many:territories'], + inAppPurchaseAvailabilities_availableTerritories_getToManyRelationship: ['GET', '/v1/inAppPurchaseAvailabilities/{id}/relationships/availableTerritories', 'limit', '', 'many:territories'], + inAppPurchaseAvailabilities_createInstance: ['POST', '/v1/inAppPurchaseAvailabilities', '', 'inAppPurchaseAvailabilities', 'one:inAppPurchaseAvailabilities'], + inAppPurchaseAvailabilities_getInstance: ['GET', '/v1/inAppPurchaseAvailabilities/{id}', 'fields[inAppPurchaseAvailabilities] fields[territories] include limit[availableTerritories]', '', 'one:inAppPurchaseAvailabilities'], + inAppPurchaseContents_getInstance: ['GET', '/v1/inAppPurchaseContents/{id}', 'fields[inAppPurchaseContents] fields[inAppPurchases] include', '', 'one:inAppPurchaseContents'], + inAppPurchaseImagesV2_createInstance: ['POST', '/v2/inAppPurchaseImages', '', 'inAppPurchaseImages', 'one:inAppPurchaseImages'], + inAppPurchaseImagesV2_deleteInstance: ['DELETE', '/v2/inAppPurchaseImages/{id}', '', '', 'none'], + inAppPurchaseImagesV2_getInstance: ['GET', '/v2/inAppPurchaseImages/{id}', 'fields[inAppPurchaseImages]', '', 'one:inAppPurchaseImages'], + inAppPurchaseImagesV2_updateInstance: ['PATCH', '/v2/inAppPurchaseImages/{id}', '', 'inAppPurchaseImages', 'one:inAppPurchaseImages'], + inAppPurchaseImages_createInstance: ['POST', '/v1/inAppPurchaseImages', '', 'inAppPurchaseImages', 'one:inAppPurchaseImages'], + inAppPurchaseImages_deleteInstance: ['DELETE', '/v1/inAppPurchaseImages/{id}', '', '', 'none'], + inAppPurchaseImages_getInstance: ['GET', '/v1/inAppPurchaseImages/{id}', 'fields[inAppPurchaseImages] fields[inAppPurchases] include', '', 'one:inAppPurchaseImages'], + inAppPurchaseImages_updateInstance: ['PATCH', '/v1/inAppPurchaseImages/{id}', '', 'inAppPurchaseImages', 'one:inAppPurchaseImages'], + inAppPurchaseLocalizationsV2_createInstance: ['POST', '/v2/inAppPurchaseLocalizations', '', 'inAppPurchaseLocalizations', 'one:inAppPurchaseLocalizations'], + inAppPurchaseLocalizationsV2_deleteInstance: ['DELETE', '/v2/inAppPurchaseLocalizations/{id}', '', '', 'none'], + inAppPurchaseLocalizationsV2_getInstance: ['GET', '/v2/inAppPurchaseLocalizations/{id}', 'fields[inAppPurchaseLocalizations] fields[inAppPurchaseVersions] include', '', 'one:inAppPurchaseLocalizations'], + inAppPurchaseLocalizationsV2_updateInstance: ['PATCH', '/v2/inAppPurchaseLocalizations/{id}', '', 'inAppPurchaseLocalizations', 'one:inAppPurchaseLocalizations'], + inAppPurchaseLocalizations_createInstance: ['POST', '/v1/inAppPurchaseLocalizations', '', 'inAppPurchaseLocalizations', 'one:inAppPurchaseLocalizations'], + inAppPurchaseLocalizations_deleteInstance: ['DELETE', '/v1/inAppPurchaseLocalizations/{id}', '', '', 'none'], + inAppPurchaseLocalizations_getInstance: ['GET', '/v1/inAppPurchaseLocalizations/{id}', 'fields[inAppPurchaseLocalizations] fields[inAppPurchases] include', '', 'one:inAppPurchaseLocalizations'], + inAppPurchaseLocalizations_updateInstance: ['PATCH', '/v1/inAppPurchaseLocalizations/{id}', '', 'inAppPurchaseLocalizations', 'one:inAppPurchaseLocalizations'], + inAppPurchaseOfferCodeCustomCodes_createInstance: ['POST', '/v1/inAppPurchaseOfferCodeCustomCodes', '', 'inAppPurchaseOfferCodeCustomCodes', 'one:inAppPurchaseOfferCodeCustomCodes'], + inAppPurchaseOfferCodeCustomCodes_getInstance: ['GET', '/v1/inAppPurchaseOfferCodeCustomCodes/{id}', 'fields[inAppPurchaseOfferCodeCustomCodes] fields[actors] include', '', 'one:inAppPurchaseOfferCodeCustomCodes'], + inAppPurchaseOfferCodeCustomCodes_updateInstance: ['PATCH', '/v1/inAppPurchaseOfferCodeCustomCodes/{id}', '', 'inAppPurchaseOfferCodeCustomCodes', 'one:inAppPurchaseOfferCodeCustomCodes'], + inAppPurchaseOfferCodeOneTimeUseCodes_createInstance: ['POST', '/v1/inAppPurchaseOfferCodeOneTimeUseCodes', '', 'inAppPurchaseOfferCodeOneTimeUseCodes', 'one:inAppPurchaseOfferCodeOneTimeUseCodes'], + inAppPurchaseOfferCodeOneTimeUseCodes_getInstance: ['GET', '/v1/inAppPurchaseOfferCodeOneTimeUseCodes/{id}', 'fields[inAppPurchaseOfferCodeOneTimeUseCodes] fields[actors] include', '', 'one:inAppPurchaseOfferCodeOneTimeUseCodes'], + inAppPurchaseOfferCodeOneTimeUseCodes_updateInstance: ['PATCH', '/v1/inAppPurchaseOfferCodeOneTimeUseCodes/{id}', '', 'inAppPurchaseOfferCodeOneTimeUseCodes', 'one:inAppPurchaseOfferCodeOneTimeUseCodes'], + inAppPurchaseOfferCodeOneTimeUseCodes_values_getToOneRelated: ['GET', '/v1/inAppPurchaseOfferCodeOneTimeUseCodes/{id}/values', '', '', 'raw:text/csv'], + inAppPurchaseOfferCodes_createInstance: ['POST', '/v1/inAppPurchaseOfferCodes', '', 'inAppPurchaseOfferCodes', 'one:inAppPurchaseOfferCodes'], + inAppPurchaseOfferCodes_customCodes_getToManyRelated: ['GET', '/v1/inAppPurchaseOfferCodes/{id}/customCodes', 'fields[inAppPurchaseOfferCodeCustomCodes] fields[actors] limit include', '', 'many:inAppPurchaseOfferCodeCustomCodes'], + inAppPurchaseOfferCodes_customCodes_getToManyRelationship: ['GET', '/v1/inAppPurchaseOfferCodes/{id}/relationships/customCodes', 'limit', '', 'many:inAppPurchaseOfferCodeCustomCodes'], + inAppPurchaseOfferCodes_getInstance: ['GET', '/v1/inAppPurchaseOfferCodes/{id}', 'fields[inAppPurchaseOfferCodes] fields[inAppPurchaseOfferCodeOneTimeUseCodes] fields[inAppPurchaseOfferCodeCustomCodes] fields[inAppPurchaseOfferPrices] include limit[customCodes] limit[oneTimeUseCodes] limit[prices]', '', 'one:inAppPurchaseOfferCodes'], + inAppPurchaseOfferCodes_oneTimeUseCodes_getToManyRelated: ['GET', '/v1/inAppPurchaseOfferCodes/{id}/oneTimeUseCodes', 'fields[inAppPurchaseOfferCodeOneTimeUseCodes] fields[actors] limit include', '', 'many:inAppPurchaseOfferCodeOneTimeUseCodes'], + inAppPurchaseOfferCodes_oneTimeUseCodes_getToManyRelationship: ['GET', '/v1/inAppPurchaseOfferCodes/{id}/relationships/oneTimeUseCodes', 'limit', '', 'many:inAppPurchaseOfferCodeOneTimeUseCodes'], + inAppPurchaseOfferCodes_prices_getToManyRelated: ['GET', '/v1/inAppPurchaseOfferCodes/{id}/prices', 'filter[territory] fields[inAppPurchaseOfferPrices] fields[territories] fields[inAppPurchasePricePoints] limit include', '', 'many:inAppPurchaseOfferPrices'], + inAppPurchaseOfferCodes_prices_getToManyRelationship: ['GET', '/v1/inAppPurchaseOfferCodes/{id}/relationships/prices', 'limit', '', 'many:inAppPurchaseOfferPrices'], + inAppPurchaseOfferCodes_updateInstance: ['PATCH', '/v1/inAppPurchaseOfferCodes/{id}', '', 'inAppPurchaseOfferCodes', 'one:inAppPurchaseOfferCodes'], + inAppPurchasePricePoints_equalizations_getToManyRelated: ['GET', '/v1/inAppPurchasePricePoints/{id}/equalizations', 'filter[territory] filter[inAppPurchaseV2] fields[inAppPurchasePricePoints] fields[territories] limit include', '', 'many:inAppPurchasePricePoints'], + inAppPurchasePricePoints_equalizations_getToManyRelationship: ['GET', '/v1/inAppPurchasePricePoints/{id}/relationships/equalizations', 'limit', '', 'many:inAppPurchasePricePoints'], + inAppPurchasePriceSchedules_automaticPrices_getToManyRelated: ['GET', '/v1/inAppPurchasePriceSchedules/{id}/automaticPrices', 'filter[territory] fields[inAppPurchasePrices] fields[inAppPurchasePricePoints] fields[territories] limit include', '', 'many:inAppPurchasePrices'], + inAppPurchasePriceSchedules_automaticPrices_getToManyRelationship: ['GET', '/v1/inAppPurchasePriceSchedules/{id}/relationships/automaticPrices', 'limit', '', 'many:inAppPurchasePrices'], + inAppPurchasePriceSchedules_baseTerritory_getToOneRelated: ['GET', '/v1/inAppPurchasePriceSchedules/{id}/baseTerritory', 'fields[territories]', '', 'one:territories'], + inAppPurchasePriceSchedules_baseTerritory_getToOneRelationship: ['GET', '/v1/inAppPurchasePriceSchedules/{id}/relationships/baseTerritory', '', '', 'one:territories'], + inAppPurchasePriceSchedules_createInstance: ['POST', '/v1/inAppPurchasePriceSchedules', '', 'inAppPurchasePriceSchedules', 'one:inAppPurchasePriceSchedules'], + inAppPurchasePriceSchedules_getInstance: ['GET', '/v1/inAppPurchasePriceSchedules/{id}', 'fields[inAppPurchasePriceSchedules] fields[territories] fields[inAppPurchasePrices] include limit[automaticPrices] limit[manualPrices]', '', 'one:inAppPurchasePriceSchedules'], + inAppPurchasePriceSchedules_manualPrices_getToManyRelated: ['GET', '/v1/inAppPurchasePriceSchedules/{id}/manualPrices', 'filter[territory] fields[inAppPurchasePrices] fields[inAppPurchasePricePoints] fields[territories] limit include', '', 'many:inAppPurchasePrices'], + inAppPurchasePriceSchedules_manualPrices_getToManyRelationship: ['GET', '/v1/inAppPurchasePriceSchedules/{id}/relationships/manualPrices', 'limit', '', 'many:inAppPurchasePrices'], + inAppPurchaseSubmissions_createInstance: ['POST', '/v1/inAppPurchaseSubmissions', '', 'inAppPurchaseSubmissions', 'one:inAppPurchaseSubmissions'], + inAppPurchaseVersions_createInstance: ['POST', '/v1/inAppPurchaseVersions', '', 'inAppPurchaseVersions', 'one:inAppPurchaseVersions'], + inAppPurchaseVersions_getInstance: ['GET', '/v1/inAppPurchaseVersions/{id}', 'fields[inAppPurchaseVersions] fields[inAppPurchases] fields[inAppPurchaseImages] fields[inAppPurchaseLocalizations] include limit[images] limit[localizations]', '', 'one:inAppPurchaseVersions'], + inAppPurchaseVersions_image_getToOneRelated: ['GET', '/v1/inAppPurchaseVersions/{id}/image', 'fields[inAppPurchaseImages]', '', 'one:inAppPurchaseImages'], + inAppPurchaseVersions_image_getToOneRelationship: ['GET', '/v1/inAppPurchaseVersions/{id}/relationships/image', '', '', 'one:inAppPurchaseImages'], + inAppPurchaseVersions_images_getToManyRelated: ['GET', '/v1/inAppPurchaseVersions/{id}/images', 'fields[inAppPurchaseImages] limit', '', 'many:inAppPurchaseImages'], + inAppPurchaseVersions_images_getToManyRelationship: ['GET', '/v1/inAppPurchaseVersions/{id}/relationships/images', 'limit', '', 'many:inAppPurchaseImages'], + inAppPurchaseVersions_localizations_getToManyRelated: ['GET', '/v1/inAppPurchaseVersions/{id}/localizations', 'fields[inAppPurchaseLocalizations] fields[inAppPurchaseVersions] limit include', '', 'many:inAppPurchaseLocalizations'], + inAppPurchaseVersions_localizations_getToManyRelationship: ['GET', '/v1/inAppPurchaseVersions/{id}/relationships/localizations', 'limit', '', 'many:inAppPurchaseLocalizations'], + inAppPurchasesV2_appStoreReviewScreenshot_getToOneRelated: ['GET', '/v2/inAppPurchases/{id}/appStoreReviewScreenshot', 'fields[inAppPurchaseAppStoreReviewScreenshots] fields[inAppPurchases] include', '', 'one:inAppPurchaseAppStoreReviewScreenshots'], + inAppPurchasesV2_appStoreReviewScreenshot_getToOneRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/appStoreReviewScreenshot', '', '', 'one:inAppPurchaseAppStoreReviewScreenshots'], + inAppPurchasesV2_content_getToOneRelated: ['GET', '/v2/inAppPurchases/{id}/content', 'fields[inAppPurchaseContents] fields[inAppPurchases] include', '', 'one:inAppPurchaseContents'], + inAppPurchasesV2_content_getToOneRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/content', '', '', 'one:inAppPurchaseContents'], + inAppPurchasesV2_createInstance: ['POST', '/v2/inAppPurchases', '', 'inAppPurchases', 'one:inAppPurchases'], + inAppPurchasesV2_deleteInstance: ['DELETE', '/v2/inAppPurchases/{id}', '', '', 'none'], + inAppPurchasesV2_getInstance: ['GET', '/v2/inAppPurchases/{id}', 'fields[inAppPurchases] fields[inAppPurchaseLocalizations] fields[inAppPurchasePricePoints] fields[inAppPurchaseContents] fields[inAppPurchaseAppStoreReviewScreenshots] fields[promotedPurchases] fields[inAppPurchasePriceSchedules] fields[inAppPurchaseAvailabilities] fields[inAppPurchaseImages] fields[inAppPurchaseOfferCodes] fields[inAppPurchaseVersions] include limit[images] limit[inAppPurchaseLocalizations] limit[offerCodes] limit[pricePoints] limit[versions]', '', 'one:inAppPurchases'], + inAppPurchasesV2_iapPriceSchedule_getToOneRelated: ['GET', '/v2/inAppPurchases/{id}/iapPriceSchedule', 'fields[inAppPurchasePriceSchedules] fields[territories] fields[inAppPurchasePrices] include limit[manualPrices] limit[automaticPrices]', '', 'one:inAppPurchasePriceSchedules'], + inAppPurchasesV2_iapPriceSchedule_getToOneRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/iapPriceSchedule', '', '', 'one:inAppPurchasePriceSchedules'], + inAppPurchasesV2_images_getToManyRelated: ['GET', '/v2/inAppPurchases/{id}/images', 'fields[inAppPurchaseImages] fields[inAppPurchases] limit include', '', 'many:inAppPurchaseImages'], + inAppPurchasesV2_images_getToManyRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/images', 'limit', '', 'many:inAppPurchaseImages'], + inAppPurchasesV2_inAppPurchaseAvailability_getToOneRelated: ['GET', '/v2/inAppPurchases/{id}/inAppPurchaseAvailability', 'fields[inAppPurchaseAvailabilities] fields[territories] include limit[availableTerritories]', '', 'one:inAppPurchaseAvailabilities'], + inAppPurchasesV2_inAppPurchaseAvailability_getToOneRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/inAppPurchaseAvailability', '', '', 'one:inAppPurchaseAvailabilities'], + inAppPurchasesV2_inAppPurchaseLocalizations_getToManyRelated: ['GET', '/v2/inAppPurchases/{id}/inAppPurchaseLocalizations', 'fields[inAppPurchaseLocalizations] fields[inAppPurchases] limit include', '', 'many:inAppPurchaseLocalizations'], + inAppPurchasesV2_inAppPurchaseLocalizations_getToManyRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/inAppPurchaseLocalizations', 'limit', '', 'many:inAppPurchaseLocalizations'], + inAppPurchasesV2_offerCodes_getToManyRelated: ['GET', '/v2/inAppPurchases/{id}/offerCodes', 'filter[territory] fields[inAppPurchaseOfferCodes] fields[inAppPurchaseOfferCodeOneTimeUseCodes] fields[inAppPurchaseOfferCodeCustomCodes] fields[inAppPurchaseOfferPrices] limit include limit[oneTimeUseCodes] limit[customCodes] limit[prices]', '', 'many:inAppPurchaseOfferCodes'], + inAppPurchasesV2_offerCodes_getToManyRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/offerCodes', 'limit', '', 'many:inAppPurchaseOfferCodes'], + inAppPurchasesV2_pricePoints_getToManyRelated: ['GET', '/v2/inAppPurchases/{id}/pricePoints', 'filter[territory] fields[inAppPurchasePricePoints] fields[territories] limit include', '', 'many:inAppPurchasePricePoints'], + inAppPurchasesV2_pricePoints_getToManyRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/pricePoints', 'limit', '', 'many:inAppPurchasePricePoints'], + inAppPurchasesV2_promotedPurchase_getToOneRelated: ['GET', '/v2/inAppPurchases/{id}/promotedPurchase', 'fields[promotedPurchases] fields[inAppPurchases] fields[subscriptions] include', '', 'one:promotedPurchases'], + inAppPurchasesV2_promotedPurchase_getToOneRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/promotedPurchase', '', '', 'one:promotedPurchases'], + inAppPurchasesV2_updateInstance: ['PATCH', '/v2/inAppPurchases/{id}', '', 'inAppPurchases', 'one:inAppPurchases'], + inAppPurchasesV2_versions_getToManyRelated: ['GET', '/v2/inAppPurchases/{id}/versions', 'filter[state] fields[inAppPurchaseVersions] fields[inAppPurchases] fields[inAppPurchaseImages] fields[inAppPurchaseLocalizations] limit include limit[images] limit[localizations]', '', 'many:inAppPurchaseVersions'], + inAppPurchasesV2_versions_getToManyRelationship: ['GET', '/v2/inAppPurchases/{id}/relationships/versions', 'limit', '', 'many:inAppPurchaseVersions'], + inAppPurchases_getInstance: ['GET', '/v1/inAppPurchases/{id}', 'fields[inAppPurchases] fields[apps] include limit[apps]', '', 'one:inAppPurchases'], + marketplaceSearchDetails_createInstance: ['POST', '/v1/marketplaceSearchDetails', '', 'marketplaceSearchDetails', 'one:marketplaceSearchDetails'], + marketplaceSearchDetails_deleteInstance: ['DELETE', '/v1/marketplaceSearchDetails/{id}', '', '', 'none'], + marketplaceSearchDetails_updateInstance: ['PATCH', '/v1/marketplaceSearchDetails/{id}', '', 'marketplaceSearchDetails', 'one:marketplaceSearchDetails'], + marketplaceWebhooks_createInstance: ['POST', '/v1/marketplaceWebhooks', '', 'marketplaceWebhooks', 'one:marketplaceWebhooks'], + marketplaceWebhooks_deleteInstance: ['DELETE', '/v1/marketplaceWebhooks/{id}', '', '', 'none'], + marketplaceWebhooks_getCollection: ['GET', '/v1/marketplaceWebhooks', 'fields[marketplaceWebhooks] limit', '', 'many:marketplaceWebhooks'], + marketplaceWebhooks_updateInstance: ['PATCH', '/v1/marketplaceWebhooks/{id}', '', 'marketplaceWebhooks', 'one:marketplaceWebhooks'], + merchantIds_certificates_getToManyRelated: ['GET', '/v1/merchantIds/{id}/certificates', 'filter[displayName] filter[certificateType] filter[serialNumber] filter[id] sort fields[certificates] fields[passTypeIds] limit include', '', 'many:certificates'], + merchantIds_certificates_getToManyRelationship: ['GET', '/v1/merchantIds/{id}/relationships/certificates', 'limit', '', 'many:certificates'], + merchantIds_createInstance: ['POST', '/v1/merchantIds', '', 'merchantIds', 'one:merchantIds'], + merchantIds_deleteInstance: ['DELETE', '/v1/merchantIds/{id}', '', '', 'none'], + merchantIds_getCollection: ['GET', '/v1/merchantIds', 'filter[name] filter[identifier] sort fields[merchantIds] fields[certificates] limit include limit[certificates]', '', 'many:merchantIds'], + merchantIds_getInstance: ['GET', '/v1/merchantIds/{id}', 'fields[merchantIds] fields[certificates] include limit[certificates]', '', 'one:merchantIds'], + merchantIds_updateInstance: ['PATCH', '/v1/merchantIds/{id}', '', 'merchantIds', 'one:merchantIds'], + nominations_createInstance: ['POST', '/v1/nominations', '', 'nominations', 'one:nominations'], + nominations_deleteInstance: ['DELETE', '/v1/nominations/{id}', '', '', 'none'], + nominations_getCollection: ['GET', '/v1/nominations', 'filter[type] filter[state]! filter[hasInAppEvents] filter[relatedApps] sort fields[nominations] fields[apps] fields[actors] fields[appEvents] fields[territories] limit include limit[inAppEvents] limit[relatedApps] limit[supportedTerritories]', '', 'many:nominations'], + nominations_getInstance: ['GET', '/v1/nominations/{id}', 'fields[nominations] fields[apps] fields[actors] fields[appEvents] fields[territories] include limit[inAppEvents] limit[relatedApps] limit[supportedTerritories]', '', 'one:nominations'], + nominations_updateInstance: ['PATCH', '/v1/nominations/{id}', '', 'nominations', 'one:nominations'], + passTypeIds_certificates_getToManyRelated: ['GET', '/v1/passTypeIds/{id}/certificates', 'filter[displayName] filter[certificateType] filter[serialNumber] filter[id] sort fields[certificates] fields[passTypeIds] limit include', '', 'many:certificates'], + passTypeIds_certificates_getToManyRelationship: ['GET', '/v1/passTypeIds/{id}/relationships/certificates', 'limit', '', 'many:certificates'], + passTypeIds_createInstance: ['POST', '/v1/passTypeIds', '', 'passTypeIds', 'one:passTypeIds'], + passTypeIds_deleteInstance: ['DELETE', '/v1/passTypeIds/{id}', '', '', 'none'], + passTypeIds_getCollection: ['GET', '/v1/passTypeIds', 'filter[name] filter[identifier] filter[id] sort fields[passTypeIds] fields[certificates] limit include limit[certificates]', '', 'many:passTypeIds'], + passTypeIds_getInstance: ['GET', '/v1/passTypeIds/{id}', 'fields[passTypeIds] fields[certificates] include limit[certificates]', '', 'one:passTypeIds'], + passTypeIds_updateInstance: ['PATCH', '/v1/passTypeIds/{id}', '', 'passTypeIds', 'one:passTypeIds'], + preReleaseVersions_app_getToOneRelated: ['GET', '/v1/preReleaseVersions/{id}/app', 'fields[apps]', '', 'one:apps'], + preReleaseVersions_app_getToOneRelationship: ['GET', '/v1/preReleaseVersions/{id}/relationships/app', '', '', 'one:apps'], + preReleaseVersions_builds_getToManyRelated: ['GET', '/v1/preReleaseVersions/{id}/builds', 'fields[builds] limit', '', 'many:builds'], + preReleaseVersions_builds_getToManyRelationship: ['GET', '/v1/preReleaseVersions/{id}/relationships/builds', 'limit', '', 'many:builds'], + preReleaseVersions_getCollection: ['GET', '/v1/preReleaseVersions', 'filter[builds.buildAudienceType] filter[builds.expired] filter[builds.processingState] filter[builds.version] filter[platform] filter[version] filter[app] filter[builds] sort fields[preReleaseVersions] fields[builds] fields[apps] limit include limit[builds]', '', 'many:preReleaseVersions'], + preReleaseVersions_getInstance: ['GET', '/v1/preReleaseVersions/{id}', 'fields[preReleaseVersions] fields[builds] fields[apps] include limit[builds]', '', 'one:preReleaseVersions'], + profiles_bundleId_getToOneRelated: ['GET', '/v1/profiles/{id}/bundleId', 'fields[bundleIds]', '', 'one:bundleIds'], + profiles_bundleId_getToOneRelationship: ['GET', '/v1/profiles/{id}/relationships/bundleId', '', '', 'one:bundleIds'], + profiles_certificates_getToManyRelated: ['GET', '/v1/profiles/{id}/certificates', 'fields[certificates] limit', '', 'many:certificates'], + profiles_certificates_getToManyRelationship: ['GET', '/v1/profiles/{id}/relationships/certificates', 'limit', '', 'many:certificates'], + profiles_createInstance: ['POST', '/v1/profiles', '', 'profiles', 'one:profiles'], + profiles_deleteInstance: ['DELETE', '/v1/profiles/{id}', '', '', 'none'], + profiles_devices_getToManyRelated: ['GET', '/v1/profiles/{id}/devices', 'fields[devices] limit', '', 'many:devices'], + profiles_devices_getToManyRelationship: ['GET', '/v1/profiles/{id}/relationships/devices', 'limit', '', 'many:devices'], + profiles_getCollection: ['GET', '/v1/profiles', 'filter[name] filter[profileType] filter[profileState] filter[id] sort fields[profiles] fields[bundleIds] fields[devices] fields[certificates] limit include limit[certificates] limit[devices]', '', 'many:profiles'], + profiles_getInstance: ['GET', '/v1/profiles/{id}', 'fields[profiles] fields[bundleIds] fields[devices] fields[certificates] include limit[certificates] limit[devices]', '', 'one:profiles'], + promotedPurchases_createInstance: ['POST', '/v1/promotedPurchases', '', 'promotedPurchases', 'one:promotedPurchases'], + promotedPurchases_deleteInstance: ['DELETE', '/v1/promotedPurchases/{id}', '', '', 'none'], + promotedPurchases_getInstance: ['GET', '/v1/promotedPurchases/{id}', 'fields[promotedPurchases] fields[inAppPurchases] fields[subscriptions] include', '', 'one:promotedPurchases'], + promotedPurchases_updateInstance: ['PATCH', '/v1/promotedPurchases/{id}', '', 'promotedPurchases', 'one:promotedPurchases'], + reviewSubmissionItems_createInstance: ['POST', '/v1/reviewSubmissionItems', '', 'reviewSubmissionItems', 'one:reviewSubmissionItems'], + reviewSubmissionItems_deleteInstance: ['DELETE', '/v1/reviewSubmissionItems/{id}', '', '', 'none'], + reviewSubmissionItems_updateInstance: ['PATCH', '/v1/reviewSubmissionItems/{id}', '', 'reviewSubmissionItems', 'one:reviewSubmissionItems'], + reviewSubmissions_createInstance: ['POST', '/v1/reviewSubmissions', '', 'reviewSubmissions', 'one:reviewSubmissions'], + reviewSubmissions_getCollection: ['GET', '/v1/reviewSubmissions', 'filter[platform] filter[state] filter[app]! fields[reviewSubmissions] fields[apps] fields[reviewSubmissionItems] fields[appStoreVersions] fields[actors] limit include limit[items]', '', 'many:reviewSubmissions'], + reviewSubmissions_getInstance: ['GET', '/v1/reviewSubmissions/{id}', 'fields[reviewSubmissions] fields[apps] fields[reviewSubmissionItems] fields[appStoreVersions] fields[actors] include limit[items]', '', 'one:reviewSubmissions'], + reviewSubmissions_items_getToManyRelated: ['GET', '/v1/reviewSubmissions/{id}/items', 'fields[reviewSubmissionItems] fields[appStoreVersions] fields[appCustomProductPageVersions] fields[appStoreVersionExperiments] fields[appEvents] fields[appAssetLibraryImages] fields[appAssetLibraryVideos] fields[backgroundAssetVersions] fields[gameCenterAchievementVersions] fields[gameCenterActivityVersions] fields[gameCenterChallengeVersions] fields[gameCenterLeaderboardSetVersions] fields[gameCenterLeaderboardVersions] fields[inAppPurchaseVersions] fields[subscriptionVersions] fields[subscriptionGroupVersions] limit include', '', 'many:reviewSubmissionItems'], + reviewSubmissions_items_getToManyRelationship: ['GET', '/v1/reviewSubmissions/{id}/relationships/items', 'limit', '', 'many:reviewSubmissionItems'], + reviewSubmissions_updateInstance: ['PATCH', '/v1/reviewSubmissions/{id}', '', 'reviewSubmissions', 'one:reviewSubmissions'], + routingAppCoverages_createInstance: ['POST', '/v1/routingAppCoverages', '', 'routingAppCoverages', 'one:routingAppCoverages'], + routingAppCoverages_deleteInstance: ['DELETE', '/v1/routingAppCoverages/{id}', '', '', 'none'], + routingAppCoverages_getInstance: ['GET', '/v1/routingAppCoverages/{id}', 'fields[routingAppCoverages] fields[appStoreVersions] include', '', 'one:routingAppCoverages'], + routingAppCoverages_updateInstance: ['PATCH', '/v1/routingAppCoverages/{id}', '', 'routingAppCoverages', 'one:routingAppCoverages'], + salesReports_getCollection: ['GET', '/v1/salesReports', 'filter[vendorNumber]! filter[reportType]! filter[reportSubType]! filter[frequency]! filter[reportDate] filter[version]', '', 'raw:application/a-gzip'], + sandboxTestersClearPurchaseHistoryRequestV2_createInstance: ['POST', '/v2/sandboxTestersClearPurchaseHistoryRequest', '', 'sandboxTestersClearPurchaseHistoryRequest', 'one:sandboxTestersClearPurchaseHistoryRequest'], + sandboxTestersV2_getCollection: ['GET', '/v2/sandboxTesters', 'fields[sandboxTesters] limit', '', 'many:sandboxTesters'], + sandboxTestersV2_updateInstance: ['PATCH', '/v2/sandboxTesters/{id}', '', 'sandboxTesters', 'one:sandboxTesters'], + scmGitReferences_getInstance: ['GET', '/v1/scmGitReferences/{id}', 'fields[scmGitReferences] fields[scmRepositories] include', '', 'one:scmGitReferences'], + scmProviders_getCollection: ['GET', '/v1/scmProviders', 'fields[scmProviders] limit', '', 'many:scmProviders'], + scmProviders_getInstance: ['GET', '/v1/scmProviders/{id}', 'fields[scmProviders]', '', 'one:scmProviders'], + scmProviders_repositories_getToManyRelated: ['GET', '/v1/scmProviders/{id}/repositories', 'filter[id] fields[scmRepositories] fields[scmProviders] fields[scmGitReferences] limit include', '', 'many:scmRepositories'], + scmProviders_repositories_getToManyRelationship: ['GET', '/v1/scmProviders/{id}/relationships/repositories', 'limit', '', 'many:scmRepositories'], + scmPullRequests_getInstance: ['GET', '/v1/scmPullRequests/{id}', 'fields[scmPullRequests] fields[scmRepositories] include', '', 'one:scmPullRequests'], + scmRepositories_getCollection: ['GET', '/v1/scmRepositories', 'filter[id] fields[scmRepositories] fields[scmProviders] fields[scmGitReferences] limit include', '', 'many:scmRepositories'], + scmRepositories_getInstance: ['GET', '/v1/scmRepositories/{id}', 'fields[scmRepositories] fields[scmProviders] fields[scmGitReferences] include', '', 'one:scmRepositories'], + scmRepositories_gitReferences_getToManyRelated: ['GET', '/v1/scmRepositories/{id}/gitReferences', 'fields[scmGitReferences] fields[scmRepositories] limit include', '', 'many:scmGitReferences'], + scmRepositories_gitReferences_getToManyRelationship: ['GET', '/v1/scmRepositories/{id}/relationships/gitReferences', 'limit', '', 'many:scmGitReferences'], + scmRepositories_pullRequests_getToManyRelated: ['GET', '/v1/scmRepositories/{id}/pullRequests', 'fields[scmPullRequests] fields[scmRepositories] limit include', '', 'many:scmPullRequests'], + scmRepositories_pullRequests_getToManyRelationship: ['GET', '/v1/scmRepositories/{id}/relationships/pullRequests', 'limit', '', 'many:scmPullRequests'], + subscriptionAppStoreReviewScreenshots_createInstance: ['POST', '/v1/subscriptionAppStoreReviewScreenshots', '', 'subscriptionAppStoreReviewScreenshots', 'one:subscriptionAppStoreReviewScreenshots'], + subscriptionAppStoreReviewScreenshots_deleteInstance: ['DELETE', '/v1/subscriptionAppStoreReviewScreenshots/{id}', '', '', 'none'], + subscriptionAppStoreReviewScreenshots_getInstance: ['GET', '/v1/subscriptionAppStoreReviewScreenshots/{id}', 'fields[subscriptionAppStoreReviewScreenshots] fields[subscriptions] include', '', 'one:subscriptionAppStoreReviewScreenshots'], + subscriptionAppStoreReviewScreenshots_updateInstance: ['PATCH', '/v1/subscriptionAppStoreReviewScreenshots/{id}', '', 'subscriptionAppStoreReviewScreenshots', 'one:subscriptionAppStoreReviewScreenshots'], + subscriptionAvailabilities_availableTerritories_getToManyRelated: ['GET', '/v1/subscriptionAvailabilities/{id}/availableTerritories', 'fields[territories] limit', '', 'many:territories'], + subscriptionAvailabilities_availableTerritories_getToManyRelationship: ['GET', '/v1/subscriptionAvailabilities/{id}/relationships/availableTerritories', 'limit', '', 'many:territories'], + subscriptionAvailabilities_createInstance: ['POST', '/v1/subscriptionAvailabilities', '', 'subscriptionAvailabilities', 'one:subscriptionAvailabilities'], + subscriptionAvailabilities_getInstance: ['GET', '/v1/subscriptionAvailabilities/{id}', 'fields[subscriptionAvailabilities] fields[territories] include limit[availableTerritories]', '', 'one:subscriptionAvailabilities'], + subscriptionGracePeriods_getInstance: ['GET', '/v1/subscriptionGracePeriods/{id}', 'fields[subscriptionGracePeriods]', '', 'one:subscriptionGracePeriods'], + subscriptionGracePeriods_updateInstance: ['PATCH', '/v1/subscriptionGracePeriods/{id}', '', 'subscriptionGracePeriods', 'one:subscriptionGracePeriods'], + subscriptionGroupLocalizationsV2_createInstance: ['POST', '/v2/subscriptionGroupLocalizations', '', 'subscriptionGroupLocalizations', 'one:subscriptionGroupLocalizations'], + subscriptionGroupLocalizationsV2_deleteInstance: ['DELETE', '/v2/subscriptionGroupLocalizations/{id}', '', '', 'none'], + subscriptionGroupLocalizationsV2_getInstance: ['GET', '/v2/subscriptionGroupLocalizations/{id}', 'fields[subscriptionGroupLocalizations] fields[subscriptionGroupVersions] include', '', 'one:subscriptionGroupLocalizations'], + subscriptionGroupLocalizationsV2_updateInstance: ['PATCH', '/v2/subscriptionGroupLocalizations/{id}', '', 'subscriptionGroupLocalizations', 'one:subscriptionGroupLocalizations'], + subscriptionGroupLocalizations_createInstance: ['POST', '/v1/subscriptionGroupLocalizations', '', 'subscriptionGroupLocalizations', 'one:subscriptionGroupLocalizations'], + subscriptionGroupLocalizations_deleteInstance: ['DELETE', '/v1/subscriptionGroupLocalizations/{id}', '', '', 'none'], + subscriptionGroupLocalizations_getInstance: ['GET', '/v1/subscriptionGroupLocalizations/{id}', 'fields[subscriptionGroupLocalizations] fields[subscriptionGroups] include', '', 'one:subscriptionGroupLocalizations'], + subscriptionGroupLocalizations_updateInstance: ['PATCH', '/v1/subscriptionGroupLocalizations/{id}', '', 'subscriptionGroupLocalizations', 'one:subscriptionGroupLocalizations'], + subscriptionGroupSubmissions_createInstance: ['POST', '/v1/subscriptionGroupSubmissions', '', 'subscriptionGroupSubmissions', 'one:subscriptionGroupSubmissions'], + subscriptionGroupVersions_createInstance: ['POST', '/v1/subscriptionGroupVersions', '', 'subscriptionGroupVersions', 'one:subscriptionGroupVersions'], + subscriptionGroupVersions_getInstance: ['GET', '/v1/subscriptionGroupVersions/{id}', 'fields[subscriptionGroupVersions] fields[subscriptionGroups] fields[subscriptionGroupLocalizations] include limit[localizations]', '', 'one:subscriptionGroupVersions'], + subscriptionGroupVersions_localizations_getToManyRelated: ['GET', '/v1/subscriptionGroupVersions/{id}/localizations', 'fields[subscriptionGroupLocalizations] fields[subscriptionGroupVersions] limit include', '', 'many:subscriptionGroupLocalizations'], + subscriptionGroupVersions_localizations_getToManyRelationship: ['GET', '/v1/subscriptionGroupVersions/{id}/relationships/localizations', 'limit', '', 'many:subscriptionGroupLocalizations'], + subscriptionGroups_createInstance: ['POST', '/v1/subscriptionGroups', '', 'subscriptionGroups', 'one:subscriptionGroups'], + subscriptionGroups_deleteInstance: ['DELETE', '/v1/subscriptionGroups/{id}', '', '', 'none'], + subscriptionGroups_getInstance: ['GET', '/v1/subscriptionGroups/{id}', 'fields[subscriptionGroups] fields[subscriptions] fields[subscriptionGroupLocalizations] fields[subscriptionGroupVersions] include limit[subscriptionGroupLocalizations] limit[subscriptions] limit[versions]', '', 'one:subscriptionGroups'], + subscriptionGroups_subscriptionGroupLocalizations_getToManyRelated: ['GET', '/v1/subscriptionGroups/{id}/subscriptionGroupLocalizations', 'fields[subscriptionGroupLocalizations] fields[subscriptionGroups] limit include', '', 'many:subscriptionGroupLocalizations'], + subscriptionGroups_subscriptionGroupLocalizations_getToManyRelationship: ['GET', '/v1/subscriptionGroups/{id}/relationships/subscriptionGroupLocalizations', 'limit', '', 'many:subscriptionGroupLocalizations'], + subscriptionGroups_subscriptions_getToManyRelated: ['GET', '/v1/subscriptionGroups/{id}/subscriptions', 'filter[productId] filter[name] filter[state] sort fields[subscriptions] fields[subscriptionLocalizations] fields[subscriptionAppStoreReviewScreenshots] fields[subscriptionGroups] fields[subscriptionIntroductoryOffers] fields[subscriptionPromotionalOffers] fields[subscriptionOfferCodes] fields[subscriptionPrices] fields[promotedPurchases] fields[subscriptionAvailabilities] fields[winBackOffers] fields[subscriptionImages] fields[subscriptionPlanAvailabilities] fields[subscriptionVersions] limit include limit[subscriptionLocalizations] limit[introductoryOffers] limit[promotionalOffers] limit[offerCodes] limit[prices] limit[winBackOffers] limit[images] limit[planAvailabilities] limit[versions]', '', 'many:subscriptions'], + subscriptionGroups_subscriptions_getToManyRelationship: ['GET', '/v1/subscriptionGroups/{id}/relationships/subscriptions', 'limit', '', 'many:subscriptions'], + subscriptionGroups_updateInstance: ['PATCH', '/v1/subscriptionGroups/{id}', '', 'subscriptionGroups', 'one:subscriptionGroups'], + subscriptionGroups_versions_getToManyRelated: ['GET', '/v1/subscriptionGroups/{id}/versions', 'filter[state] fields[subscriptionGroupVersions] fields[subscriptionGroups] fields[subscriptionGroupLocalizations] limit include limit[localizations]', '', 'many:subscriptionGroupVersions'], + subscriptionGroups_versions_getToManyRelationship: ['GET', '/v1/subscriptionGroups/{id}/relationships/versions', 'limit', '', 'many:subscriptionGroupVersions'], + subscriptionImagesV2_createInstance: ['POST', '/v2/subscriptionImages', '', 'subscriptionImages', 'one:subscriptionImages'], + subscriptionImagesV2_deleteInstance: ['DELETE', '/v2/subscriptionImages/{id}', '', '', 'none'], + subscriptionImagesV2_getInstance: ['GET', '/v2/subscriptionImages/{id}', 'fields[subscriptionImages]', '', 'one:subscriptionImages'], + subscriptionImagesV2_updateInstance: ['PATCH', '/v2/subscriptionImages/{id}', '', 'subscriptionImages', 'one:subscriptionImages'], + subscriptionImages_createInstance: ['POST', '/v1/subscriptionImages', '', 'subscriptionImages', 'one:subscriptionImages'], + subscriptionImages_deleteInstance: ['DELETE', '/v1/subscriptionImages/{id}', '', '', 'none'], + subscriptionImages_getInstance: ['GET', '/v1/subscriptionImages/{id}', 'fields[subscriptionImages] fields[subscriptions] include', '', 'one:subscriptionImages'], + subscriptionImages_updateInstance: ['PATCH', '/v1/subscriptionImages/{id}', '', 'subscriptionImages', 'one:subscriptionImages'], + subscriptionIntroductoryOffers_createInstance: ['POST', '/v1/subscriptionIntroductoryOffers', '', 'subscriptionIntroductoryOffers', 'one:subscriptionIntroductoryOffers'], + subscriptionIntroductoryOffers_deleteInstance: ['DELETE', '/v1/subscriptionIntroductoryOffers/{id}', '', '', 'none'], + subscriptionIntroductoryOffers_updateInstance: ['PATCH', '/v1/subscriptionIntroductoryOffers/{id}', '', 'subscriptionIntroductoryOffers', 'one:subscriptionIntroductoryOffers'], + subscriptionLocalizationsV2_createInstance: ['POST', '/v2/subscriptionLocalizations', '', 'subscriptionLocalizations', 'one:subscriptionLocalizations'], + subscriptionLocalizationsV2_deleteInstance: ['DELETE', '/v2/subscriptionLocalizations/{id}', '', '', 'none'], + subscriptionLocalizationsV2_getInstance: ['GET', '/v2/subscriptionLocalizations/{id}', 'fields[subscriptionLocalizations] fields[subscriptionVersions] include', '', 'one:subscriptionLocalizations'], + subscriptionLocalizationsV2_updateInstance: ['PATCH', '/v2/subscriptionLocalizations/{id}', '', 'subscriptionLocalizations', 'one:subscriptionLocalizations'], + subscriptionLocalizations_createInstance: ['POST', '/v1/subscriptionLocalizations', '', 'subscriptionLocalizations', 'one:subscriptionLocalizations'], + subscriptionLocalizations_deleteInstance: ['DELETE', '/v1/subscriptionLocalizations/{id}', '', '', 'none'], + subscriptionLocalizations_getInstance: ['GET', '/v1/subscriptionLocalizations/{id}', 'fields[subscriptionLocalizations] fields[subscriptions] include', '', 'one:subscriptionLocalizations'], + subscriptionLocalizations_updateInstance: ['PATCH', '/v1/subscriptionLocalizations/{id}', '', 'subscriptionLocalizations', 'one:subscriptionLocalizations'], + subscriptionOfferCodeCustomCodes_createInstance: ['POST', '/v1/subscriptionOfferCodeCustomCodes', '', 'subscriptionOfferCodeCustomCodes', 'one:subscriptionOfferCodeCustomCodes'], + subscriptionOfferCodeCustomCodes_getInstance: ['GET', '/v1/subscriptionOfferCodeCustomCodes/{id}', 'fields[subscriptionOfferCodeCustomCodes] fields[subscriptionOfferCodes] include', '', 'one:subscriptionOfferCodeCustomCodes'], + subscriptionOfferCodeCustomCodes_updateInstance: ['PATCH', '/v1/subscriptionOfferCodeCustomCodes/{id}', '', 'subscriptionOfferCodeCustomCodes', 'one:subscriptionOfferCodeCustomCodes'], + subscriptionOfferCodeOneTimeUseCodes_createInstance: ['POST', '/v1/subscriptionOfferCodeOneTimeUseCodes', '', 'subscriptionOfferCodeOneTimeUseCodes', 'one:subscriptionOfferCodeOneTimeUseCodes'], + subscriptionOfferCodeOneTimeUseCodes_getInstance: ['GET', '/v1/subscriptionOfferCodeOneTimeUseCodes/{id}', 'fields[subscriptionOfferCodeOneTimeUseCodes] fields[subscriptionOfferCodes] include', '', 'one:subscriptionOfferCodeOneTimeUseCodes'], + subscriptionOfferCodeOneTimeUseCodes_updateInstance: ['PATCH', '/v1/subscriptionOfferCodeOneTimeUseCodes/{id}', '', 'subscriptionOfferCodeOneTimeUseCodes', 'one:subscriptionOfferCodeOneTimeUseCodes'], + subscriptionOfferCodeOneTimeUseCodes_values_getToOneRelated: ['GET', '/v1/subscriptionOfferCodeOneTimeUseCodes/{id}/values', '', '', 'raw:text/csv'], + subscriptionOfferCodes_createInstance: ['POST', '/v1/subscriptionOfferCodes', '', 'subscriptionOfferCodes', 'one:subscriptionOfferCodes'], + subscriptionOfferCodes_customCodes_getToManyRelated: ['GET', '/v1/subscriptionOfferCodes/{id}/customCodes', 'fields[subscriptionOfferCodeCustomCodes] fields[subscriptionOfferCodes] limit include', '', 'many:subscriptionOfferCodeCustomCodes'], + subscriptionOfferCodes_customCodes_getToManyRelationship: ['GET', '/v1/subscriptionOfferCodes/{id}/relationships/customCodes', 'limit', '', 'many:subscriptionOfferCodeCustomCodes'], + subscriptionOfferCodes_getInstance: ['GET', '/v1/subscriptionOfferCodes/{id}', 'fields[subscriptionOfferCodes] fields[subscriptions] fields[subscriptionOfferCodeOneTimeUseCodes] fields[subscriptionOfferCodeCustomCodes] fields[subscriptionOfferCodePrices] include limit[customCodes] limit[oneTimeUseCodes] limit[prices]', '', 'one:subscriptionOfferCodes'], + subscriptionOfferCodes_oneTimeUseCodes_getToManyRelated: ['GET', '/v1/subscriptionOfferCodes/{id}/oneTimeUseCodes', 'fields[subscriptionOfferCodeOneTimeUseCodes] fields[subscriptionOfferCodes] limit include', '', 'many:subscriptionOfferCodeOneTimeUseCodes'], + subscriptionOfferCodes_oneTimeUseCodes_getToManyRelationship: ['GET', '/v1/subscriptionOfferCodes/{id}/relationships/oneTimeUseCodes', 'limit', '', 'many:subscriptionOfferCodeOneTimeUseCodes'], + subscriptionOfferCodes_prices_getToManyRelated: ['GET', '/v1/subscriptionOfferCodes/{id}/prices', 'filter[territory] fields[subscriptionOfferCodePrices] fields[territories] fields[subscriptionPricePoints] limit include', '', 'many:subscriptionOfferCodePrices'], + subscriptionOfferCodes_prices_getToManyRelationship: ['GET', '/v1/subscriptionOfferCodes/{id}/relationships/prices', 'limit', '', 'many:subscriptionOfferCodePrices'], + subscriptionOfferCodes_updateInstance: ['PATCH', '/v1/subscriptionOfferCodes/{id}', '', 'subscriptionOfferCodes', 'one:subscriptionOfferCodes'], + subscriptionPlanAvailabilities_availableTerritories_getToManyRelated: ['GET', '/v1/subscriptionPlanAvailabilities/{id}/availableTerritories', 'fields[territories] limit', '', 'many:territories'], + subscriptionPlanAvailabilities_availableTerritories_getToManyRelationship: ['GET', '/v1/subscriptionPlanAvailabilities/{id}/relationships/availableTerritories', 'limit', '', 'many:territories'], + subscriptionPlanAvailabilities_availableTerritories_replaceToManyRelationship: ['PATCH', '/v1/subscriptionPlanAvailabilities/{id}/relationships/availableTerritories', '', 'territories[]', 'none'], + subscriptionPlanAvailabilities_createInstance: ['POST', '/v1/subscriptionPlanAvailabilities', '', 'subscriptionPlanAvailabilities', 'one:subscriptionPlanAvailabilities'], + subscriptionPlanAvailabilities_getInstance: ['GET', '/v1/subscriptionPlanAvailabilities/{id}', 'fields[subscriptionPlanAvailabilities] fields[territories] include limit[availableTerritories]', '', 'one:subscriptionPlanAvailabilities'], + subscriptionPlanAvailabilities_updateInstance: ['PATCH', '/v1/subscriptionPlanAvailabilities/{id}', '', 'subscriptionPlanAvailabilities', 'one:subscriptionPlanAvailabilities'], + subscriptionPricePoints_adjustedEqualizations_getToManyRelated: ['GET', '/v1/subscriptionPricePoints/{id}/adjustedEqualizations', 'filter[territory] filter[subscription] filter[upfrontPricePointId] filter[planType]! fields[subscriptionPricePoints] fields[territories] limit include', '', 'many:subscriptionPricePoints'], + subscriptionPricePoints_equalizations_getToManyRelated: ['GET', '/v1/subscriptionPricePoints/{id}/equalizations', 'filter[territory] filter[subscription] filter[upfrontPricePointId] filter[planType] fields[subscriptionPricePoints] fields[territories] limit include', '', 'many:subscriptionPricePoints'], + subscriptionPricePoints_equalizations_getToManyRelationship: ['GET', '/v1/subscriptionPricePoints/{id}/relationships/equalizations', 'limit', '', 'many:subscriptionPricePoints'], + subscriptionPricePoints_getInstance: ['GET', '/v1/subscriptionPricePoints/{id}', 'fields[subscriptionPricePoints] fields[territories] include', '', 'one:subscriptionPricePoints'], + subscriptionPrices_createInstance: ['POST', '/v1/subscriptionPrices', '', 'subscriptionPrices', 'one:subscriptionPrices'], + subscriptionPrices_deleteInstance: ['DELETE', '/v1/subscriptionPrices/{id}', '', '', 'none'], + subscriptionPromotionalOffers_createInstance: ['POST', '/v1/subscriptionPromotionalOffers', '', 'subscriptionPromotionalOffers', 'one:subscriptionPromotionalOffers'], + subscriptionPromotionalOffers_deleteInstance: ['DELETE', '/v1/subscriptionPromotionalOffers/{id}', '', '', 'none'], + subscriptionPromotionalOffers_getInstance: ['GET', '/v1/subscriptionPromotionalOffers/{id}', 'fields[subscriptionPromotionalOffers] fields[subscriptions] fields[subscriptionPromotionalOfferPrices] include limit[prices]', '', 'one:subscriptionPromotionalOffers'], + subscriptionPromotionalOffers_prices_getToManyRelated: ['GET', '/v1/subscriptionPromotionalOffers/{id}/prices', 'filter[territory] fields[subscriptionPromotionalOfferPrices] fields[territories] fields[subscriptionPricePoints] limit include', '', 'many:subscriptionPromotionalOfferPrices'], + subscriptionPromotionalOffers_prices_getToManyRelationship: ['GET', '/v1/subscriptionPromotionalOffers/{id}/relationships/prices', 'limit', '', 'many:subscriptionPromotionalOfferPrices'], + subscriptionPromotionalOffers_updateInstance: ['PATCH', '/v1/subscriptionPromotionalOffers/{id}', '', 'subscriptionPromotionalOffers', 'one:subscriptionPromotionalOffers'], + subscriptionSubmissions_createInstance: ['POST', '/v1/subscriptionSubmissions', '', 'subscriptionSubmissions', 'one:subscriptionSubmissions'], + subscriptionVersions_createInstance: ['POST', '/v1/subscriptionVersions', '', 'subscriptionVersions', 'one:subscriptionVersions'], + subscriptionVersions_getInstance: ['GET', '/v1/subscriptionVersions/{id}', 'fields[subscriptionVersions] fields[subscriptions] fields[subscriptionImages] fields[subscriptionLocalizations] include limit[images] limit[localizations]', '', 'one:subscriptionVersions'], + subscriptionVersions_image_getToOneRelated: ['GET', '/v1/subscriptionVersions/{id}/image', 'fields[subscriptionImages]', '', 'one:subscriptionImages'], + subscriptionVersions_image_getToOneRelationship: ['GET', '/v1/subscriptionVersions/{id}/relationships/image', '', '', 'one:subscriptionImages'], + subscriptionVersions_images_getToManyRelated: ['GET', '/v1/subscriptionVersions/{id}/images', 'fields[subscriptionImages] limit', '', 'many:subscriptionImages'], + subscriptionVersions_images_getToManyRelationship: ['GET', '/v1/subscriptionVersions/{id}/relationships/images', 'limit', '', 'many:subscriptionImages'], + subscriptionVersions_localizations_getToManyRelated: ['GET', '/v1/subscriptionVersions/{id}/localizations', 'fields[subscriptionLocalizations] fields[subscriptionVersions] limit include', '', 'many:subscriptionLocalizations'], + subscriptionVersions_localizations_getToManyRelationship: ['GET', '/v1/subscriptionVersions/{id}/relationships/localizations', 'limit', '', 'many:subscriptionLocalizations'], + subscriptions_appStoreReviewScreenshot_getToOneRelated: ['GET', '/v1/subscriptions/{id}/appStoreReviewScreenshot', 'fields[subscriptionAppStoreReviewScreenshots] fields[subscriptions] include', '', 'one:subscriptionAppStoreReviewScreenshots'], + subscriptions_appStoreReviewScreenshot_getToOneRelationship: ['GET', '/v1/subscriptions/{id}/relationships/appStoreReviewScreenshot', '', '', 'one:subscriptionAppStoreReviewScreenshots'], + subscriptions_createInstance: ['POST', '/v1/subscriptions', '', 'subscriptions', 'one:subscriptions'], + subscriptions_deleteInstance: ['DELETE', '/v1/subscriptions/{id}', '', '', 'none'], + subscriptions_getInstance: ['GET', '/v1/subscriptions/{id}', 'fields[subscriptions] fields[subscriptionLocalizations] fields[subscriptionAppStoreReviewScreenshots] fields[subscriptionGroups] fields[subscriptionIntroductoryOffers] fields[subscriptionPromotionalOffers] fields[subscriptionOfferCodes] fields[subscriptionPrices] fields[promotedPurchases] fields[subscriptionAvailabilities] fields[winBackOffers] fields[subscriptionImages] fields[subscriptionPlanAvailabilities] fields[subscriptionVersions] include limit[images] limit[introductoryOffers] limit[offerCodes] limit[planAvailabilities] limit[prices] limit[promotionalOffers] limit[subscriptionLocalizations] limit[versions] limit[winBackOffers]', '', 'one:subscriptions'], + subscriptions_images_getToManyRelated: ['GET', '/v1/subscriptions/{id}/images', 'fields[subscriptionImages] fields[subscriptions] limit include', '', 'many:subscriptionImages'], + subscriptions_images_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/images', 'limit', '', 'many:subscriptionImages'], + subscriptions_introductoryOffers_deleteToManyRelationship: ['DELETE', '/v1/subscriptions/{id}/relationships/introductoryOffers', '', 'subscriptionIntroductoryOffers[]', 'none'], + subscriptions_introductoryOffers_getToManyRelated: ['GET', '/v1/subscriptions/{id}/introductoryOffers', 'filter[territory] fields[subscriptionIntroductoryOffers] fields[subscriptions] fields[territories] fields[subscriptionPricePoints] limit include', '', 'many:subscriptionIntroductoryOffers'], + subscriptions_introductoryOffers_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/introductoryOffers', 'limit', '', 'many:subscriptionIntroductoryOffers'], + subscriptions_offerCodes_getToManyRelated: ['GET', '/v1/subscriptions/{id}/offerCodes', 'filter[territory] fields[subscriptionOfferCodes] fields[subscriptions] fields[subscriptionOfferCodeOneTimeUseCodes] fields[subscriptionOfferCodeCustomCodes] fields[subscriptionOfferCodePrices] limit include limit[oneTimeUseCodes] limit[customCodes] limit[prices]', '', 'many:subscriptionOfferCodes'], + subscriptions_offerCodes_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/offerCodes', 'limit', '', 'many:subscriptionOfferCodes'], + subscriptions_planAvailabilities_getToManyRelated: ['GET', '/v1/subscriptions/{id}/planAvailabilities', 'fields[subscriptionPlanAvailabilities] fields[territories] limit include limit[availableTerritories]', '', 'many:subscriptionPlanAvailabilities'], + subscriptions_planAvailabilities_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/planAvailabilities', 'limit', '', 'many:subscriptionPlanAvailabilities'], + subscriptions_pricePoints_getToManyRelated: ['GET', '/v1/subscriptions/{id}/pricePoints', 'filter[territory] filter[upfrontPricePointId] filter[planType] fields[subscriptionPricePoints] fields[territories] limit include', '', 'many:subscriptionPricePoints'], + subscriptions_pricePoints_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/pricePoints', 'limit', '', 'many:subscriptionPricePoints'], + subscriptions_prices_deleteToManyRelationship: ['DELETE', '/v1/subscriptions/{id}/relationships/prices', '', 'subscriptionPrices[]', 'none'], + subscriptions_prices_getToManyRelated: ['GET', '/v1/subscriptions/{id}/prices', 'filter[planType] filter[subscriptionPricePoint] filter[territory] fields[subscriptionPrices] fields[territories] fields[subscriptionPricePoints] limit include', '', 'many:subscriptionPrices'], + subscriptions_prices_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/prices', 'limit', '', 'many:subscriptionPrices'], + subscriptions_promotedPurchase_getToOneRelated: ['GET', '/v1/subscriptions/{id}/promotedPurchase', 'fields[promotedPurchases] fields[inAppPurchases] fields[subscriptions] include', '', 'one:promotedPurchases'], + subscriptions_promotedPurchase_getToOneRelationship: ['GET', '/v1/subscriptions/{id}/relationships/promotedPurchase', '', '', 'one:promotedPurchases'], + subscriptions_promotionalOffers_getToManyRelated: ['GET', '/v1/subscriptions/{id}/promotionalOffers', 'filter[territory] fields[subscriptionPromotionalOffers] fields[subscriptions] fields[subscriptionPromotionalOfferPrices] limit include limit[prices]', '', 'many:subscriptionPromotionalOffers'], + subscriptions_promotionalOffers_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/promotionalOffers', 'limit', '', 'many:subscriptionPromotionalOffers'], + subscriptions_subscriptionAvailability_getToOneRelated: ['GET', '/v1/subscriptions/{id}/subscriptionAvailability', 'fields[subscriptionAvailabilities] fields[territories] include limit[availableTerritories]', '', 'one:subscriptionAvailabilities'], + subscriptions_subscriptionAvailability_getToOneRelationship: ['GET', '/v1/subscriptions/{id}/relationships/subscriptionAvailability', '', '', 'one:subscriptionAvailabilities'], + subscriptions_subscriptionLocalizations_getToManyRelated: ['GET', '/v1/subscriptions/{id}/subscriptionLocalizations', 'fields[subscriptionLocalizations] fields[subscriptions] limit include', '', 'many:subscriptionLocalizations'], + subscriptions_subscriptionLocalizations_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/subscriptionLocalizations', 'limit', '', 'many:subscriptionLocalizations'], + subscriptions_updateInstance: ['PATCH', '/v1/subscriptions/{id}', '', 'subscriptions', 'one:subscriptions'], + subscriptions_versions_getToManyRelated: ['GET', '/v1/subscriptions/{id}/versions', 'filter[state] fields[subscriptionVersions] fields[subscriptions] fields[subscriptionImages] fields[subscriptionLocalizations] limit include limit[images] limit[localizations]', '', 'many:subscriptionVersions'], + subscriptions_versions_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/versions', 'limit', '', 'many:subscriptionVersions'], + subscriptions_winBackOffers_getToManyRelated: ['GET', '/v1/subscriptions/{id}/winBackOffers', 'fields[winBackOffers] fields[winBackOfferPrices] limit include limit[prices]', '', 'many:winBackOffers'], + subscriptions_winBackOffers_getToManyRelationship: ['GET', '/v1/subscriptions/{id}/relationships/winBackOffers', 'limit', '', 'many:winBackOffers'], + territories_getCollection: ['GET', '/v1/territories', 'fields[territories] limit', '', 'many:territories'], + territoryAvailabilities_updateInstance: ['PATCH', '/v1/territoryAvailabilities/{id}', '', 'territoryAvailabilities', 'one:territoryAvailabilities'], + userInvitations_createInstance: ['POST', '/v1/userInvitations', '', 'userInvitations', 'one:userInvitations'], + userInvitations_deleteInstance: ['DELETE', '/v1/userInvitations/{id}', '', '', 'none'], + userInvitations_getCollection: ['GET', '/v1/userInvitations', 'filter[email] filter[roles] filter[visibleApps] sort fields[userInvitations] fields[apps] limit include limit[visibleApps]', '', 'many:userInvitations'], + userInvitations_getInstance: ['GET', '/v1/userInvitations/{id}', 'fields[userInvitations] fields[apps] include limit[visibleApps]', '', 'one:userInvitations'], + userInvitations_visibleApps_getToManyRelated: ['GET', '/v1/userInvitations/{id}/visibleApps', 'fields[apps] limit', '', 'many:apps'], + userInvitations_visibleApps_getToManyRelationship: ['GET', '/v1/userInvitations/{id}/relationships/visibleApps', 'limit', '', 'many:apps'], + users_deleteInstance: ['DELETE', '/v1/users/{id}', '', '', 'none'], + users_getCollection: ['GET', '/v1/users', 'filter[username] filter[roles] filter[visibleApps] sort fields[users] fields[apps] limit include limit[visibleApps]', '', 'many:users'], + users_getInstance: ['GET', '/v1/users/{id}', 'fields[users] fields[apps] include limit[visibleApps]', '', 'one:users'], + users_updateInstance: ['PATCH', '/v1/users/{id}', '', 'users', 'one:users'], + users_visibleApps_createToManyRelationship: ['POST', '/v1/users/{id}/relationships/visibleApps', '', 'apps[]', 'none'], + users_visibleApps_deleteToManyRelationship: ['DELETE', '/v1/users/{id}/relationships/visibleApps', '', 'apps[]', 'none'], + users_visibleApps_getToManyRelated: ['GET', '/v1/users/{id}/visibleApps', 'fields[apps] limit', '', 'many:apps'], + users_visibleApps_getToManyRelationship: ['GET', '/v1/users/{id}/relationships/visibleApps', 'limit', '', 'many:apps'], + users_visibleApps_replaceToManyRelationship: ['PATCH', '/v1/users/{id}/relationships/visibleApps', '', 'apps[]', 'none'], + webhookDeliveries_createInstance: ['POST', '/v1/webhookDeliveries', '', 'webhookDeliveries', 'one:webhookDeliveries'], + webhookPings_createInstance: ['POST', '/v1/webhookPings', '', 'webhookPings', 'one:webhookPings'], + webhooks_createInstance: ['POST', '/v1/webhooks', '', 'webhooks', 'one:webhooks'], + webhooks_deleteInstance: ['DELETE', '/v1/webhooks/{id}', '', '', 'none'], + webhooks_deliveries_getToManyRelated: ['GET', '/v1/webhooks/{id}/deliveries', 'filter[deliveryState] filter[createdDateGreaterThanOrEqualTo] filter[createdDateLessThan] fields[webhookDeliveries] fields[webhookEvents] limit include', '', 'many:webhookDeliveries'], + webhooks_deliveries_getToManyRelationship: ['GET', '/v1/webhooks/{id}/relationships/deliveries', 'limit', '', 'many:webhookDeliveries'], + webhooks_getInstance: ['GET', '/v1/webhooks/{id}', 'fields[webhooks] fields[apps] include', '', 'one:webhooks'], + webhooks_updateInstance: ['PATCH', '/v1/webhooks/{id}', '', 'webhooks', 'one:webhooks'], + winBackOffers_createInstance: ['POST', '/v1/winBackOffers', '', 'winBackOffers', 'one:winBackOffers'], + winBackOffers_deleteInstance: ['DELETE', '/v1/winBackOffers/{id}', '', '', 'none'], + winBackOffers_getInstance: ['GET', '/v1/winBackOffers/{id}', 'fields[winBackOffers] fields[winBackOfferPrices] include limit[prices]', '', 'one:winBackOffers'], + winBackOffers_prices_getToManyRelated: ['GET', '/v1/winBackOffers/{id}/prices', 'filter[territory] fields[winBackOfferPrices] fields[territories] fields[subscriptionPricePoints] limit include', '', 'many:winBackOfferPrices'], + winBackOffers_prices_getToManyRelationship: ['GET', '/v1/winBackOffers/{id}/relationships/prices', 'limit', '', 'many:winBackOfferPrices'], + winBackOffers_updateInstance: ['PATCH', '/v1/winBackOffers/{id}', '', 'winBackOffers', 'one:winBackOffers'], +} as const; diff --git a/cli/api/client.ts b/cli/api/client.ts new file mode 100644 index 00000000..de16aa9d --- /dev/null +++ b/cli/api/client.ts @@ -0,0 +1,341 @@ +// Generic client for every App Store Connect and Google Play operation: the generated rows (apple.gen.ts, play.gen.ts) +// plus a few helpers instead of a function per endpoint. Request building is pure (tests cover URLs and parameters); +// sending retries 429 / 5xx with backoff (Retry-After honoured) and follows pages. +// Auth: the App Store Connect team key JWT from cli/apple/asc.ts, the Play service account token from +// cli/lib/google-auth.ts (one scope per Google API). Credentials only come from env or .storebound/. +import { APPLE_OPS, APPLE_SPEC } from './apple.gen'; +import { PLAY_APIS, PLAY_OPS } from './play.gen'; +import type { AppleBody, AppleOp, AppleParams, AppleResponse, ParamValue, PlayBody, PlayOp, PlayParams, PlayResponse } from './types'; +import type { Store } from './gate'; +import { errorBody } from '../lib/http'; + +export interface QueryParam { name: string; required: boolean; repeated: boolean } + +export interface Op { + store: Store; + id: string; + method: string; + /** Path template: Apple "/v1/apps/{id}", Google "androidpublisher/v3/applications/{packageName}/edits" */ + path: string; + query: QueryParam[]; + /** Apple: resource type ("type", "type[]", "json", ""). Google: request schema name ("" for none). */ + request: string; + /** Apple: "many:type" | "one:type" | "json" | "raw:" | "none". Google: response schema name. */ + response: string; + /** Google: m media upload, d media download, p pageToken paging, t token paging. Apple: "". */ + flags: string; + /** Google API name (androidpublisher, playdeveloperreporting); "" for Apple. */ + api: string; + /** Google: the shape of each {+param}, e.g. name -> "apps/* /crashRateMetricSet" (no space; * is one segment). */ + shapes: Record; +} + +/** Query parameters every Google API accepts on top of a method's own. */ +export const GOOGLE_GLOBAL = ['fields', 'prettyPrint', 'quotaUser']; + +const parseQuery = (s: string): QueryParam[] => (s ? s.split(' ') : []).map(t => ({ name: t.replace(/[!*]/g, ''), required: t.includes('!'), repeated: t.includes('*') })); + +const cache: Partial> = {}; +export function allOps(store: Store): Op[] { + if (cache[store]) return cache[store]!; + const rows = store === 'apple' ? APPLE_OPS as Record : PLAY_OPS as Record; + return (cache[store] = Object.entries(rows).map(([id, r]) => ({ + store, id, method: r[0]!, path: r[1]!, query: parseQuery(r[2]!), request: r[3]!, response: r[4]!, flags: r[5] ?? '', + api: store === 'play' ? id.split('.')[0]! : '', + shapes: Object.fromEntries((r[6] ?? '').split(' ').filter(Boolean).map(s => [s.slice(0, s.indexOf('=')), s.slice(s.indexOf('=') + 1)])), + }))); +} + +export function getOp(store: Store, id: string): Op | undefined { + const ops = allOps(store); + return ops.find(o => o.id === id) ?? (store === 'play' ? ops.find(o => o.id.slice(o.api.length + 1) === id) : undefined); +} + +const esc = (s: string) => s.replace(/[.*+?^$()|[\]\\]/g, '\\$&'); +/** "apps/* /crashRateMetricSet" (no space) -> a regex source; * is one path segment. */ +const shapeSource = (shape: string) => shape.split('*').map(esc).join('[^/]+'); + +/** Path template -> RegExp with one group per path parameter ({+param}s narrowed by their shape). */ +function templateRe(op: Op): { re: RegExp; names: string[]; fixed: number } { + const names: string[] = []; + const body = op.path.replace(/^\//, '').split(/(\{\+?[^}]+\})/).map(part => { + const m = /^\{(\+?)([^}]+)\}$/.exec(part); + if (!m) return esc(part); + names.push(m[2]!); + if (!m[1]) return '([^/:]+)'; + const shape = op.shapes[m[2]!]; + return shape ? `(${shapeSource(shape)})` : '(.+)'; + }).join(''); + return { re: new RegExp('^' + body + '$'), names, fixed: op.path.split('{')[0]!.length }; +} + +/** + * An operation from what the user typed: an operation id (Google ids also without the API prefix), or "METHOD path" + * with a concrete path (and query string), whose values become parameters. + */ +export function resolveOp(store: Store, ref: string, path?: string): { op: Op; params: Record } { + if (path === undefined) { + const op = getOp(store, ref); + if (!op) throw new Error(`${store}: no operation "${ref}" (storebound api list --store ${store} --search )`); + return { op, params: {} }; + } + const method = ref.toUpperCase(); + if (!/^(GET|POST|PUT|PATCH|DELETE)$/.test(method)) throw new Error(`"${ref}": expected an operation id or METHOD path`); + let p = path.replace(/^https:\/\/[^/]+/, ''); + if (store === 'play') p = p.replace(/^\/?upload\//, '/'); + const [rawPath, qs = ''] = p.split('?', 2) as [string, string?]; + const clean = decodeURI(rawPath).replace(/^\//, ''); + const hits = allOps(store).filter(o => o.method === method).map(o => ({ o, t: templateRe(o) })) + .map(x => ({ ...x, m: x.t.re.exec(clean) })).filter(x => x.m).sort((a, b) => b.t.fixed - a.t.fixed); + const best = hits[0]; + if (!best) throw new Error(`${store}: no ${method} operation matches ${rawPath}`); + const params: Record = {}; + best.t.names.forEach((n, i) => { params[n] = best.m![i + 1]!; }); + for (const [k, v] of new URLSearchParams(qs)) params[k] = v; + return { op: best.o, params }; +} + +export interface BuiltRequest { + op: Op; + method: string; + url: string; + /** JSON text or file bytes */ + body?: string | Uint8Array; + contentType?: string; + /** Apple vendor media types (perfPowerMetrics: application/vnd.apple.xcode-metrics+json, reports: application/a-gzip) */ + accept?: string; +} + +const encSeg = (v: string) => encodeURIComponent(v); +// Apple writes brackets and commas plainly in its docs and links (filter[app]=1,2); keep them readable +const encName = (k: string) => encodeURIComponent(k).replace(/%5B/gi, '[').replace(/%5D/gi, ']'); +const encVal = (v: string) => encodeURIComponent(v).replace(/%2C/gi, ','); +const str = (v: string | number | boolean) => String(v); + +/** Builds the URL and body of one call. Throws on a missing path / required parameter or an unknown parameter. Pure. */ +export function buildRequest(op: Op, params: Record, body?: unknown, o: { upload?: { bytes: Uint8Array; contentType: string }; download?: boolean } = {}): BuiltRequest { + const left = new Map(Object.entries(params).filter(([, v]) => v !== undefined) as [string, ParamValue][]); + const path = op.path.replace(/\{(\+?)([^}]+)\}/g, (_, plus: string, name: string) => { + const v = left.get(name); + if (v === undefined || v === '') throw new Error(`${op.id}: path parameter "${name}" is required`); + left.delete(name); + const s = Array.isArray(v) ? v.join(',') : str(v as string); + const shape = op.shapes[name]; + if (shape && !new RegExp(`^${shapeSource(shape)}$`).test(s)) throw new Error(`${op.id}: "${name}" must look like ${shape} (* is one segment), got "${s}"`); + return plus ? s.split('/').map(encSeg).join('/') : encSeg(s); + }); + const known = new Map(op.query.map(q => [q.name, q] as const)); + for (const q of op.query) if (q.required && !left.has(q.name)) throw new Error(`${op.id}: query parameter "${q.name}" is required`); + const parts: string[] = []; + for (const [k, v] of left) { + const q = known.get(k); + if (!q && !(op.store === 'play' && GOOGLE_GLOBAL.includes(k))) { + const names = op.query.map(x => x.name); + throw new Error(`${op.id}: unknown parameter "${k}"${names.length ? ` (takes: ${names.slice(0, 30).join(', ')}${names.length > 30 ? ', …' : ''})` : ' (takes no query parameters)'}`); + } + const values = Array.isArray(v) ? v.map(str) : [str(v as string)]; + if (q?.repeated) for (const x of values) parts.push(`${encName(k)}=${encVal(x)}`); + else parts.push(`${encName(k)}=${encVal(values.join(','))}`); + } + let base: string; + if (op.store === 'apple') base = APPLE_SPEC.base + path; + else { + const api = PLAY_APIS[op.api as keyof typeof PLAY_APIS]; + if (!api) throw new Error(`${op.id}: unknown Google API ${op.api}`); + const upload = !!o.upload && op.flags.includes('m'); + if (o.upload && !upload) throw new Error(`${op.id}: takes no file upload`); + base = api.root + (upload ? 'upload/' : '') + path; + if (upload) parts.unshift('uploadType=media'); + if (o.download) { + if (!op.flags.includes('d')) throw new Error(`${op.id}: has no media download`); + parts.push('alt=media'); + } + } + const req: BuiltRequest = { op, method: op.method, url: base + (parts.length ? '?' + parts.join('&') : '') }; + if (op.response.startsWith('raw:')) req.accept = op.response.slice(4); + if (o.upload) { req.body = o.upload.bytes; req.contentType = o.upload.contentType; } + else if (body !== undefined) { + if (op.method === 'GET' || op.method === 'DELETE' && op.store === 'play') throw new Error(`${op.id}: ${op.method} takes no body`); + req.body = JSON.stringify(body); + req.contentType = 'application/json'; + } + return req; +} + +// ---------------------------------------------------------------------------------------------------- sending + +/** Authorization header value for a request ("Bearer ..."). */ +export type Auth = (req: BuiltRequest) => Promise | string; + +export interface SendOptions { + fetch?: (url: string, init: RequestInit) => Promise; + sleep?: (ms: number) => Promise; + /** attempts for 429 / 5xx / network errors (default 5) */ + attempts?: number; + /** each retry is logged here (stderr in the CLI) */ + onRetry?: (msg: string) => void; +} + +export interface ApiResult { + status: number; + /** parsed JSON, or null for an empty body */ + json?: unknown; + /** non-JSON body (gzip reports, media downloads) */ + bytes?: Uint8Array; + /** Apple's X-Rate-Limit header ("user-hour-lim:3600;user-hour-rem:3412;") */ + rateLimit?: string; +} + +export class ApiError extends Error { + constructor(readonly status: number, message: string) { super(message); } +} + +/** Wait before retry `attempt` (1-based): Retry-After when the server sent one (max 60 s), else 1, 2, 4, 8 ... s (max 30 s). */ +export function backoffMs(attempt: number, retryAfter?: string | null): number { + const s = retryAfter ? Number(retryAfter) : NaN; + if (Number.isFinite(s) && s >= 0) return Math.min(s, 60) * 1000; + return Math.min(1000 * 2 ** (attempt - 1), 30_000); +} + +const short = (url: string) => url.replace(/^https:\/\/[^/]+/, '').replace(/\?.*$/, ''); + +export async function send(req: BuiltRequest, auth: Auth, o: SendOptions = {}): Promise { + const doFetch = o.fetch ?? ((u: string, i: RequestInit) => fetch(u, i)); + const sleep = o.sleep ?? ((ms: number) => Bun.sleep(ms)); + const attempts = o.attempts ?? 5; + for (let attempt = 1; ; attempt++) { + const headers: Record = { Authorization: await auth(req) }; + if (req.contentType) headers['Content-Type'] = req.contentType; + if (req.accept) headers.Accept = req.accept; + let r: Response; + try { + r = await doFetch(req.url, { method: req.method, headers, body: req.body as BodyInit | undefined }); + } catch (e) { + if (attempt >= attempts) throw e; + o.onRetry?.(`${req.method} ${short(req.url)}: ${(e as Error).message}, retry ${attempt}/${attempts - 1}`); + await sleep(backoffMs(attempt)); + continue; + } + if ((r.status === 429 || r.status >= 500) && attempt < attempts) { + const wait = backoffMs(attempt, r.headers.get('retry-after')); + await r.body?.cancel(); + o.onRetry?.(`${req.method} ${short(req.url)} -> ${r.status}, retry ${attempt}/${attempts - 1} in ${Math.round(wait / 1000)} s`); + await sleep(wait); + continue; + } + const rateLimit = r.headers.get('x-rate-limit') ?? undefined; + const type = r.headers.get('content-type') ?? ''; + if (!r.ok) throw new ApiError(r.status, `${req.method} ${short(req.url)} -> ${r.status} ${errorBody(await r.text())}`); + if (/json/.test(type) || (!type && r.status !== 204)) { + const t = await r.text(); + return { status: r.status, json: t ? JSON.parse(t) : null, rateLimit }; + } + if (r.status === 204) return { status: 204, json: null, rateLimit }; + return { status: r.status, bytes: new Uint8Array(await r.arrayBuffer()), rateLimit }; + } +} + +/** Merges two pages: arrays are concatenated (Apple's included de-duplicated), the page tokens dropped. Pure. */ +export function mergePages(a: Record, b: Record): Record { + const out: Record = { ...a }; + for (const [k, v] of Object.entries(b)) { + const cur = out[k]; + if (Array.isArray(cur) && Array.isArray(v)) { + if (k === 'included') { + const seen = new Set(cur.map(x => `${(x as { type?: string }).type}/${(x as { id?: string }).id}`)); + out[k] = [...cur, ...v.filter(x => !seen.has(`${(x as { type?: string }).type}/${(x as { id?: string }).id}`))]; + } else out[k] = [...cur, ...v]; + } else if (cur === undefined) out[k] = v; + } + delete out.nextPageToken; + if (out.tokenPagination) delete out.tokenPagination; + if (out.links && typeof out.links === 'object') out.links = { ...(out.links as Record), next: undefined }; + return out; +} + +/** The next page of a result, or null. Apple: links.next (same host only, the token never leaves it); Google: the page token. */ +export function nextRequest(req: BuiltRequest, json: unknown): BuiltRequest | null { + const j = (json ?? {}) as { links?: { next?: string }; nextPageToken?: string; tokenPagination?: { nextPageToken?: string } }; + if (req.op.store === 'apple') { + const next = j.links?.next; + if (!next) return null; + if (!next.startsWith(APPLE_SPEC.base + '/')) throw new Error(`refusing to follow a next link to another host: ${next.slice(0, 80)}`); + return { ...req, url: next }; + } + const [name, token] = req.op.flags.includes('p') ? ['pageToken', j.nextPageToken] : req.op.flags.includes('t') ? ['token', j.tokenPagination?.nextPageToken] : ['', undefined]; + if (!token) return null; + const u = new URL(req.url); + u.searchParams.set(name, token); + return { ...req, url: u.toString() }; +} + +/** Every page of a GET (or a paged query), merged. `maxPages` guards against a server that never stops. */ +export async function sendAll(req: BuiltRequest, auth: Auth, o: SendOptions & { maxPages?: number; onPage?: (n: number) => void } = {}): Promise { + let first = await send(req, auth, o); + let pages = 1; + let cur: BuiltRequest | null = req; + let last = first.json; + while ((cur = nextRequest(cur, last))) { + if (pages >= (o.maxPages ?? 1000)) throw new Error(`more than ${o.maxPages ?? 1000} pages: stopped`); + const r = await send(cur, auth, o); + pages++; + o.onPage?.(pages); + last = r.json; + first = { ...first, json: mergePages(first.json as Record, r.json as Record), rateLimit: r.rateLimit ?? first.rateLimit }; + } + return { ...first, pages }; +} + +// ---------------------------------------------------------------------------------------------------- typed facades + +/** Typed App Store Connect client: `api.call('apps_getCollection', { 'filter[bundleId]': 'com.example.app' })`. */ +export function appleApi(auth: Auth, o: SendOptions = {}) { + const build = (op: O, params: AppleParams, body?: AppleBody) => + buildRequest(getOp('apple', op)!, params as Record, body); + const out = (r: ApiResult) => (r.bytes ?? r.json ?? null); + return { + build, + async call(op: O, params: AppleParams, body?: AppleBody): Promise> { + return out(await send(build(op, params, body), auth, o)) as AppleResponse; + }, + async all(op: O, params: AppleParams): Promise> { + return out(await sendAll(build(op, params), auth, o)) as AppleResponse; + }, + }; +} + +/** Typed Google Play client: `api.call('androidpublisher.edits.tracks.list', { packageName, editId })`. */ +export function playApi(auth: Auth, o: SendOptions = {}) { + const build = (op: O, params: PlayParams, body?: PlayBody) => + body instanceof Uint8Array + ? buildRequest(getOp('play', op)!, params as Record, undefined, { upload: { bytes: body, contentType: 'application/octet-stream' } }) + : buildRequest(getOp('play', op)!, params as Record, body); + const out = (r: ApiResult) => (r.bytes ?? r.json ?? {}); + return { + build, + async call(op: O, params: PlayParams, body?: PlayBody): Promise> { + return out(await send(build(op, params, body), auth, o)) as PlayResponse; + }, + async all(op: O, params: PlayParams): Promise> { + return out(await sendAll(build(op, params), auth, o)) as PlayResponse; + }, + }; +} + +/** Auth from the project's credentials (env or .storebound/): Apple team key JWT, or a Play token for the op's API scope. */ +export async function authFor(store: Store, root: string): Promise { + if (store === 'apple') { + const { ascJwt } = await import('../apple/asc'); + const { jwt } = ascJwt(root); + return () => 'Bearer ' + jwt(); + } + const { playServiceAccount } = await import('../lib/credentials'); + const { tokenSource } = await import('../lib/google-auth'); + const sa = playServiceAccount(root); + const sources = new Map Promise>(); + return async req => { + const scope = PLAY_APIS[req.op.api as keyof typeof PLAY_APIS].scope; + if (!sources.has(scope)) sources.set(scope, tokenSource(sa, scope)); + return 'Bearer ' + (await sources.get(scope)!()); + }; +} diff --git a/cli/api/gate.ts b/cli/api/gate.ts new file mode 100644 index 00000000..2a53a7c2 --- /dev/null +++ b/cli/api/gate.ts @@ -0,0 +1,99 @@ +// Write gating for `storebound api`: which operations read, which write, and which only the owner may run. +// +// read GET (and a few POSTs that only compute or query, listed below): runs right away. +// write any other POST / PATCH / PUT / DELETE: prints the exact request; sent only with --yes in an interactive +// terminal, never under MCP (`storebound mcp`) or the desktop app (`storebound serve`). +// owner writes that submit, release, delete, cancel, change prices, invite or remove testers, send review replies, +// start or stop experiments, refund or rotate keys (AGENTS.md rule 1): a write that also needs the operation id +// typed at the prompt. Never reachable through MCP or serve. +// Pure; tests/api.test.ts covers every rule. + +export type Store = 'apple' | 'play'; +export type GateKind = 'read' | 'write' | 'owner'; + +/** POSTs that change nothing (vitals queries, price conversion, batch reads). */ +export const READ_POSTS: RegExp[] = [ + /^playdeveloperreporting\..*\.query$/, + /^androidpublisher\.monetization\.convertRegionPrices$/, + /^androidpublisher\.monetization\..*\.batchGet$/, +]; + +/** [pattern over "METHOD operationId", why]: the curated owner-only list. */ +export const OWNER_ONLY: Record = { + apple: [ + [/^DELETE /, 'deletes'], + [/^(POST|PATCH) \w*Submissions?(V\d)?_(create|update)Instance$/, 'submits for review (or cancels a submission)'], + [/^POST (?!appStoreVersionPhasedReleases)\w*(Releases|ReleaseRequests)_createInstance$/, 'releases'], + [/^PATCH appStoreVersionPhasedReleases_updateInstance$/, 'pauses, resumes or completes a phased release'], + [/^PATCH appStoreVersionExperiments(V2)?_updateInstance$/, 'starts or stops a product page test'], + [/^POST (appPriceSchedules|inAppPurchasePriceSchedules|subscriptionPrices)_createInstance$/, 'changes prices'], + [/^POST customerReviewResponses_createInstance$/, 'sends a public review reply'], + [/^POST (betaTesterInvitations|betaTesters|userInvitations)_createInstance$/, 'invites testers or users'], + [/^POST (betaGroups_betaTesters|betaTesters_betaGroups|betaTesters_builds|builds_individualTesters)_createToManyRelationship$/, 'adds testers'], + [/^(POST|PATCH) users_(updateInstance|visibleApps_\w+)$/, 'changes a team member\'s access'], + ], + play: [ + [/^DELETE /, 'deletes'], + [/^POST \S+\.(batchDelete|deleteall)$/, 'deletes'], + [/^POST androidpublisher\.edits\.commit$/, 'publishes the edit (releases, listing and graphics go live)'], + [/^POST \S+\.(cancel|refund|refundexternaltransaction|reviewrefund|revoke)$/, 'cancels, refunds or revokes'], + [/^POST androidpublisher\.apprecovery\.deploy$/, 'deploys an app recovery action'], + [/^POST \S+\.(activate|deactivate|archive|batchUpdateStates)$/, 'makes products or offers live (or takes them down)'], + [/^POST androidpublisher\.appstoreappsreview\.updateappstorehostedapppublishstatus$/, 'changes a publish status'], + [/^POST \S+\.(migratePrices|batchMigratePrices)$/, 'changes prices for existing subscribers'], + [/^POST androidpublisher\.reviews\.reply$/, 'sends a public review reply'], + [/^(PUT|PATCH) androidpublisher\.edits\.testers\.(update|patch)$/, 'changes the testers of a track'], + [/^(POST|PATCH) androidpublisher\.(users|grants)\.(create|patch)$/, 'invites users or changes their permissions'], + [/^POST androidpublisher\.appsigning\.(enrollApp|rotateAppSigningKey)$/, 'changes app signing (irreversible)'], + ], +}; + +/** Why an operation is owner-only, or null. */ +export function ownerReason(store: Store, id: string, method: string): string | null { + const key = `${method.toUpperCase()} ${id}`; + return OWNER_ONLY[store].find(([re]) => re.test(key))?.[1] ?? null; +} + +/** Resource of an operation, for counts: Apple's first path segment (/v1//...), Google's id without the method. */ +export const resourceOf = (r: { store: Store; id: string; path: string }): string => + r.store === 'apple' ? r.path.split('/')[2]! : r.id.split('.').slice(0, -1).join('.'); + +export function gateOf(store: Store, id: string, method: string): GateKind { + const m = method.toUpperCase(); + if (m === 'GET') return 'read'; + if (store === 'play' && m === 'POST' && READ_POSTS.some(re => re.test(id))) return 'read'; + return ownerReason(store, id, m) ? 'owner' : 'write'; +} + +export interface GateInput { + kind: GateKind; + method: string; + /** --dry */ + dry: boolean; + /** --yes */ + yes: boolean; + /** stdin and stdout are a terminal */ + tty: boolean; + /** under `storebound mcp` or `storebound serve` (STOREBOUND_MCP / STOREBOUND_SERVE) */ + agent: boolean; + /** `storebound api get` (the MCP api_get tool): plain GETs only */ + getOnly: boolean; +} + +export type Decision = + | { action: 'send' } + | { action: 'confirm'; typed: true } + | { action: 'dry'; why: string } + | { action: 'refuse'; why: string }; + +/** What to do with one call. Pure. */ +export function decide(g: GateInput): Decision { + if (g.getOnly && g.method.toUpperCase() !== 'GET') return { action: 'refuse', why: 'api get runs GET operations only' }; + if (g.kind === 'read') return g.dry ? { action: 'dry', why: '--dry' } : { action: 'send' }; + if (g.agent) return { action: 'refuse', why: g.kind === 'owner' + ? 'owner-only operation: never through MCP or the desktop app; the owner runs it in a terminal' + : 'writes through `storebound api` are not available to MCP or the desktop app; run it in a terminal' }; + if (g.dry || !g.yes) return { action: 'dry', why: g.dry ? '--dry' : 'writes are dry by default: add --yes (in a terminal) to send' }; + if (!g.tty) return { action: 'dry', why: 'not an interactive terminal: writes through `storebound api` are only sent from one' }; + return g.kind === 'owner' ? { action: 'confirm', typed: true } : { action: 'send' }; +} diff --git a/cli/api/play.gen.ts b/cli/api/play.gen.ts new file mode 100644 index 00000000..577aae29 --- /dev/null +++ b/cli/api/play.gen.ts @@ -0,0 +1,181 @@ +// GENERATED by tools/gen-api.ts from specs/androidpublisher_v3.discovery.json (Google Play Android Developer API v3, revision 20261008, https://www.googleapis.com/discovery/v1/apis/androidpublisher/v3/rest, downloaded 2026-10-11) and specs/playdeveloperreporting_v1beta1.discovery.json (Google Play Developer Reporting API v1beta1, revision 20261008, https://playdeveloperreporting.googleapis.com/$discovery/rest?version=v1beta1, downloaded 2026-10-11). Do not edit: run `bun tools/gen-api.ts` (CI checks it is fresh). +// One row per method: [HTTP method, path ({p} one segment, {+p} may hold slashes), query parameters ("name", "name!" +// required, "name*" repeated), request schema, response schema, flags (m media upload, d media download, p pageToken +// paging, t token paging)]. The API is the first part of the id. +export const PLAY_APIS = { + androidpublisher: { title: 'Google Play Android Developer API v3', version: 'v3', revision: '20261008', root: 'https://androidpublisher.googleapis.com/', scope: 'https://www.googleapis.com/auth/androidpublisher', sha256: '668757f25cbe47e97f782758e818f1e18bf7da4e2049180ef0e49b3d0e465efc' }, + playdeveloperreporting: { title: 'Google Play Developer Reporting API v1beta1', version: 'v1beta1', revision: '20261008', root: 'https://playdeveloperreporting.googleapis.com/', scope: 'https://www.googleapis.com/auth/playdeveloperreporting', sha256: '277afdf1c026c13d91d0b3d6d5fd10a46ecaa9b21bbc2f085c104193e254a448' }, +} as const; + +export const PLAY_OPS = { + 'androidpublisher.applications.dataSafety': ['POST', 'androidpublisher/v3/applications/{packageName}/dataSafety', '', 'SafetyLabelsUpdateRequest', 'SafetyLabelsUpdateResponse', '', ''], + 'androidpublisher.applications.deviceTierConfigs.create': ['POST', 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs', 'allowUnknownDevices', 'DeviceTierConfig', 'DeviceTierConfig', '', ''], + 'androidpublisher.applications.deviceTierConfigs.get': ['GET', 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}', '', '', 'DeviceTierConfig', '', ''], + 'androidpublisher.applications.deviceTierConfigs.list': ['GET', 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs', 'pageSize pageToken', '', 'ListDeviceTierConfigsResponse', 'p', ''], + 'androidpublisher.applications.tracks.releases.list': ['GET', 'androidpublisher/v3/{+parent}/releases', '', '', 'ListReleaseSummariesResponse', '', 'parent=applications/*/tracks/*'], + 'androidpublisher.apprecovery.addTargeting': ['POST', 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting', '', 'AddTargetingRequest', 'AddTargetingResponse', '', ''], + 'androidpublisher.apprecovery.cancel': ['POST', 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel', '', 'CancelAppRecoveryRequest', 'CancelAppRecoveryResponse', '', ''], + 'androidpublisher.apprecovery.create': ['POST', 'androidpublisher/v3/applications/{packageName}/appRecoveries', '', 'CreateDraftAppRecoveryRequest', 'AppRecoveryAction', '', ''], + 'androidpublisher.apprecovery.deploy': ['POST', 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy', '', 'DeployAppRecoveryRequest', 'DeployAppRecoveryResponse', '', ''], + 'androidpublisher.apprecovery.list': ['GET', 'androidpublisher/v3/applications/{packageName}/appRecoveries', 'versionCode', '', 'ListAppRecoveriesResponse', '', ''], + 'androidpublisher.appsigning.enrollApp': ['POST', 'androidpublisher/v3/applications/{name}/appSigning:enrollApp', '', 'EnrollAppRequest', 'EnrollAppResponse', '', ''], + 'androidpublisher.appsigning.rotateAppSigningKey': ['POST', 'androidpublisher/v3/applications/{name}/appSigning:rotateAppSigningKey', '', 'RotateAppSigningKeyRequest', 'RotateAppSigningKeyResponse', '', ''], + 'androidpublisher.appstoreappsreview.createappstorehostedapp': ['POST', 'androidpublisher/v3/appstore/{appStorePackageName}/apps:create', '', 'CreateAppStoreHostedAppRequest', 'CreateAppStoreHostedAppResponse', '', ''], + 'androidpublisher.appstoreappsreview.updateappstorehostedapp': ['POST', 'androidpublisher/v3/appstore/{appStorePackageName}/apps:update', '', 'UpdateAppStoreHostedAppRequest', 'UpdateAppStoreHostedAppResponse', '', ''], + 'androidpublisher.appstoreappsreview.updateappstorehostedapppublishstatus': ['POST', 'androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}:updateAppStoreHostedAppPublishStatus', '', 'UpdateAppStoreHostedAppPublishStatusRequest', 'UpdateAppStoreHostedAppPublishStatusResponse', '', ''], + 'androidpublisher.appstoreappsreview.uploadapk': ['POST', 'androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/apks:upload', '', 'UploadApkRequest', 'UploadApkResponse', 'm', ''], + 'androidpublisher.appstoreappsreview.uploadappstoreapppolicydeclarationfile': ['POST', 'androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/policyDeclarationFiles:upload', '', 'UploadAppStoreAppPolicyDeclarationFileRequest', 'UploadAppStoreAppPolicyDeclarationFileResponse', 'm', ''], + 'androidpublisher.appstoreappsreview.uploadimage': ['POST', 'androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/images:upload', '', 'UploadImageRequest', 'UploadImageResponse', 'm', ''], + 'androidpublisher.appstorecatalog.recentappviews.get': ['GET', 'androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentAppViews/{playAppPackageName}', '', '', 'RecentAppView', '', ''], + 'androidpublisher.appstorecatalog.recentupdateevents.list': ['GET', 'androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentUpdateEvents', 'endTime pageSize pageToken startTime', '', 'ListRecentUpdateEventsResponse', 'p', ''], + 'androidpublisher.edits.apks.addexternallyhosted': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted', '', 'ApksAddExternallyHostedRequest', 'ApksAddExternallyHostedResponse', '', ''], + 'androidpublisher.edits.apks.list': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks', '', '', 'ApksListResponse', '', ''], + 'androidpublisher.edits.apks.upload': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks', '', '', 'Apk', 'm', ''], + 'androidpublisher.edits.bundles.list': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', '', '', 'BundlesListResponse', '', ''], + 'androidpublisher.edits.bundles.upload': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', 'ackBundleInstallationWarning deviceTierConfigId', '', 'Bundle', 'm', ''], + 'androidpublisher.edits.commit': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}:commit', 'changesInReviewBehavior changesNotSentForReview', '', 'AppEdit', '', ''], + 'androidpublisher.edits.countryavailability.get': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}', '', '', 'TrackCountryAvailability', '', ''], + 'androidpublisher.edits.delete': ['DELETE', 'androidpublisher/v3/applications/{packageName}/edits/{editId}', '', '', '', '', ''], + 'androidpublisher.edits.deobfuscationfiles.upload': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', '', '', 'DeobfuscationFilesUploadResponse', 'm', ''], + 'androidpublisher.edits.details.get': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', '', '', 'AppDetails', '', ''], + 'androidpublisher.edits.details.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', '', 'AppDetails', 'AppDetails', '', ''], + 'androidpublisher.edits.details.update': ['PUT', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', '', 'AppDetails', 'AppDetails', '', ''], + 'androidpublisher.edits.expansionfiles.get': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', '', '', 'ExpansionFile', '', ''], + 'androidpublisher.edits.expansionfiles.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', '', 'ExpansionFile', 'ExpansionFile', '', ''], + 'androidpublisher.edits.expansionfiles.update': ['PUT', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', '', 'ExpansionFile', 'ExpansionFile', '', ''], + 'androidpublisher.edits.expansionfiles.upload': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', '', '', 'ExpansionFilesUploadResponse', 'm', ''], + 'androidpublisher.edits.get': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}', '', '', 'AppEdit', '', ''], + 'androidpublisher.edits.images.delete': ['DELETE', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', '', '', '', '', ''], + 'androidpublisher.edits.images.deleteall': ['DELETE', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', '', '', 'ImagesDeleteAllResponse', '', ''], + 'androidpublisher.edits.images.list': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', '', '', 'ImagesListResponse', '', ''], + 'androidpublisher.edits.images.upload': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', 'aiGeneratedState', '', 'ImagesUploadResponse', 'm', ''], + 'androidpublisher.edits.insert': ['POST', 'androidpublisher/v3/applications/{packageName}/edits', '', 'AppEdit', 'AppEdit', '', ''], + 'androidpublisher.edits.listings.delete': ['DELETE', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', '', '', '', '', ''], + 'androidpublisher.edits.listings.deleteall': ['DELETE', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings', '', '', '', '', ''], + 'androidpublisher.edits.listings.get': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', '', '', 'Listing', '', ''], + 'androidpublisher.edits.listings.list': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings', '', '', 'ListingsListResponse', '', ''], + 'androidpublisher.edits.listings.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', '', 'Listing', 'Listing', '', ''], + 'androidpublisher.edits.listings.update': ['PUT', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', '', 'Listing', 'Listing', '', ''], + 'androidpublisher.edits.testers.get': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', '', '', 'Testers', '', ''], + 'androidpublisher.edits.testers.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', '', 'Testers', 'Testers', '', ''], + 'androidpublisher.edits.testers.update': ['PUT', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', '', 'Testers', 'Testers', '', ''], + 'androidpublisher.edits.tracks.create': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks', '', 'TrackConfig', 'Track', '', ''], + 'androidpublisher.edits.tracks.get': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', '', '', 'Track', '', ''], + 'androidpublisher.edits.tracks.list': ['GET', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks', '', '', 'TracksListResponse', '', ''], + 'androidpublisher.edits.tracks.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', '', 'Track', 'Track', '', ''], + 'androidpublisher.edits.tracks.update': ['PUT', 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', '', 'Track', 'Track', '', ''], + 'androidpublisher.edits.validate': ['POST', 'androidpublisher/v3/applications/{packageName}/edits/{editId}:validate', '', '', 'AppEdit', '', ''], + 'androidpublisher.externaltransactions.createexternaltransaction': ['POST', 'androidpublisher/v3/{+parent}/externalTransactions', 'externalTransactionId', 'ExternalTransaction', 'ExternalTransaction', '', 'parent=applications/*'], + 'androidpublisher.externaltransactions.getexternaltransaction': ['GET', 'androidpublisher/v3/{+name}', '', '', 'ExternalTransaction', '', 'name=applications/*/externalTransactions/*'], + 'androidpublisher.externaltransactions.refundexternaltransaction': ['POST', 'androidpublisher/v3/{+name}:refund', '', 'RefundExternalTransactionRequest', 'ExternalTransaction', '', 'name=applications/*/externalTransactions/*'], + 'androidpublisher.generatedapks.download': ['GET', 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download', '', '', '', 'd', ''], + 'androidpublisher.generatedapks.list': ['GET', 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}', '', '', 'GeneratedApksListResponse', '', ''], + 'androidpublisher.grants.create': ['POST', 'androidpublisher/v3/{+parent}/grants', '', 'Grant', 'Grant', '', 'parent=developers/*/users/*'], + 'androidpublisher.grants.delete': ['DELETE', 'androidpublisher/v3/{+name}', '', '', '', '', 'name=developers/*/users/*/grants/*'], + 'androidpublisher.grants.patch': ['PATCH', 'androidpublisher/v3/{+name}', 'updateMask', 'Grant', 'Grant', '', 'name=developers/*/users/*/grants/*'], + 'androidpublisher.inappproducts.batchDelete': ['POST', 'androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete', '', 'InappproductsBatchDeleteRequest', '', '', ''], + 'androidpublisher.inappproducts.batchGet': ['GET', 'androidpublisher/v3/applications/{packageName}/inappproducts:batchGet', 'sku*', '', 'InappproductsBatchGetResponse', '', ''], + 'androidpublisher.inappproducts.batchUpdate': ['POST', 'androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate', '', 'InappproductsBatchUpdateRequest', 'InappproductsBatchUpdateResponse', '', ''], + 'androidpublisher.inappproducts.delete': ['DELETE', 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', 'latencyTolerance', '', '', '', ''], + 'androidpublisher.inappproducts.get': ['GET', 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', '', '', 'InAppProduct', '', ''], + 'androidpublisher.inappproducts.insert': ['POST', 'androidpublisher/v3/applications/{packageName}/inappproducts', 'autoConvertMissingPrices', 'InAppProduct', 'InAppProduct', '', ''], + 'androidpublisher.inappproducts.list': ['GET', 'androidpublisher/v3/applications/{packageName}/inappproducts', 'maxResults startIndex token', '', 'InappproductsListResponse', 't', ''], + 'androidpublisher.inappproducts.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', 'autoConvertMissingPrices latencyTolerance', 'InAppProduct', 'InAppProduct', '', ''], + 'androidpublisher.inappproducts.update': ['PUT', 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', 'allowMissing autoConvertMissingPrices latencyTolerance', 'InAppProduct', 'InAppProduct', '', ''], + 'androidpublisher.internalappsharingartifacts.uploadapk': ['POST', 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk', '', '', 'InternalAppSharingArtifact', 'm', ''], + 'androidpublisher.internalappsharingartifacts.uploadbundle': ['POST', 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle', '', '', 'InternalAppSharingArtifact', 'm', ''], + 'androidpublisher.monetization.convertRegionPrices': ['POST', 'androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices', '', 'ConvertRegionPricesRequest', 'ConvertRegionPricesResponse', '', ''], + 'androidpublisher.monetization.onetimeproducts.batchDelete': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete', '', 'BatchDeleteOneTimeProductsRequest', '', '', ''], + 'androidpublisher.monetization.onetimeproducts.batchGet': ['GET', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchGet', 'productIds*', '', 'BatchGetOneTimeProductsResponse', '', ''], + 'androidpublisher.monetization.onetimeproducts.batchUpdate': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchUpdate', '', 'BatchUpdateOneTimeProductsRequest', 'BatchUpdateOneTimeProductsResponse', '', ''], + 'androidpublisher.monetization.onetimeproducts.delete': ['DELETE', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}', 'latencyTolerance', '', '', '', ''], + 'androidpublisher.monetization.onetimeproducts.get': ['GET', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}', '', '', 'OneTimeProduct', '', ''], + 'androidpublisher.monetization.onetimeproducts.list': ['GET', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts', 'pageSize pageToken', '', 'ListOneTimeProductsResponse', 'p', ''], + 'androidpublisher.monetization.onetimeproducts.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}', 'allowMissing latencyTolerance regionsVersion.version updateMask', 'OneTimeProduct', 'OneTimeProduct', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.batchDelete': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchDelete', '', 'BatchDeletePurchaseOptionsRequest', '', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.batchUpdateStates': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchUpdateStates', '', 'BatchUpdatePurchaseOptionStatesRequest', 'BatchUpdatePurchaseOptionStatesResponse', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.activate': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:activate', '', 'ActivateOneTimeProductOfferRequest', 'OneTimeProductOffer', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchDelete': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchDelete', '', 'BatchDeleteOneTimeProductOffersRequest', '', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchGet': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet', '', 'BatchGetOneTimeProductOffersRequest', 'BatchGetOneTimeProductOffersResponse', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchUpdate': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdate', '', 'BatchUpdateOneTimeProductOffersRequest', 'BatchUpdateOneTimeProductOffersResponse', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchUpdateStates': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdateStates', '', 'BatchUpdateOneTimeProductOfferStatesRequest', 'BatchUpdateOneTimeProductOfferStatesResponse', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.cancel': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel', '', 'CancelOneTimeProductOfferRequest', 'OneTimeProductOffer', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.deactivate': ['POST', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:deactivate', '', 'DeactivateOneTimeProductOfferRequest', 'OneTimeProductOffer', '', ''], + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.list': ['GET', 'androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers', 'pageSize pageToken', '', 'ListOneTimeProductOffersResponse', 'p', ''], + 'androidpublisher.monetization.subscriptions.archive': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive', '', 'ArchiveSubscriptionRequest', 'Subscription', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.activate': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate', '', 'ActivateBasePlanRequest', 'Subscription', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.batchMigratePrices': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices', '', 'BatchMigrateBasePlanPricesRequest', 'BatchMigrateBasePlanPricesResponse', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.batchUpdateStates': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates', '', 'BatchUpdateBasePlanStatesRequest', 'BatchUpdateBasePlanStatesResponse', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.deactivate': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate', '', 'DeactivateBasePlanRequest', 'Subscription', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.delete': ['DELETE', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}', '', '', '', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.migratePrices': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices', '', 'MigrateBasePlanPricesRequest', 'MigrateBasePlanPricesResponse', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.activate': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate', '', 'ActivateSubscriptionOfferRequest', 'SubscriptionOffer', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.batchGet': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet', '', 'BatchGetSubscriptionOffersRequest', 'BatchGetSubscriptionOffersResponse', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.batchUpdate': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate', '', 'BatchUpdateSubscriptionOffersRequest', 'BatchUpdateSubscriptionOffersResponse', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.batchUpdateStates': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates', '', 'BatchUpdateSubscriptionOfferStatesRequest', 'BatchUpdateSubscriptionOfferStatesResponse', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.create': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers', 'offerId regionsVersion.version', 'SubscriptionOffer', 'SubscriptionOffer', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.deactivate': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate', '', 'DeactivateSubscriptionOfferRequest', 'SubscriptionOffer', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.delete': ['DELETE', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', '', '', '', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.get': ['GET', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', '', '', 'SubscriptionOffer', '', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.list': ['GET', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers', 'pageSize pageToken', '', 'ListSubscriptionOffersResponse', 'p', ''], + 'androidpublisher.monetization.subscriptions.basePlans.offers.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', 'allowMissing latencyTolerance regionsVersion.version updateMask', 'SubscriptionOffer', 'SubscriptionOffer', '', ''], + 'androidpublisher.monetization.subscriptions.batchGet': ['GET', 'androidpublisher/v3/applications/{packageName}/subscriptions:batchGet', 'productIds*', '', 'BatchGetSubscriptionsResponse', '', ''], + 'androidpublisher.monetization.subscriptions.batchUpdate': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate', '', 'BatchUpdateSubscriptionsRequest', 'BatchUpdateSubscriptionsResponse', '', ''], + 'androidpublisher.monetization.subscriptions.create': ['POST', 'androidpublisher/v3/applications/{packageName}/subscriptions', 'productId regionsVersion.version', 'Subscription', 'Subscription', '', ''], + 'androidpublisher.monetization.subscriptions.delete': ['DELETE', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', '', '', '', '', ''], + 'androidpublisher.monetization.subscriptions.get': ['GET', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', '', '', 'Subscription', '', ''], + 'androidpublisher.monetization.subscriptions.list': ['GET', 'androidpublisher/v3/applications/{packageName}/subscriptions', 'pageSize pageToken showArchived', '', 'ListSubscriptionsResponse', 'p', ''], + 'androidpublisher.monetization.subscriptions.patch': ['PATCH', 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', 'allowMissing latencyTolerance regionsVersion.version updateMask', 'Subscription', 'Subscription', '', ''], + 'androidpublisher.orders.batchget': ['GET', 'androidpublisher/v3/applications/{packageName}/orders:batchGet', 'orderIds*', '', 'BatchGetOrdersResponse', '', ''], + 'androidpublisher.orders.get': ['GET', 'androidpublisher/v3/applications/{packageName}/orders/{orderId}', '', '', 'Order', '', ''], + 'androidpublisher.orders.refund': ['POST', 'androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund', 'revoke', '', '', '', ''], + 'androidpublisher.orders.reviewrefund': ['POST', 'androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund', '', 'OrdersReviewRefundRequest', '', '', ''], + 'androidpublisher.purchases.products.acknowledge': ['POST', 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge', '', 'ProductPurchasesAcknowledgeRequest', '', '', ''], + 'androidpublisher.purchases.products.consume': ['POST', 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume', '', '', '', '', ''], + 'androidpublisher.purchases.products.get': ['GET', 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}', '', '', 'ProductPurchase', '', ''], + 'androidpublisher.purchases.productsv2.getproductpurchasev2': ['GET', 'androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}', '', '', 'ProductPurchaseV2', '', ''], + 'androidpublisher.purchases.subscriptions.acknowledge': ['POST', 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge', '', 'SubscriptionPurchasesAcknowledgeRequest', '', '', ''], + 'androidpublisher.purchases.subscriptions.cancel': ['POST', 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', '', '', '', '', ''], + 'androidpublisher.purchases.subscriptions.defer': ['POST', 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', '', 'SubscriptionPurchasesDeferRequest', 'SubscriptionPurchasesDeferResponse', '', ''], + 'androidpublisher.purchases.subscriptionsv2.cancel': ['POST', 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel', '', 'CancelSubscriptionPurchaseRequest', 'CancelSubscriptionPurchaseResponse', '', ''], + 'androidpublisher.purchases.subscriptionsv2.defer': ['POST', 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:defer', '', 'DeferSubscriptionPurchaseRequest', 'DeferSubscriptionPurchaseResponse', '', ''], + 'androidpublisher.purchases.subscriptionsv2.get': ['GET', 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}', '', '', 'SubscriptionPurchaseV2', '', ''], + 'androidpublisher.purchases.subscriptionsv2.revoke': ['POST', 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke', '', 'RevokeSubscriptionPurchaseRequest', 'RevokeSubscriptionPurchaseResponse', '', ''], + 'androidpublisher.purchases.voidedpurchases.list': ['GET', 'androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases', 'endTime includeQuantityBasedPartialRefund maxResults startIndex startTime token type', '', 'VoidedPurchasesListResponse', 't', ''], + 'androidpublisher.reviews.get': ['GET', 'androidpublisher/v3/applications/{packageName}/reviews/{reviewId}', 'translationLanguage', '', 'Review', '', ''], + 'androidpublisher.reviews.list': ['GET', 'androidpublisher/v3/applications/{packageName}/reviews', 'maxResults startIndex token translationLanguage', '', 'ReviewsListResponse', 't', ''], + 'androidpublisher.reviews.reply': ['POST', 'androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply', '', 'ReviewsReplyRequest', 'ReviewsReplyResponse', '', ''], + 'androidpublisher.systemapks.variants.create': ['POST', 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants', '', 'Variant', 'Variant', '', ''], + 'androidpublisher.systemapks.variants.download': ['GET', 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download', '', '', '', 'd', ''], + 'androidpublisher.systemapks.variants.get': ['GET', 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}', '', '', 'Variant', '', ''], + 'androidpublisher.systemapks.variants.list': ['GET', 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants', '', '', 'SystemApksListResponse', '', ''], + 'androidpublisher.users.create': ['POST', 'androidpublisher/v3/{+parent}/users', '', 'User', 'User', '', 'parent=developers/*'], + 'androidpublisher.users.delete': ['DELETE', 'androidpublisher/v3/{+name}', '', '', '', '', 'name=developers/*/users/*'], + 'androidpublisher.users.list': ['GET', 'androidpublisher/v3/{+parent}/users', 'pageSize pageToken', '', 'ListUsersResponse', 'p', 'parent=developers/*'], + 'androidpublisher.users.patch': ['PATCH', 'androidpublisher/v3/{+name}', 'updateMask', 'User', 'User', '', 'name=developers/*/users/*'], + 'playdeveloperreporting.anomalies.list': ['GET', 'v1beta1/{+parent}/anomalies', 'filter pageSize pageToken', '', 'GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse', 'p', 'parent=apps/*'], + 'playdeveloperreporting.apps.fetchReleaseFilterOptions': ['GET', 'v1beta1/{+name}:fetchReleaseFilterOptions', '', '', 'GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions', '', 'name=apps/*'], + 'playdeveloperreporting.apps.search': ['GET', 'v1beta1/apps:search', 'pageSize pageToken', '', 'GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse', 'p', ''], + 'playdeveloperreporting.vitals.anonrssandswapmemoryusage.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1AnonRssAndSwapMemoryUsageMetricSet', '', 'name=apps/*/anonRssAndSwapMemoryUsageMetricSet'], + 'playdeveloperreporting.vitals.anonrssandswapmemoryusage.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QueryAnonRssAndSwapMemoryUsageMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QueryAnonRssAndSwapMemoryUsageMetricSetResponse', '', 'name=apps/*/anonRssAndSwapMemoryUsageMetricSet'], + 'playdeveloperreporting.vitals.anrrate.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1AnrRateMetricSet', '', 'name=apps/*/anrRateMetricSet'], + 'playdeveloperreporting.vitals.anrrate.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse', '', 'name=apps/*/anrRateMetricSet'], + 'playdeveloperreporting.vitals.bitmapmemoryusage.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1BitmapMemoryUsageMetricSet', '', 'name=apps/*/bitmapMemoryUsageMetricSet'], + 'playdeveloperreporting.vitals.bitmapmemoryusage.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QueryBitmapMemoryUsageMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QueryBitmapMemoryUsageMetricSetResponse', '', 'name=apps/*/bitmapMemoryUsageMetricSet'], + 'playdeveloperreporting.vitals.crashrate.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1CrashRateMetricSet', '', 'name=apps/*/crashRateMetricSet'], + 'playdeveloperreporting.vitals.crashrate.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse', '', 'name=apps/*/crashRateMetricSet'], + 'playdeveloperreporting.vitals.errors.counts.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet', '', 'name=apps/*/errorCountMetricSet'], + 'playdeveloperreporting.vitals.errors.counts.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse', '', 'name=apps/*/errorCountMetricSet'], + 'playdeveloperreporting.vitals.errors.issues.search': ['GET', 'v1beta1/{+parent}/errorIssues:search', 'filter interval.endTime.day interval.endTime.hours interval.endTime.minutes interval.endTime.month interval.endTime.nanos interval.endTime.seconds interval.endTime.timeZone.id interval.endTime.timeZone.version interval.endTime.utcOffset interval.endTime.year interval.startTime.day interval.startTime.hours interval.startTime.minutes interval.startTime.month interval.startTime.nanos interval.startTime.seconds interval.startTime.timeZone.id interval.startTime.timeZone.version interval.startTime.utcOffset interval.startTime.year orderBy pageSize pageToken sampleErrorReportLimit', '', 'GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse', 'p', 'parent=apps/*'], + 'playdeveloperreporting.vitals.errors.reports.search': ['GET', 'v1beta1/{+parent}/errorReports:search', 'filter interval.endTime.day interval.endTime.hours interval.endTime.minutes interval.endTime.month interval.endTime.nanos interval.endTime.seconds interval.endTime.timeZone.id interval.endTime.timeZone.version interval.endTime.utcOffset interval.endTime.year interval.startTime.day interval.startTime.hours interval.startTime.minutes interval.startTime.month interval.startTime.nanos interval.startTime.seconds interval.startTime.timeZone.id interval.startTime.timeZone.version interval.startTime.utcOffset interval.startTime.year pageSize pageToken', '', 'GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse', 'p', 'parent=apps/*'], + 'playdeveloperreporting.vitals.excessivewakeuprate.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet', '', 'name=apps/*/excessiveWakeupRateMetricSet'], + 'playdeveloperreporting.vitals.excessivewakeuprate.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse', '', 'name=apps/*/excessiveWakeupRateMetricSet'], + 'playdeveloperreporting.vitals.lmkrate.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1LmkRateMetricSet', '', 'name=apps/*/lmkRateMetricSet'], + 'playdeveloperreporting.vitals.lmkrate.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QueryLmkRateMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QueryLmkRateMetricSetResponse', '', 'name=apps/*/lmkRateMetricSet'], + 'playdeveloperreporting.vitals.slowrenderingrate.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet', '', 'name=apps/*/slowRenderingRateMetricSet'], + 'playdeveloperreporting.vitals.slowrenderingrate.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse', '', 'name=apps/*/slowRenderingRateMetricSet'], + 'playdeveloperreporting.vitals.slowstartrate.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet', '', 'name=apps/*/slowStartRateMetricSet'], + 'playdeveloperreporting.vitals.slowstartrate.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse', '', 'name=apps/*/slowStartRateMetricSet'], + 'playdeveloperreporting.vitals.stuckbackgroundwakelockrate.get': ['GET', 'v1beta1/{+name}', '', '', 'GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet', '', 'name=apps/*/stuckBackgroundWakelockRateMetricSet'], + 'playdeveloperreporting.vitals.stuckbackgroundwakelockrate.query': ['POST', 'v1beta1/{+name}:query', '', 'GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest', 'GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse', '', 'name=apps/*/stuckBackgroundWakelockRateMetricSet'], +} as const; diff --git a/cli/api/types.ts b/cli/api/types.ts new file mode 100644 index 00000000..c1b637ba --- /dev/null +++ b/cli/api/types.ts @@ -0,0 +1,68 @@ +// Types of every App Store Connect / Google Play operation, derived from the generated rows (apple.gen.ts, play.gen.ts) +// instead of one generated interface per endpoint: path parameters from the path template, query parameters from the +// row's parameter list ("!" required), request and response shapes from the row's body / response columns. +import type { APPLE_OPS } from './apple.gen'; +import type { PLAY_OPS } from './play.gen'; + +export type AppleOp = keyof typeof APPLE_OPS; +export type PlayOp = keyof typeof PLAY_OPS; + +/** A parameter value: arrays are comma-joined (Apple) or repeated (Google, "name*" parameters). */ +export type ParamValue = string | number | boolean | readonly (string | number)[]; + +/** "a b c" -> "a" | "b" | "c" (tail-recursive, so rows with 70+ parameters stay under the depth limit). */ +export type Split = S extends `${infer H} ${infer T}` ? Split : S extends '' ? Acc : Acc | S; +/** "/v1/apps/{id}/builds" -> "id"; "{+name}" -> "name". */ +export type PathParams

= P extends `${string}{${infer N}}${infer R}` ? PathParams : Acc; +type Required = T extends `${infer N}!${string}` ? N : never; +type Optional = T extends `${string}!${string}` ? never : T extends `${infer N}*` ? N : T; + +/** Parameters of one row: path parameters and required query parameters must be given, the rest may. */ +export type RowParams = + { [K in PathParams | Required>]: ParamValue } & { [K in Optional>]?: ParamValue }; + +export type AppleParams = RowParams<(typeof APPLE_OPS)[O]>; +export type PlayParams = RowParams<(typeof PLAY_OPS)[O]> & { fields?: string; prettyPrint?: boolean; quotaUser?: string }; + +// ---------------------------------------------------------------- JSON:API (App Store Connect), loosely typed + +export interface Resource { + type: T; + id: string; + attributes?: Record; + relationships?: Record; meta?: Record }>; + links?: Record; +} +export interface Linkage { type: string; id: string } +export interface Document { + data: D; + included?: Resource[]; + links?: { self?: string; next?: string; first?: string; related?: string }; + meta?: { paging?: { total?: number; limit?: number; nextCursor?: string } } & Record; +} + +type AppleRow = (typeof APPLE_OPS)[O]; + +/** Response of an Apple operation: a JSON:API document of the row's resource type, raw bytes, or nothing. */ +export type AppleResponse = + AppleRow[4] extends `many:${infer T}` ? Document[]> + : AppleRow[4] extends `one:${infer T}` ? Document> + : AppleRow[4] extends `raw:${string}json` ? Record + : AppleRow[4] extends `raw:${string}` ? Uint8Array + : AppleRow[4] extends 'none' ? null + : Record; + +/** Request body of an Apple operation (undefined when it takes none). */ +export type AppleBody = + AppleRow[3] extends '' ? undefined + : AppleRow[3] extends 'json' ? Record + : AppleRow[3] extends `${infer T}[]` ? { data: { type: T; id: string }[] } + : { data: { type: AppleRow[3]; id?: string; attributes?: Record; relationships?: Record } }; + +type PlayRow = (typeof PLAY_OPS)[O]; + +/** Google responses are plain JSON objects (schema name in the row); media downloads are bytes. */ +export type PlayResponse = PlayRow[5] extends `${string}d${string}` ? Record | Uint8Array : Record; +/** Request body: the JSON object of the row's schema, file bytes for a media upload, else nothing. */ +export type PlayBody = + PlayRow[3] extends '' ? (PlayRow[5] extends `${string}m${string}` ? Uint8Array : undefined) : Record; diff --git a/cli/api/wrapped.gen.ts b/cli/api/wrapped.gen.ts new file mode 100644 index 00000000..0f7a2bf4 --- /dev/null +++ b/cli/api/wrapped.gen.ts @@ -0,0 +1,171 @@ +// GENERATED by tools/gen-api.ts from a scan of the API calls in cli/ (outside cli/api). Do not edit: run `bun tools/gen-api.ts` (CI checks it is fresh). +// Operation id -> the source modules (cli/.ts) of storebound commands that already call it. +export const WRAPPED: { apple: Record; play: Record } = { + apple: { + 'ageRatingDeclarations_updateInstance': 'apple/appinfo', + 'analyticsReportInstances_segments_getToManyRelated': 'analytics', + 'analyticsReportRequests_createInstance': 'analytics', + 'analyticsReportRequests_reports_getToManyRelated': 'analytics', + 'analyticsReports_instances_getToManyRelated': 'analytics', + 'appAvailabilitiesV2_createInstance': 'apple/appinfo', + 'appEncryptionDeclarations_getCollection': 'apple/encryption', + 'appInfos_ageRatingDeclaration_getToOneRelated': 'validate', + 'appInfos_appInfoLocalizations_getToManyRelated': 'apple/listing validate', + 'appInfos_updateInstance': 'apple/appinfo', + 'appPreviewSets_appPreviews_getToManyRelated': 'apple/previews', + 'appPreviewSets_createInstance': 'apple/previews', + 'appPreviews_createInstance': 'apple/previews', + 'appPreviews_deleteInstance': 'apple/previews', + 'appPreviews_updateInstance': 'apple/previews', + 'appPriceSchedules_createInstance': 'apple/appinfo', + 'appScreenshotSets_appScreenshots_getToManyRelated': 'apple/ppo apple/screenshots validate', + 'appScreenshotSets_createInstance': 'apple/screenshots', + 'appScreenshots_createInstance': 'apple/screenshots', + 'appScreenshots_deleteInstance': 'apple/screenshots', + 'appScreenshots_updateInstance': 'apple/screenshots', + 'appStoreReviewDetails_createInstance': 'apple/review-details', + 'appStoreReviewDetails_updateInstance': 'apple/review-details', + 'appStoreVersionExperimentTreatmentLocalizations_appScreenshotSets_getToManyRelated': 'apple/ppo', + 'appStoreVersionExperimentTreatmentLocalizations_createInstance': 'lib/ppo', + 'appStoreVersionExperimentTreatments_appStoreVersionExperimentTreatmentLocalizations_getToManyRelated': 'apple/ppo', + 'appStoreVersionExperimentTreatments_createInstance': 'lib/ppo', + 'appStoreVersionExperimentsV2_appStoreVersionExperimentTreatments_getToManyRelated': 'apple/ppo', + 'appStoreVersionExperimentsV2_createInstance': 'lib/ppo', + 'appStoreVersionExperimentsV2_updateInstance': 'lib/ppo', + 'appStoreVersionLocalizations_appPreviewSets_getToManyRelated': 'apple/previews', + 'appStoreVersionLocalizations_appScreenshotSets_getToManyRelated': 'apple/screenshots validate', + 'appStoreVersionPhasedReleases_createInstance': 'apple/release', + 'appStoreVersionPhasedReleases_updateInstance': 'apple/release', + 'appStoreVersionReleaseRequests_createInstance': 'apple/release', + 'appStoreVersions_appStoreReviewDetail_getToOneRelated': 'apple/review-details validate', + 'appStoreVersions_appStoreVersionLocalizations_getToManyRelated': 'apple/listing apple/previews apple/screenshots validate', + 'appStoreVersions_appStoreVersionPhasedRelease_getToOneRelated': 'apple/release apple/status', + 'appStoreVersions_build_getToOneRelated': 'validate', + 'appStoreVersions_build_updateToOneRelationship': 'apple/listing', + 'appStoreVersions_createInstance': 'apple/listing', + 'appStoreVersions_updateInstance': 'apple/listing', + 'apps_analyticsReportRequests_getToManyRelated': 'analytics', + 'apps_appAvailabilityV2_getToOneRelated': 'apple/appinfo validate', + 'apps_appInfos_getToManyRelated': 'apple/asc', + 'apps_appPricePoints_getToManyRelated': 'apple/appinfo', + 'apps_appPriceSchedule_getToOneRelated': 'apple/appinfo validate', + 'apps_appStoreVersionExperimentsV2_getToManyRelated': 'apple/ppo', + 'apps_appStoreVersions_getToManyRelated': 'apple/asc apple/release apple/review-details apple/status lib/store-apps validate', + 'apps_betaAppLocalizations_getToManyRelated': 'apple/testflight', + 'apps_betaAppReviewDetail_getToOneRelated': 'apple/testflight', + 'apps_betaFeedbackCrashSubmissions_getToManyRelated': 'health', + 'apps_betaGroups_getToManyRelated': 'apple/testflight', + 'apps_customerReviews_getToManyRelated': 'reviews', + 'apps_getCollection': 'apple/asc apple/bundle apps lib/store-apps', + 'apps_getInstance': 'apple/status', + 'apps_inAppPurchasesV2_getToManyRelated': 'apple/iap apple/iap-review apple/status catalog prices validate', + 'apps_perfPowerMetrics_getToManyRelated': 'health', + 'apps_subscriptionGroups_getToManyRelated': 'apple/subscriptions catalog validate', + 'apps_updateInstance': 'apple/appinfo', + 'betaAppLocalizations_createInstance': 'lib/testflight', + 'betaAppLocalizations_updateInstance': 'lib/testflight', + 'betaAppReviewDetails_updateInstance': 'lib/testflight', + 'betaAppReviewSubmissions_createInstance': 'lib/testflight', + 'betaBuildLocalizations_createInstance': 'lib/testflight', + 'betaBuildLocalizations_updateInstance': 'lib/testflight', + 'betaGroups_betaTesters_createToManyRelationship': 'lib/testflight', + 'betaGroups_betaTesters_deleteToManyRelationship': 'lib/testflight', + 'betaGroups_betaTesters_getToManyRelated': 'apple/testflight', + 'betaGroups_builds_createToManyRelationship': 'lib/testflight', + 'betaGroups_builds_getToManyRelated': 'apple/testflight', + 'betaGroups_createInstance': 'lib/testflight', + 'betaGroups_getCollection': 'apple/testflight', + 'betaTesterInvitations_createInstance': 'lib/testflight', + 'betaTesters_createInstance': 'lib/testflight', + 'betaTesters_getCollection': 'apple/testflight', + 'builds_appEncryptionDeclaration_getToOneRelated': 'validate', + 'builds_betaAppReviewSubmission_getToOneRelated': 'apple/testflight', + 'builds_betaBuildLocalizations_getToManyRelated': 'apple/testflight', + 'builds_diagnosticSignatures_getToManyRelated': 'health', + 'builds_getCollection': 'apple/encryption apple/listing apple/next-build apple/status apple/testflight health lib/store-apps', + 'builds_updateInstance': 'apple/encryption', + 'bundleIds_createInstance': 'apple/bundle', + 'bundleIds_getCollection': 'apple/bundle', + 'customerReviewResponses_createInstance': 'lib/reviews', + 'inAppPurchaseAppStoreReviewScreenshots_createInstance': 'apple/iap-review', + 'inAppPurchaseAppStoreReviewScreenshots_deleteInstance': 'apple/iap-review', + 'inAppPurchaseAppStoreReviewScreenshots_updateInstance': 'apple/iap-review', + 'inAppPurchaseAvailabilities_createInstance': 'apple/iap', + 'inAppPurchaseLocalizations_createInstance': 'apple/iap', + 'inAppPurchasePriceSchedules_automaticPrices_getToManyRelated': 'prices', + 'inAppPurchasePriceSchedules_baseTerritory_getToOneRelated': 'prices', + 'inAppPurchasePriceSchedules_createInstance': 'apple/iap prices', + 'inAppPurchasePriceSchedules_manualPrices_getToManyRelated': 'prices', + 'inAppPurchasesV2_appStoreReviewScreenshot_getToOneRelated': 'apple/iap-review validate', + 'inAppPurchasesV2_createInstance': 'apple/iap', + 'inAppPurchasesV2_iapPriceSchedule_getToOneRelated': 'apple/iap catalog', + 'inAppPurchasesV2_inAppPurchaseAvailability_getToOneRelated': 'apple/iap', + 'inAppPurchasesV2_inAppPurchaseLocalizations_getToManyRelated': 'apple/iap catalog', + 'inAppPurchasesV2_pricePoints_getToManyRelated': 'apple/iap prices', + 'reviewSubmissions_getCollection': 'apple/status', + 'reviewSubmissions_updateInstance': 'apple/status', + 'subscriptionAppStoreReviewScreenshots_createInstance': 'apple/subscriptions', + 'subscriptionAppStoreReviewScreenshots_updateInstance': 'apple/subscriptions', + 'subscriptionAvailabilities_createInstance': 'apple/subscriptions', + 'subscriptionGroupLocalizations_createInstance': 'apple/subscriptions', + 'subscriptionGroups_createInstance': 'apple/subscriptions', + 'subscriptionGroups_subscriptionGroupLocalizations_getToManyRelated': 'apple/subscriptions validate', + 'subscriptionGroups_subscriptions_getToManyRelated': 'apple/subscriptions catalog validate', + 'subscriptionLocalizations_createInstance': 'apple/subscriptions', + 'subscriptionOfferCodeCustomCodes_createInstance': 'apple/subscriptions', + 'subscriptionOfferCodes_createInstance': 'apple/subscriptions', + 'subscriptionOfferCodes_customCodes_getToManyRelated': 'apple/subscriptions', + 'subscriptionPricePoints_equalizations_getToManyRelated': 'apple/subscriptions', + 'subscriptionPromotionalOffers_createInstance': 'apple/subscriptions', + 'subscriptions_appStoreReviewScreenshot_getToOneRelated': 'apple/subscriptions validate', + 'subscriptions_createInstance': 'apple/subscriptions', + 'subscriptions_introductoryOffers_getToManyRelated': 'apple/subscriptions catalog', + 'subscriptions_offerCodes_getToManyRelated': 'apple/subscriptions catalog', + 'subscriptions_pricePoints_getToManyRelated': 'apple/subscriptions', + 'subscriptions_prices_getToManyRelated': 'apple/subscriptions catalog', + 'subscriptions_promotionalOffers_getToManyRelated': 'apple/subscriptions catalog', + 'subscriptions_subscriptionAvailability_getToOneRelated': 'apple/subscriptions', + 'subscriptions_subscriptionLocalizations_getToManyRelated': 'apple/subscriptions catalog validate', + 'subscriptions_updateInstance': 'apple/subscriptions', + 'territories_getCollection': 'apple/appinfo apple/iap apple/subscriptions', + }, + play: { + 'androidpublisher.applications.dataSafety': 'play/data-safety', + 'androidpublisher.edits.apks.list': 'play/next-version-code', + 'androidpublisher.edits.bundles.list': 'play/next-version-code', + 'androidpublisher.edits.bundles.upload': 'play/release', + 'androidpublisher.edits.commit': 'play/client', + 'androidpublisher.edits.delete': 'apps play/client validate', + 'androidpublisher.edits.details.get': 'apps play/listing play/status validate', + 'androidpublisher.edits.details.update': 'play/listing', + 'androidpublisher.edits.images.deleteall': 'play/images', + 'androidpublisher.edits.images.list': 'apps play/images validate', + 'androidpublisher.edits.images.upload': 'play/images', + 'androidpublisher.edits.insert': 'apps play/client validate', + 'androidpublisher.edits.listings.list': 'play/listing play/status validate', + 'androidpublisher.edits.listings.update': 'play/listing', + 'androidpublisher.edits.tracks.get': 'play/rollout', + 'androidpublisher.edits.tracks.list': 'play/next-version-code play/status validate', + 'androidpublisher.edits.tracks.update': 'play/release play/rollout', + 'androidpublisher.edits.validate': 'play/client', + 'androidpublisher.monetization.convertRegionPrices': 'play/products play/subscriptions prices', + 'androidpublisher.monetization.onetimeproducts.get': 'prices', + 'androidpublisher.monetization.onetimeproducts.list': 'play/products', + 'androidpublisher.monetization.onetimeproducts.patch': 'play/products prices', + 'androidpublisher.monetization.onetimeproducts.purchaseOptions.batchUpdateStates': 'play/products', + 'androidpublisher.monetization.subscriptions.basePlans.activate': 'play/subscriptions', + 'androidpublisher.monetization.subscriptions.basePlans.offers.activate': 'play/subscriptions', + 'androidpublisher.monetization.subscriptions.basePlans.offers.create': 'play/subscriptions', + 'androidpublisher.monetization.subscriptions.basePlans.offers.list': 'catalog play/subscriptions', + 'androidpublisher.monetization.subscriptions.create': 'play/subscriptions', + 'androidpublisher.monetization.subscriptions.list': 'catalog play/subscriptions validate', + 'androidpublisher.monetization.subscriptions.patch': 'play/subscriptions', + 'androidpublisher.reviews.list': 'reviews', + 'androidpublisher.reviews.reply': 'lib/reviews', + 'playdeveloperreporting.apps.search': 'apps lib/store-apps', + 'playdeveloperreporting.vitals.anrrate.query': 'health', + 'playdeveloperreporting.vitals.crashrate.get': 'health', + 'playdeveloperreporting.vitals.crashrate.query': 'health', + 'playdeveloperreporting.vitals.errors.issues.search': 'health', + }, +}; diff --git a/cli/apple/asc.ts b/cli/apple/asc.ts index 504f0472..07612d8f 100644 --- a/cli/apple/asc.ts +++ b/cli/apple/asc.ts @@ -24,7 +24,9 @@ export function setUpToDate(existing: { checksum?: string | null; state?: string return existing.length === want.length && existing.every((e, i) => e.checksum === want[i] && DELIVERED.includes(e.state ?? '')); } -export async function ascClient(root: string, bundleId: string, appIdHint?: string) { +/** Cached ES256 token getter for the team API key (env or .storebound/): valid 18 minutes, renewed after 15. Shared by + * ascClient and the generic `storebound api apple` client (cli/api/client.ts). */ +export function ascJwt(root: string): { jwt: () => string; keyId: string } { const k = ascKey(root); const key = createPrivateKey(k.pem); let cached = { jwt: '', until: 0 }; @@ -36,6 +38,12 @@ export async function ascClient(root: string, bundleId: string, appIdHint?: stri cached = { jwt: `${h}.${p}.${b64(sign('sha256', Buffer.from(h + '.' + p), { key, dsaEncoding: 'ieee-p1363' }))}`, until: now + 900 }; return cached.jwt; } + return { jwt, keyId: k.keyId }; +} + +export async function ascClient(root: string, bundleId: string, appIdHint?: string) { + const k = ascJwt(root); + const jwt = k.jwt; async function asc(method: string, path: string, body?: unknown, attempt = 1): Promise { const r = await fetch(path.startsWith('http') ? path : 'https://api.appstoreconnect.apple.com' + path, { diff --git a/cli/index.ts b/cli/index.ts index 5644e5f7..d73ff759 100755 --- a/cli/index.ts +++ b/cli/index.ts @@ -18,6 +18,7 @@ const PLAIN: Record Promise, string]> = { 'apps': [() => import('./apps'), 'list (every app the store keys can see: App Store Connect team, Play developer accounts; --icons) | check (key works / permission missing / revoked, with the fix); --store apple|play, --json; read-only'], 'desktop': [() => import('./desktop'), 'open the storebound desktop app (in an app folder: add or select it there); not installed: the download for this system, --download saves it to ~/Downloads after checking its signature (never installs)'], 'doctor': [() => import('./doctor'), 'local tools for screenshots, previews, icons and captures (ffmpeg, Chrome, playwright, Xcode, adb, git) and how to install what is missing; --json'], + 'api': [() => import('./api'), 'every App Store Connect / Google Play API operation: list | coverage | apple|play [--param k=v] [--body f.json] [--all-pages] (GET runs; writes dry unless --yes in a terminal; owner-only ones need the id typed)'], 'privacy-manifest': [() => import('./privacy-manifest'), 'iOS PrivacyInfo.xcprivacy + required-reason API + SDK manifest scan (--ios )'], }; const COMMANDS: Record Promise, string]> = { diff --git a/cli/lib/args.ts b/cli/lib/args.ts index 87d2be2a..1d94a324 100644 --- a/cli/lib/args.ts +++ b/cli/lib/args.ts @@ -6,21 +6,25 @@ export interface Args { str(name: string, d: string): string; num(name: string, d: number): number; list(name: string): string[]; + /** Every value of a flag given more than once (--param a=1 --param b=2), in order. */ + many(name: string): string[]; } export function parseArgs(argv: string[], booleans: string[] = []): Args { const flags = new Map(); + const repeated = new Map(); + const set = (k: string, v: string) => { flags.set(k, v); repeated.set(k, [...(repeated.get(k) ?? []), v]); }; const _: string[] = []; - const bool = new Set(['dry', 'yes', 'help', 'json', 'verbose', ...booleans]); + const bool = new Set(['dry', 'yes', 'help', 'json', 'verbose', 'all-pages', ...booleans]); for (let i = 0; i < argv.length; i++) { const a = argv[i]!; if (!a.startsWith('--')) { _.push(a); continue; } const eq = a.indexOf('='); - if (eq > 0) { flags.set(a.slice(2, eq), a.slice(eq + 1)); continue; } + if (eq > 0) { set(a.slice(2, eq), a.slice(eq + 1)); continue; } const name = a.slice(2); const next = argv[i + 1]; - if (bool.has(name) || name.startsWith('no-') || next === undefined || next.startsWith('--')) flags.set(name, 'true'); - else { flags.set(name, next); i++; } + if (bool.has(name) || name.startsWith('no-') || next === undefined || next.startsWith('--')) set(name, 'true'); + else { set(name, next); i++; } } const get = (n: string) => flags.get(n); return { @@ -30,5 +34,6 @@ export function parseArgs(argv: string[], booleans: string[] = []): Args { str: (n, d) => get(n) ?? d, num: (n, d) => { const v = get(n); const x = v === undefined ? d : Number(v); if (Number.isNaN(x)) throw new Error(`--${n}: not a number`); return x; }, list: n => (get(n) ?? '').split(',').map(s => s.trim()).filter(Boolean), + many: n => repeated.get(n) ?? [], }; } diff --git a/cli/mcp-tools.ts b/cli/mcp-tools.ts index 9b7e2aa2..50a8989a 100644 --- a/cli/mcp-tools.ts +++ b/cli/mcp-tools.ts @@ -3,7 +3,7 @@ // submits for review, releases to the public, resumes / completes a rollout, cancels a submission or deletes is // exposed. Those stay terminal commands the owner runs (they also ask for confirmation there). -export interface JsonSchema { type: string; description?: string; enum?: (string | number)[]; default?: unknown; items?: JsonSchema; minimum?: number; maximum?: number; pattern?: string } +export interface JsonSchema { type: string; description?: string; enum?: (string | number)[]; default?: unknown; items?: JsonSchema; minimum?: number; maximum?: number; pattern?: string; additionalProperties?: JsonSchema | boolean } export interface ToolDef { name: string; @@ -204,6 +204,14 @@ export const TOOLS: ToolDef[] = [ description: 'Sync the screenshots of one shots variant (renders///...) into the matching treatment of the editable Product Page Optimization test, per locale (MD5-idempotent; changed sets are replaced). Nothing is shown to players until the owner starts the test.', props: { variant, experiment: { type: 'string', description: 'Test name (default: the one editable test)' }, only }, required: ['variant'], args: i => [...opt('variant', i.variant), ...opt('experiment', i.experiment), ...opt('only', i.only)] }, + { name: 'api_get', title: 'Any store API read', command: ['api', 'get'], write: false, network: true, + description: 'Read-only call of any App Store Connect API or Google Play Developer API GET operation by its operation id (every one is listed by `storebound api list` and in docs/api-coverage.md), e.g. store apple, operation apps_getCollection, params {"filter[bundleId]": "com.example.app"}. GET only: writes, and anything that submits, releases, deletes or cancels, are never available here.', + props: { store: { type: 'string', enum: ['apple', 'play'] }, + operation: { type: 'string', pattern: '^[A-Za-z][A-Za-z0-9_.]{0,200}$', description: 'Operation id: Apple e.g. apps_getCollection, Google e.g. androidpublisher.reviews.list (the API prefix may be left out)' }, + params: { type: 'object', additionalProperties: { type: 'string' }, description: 'Path and query parameters by name (string, number or boolean values; lists comma-separated)' }, + all_pages: { type: 'boolean', description: 'Follow every page and merge them' } }, + required: ['store', 'operation'], + args: i => [String(i.store), String(i.operation), ...Object.entries((i.params ?? {}) as Record).map(([k, v]) => `--param=${k}=${String(v)}`), ...flag('all-pages', i.all_pages), '--json'] }, { name: 'icons', title: 'Generate icons', command: ['icons'], write: true, network: false, idempotent: true, description: 'Write every store / launcher / web icon from the artwork in the config (local files, needs ffmpeg).' }, { name: 'import_fastlane', title: 'Import a fastlane setup', command: ['import', 'fastlane'], write: true, network: false, idempotent: true, @@ -248,8 +256,10 @@ export function validateInput(t: ToolDef, input: unknown): string[] { for (const [k, v] of Object.entries(i)) { const p = s.properties[k]; if (!p) { e.push(`${k}: unknown argument`); continue; } - const ok = p.type === 'integer' ? Number.isInteger(v) : p.type === 'boolean' ? typeof v === 'boolean' : p.type === 'string' ? typeof v === 'string' : true; - if (!ok) { e.push(`${k}: must be ${p.type}`); continue; } + const ok = p.type === 'integer' ? Number.isInteger(v) : p.type === 'boolean' ? typeof v === 'boolean' : p.type === 'string' ? typeof v === 'string' + : p.type === 'object' ? typeof v === 'object' && v !== null && !Array.isArray(v) && Object.entries(v).every(([pk, pv]) => /^[A-Za-z][A-Za-z0-9_.[\]+-]{0,100}$/.test(pk) && ['string', 'number', 'boolean'].includes(typeof pv) && !/[\n\r]/.test(String(pv))) + : true; + if (!ok) { e.push(`${k}: must be ${p.type === 'object' ? 'an object of name -> string / number / boolean' : p.type}`); continue; } if (p.enum && !p.enum.includes(v as string)) e.push(`${k}: one of ${p.enum.join(', ')}`); if (p.pattern && typeof v === 'string' && !new RegExp(p.pattern).test(v)) e.push(`${k}: does not match ${p.pattern}`); if (p.minimum !== undefined && typeof v === 'number' && v < p.minimum) e.push(`${k}: >= ${p.minimum}`); diff --git a/cli/mcp.ts b/cli/mcp.ts index 04a552db..38f35ec3 100644 --- a/cli/mcp.ts +++ b/cli/mcp.ts @@ -120,7 +120,8 @@ const running = new Map(); function cancel(id: Id | undefined): void { if (id !== undefined) running.get(id)?.cancel(); } async function runCli(argv: string[], id: Id): Promise<{ code: number; out: string }> { - const r = runCommand(argv, { cwd: process.env.STOREBOUND_PROJECT || process.cwd() }); + // STOREBOUND_MCP: `storebound api` never sends a write from an MCP call, whatever the arguments + const r = runCommand(argv, { cwd: process.env.STOREBOUND_PROJECT || process.cwd(), env: { STOREBOUND_MCP: '1' } }); running.set(id, r); try { const { code, out } = await r.result; return { code, out }; } finally { running.delete(id); } } diff --git a/cli/serve.ts b/cli/serve.ts index f6fe3f5d..ada132f4 100644 --- a/cli/serve.ts +++ b/cli/serve.ts @@ -39,8 +39,8 @@ const lang = { type: 'string', pattern: '^[A-Za-z0-9_-]{1,20}(,[A-Za-z0-9_-]{1,2 export const PRICE_SHEET_RE = /^(?!-)[^\x00-\x1f]{1,1000}\.[cC][sS][vV]$/; /** MCP tools the desktop profile leaves out (sending builds to testers on Play, release state changes: the window has - * the owner actions for those). */ -export const DESKTOP_EXCLUDED = new Set(['play_release_testing', 'apple_phased_release']); + * the owner actions for those; the raw API reader api_get, which the window has no use for). */ +export const DESKTOP_EXCLUDED = new Set(['play_release_testing', 'apple_phased_release', 'api_get']); /** Words no desktop method name may contain. */ export const FORBIDDEN_METHOD_WORDS = /submit|release|publish|rollout|resume|complete|send|start|stop|cancel|delete|remove|invite/i; diff --git a/docs/api-coverage.md b/docs/api-coverage.md new file mode 100644 index 00000000..b0da39a0 --- /dev/null +++ b/docs/api-coverage.md @@ -0,0 +1,1768 @@ +# API coverage + + + +Every operation of the App Store Connect API and the Google Play Developer APIs is callable with +`storebound api apple|play [--param k=v ...]`. "Wrapped by" names the storebound modules whose +high-level commands already call the operation. Gates: **read** runs right away; **write** prints the exact request and +only sends with `--yes` in an interactive terminal; **owner only** (submit, release, delete, cancel, prices, testers, +review replies, experiments) also asks you to type the operation id, and is never reachable through MCP or the desktop app. + +Specs: Apple [App Store Connect API 4.5.1](https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip) (downloaded 2026-10-11); [Google Play Android Developer API v3](https://www.googleapis.com/discovery/v1/apis/androidpublisher/v3/rest) revision 20261008; [Google Play Developer Reporting API v1beta1](https://playdeveloperreporting.googleapis.com/$discovery/rest?version=v1beta1) revision 20261008. + +| API | operations | GET | other | wrapped by a command | owner only | +|---|---:|---:|---:|---:|---:| +| App Store Connect API 4.5.1 | 1303 | 826 | 477 | 126 | 166 | +| Google Play Android Developer API v3 (revision 20261008) | 145 | 45 | 100 | 32 | 49 | +| Google Play Developer Reporting API v1beta1 (revision 20261008) | 25 | 15 | 10 | 5 | 0 | + +## App Store Connect API 4.5.1 + +203 resources, 1303 operations. + +| operation | method | path | gate | wrapped by (cli/…) | +|---|---|---|---|---| +| **accessibilityDeclarations** (4) | | | | | +| `accessibilityDeclarations_createInstance` | POST | `/v1/accessibilityDeclarations` | write (dry by default) | | +| `accessibilityDeclarations_deleteInstance` | DELETE | `/v1/accessibilityDeclarations/{id}` | owner only (typed confirm) | | +| `accessibilityDeclarations_getInstance` | GET | `/v1/accessibilityDeclarations/{id}` | read | | +| `accessibilityDeclarations_updateInstance` | PATCH | `/v1/accessibilityDeclarations/{id}` | write (dry by default) | | +| **actors** (2) | | | | | +| `actors_getCollection` | GET | `/v1/actors` | read | | +| `actors_getInstance` | GET | `/v1/actors/{id}` | read | | +| **ageRatingDeclarations** (1) | | | | | +| `ageRatingDeclarations_updateInstance` | PATCH | `/v1/ageRatingDeclarations/{id}` | write (dry by default) | apple/appinfo | +| **alternativeDistributionDomains** (4) | | | | | +| `alternativeDistributionDomains_createInstance` | POST | `/v1/alternativeDistributionDomains` | write (dry by default) | | +| `alternativeDistributionDomains_deleteInstance` | DELETE | `/v1/alternativeDistributionDomains/{id}` | owner only (typed confirm) | | +| `alternativeDistributionDomains_getCollection` | GET | `/v1/alternativeDistributionDomains` | read | | +| `alternativeDistributionDomains_getInstance` | GET | `/v1/alternativeDistributionDomains/{id}` | read | | +| **alternativeDistributionKeys** (4) | | | | | +| `alternativeDistributionKeys_createInstance` | POST | `/v1/alternativeDistributionKeys` | write (dry by default) | | +| `alternativeDistributionKeys_deleteInstance` | DELETE | `/v1/alternativeDistributionKeys/{id}` | owner only (typed confirm) | | +| `alternativeDistributionKeys_getCollection` | GET | `/v1/alternativeDistributionKeys` | read | | +| `alternativeDistributionKeys_getInstance` | GET | `/v1/alternativeDistributionKeys/{id}` | read | | +| **alternativeDistributionPackageDeltas** (1) | | | | | +| `alternativeDistributionPackageDeltas_getInstance` | GET | `/v1/alternativeDistributionPackageDeltas/{id}` | read | | +| **alternativeDistributionPackageVariants** (1) | | | | | +| `alternativeDistributionPackageVariants_getInstance` | GET | `/v1/alternativeDistributionPackageVariants/{id}` | read | | +| **alternativeDistributionPackageVersions** (5) | | | | | +| `alternativeDistributionPackageVersions_deltas_getToManyRelated` | GET | `/v1/alternativeDistributionPackageVersions/{id}/deltas` | read | | +| `alternativeDistributionPackageVersions_deltas_getToManyRelationship` | GET | `/v1/alternativeDistributionPackageVersions/{id}/relationships/deltas` | read | | +| `alternativeDistributionPackageVersions_getInstance` | GET | `/v1/alternativeDistributionPackageVersions/{id}` | read | | +| `alternativeDistributionPackageVersions_variants_getToManyRelated` | GET | `/v1/alternativeDistributionPackageVersions/{id}/variants` | read | | +| `alternativeDistributionPackageVersions_variants_getToManyRelationship` | GET | `/v1/alternativeDistributionPackageVersions/{id}/relationships/variants` | read | | +| **alternativeDistributionPackages** (4) | | | | | +| `alternativeDistributionPackages_createInstance` | POST | `/v1/alternativeDistributionPackages` | write (dry by default) | | +| `alternativeDistributionPackages_getInstance` | GET | `/v1/alternativeDistributionPackages/{id}` | read | | +| `alternativeDistributionPackages_versions_getToManyRelated` | GET | `/v1/alternativeDistributionPackages/{id}/versions` | read | | +| `alternativeDistributionPackages_versions_getToManyRelationship` | GET | `/v1/alternativeDistributionPackages/{id}/relationships/versions` | read | | +| **analyticsReportInstances** (3) | | | | | +| `analyticsReportInstances_getInstance` | GET | `/v1/analyticsReportInstances/{id}` | read | | +| `analyticsReportInstances_segments_getToManyRelated` | GET | `/v1/analyticsReportInstances/{id}/segments` | read | analytics | +| `analyticsReportInstances_segments_getToManyRelationship` | GET | `/v1/analyticsReportInstances/{id}/relationships/segments` | read | | +| **analyticsReportRequests** (5) | | | | | +| `analyticsReportRequests_createInstance` | POST | `/v1/analyticsReportRequests` | write (dry by default) | analytics | +| `analyticsReportRequests_deleteInstance` | DELETE | `/v1/analyticsReportRequests/{id}` | owner only (typed confirm) | | +| `analyticsReportRequests_getInstance` | GET | `/v1/analyticsReportRequests/{id}` | read | | +| `analyticsReportRequests_reports_getToManyRelated` | GET | `/v1/analyticsReportRequests/{id}/reports` | read | analytics | +| `analyticsReportRequests_reports_getToManyRelationship` | GET | `/v1/analyticsReportRequests/{id}/relationships/reports` | read | | +| **analyticsReportSegments** (1) | | | | | +| `analyticsReportSegments_getInstance` | GET | `/v1/analyticsReportSegments/{id}` | read | | +| **analyticsReports** (3) | | | | | +| `analyticsReports_getInstance` | GET | `/v1/analyticsReports/{id}` | read | | +| `analyticsReports_instances_getToManyRelated` | GET | `/v1/analyticsReports/{id}/instances` | read | analytics | +| `analyticsReports_instances_getToManyRelationship` | GET | `/v1/analyticsReports/{id}/relationships/instances` | read | | +| **androidToIosAppMappingDetails** (4) | | | | | +| `androidToIosAppMappingDetails_createInstance` | POST | `/v1/androidToIosAppMappingDetails` | write (dry by default) | | +| `androidToIosAppMappingDetails_deleteInstance` | DELETE | `/v1/androidToIosAppMappingDetails/{id}` | owner only (typed confirm) | | +| `androidToIosAppMappingDetails_getInstance` | GET | `/v1/androidToIosAppMappingDetails/{id}` | read | | +| `androidToIosAppMappingDetails_updateInstance` | PATCH | `/v1/androidToIosAppMappingDetails/{id}` | write (dry by default) | | +| **appAssetLibraries** (5) | | | | | +| `appAssetLibraries_getInstance` | GET | `/v1/appAssetLibraries/{id}` | read | | +| `appAssetLibraries_images_getToManyRelated` | GET | `/v1/appAssetLibraries/{id}/images` | read | | +| `appAssetLibraries_images_getToManyRelationship` | GET | `/v1/appAssetLibraries/{id}/relationships/images` | read | | +| `appAssetLibraries_videos_getToManyRelated` | GET | `/v1/appAssetLibraries/{id}/videos` | read | | +| `appAssetLibraries_videos_getToManyRelationship` | GET | `/v1/appAssetLibraries/{id}/relationships/videos` | read | | +| **appAssetLibraryImages** (6) | | | | | +| `appAssetLibraryImages_createInstance` | POST | `/v1/appAssetLibraryImages` | write (dry by default) | | +| `appAssetLibraryImages_deleteInstance` | DELETE | `/v1/appAssetLibraryImages/{id}` | owner only (typed confirm) | | +| `appAssetLibraryImages_getInstance` | GET | `/v1/appAssetLibraryImages/{id}` | read | | +| `appAssetLibraryImages_placements_getToManyRelated` | GET | `/v1/appAssetLibraryImages/{id}/placements` | read | | +| `appAssetLibraryImages_placements_getToManyRelationship` | GET | `/v1/appAssetLibraryImages/{id}/relationships/placements` | read | | +| `appAssetLibraryImages_updateInstance` | PATCH | `/v1/appAssetLibraryImages/{id}` | write (dry by default) | | +| **appAssetLibraryPlacementOrderingRequests** (1) | | | | | +| `appAssetLibraryPlacementOrderingRequests_createInstance` | POST | `/v1/appAssetLibraryPlacementOrderingRequests` | write (dry by default) | | +| **appAssetLibraryPlacements** (3) | | | | | +| `appAssetLibraryPlacements_createInstance` | POST | `/v1/appAssetLibraryPlacements` | write (dry by default) | | +| `appAssetLibraryPlacements_deleteInstance` | DELETE | `/v1/appAssetLibraryPlacements/{id}` | owner only (typed confirm) | | +| `appAssetLibraryPlacements_getInstance` | GET | `/v1/appAssetLibraryPlacements/{id}` | read | | +| **appAssetLibraryRefData** (2) | | | | | +| `appAssetLibraryRefData_getCollection` | GET | `/v1/appAssetLibraryRefData` | read | | +| `appAssetLibraryRefData_getInstance` | GET | `/v1/appAssetLibraryRefData/{id}` | read | | +| **appAssetLibraryVideos** (6) | | | | | +| `appAssetLibraryVideos_createInstance` | POST | `/v1/appAssetLibraryVideos` | write (dry by default) | | +| `appAssetLibraryVideos_deleteInstance` | DELETE | `/v1/appAssetLibraryVideos/{id}` | owner only (typed confirm) | | +| `appAssetLibraryVideos_getInstance` | GET | `/v1/appAssetLibraryVideos/{id}` | read | | +| `appAssetLibraryVideos_placements_getToManyRelated` | GET | `/v1/appAssetLibraryVideos/{id}/placements` | read | | +| `appAssetLibraryVideos_placements_getToManyRelationship` | GET | `/v1/appAssetLibraryVideos/{id}/relationships/placements` | read | | +| `appAssetLibraryVideos_updateInstance` | PATCH | `/v1/appAssetLibraryVideos/{id}` | write (dry by default) | | +| **appAvailabilities** (4) | | | | | +| `appAvailabilitiesV2_createInstance` | POST | `/v2/appAvailabilities` | write (dry by default) | apple/appinfo | +| `appAvailabilitiesV2_getInstance` | GET | `/v2/appAvailabilities/{id}` | read | | +| `appAvailabilitiesV2_territoryAvailabilities_getToManyRelated` | GET | `/v2/appAvailabilities/{id}/territoryAvailabilities` | read | | +| `appAvailabilitiesV2_territoryAvailabilities_getToManyRelationship` | GET | `/v2/appAvailabilities/{id}/relationships/territoryAvailabilities` | read | | +| **appCategories** (6) | | | | | +| `appCategories_getCollection` | GET | `/v1/appCategories` | read | | +| `appCategories_getInstance` | GET | `/v1/appCategories/{id}` | read | | +| `appCategories_parent_getToOneRelated` | GET | `/v1/appCategories/{id}/parent` | read | | +| `appCategories_parent_getToOneRelationship` | GET | `/v1/appCategories/{id}/relationships/parent` | read | | +| `appCategories_subcategories_getToManyRelated` | GET | `/v1/appCategories/{id}/subcategories` | read | | +| `appCategories_subcategories_getToManyRelationship` | GET | `/v1/appCategories/{id}/relationships/subcategories` | read | | +| **appClipAdvancedExperienceImages** (3) | | | | | +| `appClipAdvancedExperienceImages_createInstance` | POST | `/v1/appClipAdvancedExperienceImages` | write (dry by default) | | +| `appClipAdvancedExperienceImages_getInstance` | GET | `/v1/appClipAdvancedExperienceImages/{id}` | read | | +| `appClipAdvancedExperienceImages_updateInstance` | PATCH | `/v1/appClipAdvancedExperienceImages/{id}` | write (dry by default) | | +| **appClipAdvancedExperiences** (3) | | | | | +| `appClipAdvancedExperiences_createInstance` | POST | `/v1/appClipAdvancedExperiences` | write (dry by default) | | +| `appClipAdvancedExperiences_getInstance` | GET | `/v1/appClipAdvancedExperiences/{id}` | read | | +| `appClipAdvancedExperiences_updateInstance` | PATCH | `/v1/appClipAdvancedExperiences/{id}` | write (dry by default) | | +| **appClipAppStoreReviewDetails** (3) | | | | | +| `appClipAppStoreReviewDetails_createInstance` | POST | `/v1/appClipAppStoreReviewDetails` | write (dry by default) | | +| `appClipAppStoreReviewDetails_getInstance` | GET | `/v1/appClipAppStoreReviewDetails/{id}` | read | | +| `appClipAppStoreReviewDetails_updateInstance` | PATCH | `/v1/appClipAppStoreReviewDetails/{id}` | write (dry by default) | | +| **appClipDefaultExperienceLocalizations** (6) | | | | | +| `appClipDefaultExperienceLocalizations_appClipHeaderImage_getToOneRelated` | GET | `/v1/appClipDefaultExperienceLocalizations/{id}/appClipHeaderImage` | read | | +| `appClipDefaultExperienceLocalizations_appClipHeaderImage_getToOneRelationship` | GET | `/v1/appClipDefaultExperienceLocalizations/{id}/relationships/appClipHeaderImage` | read | | +| `appClipDefaultExperienceLocalizations_createInstance` | POST | `/v1/appClipDefaultExperienceLocalizations` | write (dry by default) | | +| `appClipDefaultExperienceLocalizations_deleteInstance` | DELETE | `/v1/appClipDefaultExperienceLocalizations/{id}` | owner only (typed confirm) | | +| `appClipDefaultExperienceLocalizations_getInstance` | GET | `/v1/appClipDefaultExperienceLocalizations/{id}` | read | | +| `appClipDefaultExperienceLocalizations_updateInstance` | PATCH | `/v1/appClipDefaultExperienceLocalizations/{id}` | write (dry by default) | | +| **appClipDefaultExperiences** (11) | | | | | +| `appClipDefaultExperiences_appClipAppStoreReviewDetail_getToOneRelated` | GET | `/v1/appClipDefaultExperiences/{id}/appClipAppStoreReviewDetail` | read | | +| `appClipDefaultExperiences_appClipAppStoreReviewDetail_getToOneRelationship` | GET | `/v1/appClipDefaultExperiences/{id}/relationships/appClipAppStoreReviewDetail` | read | | +| `appClipDefaultExperiences_appClipDefaultExperienceLocalizations_getToManyRelated` | GET | `/v1/appClipDefaultExperiences/{id}/appClipDefaultExperienceLocalizations` | read | | +| `appClipDefaultExperiences_appClipDefaultExperienceLocalizations_getToManyRelationship` | GET | `/v1/appClipDefaultExperiences/{id}/relationships/appClipDefaultExperienceLocalizations` | read | | +| `appClipDefaultExperiences_createInstance` | POST | `/v1/appClipDefaultExperiences` | write (dry by default) | | +| `appClipDefaultExperiences_deleteInstance` | DELETE | `/v1/appClipDefaultExperiences/{id}` | owner only (typed confirm) | | +| `appClipDefaultExperiences_getInstance` | GET | `/v1/appClipDefaultExperiences/{id}` | read | | +| `appClipDefaultExperiences_releaseWithAppStoreVersion_getToOneRelated` | GET | `/v1/appClipDefaultExperiences/{id}/releaseWithAppStoreVersion` | read | | +| `appClipDefaultExperiences_releaseWithAppStoreVersion_getToOneRelationship` | GET | `/v1/appClipDefaultExperiences/{id}/relationships/releaseWithAppStoreVersion` | read | | +| `appClipDefaultExperiences_releaseWithAppStoreVersion_updateToOneRelationship` | PATCH | `/v1/appClipDefaultExperiences/{id}/relationships/releaseWithAppStoreVersion` | write (dry by default) | | +| `appClipDefaultExperiences_updateInstance` | PATCH | `/v1/appClipDefaultExperiences/{id}` | write (dry by default) | | +| **appClipHeaderImages** (4) | | | | | +| `appClipHeaderImages_createInstance` | POST | `/v1/appClipHeaderImages` | write (dry by default) | | +| `appClipHeaderImages_deleteInstance` | DELETE | `/v1/appClipHeaderImages/{id}` | owner only (typed confirm) | | +| `appClipHeaderImages_getInstance` | GET | `/v1/appClipHeaderImages/{id}` | read | | +| `appClipHeaderImages_updateInstance` | PATCH | `/v1/appClipHeaderImages/{id}` | write (dry by default) | | +| **appClips** (5) | | | | | +| `appClips_appClipAdvancedExperiences_getToManyRelated` | GET | `/v1/appClips/{id}/appClipAdvancedExperiences` | read | | +| `appClips_appClipAdvancedExperiences_getToManyRelationship` | GET | `/v1/appClips/{id}/relationships/appClipAdvancedExperiences` | read | | +| `appClips_appClipDefaultExperiences_getToManyRelated` | GET | `/v1/appClips/{id}/appClipDefaultExperiences` | read | | +| `appClips_appClipDefaultExperiences_getToManyRelationship` | GET | `/v1/appClips/{id}/relationships/appClipDefaultExperiences` | read | | +| `appClips_getInstance` | GET | `/v1/appClips/{id}` | read | | +| **appCustomProductPageLocalizations** (14) | | | | | +| `appCustomProductPageLocalizations_appPreviewSets_getToManyRelated` | GET | `/v1/appCustomProductPageLocalizations/{id}/appPreviewSets` | read | | +| `appCustomProductPageLocalizations_appPreviewSets_getToManyRelationship` | GET | `/v1/appCustomProductPageLocalizations/{id}/relationships/appPreviewSets` | read | | +| `appCustomProductPageLocalizations_appScreenshotSets_getToManyRelated` | GET | `/v1/appCustomProductPageLocalizations/{id}/appScreenshotSets` | read | | +| `appCustomProductPageLocalizations_appScreenshotSets_getToManyRelationship` | GET | `/v1/appCustomProductPageLocalizations/{id}/relationships/appScreenshotSets` | read | | +| `appCustomProductPageLocalizations_createInstance` | POST | `/v1/appCustomProductPageLocalizations` | write (dry by default) | | +| `appCustomProductPageLocalizations_deleteInstance` | DELETE | `/v1/appCustomProductPageLocalizations/{id}` | owner only (typed confirm) | | +| `appCustomProductPageLocalizations_getInstance` | GET | `/v1/appCustomProductPageLocalizations/{id}` | read | | +| `appCustomProductPageLocalizations_placements_getToManyRelated` | GET | `/v1/appCustomProductPageLocalizations/{id}/placements` | read | | +| `appCustomProductPageLocalizations_placements_getToManyRelationship` | GET | `/v1/appCustomProductPageLocalizations/{id}/relationships/placements` | read | | +| `appCustomProductPageLocalizations_searchKeywords_createToManyRelationship` | POST | `/v1/appCustomProductPageLocalizations/{id}/relationships/searchKeywords` | write (dry by default) | | +| `appCustomProductPageLocalizations_searchKeywords_deleteToManyRelationship` | DELETE | `/v1/appCustomProductPageLocalizations/{id}/relationships/searchKeywords` | owner only (typed confirm) | | +| `appCustomProductPageLocalizations_searchKeywords_getToManyRelated` | GET | `/v1/appCustomProductPageLocalizations/{id}/searchKeywords` | read | | +| `appCustomProductPageLocalizations_searchKeywords_getToManyRelationship` | GET | `/v1/appCustomProductPageLocalizations/{id}/relationships/searchKeywords` | read | | +| `appCustomProductPageLocalizations_updateInstance` | PATCH | `/v1/appCustomProductPageLocalizations/{id}` | write (dry by default) | | +| **appCustomProductPageVersions** (5) | | | | | +| `appCustomProductPageVersions_appCustomProductPageLocalizations_getToManyRelated` | GET | `/v1/appCustomProductPageVersions/{id}/appCustomProductPageLocalizations` | read | | +| `appCustomProductPageVersions_appCustomProductPageLocalizations_getToManyRelationship` | GET | `/v1/appCustomProductPageVersions/{id}/relationships/appCustomProductPageLocalizations` | read | | +| `appCustomProductPageVersions_createInstance` | POST | `/v1/appCustomProductPageVersions` | write (dry by default) | | +| `appCustomProductPageVersions_getInstance` | GET | `/v1/appCustomProductPageVersions/{id}` | read | | +| `appCustomProductPageVersions_updateInstance` | PATCH | `/v1/appCustomProductPageVersions/{id}` | write (dry by default) | | +| **appCustomProductPages** (6) | | | | | +| `appCustomProductPages_appCustomProductPageVersions_getToManyRelated` | GET | `/v1/appCustomProductPages/{id}/appCustomProductPageVersions` | read | | +| `appCustomProductPages_appCustomProductPageVersions_getToManyRelationship` | GET | `/v1/appCustomProductPages/{id}/relationships/appCustomProductPageVersions` | read | | +| `appCustomProductPages_createInstance` | POST | `/v1/appCustomProductPages` | write (dry by default) | | +| `appCustomProductPages_deleteInstance` | DELETE | `/v1/appCustomProductPages/{id}` | owner only (typed confirm) | | +| `appCustomProductPages_getInstance` | GET | `/v1/appCustomProductPages/{id}` | read | | +| `appCustomProductPages_updateInstance` | PATCH | `/v1/appCustomProductPages/{id}` | write (dry by default) | | +| **appEncryptionDeclarationDocuments** (3) | | | | | +| `appEncryptionDeclarationDocuments_createInstance` | POST | `/v1/appEncryptionDeclarationDocuments` | write (dry by default) | | +| `appEncryptionDeclarationDocuments_getInstance` | GET | `/v1/appEncryptionDeclarationDocuments/{id}` | read | | +| `appEncryptionDeclarationDocuments_updateInstance` | PATCH | `/v1/appEncryptionDeclarationDocuments/{id}` | write (dry by default) | | +| **appEncryptionDeclarations** (8) | | | | | +| `appEncryptionDeclarations_appEncryptionDeclarationDocument_getToOneRelated` | GET | `/v1/appEncryptionDeclarations/{id}/appEncryptionDeclarationDocument` | read | | +| `appEncryptionDeclarations_appEncryptionDeclarationDocument_getToOneRelationship` | GET | `/v1/appEncryptionDeclarations/{id}/relationships/appEncryptionDeclarationDocument` | read | | +| `appEncryptionDeclarations_app_getToOneRelated` | GET | `/v1/appEncryptionDeclarations/{id}/app` | read | | +| `appEncryptionDeclarations_app_getToOneRelationship` | GET | `/v1/appEncryptionDeclarations/{id}/relationships/app` | read | | +| `appEncryptionDeclarations_builds_createToManyRelationship` | POST | `/v1/appEncryptionDeclarations/{id}/relationships/builds` | write (dry by default) | | +| `appEncryptionDeclarations_createInstance` | POST | `/v1/appEncryptionDeclarations` | write (dry by default) | | +| `appEncryptionDeclarations_getCollection` | GET | `/v1/appEncryptionDeclarations` | read | apple/encryption | +| `appEncryptionDeclarations_getInstance` | GET | `/v1/appEncryptionDeclarations/{id}` | read | | +| **appEventLocalizations** (10) | | | | | +| `appEventLocalizations_appEventScreenshots_getToManyRelated` | GET | `/v1/appEventLocalizations/{id}/appEventScreenshots` | read | | +| `appEventLocalizations_appEventScreenshots_getToManyRelationship` | GET | `/v1/appEventLocalizations/{id}/relationships/appEventScreenshots` | read | | +| `appEventLocalizations_appEventVideoClips_getToManyRelated` | GET | `/v1/appEventLocalizations/{id}/appEventVideoClips` | read | | +| `appEventLocalizations_appEventVideoClips_getToManyRelationship` | GET | `/v1/appEventLocalizations/{id}/relationships/appEventVideoClips` | read | | +| `appEventLocalizations_createInstance` | POST | `/v1/appEventLocalizations` | write (dry by default) | | +| `appEventLocalizations_deleteInstance` | DELETE | `/v1/appEventLocalizations/{id}` | owner only (typed confirm) | | +| `appEventLocalizations_getInstance` | GET | `/v1/appEventLocalizations/{id}` | read | | +| `appEventLocalizations_placements_getToManyRelated` | GET | `/v1/appEventLocalizations/{id}/placements` | read | | +| `appEventLocalizations_placements_getToManyRelationship` | GET | `/v1/appEventLocalizations/{id}/relationships/placements` | read | | +| `appEventLocalizations_updateInstance` | PATCH | `/v1/appEventLocalizations/{id}` | write (dry by default) | | +| **appEventScreenshots** (4) | | | | | +| `appEventScreenshots_createInstance` | POST | `/v1/appEventScreenshots` | write (dry by default) | | +| `appEventScreenshots_deleteInstance` | DELETE | `/v1/appEventScreenshots/{id}` | owner only (typed confirm) | | +| `appEventScreenshots_getInstance` | GET | `/v1/appEventScreenshots/{id}` | read | | +| `appEventScreenshots_updateInstance` | PATCH | `/v1/appEventScreenshots/{id}` | write (dry by default) | | +| **appEventVideoClips** (4) | | | | | +| `appEventVideoClips_createInstance` | POST | `/v1/appEventVideoClips` | write (dry by default) | | +| `appEventVideoClips_deleteInstance` | DELETE | `/v1/appEventVideoClips/{id}` | owner only (typed confirm) | | +| `appEventVideoClips_getInstance` | GET | `/v1/appEventVideoClips/{id}` | read | | +| `appEventVideoClips_updateInstance` | PATCH | `/v1/appEventVideoClips/{id}` | write (dry by default) | | +| **appEvents** (6) | | | | | +| `appEvents_createInstance` | POST | `/v1/appEvents` | write (dry by default) | | +| `appEvents_deleteInstance` | DELETE | `/v1/appEvents/{id}` | owner only (typed confirm) | | +| `appEvents_getInstance` | GET | `/v1/appEvents/{id}` | read | | +| `appEvents_localizations_getToManyRelated` | GET | `/v1/appEvents/{id}/localizations` | read | | +| `appEvents_localizations_getToManyRelationship` | GET | `/v1/appEvents/{id}/relationships/localizations` | read | | +| `appEvents_updateInstance` | PATCH | `/v1/appEvents/{id}` | write (dry by default) | | +| **appInfoLocalizations** (4) | | | | | +| `appInfoLocalizations_createInstance` | POST | `/v1/appInfoLocalizations` | write (dry by default) | | +| `appInfoLocalizations_deleteInstance` | DELETE | `/v1/appInfoLocalizations/{id}` | owner only (typed confirm) | | +| `appInfoLocalizations_getInstance` | GET | `/v1/appInfoLocalizations/{id}` | read | | +| `appInfoLocalizations_updateInstance` | PATCH | `/v1/appInfoLocalizations/{id}` | write (dry by default) | | +| **appInfos** (20) | | | | | +| `appInfos_ageRatingDeclaration_getToOneRelated` | GET | `/v1/appInfos/{id}/ageRatingDeclaration` | read | validate | +| `appInfos_ageRatingDeclaration_getToOneRelationship` | GET | `/v1/appInfos/{id}/relationships/ageRatingDeclaration` | read | | +| `appInfos_appInfoLocalizations_getToManyRelated` | GET | `/v1/appInfos/{id}/appInfoLocalizations` | read | apple/listing, validate | +| `appInfos_appInfoLocalizations_getToManyRelationship` | GET | `/v1/appInfos/{id}/relationships/appInfoLocalizations` | read | | +| `appInfos_getInstance` | GET | `/v1/appInfos/{id}` | read | | +| `appInfos_primaryCategory_getToOneRelated` | GET | `/v1/appInfos/{id}/primaryCategory` | read | | +| `appInfos_primaryCategory_getToOneRelationship` | GET | `/v1/appInfos/{id}/relationships/primaryCategory` | read | | +| `appInfos_primarySubcategoryOne_getToOneRelated` | GET | `/v1/appInfos/{id}/primarySubcategoryOne` | read | | +| `appInfos_primarySubcategoryOne_getToOneRelationship` | GET | `/v1/appInfos/{id}/relationships/primarySubcategoryOne` | read | | +| `appInfos_primarySubcategoryTwo_getToOneRelated` | GET | `/v1/appInfos/{id}/primarySubcategoryTwo` | read | | +| `appInfos_primarySubcategoryTwo_getToOneRelationship` | GET | `/v1/appInfos/{id}/relationships/primarySubcategoryTwo` | read | | +| `appInfos_secondaryCategory_getToOneRelated` | GET | `/v1/appInfos/{id}/secondaryCategory` | read | | +| `appInfos_secondaryCategory_getToOneRelationship` | GET | `/v1/appInfos/{id}/relationships/secondaryCategory` | read | | +| `appInfos_secondarySubcategoryOne_getToOneRelated` | GET | `/v1/appInfos/{id}/secondarySubcategoryOne` | read | | +| `appInfos_secondarySubcategoryOne_getToOneRelationship` | GET | `/v1/appInfos/{id}/relationships/secondarySubcategoryOne` | read | | +| `appInfos_secondarySubcategoryTwo_getToOneRelated` | GET | `/v1/appInfos/{id}/secondarySubcategoryTwo` | read | | +| `appInfos_secondarySubcategoryTwo_getToOneRelationship` | GET | `/v1/appInfos/{id}/relationships/secondarySubcategoryTwo` | read | | +| `appInfos_territoryAgeRatings_getToManyRelated` | GET | `/v1/appInfos/{id}/territoryAgeRatings` | read | | +| `appInfos_territoryAgeRatings_getToManyRelationship` | GET | `/v1/appInfos/{id}/relationships/territoryAgeRatings` | read | | +| `appInfos_updateInstance` | PATCH | `/v1/appInfos/{id}` | write (dry by default) | apple/appinfo | +| **appPreviewSets** (6) | | | | | +| `appPreviewSets_appPreviews_getToManyRelated` | GET | `/v1/appPreviewSets/{id}/appPreviews` | read | apple/previews | +| `appPreviewSets_appPreviews_getToManyRelationship` | GET | `/v1/appPreviewSets/{id}/relationships/appPreviews` | read | | +| `appPreviewSets_appPreviews_replaceToManyRelationship` | PATCH | `/v1/appPreviewSets/{id}/relationships/appPreviews` | write (dry by default) | | +| `appPreviewSets_createInstance` | POST | `/v1/appPreviewSets` | write (dry by default) | apple/previews | +| `appPreviewSets_deleteInstance` | DELETE | `/v1/appPreviewSets/{id}` | owner only (typed confirm) | | +| `appPreviewSets_getInstance` | GET | `/v1/appPreviewSets/{id}` | read | | +| **appPreviews** (4) | | | | | +| `appPreviews_createInstance` | POST | `/v1/appPreviews` | write (dry by default) | apple/previews | +| `appPreviews_deleteInstance` | DELETE | `/v1/appPreviews/{id}` | owner only (typed confirm) | apple/previews | +| `appPreviews_getInstance` | GET | `/v1/appPreviews/{id}` | read | | +| `appPreviews_updateInstance` | PATCH | `/v1/appPreviews/{id}` | write (dry by default) | apple/previews | +| **appPricePoints** (3) | | | | | +| `appPricePointsV3_equalizations_getToManyRelated` | GET | `/v3/appPricePoints/{id}/equalizations` | read | | +| `appPricePointsV3_equalizations_getToManyRelationship` | GET | `/v3/appPricePoints/{id}/relationships/equalizations` | read | | +| `appPricePointsV3_getInstance` | GET | `/v3/appPricePoints/{id}` | read | | +| **appPriceSchedules** (8) | | | | | +| `appPriceSchedules_automaticPrices_getToManyRelated` | GET | `/v1/appPriceSchedules/{id}/automaticPrices` | read | | +| `appPriceSchedules_automaticPrices_getToManyRelationship` | GET | `/v1/appPriceSchedules/{id}/relationships/automaticPrices` | read | | +| `appPriceSchedules_baseTerritory_getToOneRelated` | GET | `/v1/appPriceSchedules/{id}/baseTerritory` | read | | +| `appPriceSchedules_baseTerritory_getToOneRelationship` | GET | `/v1/appPriceSchedules/{id}/relationships/baseTerritory` | read | | +| `appPriceSchedules_createInstance` | POST | `/v1/appPriceSchedules` | owner only (typed confirm) | apple/appinfo | +| `appPriceSchedules_getInstance` | GET | `/v1/appPriceSchedules/{id}` | read | | +| `appPriceSchedules_manualPrices_getToManyRelated` | GET | `/v1/appPriceSchedules/{id}/manualPrices` | read | | +| `appPriceSchedules_manualPrices_getToManyRelationship` | GET | `/v1/appPriceSchedules/{id}/relationships/manualPrices` | read | | +| **appScreenshotSets** (6) | | | | | +| `appScreenshotSets_appScreenshots_getToManyRelated` | GET | `/v1/appScreenshotSets/{id}/appScreenshots` | read | apple/ppo, apple/screenshots, validate | +| `appScreenshotSets_appScreenshots_getToManyRelationship` | GET | `/v1/appScreenshotSets/{id}/relationships/appScreenshots` | read | | +| `appScreenshotSets_appScreenshots_replaceToManyRelationship` | PATCH | `/v1/appScreenshotSets/{id}/relationships/appScreenshots` | write (dry by default) | | +| `appScreenshotSets_createInstance` | POST | `/v1/appScreenshotSets` | write (dry by default) | apple/screenshots | +| `appScreenshotSets_deleteInstance` | DELETE | `/v1/appScreenshotSets/{id}` | owner only (typed confirm) | | +| `appScreenshotSets_getInstance` | GET | `/v1/appScreenshotSets/{id}` | read | | +| **appScreenshots** (4) | | | | | +| `appScreenshots_createInstance` | POST | `/v1/appScreenshots` | write (dry by default) | apple/screenshots | +| `appScreenshots_deleteInstance` | DELETE | `/v1/appScreenshots/{id}` | owner only (typed confirm) | apple/screenshots | +| `appScreenshots_getInstance` | GET | `/v1/appScreenshots/{id}` | read | | +| `appScreenshots_updateInstance` | PATCH | `/v1/appScreenshots/{id}` | write (dry by default) | apple/screenshots | +| **appStoreReviewAttachments** (4) | | | | | +| `appStoreReviewAttachments_createInstance` | POST | `/v1/appStoreReviewAttachments` | write (dry by default) | | +| `appStoreReviewAttachments_deleteInstance` | DELETE | `/v1/appStoreReviewAttachments/{id}` | owner only (typed confirm) | | +| `appStoreReviewAttachments_getInstance` | GET | `/v1/appStoreReviewAttachments/{id}` | read | | +| `appStoreReviewAttachments_updateInstance` | PATCH | `/v1/appStoreReviewAttachments/{id}` | write (dry by default) | | +| **appStoreReviewDetails** (5) | | | | | +| `appStoreReviewDetails_appStoreReviewAttachments_getToManyRelated` | GET | `/v1/appStoreReviewDetails/{id}/appStoreReviewAttachments` | read | | +| `appStoreReviewDetails_appStoreReviewAttachments_getToManyRelationship` | GET | `/v1/appStoreReviewDetails/{id}/relationships/appStoreReviewAttachments` | read | | +| `appStoreReviewDetails_createInstance` | POST | `/v1/appStoreReviewDetails` | write (dry by default) | apple/review-details | +| `appStoreReviewDetails_getInstance` | GET | `/v1/appStoreReviewDetails/{id}` | read | | +| `appStoreReviewDetails_updateInstance` | PATCH | `/v1/appStoreReviewDetails/{id}` | write (dry by default) | apple/review-details | +| **appStoreVersionExperimentTreatmentLocalizations** (9) | | | | | +| `appStoreVersionExperimentTreatmentLocalizations_appPreviewSets_getToManyRelated` | GET | `/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appPreviewSets` | read | | +| `appStoreVersionExperimentTreatmentLocalizations_appPreviewSets_getToManyRelationship` | GET | `/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appPreviewSets` | read | | +| `appStoreVersionExperimentTreatmentLocalizations_appScreenshotSets_getToManyRelated` | GET | `/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appScreenshotSets` | read | apple/ppo | +| `appStoreVersionExperimentTreatmentLocalizations_appScreenshotSets_getToManyRelationship` | GET | `/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appScreenshotSets` | read | | +| `appStoreVersionExperimentTreatmentLocalizations_createInstance` | POST | `/v1/appStoreVersionExperimentTreatmentLocalizations` | write (dry by default) | lib/ppo | +| `appStoreVersionExperimentTreatmentLocalizations_deleteInstance` | DELETE | `/v1/appStoreVersionExperimentTreatmentLocalizations/{id}` | owner only (typed confirm) | | +| `appStoreVersionExperimentTreatmentLocalizations_getInstance` | GET | `/v1/appStoreVersionExperimentTreatmentLocalizations/{id}` | read | | +| `appStoreVersionExperimentTreatmentLocalizations_placements_getToManyRelated` | GET | `/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/placements` | read | | +| `appStoreVersionExperimentTreatmentLocalizations_placements_getToManyRelationship` | GET | `/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/placements` | read | | +| **appStoreVersionExperimentTreatments** (6) | | | | | +| `appStoreVersionExperimentTreatments_appStoreVersionExperimentTreatmentLocalizations_getToManyRelated` | GET | `/v1/appStoreVersionExperimentTreatments/{id}/appStoreVersionExperimentTreatmentLocalizations` | read | apple/ppo | +| `appStoreVersionExperimentTreatments_appStoreVersionExperimentTreatmentLocalizations_getToManyRelationship` | GET | `/v1/appStoreVersionExperimentTreatments/{id}/relationships/appStoreVersionExperimentTreatmentLocalizations` | read | | +| `appStoreVersionExperimentTreatments_createInstance` | POST | `/v1/appStoreVersionExperimentTreatments` | write (dry by default) | lib/ppo | +| `appStoreVersionExperimentTreatments_deleteInstance` | DELETE | `/v1/appStoreVersionExperimentTreatments/{id}` | owner only (typed confirm) | | +| `appStoreVersionExperimentTreatments_getInstance` | GET | `/v1/appStoreVersionExperimentTreatments/{id}` | read | | +| `appStoreVersionExperimentTreatments_updateInstance` | PATCH | `/v1/appStoreVersionExperimentTreatments/{id}` | write (dry by default) | | +| **appStoreVersionExperiments** (12) | | | | | +| `appStoreVersionExperimentsV2_appStoreVersionExperimentTreatments_getToManyRelated` | GET | `/v2/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments` | read | apple/ppo | +| `appStoreVersionExperimentsV2_appStoreVersionExperimentTreatments_getToManyRelationship` | GET | `/v2/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments` | read | | +| `appStoreVersionExperimentsV2_createInstance` | POST | `/v2/appStoreVersionExperiments` | write (dry by default) | lib/ppo | +| `appStoreVersionExperimentsV2_deleteInstance` | DELETE | `/v2/appStoreVersionExperiments/{id}` | owner only (typed confirm) | | +| `appStoreVersionExperimentsV2_getInstance` | GET | `/v2/appStoreVersionExperiments/{id}` | read | | +| `appStoreVersionExperimentsV2_updateInstance` | PATCH | `/v2/appStoreVersionExperiments/{id}` | owner only (typed confirm) | lib/ppo | +| `appStoreVersionExperiments_appStoreVersionExperimentTreatments_getToManyRelated` | GET | `/v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments` | read | | +| `appStoreVersionExperiments_appStoreVersionExperimentTreatments_getToManyRelationship` | GET | `/v1/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments` | read | | +| `appStoreVersionExperiments_createInstance` | POST | `/v1/appStoreVersionExperiments` | write (dry by default) | | +| `appStoreVersionExperiments_deleteInstance` | DELETE | `/v1/appStoreVersionExperiments/{id}` | owner only (typed confirm) | | +| `appStoreVersionExperiments_getInstance` | GET | `/v1/appStoreVersionExperiments/{id}` | read | | +| `appStoreVersionExperiments_updateInstance` | PATCH | `/v1/appStoreVersionExperiments/{id}` | owner only (typed confirm) | | +| **appStoreVersionLocalizations** (14) | | | | | +| `appStoreVersionLocalizations_appPreviewSets_getToManyRelated` | GET | `/v1/appStoreVersionLocalizations/{id}/appPreviewSets` | read | apple/previews | +| `appStoreVersionLocalizations_appPreviewSets_getToManyRelationship` | GET | `/v1/appStoreVersionLocalizations/{id}/relationships/appPreviewSets` | read | | +| `appStoreVersionLocalizations_appScreenshotSets_getToManyRelated` | GET | `/v1/appStoreVersionLocalizations/{id}/appScreenshotSets` | read | apple/screenshots, validate | +| `appStoreVersionLocalizations_appScreenshotSets_getToManyRelationship` | GET | `/v1/appStoreVersionLocalizations/{id}/relationships/appScreenshotSets` | read | | +| `appStoreVersionLocalizations_createInstance` | POST | `/v1/appStoreVersionLocalizations` | write (dry by default) | | +| `appStoreVersionLocalizations_deleteInstance` | DELETE | `/v1/appStoreVersionLocalizations/{id}` | owner only (typed confirm) | | +| `appStoreVersionLocalizations_getInstance` | GET | `/v1/appStoreVersionLocalizations/{id}` | read | | +| `appStoreVersionLocalizations_placements_getToManyRelated` | GET | `/v1/appStoreVersionLocalizations/{id}/placements` | read | | +| `appStoreVersionLocalizations_placements_getToManyRelationship` | GET | `/v1/appStoreVersionLocalizations/{id}/relationships/placements` | read | | +| `appStoreVersionLocalizations_searchKeywords_createToManyRelationship` | POST | `/v1/appStoreVersionLocalizations/{id}/relationships/searchKeywords` | write (dry by default) | | +| `appStoreVersionLocalizations_searchKeywords_deleteToManyRelationship` | DELETE | `/v1/appStoreVersionLocalizations/{id}/relationships/searchKeywords` | owner only (typed confirm) | | +| `appStoreVersionLocalizations_searchKeywords_getToManyRelated` | GET | `/v1/appStoreVersionLocalizations/{id}/searchKeywords` | read | | +| `appStoreVersionLocalizations_searchKeywords_getToManyRelationship` | GET | `/v1/appStoreVersionLocalizations/{id}/relationships/searchKeywords` | read | | +| `appStoreVersionLocalizations_updateInstance` | PATCH | `/v1/appStoreVersionLocalizations/{id}` | write (dry by default) | | +| **appStoreVersionPhasedReleases** (3) | | | | | +| `appStoreVersionPhasedReleases_createInstance` | POST | `/v1/appStoreVersionPhasedReleases` | write (dry by default) | apple/release | +| `appStoreVersionPhasedReleases_deleteInstance` | DELETE | `/v1/appStoreVersionPhasedReleases/{id}` | owner only (typed confirm) | | +| `appStoreVersionPhasedReleases_updateInstance` | PATCH | `/v1/appStoreVersionPhasedReleases/{id}` | owner only (typed confirm) | apple/release | +| **appStoreVersionPromotions** (1) | | | | | +| `appStoreVersionPromotions_createInstance` | POST | `/v1/appStoreVersionPromotions` | write (dry by default) | | +| **appStoreVersionReleaseRequests** (1) | | | | | +| `appStoreVersionReleaseRequests_createInstance` | POST | `/v1/appStoreVersionReleaseRequests` | owner only (typed confirm) | apple/release | +| **appStoreVersionSubmissions** (1) | | | | | +| `appStoreVersionSubmissions_deleteInstance` | DELETE | `/v1/appStoreVersionSubmissions/{id}` | owner only (typed confirm) | | +| **appStoreVersions** (30) | | | | | +| `appStoreVersions_alternativeDistributionPackage_getToOneRelated` | GET | `/v1/appStoreVersions/{id}/alternativeDistributionPackage` | read | | +| `appStoreVersions_alternativeDistributionPackage_getToOneRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/alternativeDistributionPackage` | read | | +| `appStoreVersions_appClipDefaultExperience_getToOneRelated` | GET | `/v1/appStoreVersions/{id}/appClipDefaultExperience` | read | | +| `appStoreVersions_appClipDefaultExperience_getToOneRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/appClipDefaultExperience` | read | | +| `appStoreVersions_appClipDefaultExperience_updateToOneRelationship` | PATCH | `/v1/appStoreVersions/{id}/relationships/appClipDefaultExperience` | write (dry by default) | | +| `appStoreVersions_appStoreReviewDetail_getToOneRelated` | GET | `/v1/appStoreVersions/{id}/appStoreReviewDetail` | read | apple/review-details, validate | +| `appStoreVersions_appStoreReviewDetail_getToOneRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/appStoreReviewDetail` | read | | +| `appStoreVersions_appStoreVersionExperimentsV2_getToManyRelated` | GET | `/v1/appStoreVersions/{id}/appStoreVersionExperimentsV2` | read | | +| `appStoreVersions_appStoreVersionExperimentsV2_getToManyRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/appStoreVersionExperimentsV2` | read | | +| `appStoreVersions_appStoreVersionExperiments_getToManyRelated` | GET | `/v1/appStoreVersions/{id}/appStoreVersionExperiments` | read | | +| `appStoreVersions_appStoreVersionExperiments_getToManyRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/appStoreVersionExperiments` | read | | +| `appStoreVersions_appStoreVersionLocalizations_getToManyRelated` | GET | `/v1/appStoreVersions/{id}/appStoreVersionLocalizations` | read | apple/listing, apple/previews, apple/screenshots, validate | +| `appStoreVersions_appStoreVersionLocalizations_getToManyRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/appStoreVersionLocalizations` | read | | +| `appStoreVersions_appStoreVersionPhasedRelease_getToOneRelated` | GET | `/v1/appStoreVersions/{id}/appStoreVersionPhasedRelease` | read | apple/release, apple/status | +| `appStoreVersions_appStoreVersionPhasedRelease_getToOneRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/appStoreVersionPhasedRelease` | read | | +| `appStoreVersions_appStoreVersionSubmission_getToOneRelated` | GET | `/v1/appStoreVersions/{id}/appStoreVersionSubmission` | read | | +| `appStoreVersions_appStoreVersionSubmission_getToOneRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/appStoreVersionSubmission` | read | | +| `appStoreVersions_build_getToOneRelated` | GET | `/v1/appStoreVersions/{id}/build` | read | validate | +| `appStoreVersions_build_getToOneRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/build` | read | | +| `appStoreVersions_build_updateToOneRelationship` | PATCH | `/v1/appStoreVersions/{id}/relationships/build` | write (dry by default) | apple/listing | +| `appStoreVersions_createInstance` | POST | `/v1/appStoreVersions` | write (dry by default) | apple/listing | +| `appStoreVersions_customerReviews_getToManyRelated` | GET | `/v1/appStoreVersions/{id}/customerReviews` | read | | +| `appStoreVersions_customerReviews_getToManyRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/customerReviews` | read | | +| `appStoreVersions_deleteInstance` | DELETE | `/v1/appStoreVersions/{id}` | owner only (typed confirm) | | +| `appStoreVersions_gameCenterAppVersion_getToOneRelated` | GET | `/v1/appStoreVersions/{id}/gameCenterAppVersion` | read | | +| `appStoreVersions_gameCenterAppVersion_getToOneRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/gameCenterAppVersion` | read | | +| `appStoreVersions_getInstance` | GET | `/v1/appStoreVersions/{id}` | read | | +| `appStoreVersions_routingAppCoverage_getToOneRelated` | GET | `/v1/appStoreVersions/{id}/routingAppCoverage` | read | | +| `appStoreVersions_routingAppCoverage_getToOneRelationship` | GET | `/v1/appStoreVersions/{id}/relationships/routingAppCoverage` | read | | +| `appStoreVersions_updateInstance` | PATCH | `/v1/appStoreVersions/{id}` | write (dry by default) | apple/listing | +| **appTags** (3) | | | | | +| `appTags_territories_getToManyRelated` | GET | `/v1/appTags/{id}/territories` | read | | +| `appTags_territories_getToManyRelationship` | GET | `/v1/appTags/{id}/relationships/territories` | read | | +| `appTags_updateInstance` | PATCH | `/v1/appTags/{id}` | write (dry by default) | | +| **apps** (89) | | | | | +| `apps_accessibilityDeclarations_getToManyRelated` | GET | `/v1/apps/{id}/accessibilityDeclarations` | read | | +| `apps_accessibilityDeclarations_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/accessibilityDeclarations` | read | | +| `apps_alternativeDistributionKey_getToOneRelated` | GET | `/v1/apps/{id}/alternativeDistributionKey` | read | | +| `apps_alternativeDistributionKey_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/alternativeDistributionKey` | read | | +| `apps_analyticsReportRequests_getToManyRelated` | GET | `/v1/apps/{id}/analyticsReportRequests` | read | analytics | +| `apps_analyticsReportRequests_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/analyticsReportRequests` | read | | +| `apps_androidToIosAppMappingDetails_getToManyRelated` | GET | `/v1/apps/{id}/androidToIosAppMappingDetails` | read | | +| `apps_androidToIosAppMappingDetails_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/androidToIosAppMappingDetails` | read | | +| `apps_appAvailabilityV2_getToOneRelated` | GET | `/v1/apps/{id}/appAvailabilityV2` | read | apple/appinfo, validate | +| `apps_appAvailabilityV2_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/appAvailabilityV2` | read | | +| `apps_appClips_getToManyRelated` | GET | `/v1/apps/{id}/appClips` | read | | +| `apps_appClips_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appClips` | read | | +| `apps_appCustomProductPages_getToManyRelated` | GET | `/v1/apps/{id}/appCustomProductPages` | read | | +| `apps_appCustomProductPages_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appCustomProductPages` | read | | +| `apps_appEncryptionDeclarations_getToManyRelated` | GET | `/v1/apps/{id}/appEncryptionDeclarations` | read | | +| `apps_appEncryptionDeclarations_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appEncryptionDeclarations` | read | | +| `apps_appEvents_getToManyRelated` | GET | `/v1/apps/{id}/appEvents` | read | | +| `apps_appEvents_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appEvents` | read | | +| `apps_appInfos_getToManyRelated` | GET | `/v1/apps/{id}/appInfos` | read | apple/asc | +| `apps_appInfos_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appInfos` | read | | +| `apps_appPricePoints_getToManyRelated` | GET | `/v1/apps/{id}/appPricePoints` | read | apple/appinfo | +| `apps_appPricePoints_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appPricePoints` | read | | +| `apps_appPriceSchedule_getToOneRelated` | GET | `/v1/apps/{id}/appPriceSchedule` | read | apple/appinfo, validate | +| `apps_appPriceSchedule_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/appPriceSchedule` | read | | +| `apps_appStoreVersionExperimentsV2_getToManyRelated` | GET | `/v1/apps/{id}/appStoreVersionExperimentsV2` | read | apple/ppo | +| `apps_appStoreVersionExperimentsV2_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appStoreVersionExperimentsV2` | read | | +| `apps_appStoreVersions_getToManyRelated` | GET | `/v1/apps/{id}/appStoreVersions` | read | apple/asc, apple/release, apple/review-details, apple/status, lib/store-apps, validate | +| `apps_appStoreVersions_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appStoreVersions` | read | | +| `apps_appTags_getToManyRelated` | GET | `/v1/apps/{id}/appTags` | read | | +| `apps_appTags_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/appTags` | read | | +| `apps_assetLibrary_getToOneRelated` | GET | `/v1/apps/{id}/assetLibrary` | read | | +| `apps_assetLibrary_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/assetLibrary` | read | | +| `apps_backgroundAssets_getToManyRelated` | GET | `/v1/apps/{id}/backgroundAssets` | read | | +| `apps_backgroundAssets_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/backgroundAssets` | read | | +| `apps_betaAppLocalizations_getToManyRelated` | GET | `/v1/apps/{id}/betaAppLocalizations` | read | apple/testflight | +| `apps_betaAppLocalizations_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/betaAppLocalizations` | read | | +| `apps_betaAppReviewDetail_getToOneRelated` | GET | `/v1/apps/{id}/betaAppReviewDetail` | read | apple/testflight | +| `apps_betaAppReviewDetail_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/betaAppReviewDetail` | read | | +| `apps_betaFeedbackCrashSubmissions_getToManyRelated` | GET | `/v1/apps/{id}/betaFeedbackCrashSubmissions` | read | health | +| `apps_betaFeedbackCrashSubmissions_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/betaFeedbackCrashSubmissions` | read | | +| `apps_betaFeedbackScreenshotSubmissions_getToManyRelated` | GET | `/v1/apps/{id}/betaFeedbackScreenshotSubmissions` | read | | +| `apps_betaFeedbackScreenshotSubmissions_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/betaFeedbackScreenshotSubmissions` | read | | +| `apps_betaGroups_getToManyRelated` | GET | `/v1/apps/{id}/betaGroups` | read | apple/testflight | +| `apps_betaGroups_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/betaGroups` | read | | +| `apps_betaLicenseAgreement_getToOneRelated` | GET | `/v1/apps/{id}/betaLicenseAgreement` | read | | +| `apps_betaLicenseAgreement_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/betaLicenseAgreement` | read | | +| `apps_betaTesterUsages_getMetrics` | GET | `/v1/apps/{id}/metrics/betaTesterUsages` | read | | +| `apps_betaTesters_deleteToManyRelationship` | DELETE | `/v1/apps/{id}/relationships/betaTesters` | owner only (typed confirm) | | +| `apps_buildUploads_getToManyRelated` | GET | `/v1/apps/{id}/buildUploads` | read | | +| `apps_buildUploads_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/buildUploads` | read | | +| `apps_builds_getToManyRelated` | GET | `/v1/apps/{id}/builds` | read | | +| `apps_builds_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/builds` | read | | +| `apps_ciProduct_getToOneRelated` | GET | `/v1/apps/{id}/ciProduct` | read | | +| `apps_ciProduct_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/ciProduct` | read | | +| `apps_customerReviewSummarizations_getToManyRelated` | GET | `/v1/apps/{id}/customerReviewSummarizations` | read | | +| `apps_customerReviews_getToManyRelated` | GET | `/v1/apps/{id}/customerReviews` | read | reviews | +| `apps_customerReviews_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/customerReviews` | read | | +| `apps_endUserLicenseAgreement_getToOneRelated` | GET | `/v1/apps/{id}/endUserLicenseAgreement` | read | | +| `apps_endUserLicenseAgreement_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/endUserLicenseAgreement` | read | | +| `apps_gameCenterDetail_getToOneRelated` | GET | `/v1/apps/{id}/gameCenterDetail` | read | | +| `apps_gameCenterDetail_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/gameCenterDetail` | read | | +| `apps_gameCenterEnabledVersions_getToManyRelated` | GET | `/v1/apps/{id}/gameCenterEnabledVersions` | read | | +| `apps_gameCenterEnabledVersions_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/gameCenterEnabledVersions` | read | | +| `apps_getCollection` | GET | `/v1/apps` | read | apple/asc, apple/bundle, apps, lib/store-apps | +| `apps_getInstance` | GET | `/v1/apps/{id}` | read | apple/status | +| `apps_inAppPurchasesV2_getToManyRelated` | GET | `/v1/apps/{id}/inAppPurchasesV2` | read | apple/iap, apple/iap-review, apple/status, catalog, prices, validate | +| `apps_inAppPurchasesV2_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/inAppPurchasesV2` | read | | +| `apps_inAppPurchases_getToManyRelated` | GET | `/v1/apps/{id}/inAppPurchases` | read | | +| `apps_inAppPurchases_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/inAppPurchases` | read | | +| `apps_marketplaceSearchDetail_getToOneRelated` | GET | `/v1/apps/{id}/marketplaceSearchDetail` | read | | +| `apps_marketplaceSearchDetail_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/marketplaceSearchDetail` | read | | +| `apps_perfPowerMetrics_getToManyRelated` | GET | `/v1/apps/{id}/perfPowerMetrics` | read | health | +| `apps_performanceOverviews_getToManyRelated` | GET | `/v1/apps/{id}/performanceOverviews` | read | | +| `apps_preReleaseVersions_getToManyRelated` | GET | `/v1/apps/{id}/preReleaseVersions` | read | | +| `apps_preReleaseVersions_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/preReleaseVersions` | read | | +| `apps_promotedPurchases_getToManyRelated` | GET | `/v1/apps/{id}/promotedPurchases` | read | | +| `apps_promotedPurchases_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/promotedPurchases` | read | | +| `apps_promotedPurchases_replaceToManyRelationship` | PATCH | `/v1/apps/{id}/relationships/promotedPurchases` | write (dry by default) | | +| `apps_reviewSubmissions_getToManyRelated` | GET | `/v1/apps/{id}/reviewSubmissions` | read | | +| `apps_reviewSubmissions_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/reviewSubmissions` | read | | +| `apps_searchKeywords_getToManyRelated` | GET | `/v1/apps/{id}/searchKeywords` | read | | +| `apps_searchKeywords_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/searchKeywords` | read | | +| `apps_subscriptionGracePeriod_getToOneRelated` | GET | `/v1/apps/{id}/subscriptionGracePeriod` | read | | +| `apps_subscriptionGracePeriod_getToOneRelationship` | GET | `/v1/apps/{id}/relationships/subscriptionGracePeriod` | read | | +| `apps_subscriptionGroups_getToManyRelated` | GET | `/v1/apps/{id}/subscriptionGroups` | read | apple/subscriptions, catalog, validate | +| `apps_subscriptionGroups_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/subscriptionGroups` | read | | +| `apps_updateInstance` | PATCH | `/v1/apps/{id}` | write (dry by default) | apple/appinfo | +| `apps_webhooks_getToManyRelated` | GET | `/v1/apps/{id}/webhooks` | read | | +| `apps_webhooks_getToManyRelationship` | GET | `/v1/apps/{id}/relationships/webhooks` | read | | +| **backgroundAssetUploadFiles** (3) | | | | | +| `backgroundAssetUploadFiles_createInstance` | POST | `/v1/backgroundAssetUploadFiles` | write (dry by default) | | +| `backgroundAssetUploadFiles_getInstance` | GET | `/v1/backgroundAssetUploadFiles/{id}` | read | | +| `backgroundAssetUploadFiles_updateInstance` | PATCH | `/v1/backgroundAssetUploadFiles/{id}` | write (dry by default) | | +| **backgroundAssetVersionAppStoreReleases** (1) | | | | | +| `backgroundAssetVersionAppStoreReleases_getInstance` | GET | `/v1/backgroundAssetVersionAppStoreReleases/{id}` | read | | +| **backgroundAssetVersionExternalBetaReleases** (1) | | | | | +| `backgroundAssetVersionExternalBetaReleases_getInstance` | GET | `/v1/backgroundAssetVersionExternalBetaReleases/{id}` | read | | +| **backgroundAssetVersionInternalBetaReleases** (1) | | | | | +| `backgroundAssetVersionInternalBetaReleases_getInstance` | GET | `/v1/backgroundAssetVersionInternalBetaReleases/{id}` | read | | +| **backgroundAssetVersions** (4) | | | | | +| `backgroundAssetVersions_backgroundAssetUploadFiles_getToManyRelated` | GET | `/v1/backgroundAssetVersions/{id}/backgroundAssetUploadFiles` | read | | +| `backgroundAssetVersions_backgroundAssetUploadFiles_getToManyRelationship` | GET | `/v1/backgroundAssetVersions/{id}/relationships/backgroundAssetUploadFiles` | read | | +| `backgroundAssetVersions_createInstance` | POST | `/v1/backgroundAssetVersions` | write (dry by default) | | +| `backgroundAssetVersions_getInstance` | GET | `/v1/backgroundAssetVersions/{id}` | read | | +| **backgroundAssets** (5) | | | | | +| `backgroundAssets_createInstance` | POST | `/v1/backgroundAssets` | write (dry by default) | | +| `backgroundAssets_getInstance` | GET | `/v1/backgroundAssets/{id}` | read | | +| `backgroundAssets_updateInstance` | PATCH | `/v1/backgroundAssets/{id}` | write (dry by default) | | +| `backgroundAssets_versions_getToManyRelated` | GET | `/v1/backgroundAssets/{id}/versions` | read | | +| `backgroundAssets_versions_getToManyRelationship` | GET | `/v1/backgroundAssets/{id}/relationships/versions` | read | | +| **betaAppClipInvocationLocalizations** (3) | | | | | +| `betaAppClipInvocationLocalizations_createInstance` | POST | `/v1/betaAppClipInvocationLocalizations` | write (dry by default) | | +| `betaAppClipInvocationLocalizations_deleteInstance` | DELETE | `/v1/betaAppClipInvocationLocalizations/{id}` | owner only (typed confirm) | | +| `betaAppClipInvocationLocalizations_updateInstance` | PATCH | `/v1/betaAppClipInvocationLocalizations/{id}` | write (dry by default) | | +| **betaAppClipInvocations** (4) | | | | | +| `betaAppClipInvocations_createInstance` | POST | `/v1/betaAppClipInvocations` | write (dry by default) | | +| `betaAppClipInvocations_deleteInstance` | DELETE | `/v1/betaAppClipInvocations/{id}` | owner only (typed confirm) | | +| `betaAppClipInvocations_getInstance` | GET | `/v1/betaAppClipInvocations/{id}` | read | | +| `betaAppClipInvocations_updateInstance` | PATCH | `/v1/betaAppClipInvocations/{id}` | write (dry by default) | | +| **betaAppLocalizations** (7) | | | | | +| `betaAppLocalizations_app_getToOneRelated` | GET | `/v1/betaAppLocalizations/{id}/app` | read | | +| `betaAppLocalizations_app_getToOneRelationship` | GET | `/v1/betaAppLocalizations/{id}/relationships/app` | read | | +| `betaAppLocalizations_createInstance` | POST | `/v1/betaAppLocalizations` | write (dry by default) | lib/testflight | +| `betaAppLocalizations_deleteInstance` | DELETE | `/v1/betaAppLocalizations/{id}` | owner only (typed confirm) | | +| `betaAppLocalizations_getCollection` | GET | `/v1/betaAppLocalizations` | read | | +| `betaAppLocalizations_getInstance` | GET | `/v1/betaAppLocalizations/{id}` | read | | +| `betaAppLocalizations_updateInstance` | PATCH | `/v1/betaAppLocalizations/{id}` | write (dry by default) | lib/testflight | +| **betaAppReviewDetails** (5) | | | | | +| `betaAppReviewDetails_app_getToOneRelated` | GET | `/v1/betaAppReviewDetails/{id}/app` | read | | +| `betaAppReviewDetails_app_getToOneRelationship` | GET | `/v1/betaAppReviewDetails/{id}/relationships/app` | read | | +| `betaAppReviewDetails_getCollection` | GET | `/v1/betaAppReviewDetails` | read | | +| `betaAppReviewDetails_getInstance` | GET | `/v1/betaAppReviewDetails/{id}` | read | | +| `betaAppReviewDetails_updateInstance` | PATCH | `/v1/betaAppReviewDetails/{id}` | write (dry by default) | lib/testflight | +| **betaAppReviewSubmissions** (5) | | | | | +| `betaAppReviewSubmissions_build_getToOneRelated` | GET | `/v1/betaAppReviewSubmissions/{id}/build` | read | | +| `betaAppReviewSubmissions_build_getToOneRelationship` | GET | `/v1/betaAppReviewSubmissions/{id}/relationships/build` | read | | +| `betaAppReviewSubmissions_createInstance` | POST | `/v1/betaAppReviewSubmissions` | owner only (typed confirm) | lib/testflight | +| `betaAppReviewSubmissions_getCollection` | GET | `/v1/betaAppReviewSubmissions` | read | | +| `betaAppReviewSubmissions_getInstance` | GET | `/v1/betaAppReviewSubmissions/{id}` | read | | +| **betaBuildLocalizations** (7) | | | | | +| `betaBuildLocalizations_build_getToOneRelated` | GET | `/v1/betaBuildLocalizations/{id}/build` | read | | +| `betaBuildLocalizations_build_getToOneRelationship` | GET | `/v1/betaBuildLocalizations/{id}/relationships/build` | read | | +| `betaBuildLocalizations_createInstance` | POST | `/v1/betaBuildLocalizations` | write (dry by default) | lib/testflight | +| `betaBuildLocalizations_deleteInstance` | DELETE | `/v1/betaBuildLocalizations/{id}` | owner only (typed confirm) | | +| `betaBuildLocalizations_getCollection` | GET | `/v1/betaBuildLocalizations` | read | | +| `betaBuildLocalizations_getInstance` | GET | `/v1/betaBuildLocalizations/{id}` | read | | +| `betaBuildLocalizations_updateInstance` | PATCH | `/v1/betaBuildLocalizations/{id}` | write (dry by default) | lib/testflight | +| **betaCrashLogs** (1) | | | | | +| `betaCrashLogs_getInstance` | GET | `/v1/betaCrashLogs/{id}` | read | | +| **betaFeedbackCrashSubmissions** (4) | | | | | +| `betaFeedbackCrashSubmissions_crashLog_getToOneRelated` | GET | `/v1/betaFeedbackCrashSubmissions/{id}/crashLog` | read | | +| `betaFeedbackCrashSubmissions_crashLog_getToOneRelationship` | GET | `/v1/betaFeedbackCrashSubmissions/{id}/relationships/crashLog` | read | | +| `betaFeedbackCrashSubmissions_deleteInstance` | DELETE | `/v1/betaFeedbackCrashSubmissions/{id}` | owner only (typed confirm) | | +| `betaFeedbackCrashSubmissions_getInstance` | GET | `/v1/betaFeedbackCrashSubmissions/{id}` | read | | +| **betaFeedbackScreenshotSubmissions** (2) | | | | | +| `betaFeedbackScreenshotSubmissions_deleteInstance` | DELETE | `/v1/betaFeedbackScreenshotSubmissions/{id}` | owner only (typed confirm) | | +| `betaFeedbackScreenshotSubmissions_getInstance` | GET | `/v1/betaFeedbackScreenshotSubmissions/{id}` | read | | +| **betaGroups** (21) | | | | | +| `betaGroups_app_getToOneRelated` | GET | `/v1/betaGroups/{id}/app` | read | | +| `betaGroups_app_getToOneRelationship` | GET | `/v1/betaGroups/{id}/relationships/app` | read | | +| `betaGroups_betaRecruitmentCriteria_getToOneRelated` | GET | `/v1/betaGroups/{id}/betaRecruitmentCriteria` | read | | +| `betaGroups_betaRecruitmentCriteria_getToOneRelationship` | GET | `/v1/betaGroups/{id}/relationships/betaRecruitmentCriteria` | read | | +| `betaGroups_betaRecruitmentCriterionCompatibleBuildCheck_getToOneRelated` | GET | `/v1/betaGroups/{id}/betaRecruitmentCriterionCompatibleBuildCheck` | read | | +| `betaGroups_betaRecruitmentCriterionCompatibleBuildCheck_getToOneRelationship` | GET | `/v1/betaGroups/{id}/relationships/betaRecruitmentCriterionCompatibleBuildCheck` | read | | +| `betaGroups_betaTesterUsages_getMetrics` | GET | `/v1/betaGroups/{id}/metrics/betaTesterUsages` | read | | +| `betaGroups_betaTesters_createToManyRelationship` | POST | `/v1/betaGroups/{id}/relationships/betaTesters` | owner only (typed confirm) | lib/testflight | +| `betaGroups_betaTesters_deleteToManyRelationship` | DELETE | `/v1/betaGroups/{id}/relationships/betaTesters` | owner only (typed confirm) | lib/testflight | +| `betaGroups_betaTesters_getToManyRelated` | GET | `/v1/betaGroups/{id}/betaTesters` | read | apple/testflight | +| `betaGroups_betaTesters_getToManyRelationship` | GET | `/v1/betaGroups/{id}/relationships/betaTesters` | read | | +| `betaGroups_builds_createToManyRelationship` | POST | `/v1/betaGroups/{id}/relationships/builds` | write (dry by default) | lib/testflight | +| `betaGroups_builds_deleteToManyRelationship` | DELETE | `/v1/betaGroups/{id}/relationships/builds` | owner only (typed confirm) | | +| `betaGroups_builds_getToManyRelated` | GET | `/v1/betaGroups/{id}/builds` | read | apple/testflight | +| `betaGroups_builds_getToManyRelationship` | GET | `/v1/betaGroups/{id}/relationships/builds` | read | | +| `betaGroups_createInstance` | POST | `/v1/betaGroups` | write (dry by default) | lib/testflight | +| `betaGroups_deleteInstance` | DELETE | `/v1/betaGroups/{id}` | owner only (typed confirm) | | +| `betaGroups_getCollection` | GET | `/v1/betaGroups` | read | apple/testflight | +| `betaGroups_getInstance` | GET | `/v1/betaGroups/{id}` | read | | +| `betaGroups_publicLinkUsages_getMetrics` | GET | `/v1/betaGroups/{id}/metrics/publicLinkUsages` | read | | +| `betaGroups_updateInstance` | PATCH | `/v1/betaGroups/{id}` | write (dry by default) | | +| **betaLicenseAgreements** (5) | | | | | +| `betaLicenseAgreements_app_getToOneRelated` | GET | `/v1/betaLicenseAgreements/{id}/app` | read | | +| `betaLicenseAgreements_app_getToOneRelationship` | GET | `/v1/betaLicenseAgreements/{id}/relationships/app` | read | | +| `betaLicenseAgreements_getCollection` | GET | `/v1/betaLicenseAgreements` | read | | +| `betaLicenseAgreements_getInstance` | GET | `/v1/betaLicenseAgreements/{id}` | read | | +| `betaLicenseAgreements_updateInstance` | PATCH | `/v1/betaLicenseAgreements/{id}` | write (dry by default) | | +| **betaRecruitmentCriteria** (3) | | | | | +| `betaRecruitmentCriteria_createInstance` | POST | `/v1/betaRecruitmentCriteria` | write (dry by default) | | +| `betaRecruitmentCriteria_deleteInstance` | DELETE | `/v1/betaRecruitmentCriteria/{id}` | owner only (typed confirm) | | +| `betaRecruitmentCriteria_updateInstance` | PATCH | `/v1/betaRecruitmentCriteria/{id}` | write (dry by default) | | +| **betaRecruitmentCriterionOptions** (1) | | | | | +| `betaRecruitmentCriterionOptions_getCollection` | GET | `/v1/betaRecruitmentCriterionOptions` | read | | +| **betaTesterInvitations** (1) | | | | | +| `betaTesterInvitations_createInstance` | POST | `/v1/betaTesterInvitations` | owner only (typed confirm) | lib/testflight | +| **betaTesters** (16) | | | | | +| `betaTesters_apps_deleteToManyRelationship` | DELETE | `/v1/betaTesters/{id}/relationships/apps` | owner only (typed confirm) | | +| `betaTesters_apps_getToManyRelated` | GET | `/v1/betaTesters/{id}/apps` | read | | +| `betaTesters_apps_getToManyRelationship` | GET | `/v1/betaTesters/{id}/relationships/apps` | read | | +| `betaTesters_betaGroups_createToManyRelationship` | POST | `/v1/betaTesters/{id}/relationships/betaGroups` | owner only (typed confirm) | | +| `betaTesters_betaGroups_deleteToManyRelationship` | DELETE | `/v1/betaTesters/{id}/relationships/betaGroups` | owner only (typed confirm) | | +| `betaTesters_betaGroups_getToManyRelated` | GET | `/v1/betaTesters/{id}/betaGroups` | read | | +| `betaTesters_betaGroups_getToManyRelationship` | GET | `/v1/betaTesters/{id}/relationships/betaGroups` | read | | +| `betaTesters_betaTesterUsages_getMetrics` | GET | `/v1/betaTesters/{id}/metrics/betaTesterUsages` | read | | +| `betaTesters_builds_createToManyRelationship` | POST | `/v1/betaTesters/{id}/relationships/builds` | owner only (typed confirm) | | +| `betaTesters_builds_deleteToManyRelationship` | DELETE | `/v1/betaTesters/{id}/relationships/builds` | owner only (typed confirm) | | +| `betaTesters_builds_getToManyRelated` | GET | `/v1/betaTesters/{id}/builds` | read | | +| `betaTesters_builds_getToManyRelationship` | GET | `/v1/betaTesters/{id}/relationships/builds` | read | | +| `betaTesters_createInstance` | POST | `/v1/betaTesters` | owner only (typed confirm) | lib/testflight | +| `betaTesters_deleteInstance` | DELETE | `/v1/betaTesters/{id}` | owner only (typed confirm) | | +| `betaTesters_getCollection` | GET | `/v1/betaTesters` | read | apple/testflight | +| `betaTesters_getInstance` | GET | `/v1/betaTesters/{id}` | read | | +| **buildBetaDetails** (5) | | | | | +| `buildBetaDetails_build_getToOneRelated` | GET | `/v1/buildBetaDetails/{id}/build` | read | | +| `buildBetaDetails_build_getToOneRelationship` | GET | `/v1/buildBetaDetails/{id}/relationships/build` | read | | +| `buildBetaDetails_getCollection` | GET | `/v1/buildBetaDetails` | read | | +| `buildBetaDetails_getInstance` | GET | `/v1/buildBetaDetails/{id}` | read | | +| `buildBetaDetails_updateInstance` | PATCH | `/v1/buildBetaDetails/{id}` | write (dry by default) | | +| **buildBetaNotifications** (1) | | | | | +| `buildBetaNotifications_createInstance` | POST | `/v1/buildBetaNotifications` | write (dry by default) | | +| **buildBundles** (8) | | | | | +| `buildBundles_appClipDomainCacheStatus_getToOneRelated` | GET | `/v1/buildBundles/{id}/appClipDomainCacheStatus` | read | | +| `buildBundles_appClipDomainCacheStatus_getToOneRelationship` | GET | `/v1/buildBundles/{id}/relationships/appClipDomainCacheStatus` | read | | +| `buildBundles_appClipDomainDebugStatus_getToOneRelated` | GET | `/v1/buildBundles/{id}/appClipDomainDebugStatus` | read | | +| `buildBundles_appClipDomainDebugStatus_getToOneRelationship` | GET | `/v1/buildBundles/{id}/relationships/appClipDomainDebugStatus` | read | | +| `buildBundles_betaAppClipInvocations_getToManyRelated` | GET | `/v1/buildBundles/{id}/betaAppClipInvocations` | read | | +| `buildBundles_betaAppClipInvocations_getToManyRelationship` | GET | `/v1/buildBundles/{id}/relationships/betaAppClipInvocations` | read | | +| `buildBundles_buildBundleFileSizes_getToManyRelated` | GET | `/v1/buildBundles/{id}/buildBundleFileSizes` | read | | +| `buildBundles_buildBundleFileSizes_getToManyRelationship` | GET | `/v1/buildBundles/{id}/relationships/buildBundleFileSizes` | read | | +| **buildUploadFiles** (3) | | | | | +| `buildUploadFiles_createInstance` | POST | `/v1/buildUploadFiles` | write (dry by default) | | +| `buildUploadFiles_getInstance` | GET | `/v1/buildUploadFiles/{id}` | read | | +| `buildUploadFiles_updateInstance` | PATCH | `/v1/buildUploadFiles/{id}` | write (dry by default) | | +| **buildUploads** (5) | | | | | +| `buildUploads_buildUploadFiles_getToManyRelated` | GET | `/v1/buildUploads/{id}/buildUploadFiles` | read | | +| `buildUploads_buildUploadFiles_getToManyRelationship` | GET | `/v1/buildUploads/{id}/relationships/buildUploadFiles` | read | | +| `buildUploads_createInstance` | POST | `/v1/buildUploads` | write (dry by default) | | +| `buildUploads_deleteInstance` | DELETE | `/v1/buildUploads/{id}` | owner only (typed confirm) | | +| `buildUploads_getInstance` | GET | `/v1/buildUploads/{id}` | read | | +| **builds** (30) | | | | | +| `builds_appEncryptionDeclaration_getToOneRelated` | GET | `/v1/builds/{id}/appEncryptionDeclaration` | read | validate | +| `builds_appEncryptionDeclaration_getToOneRelationship` | GET | `/v1/builds/{id}/relationships/appEncryptionDeclaration` | read | | +| `builds_appEncryptionDeclaration_updateToOneRelationship` | PATCH | `/v1/builds/{id}/relationships/appEncryptionDeclaration` | write (dry by default) | | +| `builds_appStoreVersion_getToOneRelated` | GET | `/v1/builds/{id}/appStoreVersion` | read | | +| `builds_appStoreVersion_getToOneRelationship` | GET | `/v1/builds/{id}/relationships/appStoreVersion` | read | | +| `builds_app_getToOneRelated` | GET | `/v1/builds/{id}/app` | read | | +| `builds_app_getToOneRelationship` | GET | `/v1/builds/{id}/relationships/app` | read | | +| `builds_betaAppReviewSubmission_getToOneRelated` | GET | `/v1/builds/{id}/betaAppReviewSubmission` | read | apple/testflight | +| `builds_betaAppReviewSubmission_getToOneRelationship` | GET | `/v1/builds/{id}/relationships/betaAppReviewSubmission` | read | | +| `builds_betaBuildLocalizations_getToManyRelated` | GET | `/v1/builds/{id}/betaBuildLocalizations` | read | apple/testflight | +| `builds_betaBuildLocalizations_getToManyRelationship` | GET | `/v1/builds/{id}/relationships/betaBuildLocalizations` | read | | +| `builds_betaBuildUsages_getMetrics` | GET | `/v1/builds/{id}/metrics/betaBuildUsages` | read | | +| `builds_betaGroups_createToManyRelationship` | POST | `/v1/builds/{id}/relationships/betaGroups` | write (dry by default) | | +| `builds_betaGroups_deleteToManyRelationship` | DELETE | `/v1/builds/{id}/relationships/betaGroups` | owner only (typed confirm) | | +| `builds_buildBetaDetail_getToOneRelated` | GET | `/v1/builds/{id}/buildBetaDetail` | read | | +| `builds_buildBetaDetail_getToOneRelationship` | GET | `/v1/builds/{id}/relationships/buildBetaDetail` | read | | +| `builds_diagnosticSignatures_getToManyRelated` | GET | `/v1/builds/{id}/diagnosticSignatures` | read | health | +| `builds_diagnosticSignatures_getToManyRelationship` | GET | `/v1/builds/{id}/relationships/diagnosticSignatures` | read | | +| `builds_getCollection` | GET | `/v1/builds` | read | apple/encryption, apple/listing, apple/next-build, apple/status, apple/testflight, health, lib/store-apps | +| `builds_getInstance` | GET | `/v1/builds/{id}` | read | | +| `builds_icons_getToManyRelated` | GET | `/v1/builds/{id}/icons` | read | | +| `builds_icons_getToManyRelationship` | GET | `/v1/builds/{id}/relationships/icons` | read | | +| `builds_individualTesters_createToManyRelationship` | POST | `/v1/builds/{id}/relationships/individualTesters` | owner only (typed confirm) | | +| `builds_individualTesters_deleteToManyRelationship` | DELETE | `/v1/builds/{id}/relationships/individualTesters` | owner only (typed confirm) | | +| `builds_individualTesters_getToManyRelated` | GET | `/v1/builds/{id}/individualTesters` | read | | +| `builds_individualTesters_getToManyRelationship` | GET | `/v1/builds/{id}/relationships/individualTesters` | read | | +| `builds_perfPowerMetrics_getToManyRelated` | GET | `/v1/builds/{id}/perfPowerMetrics` | read | | +| `builds_preReleaseVersion_getToOneRelated` | GET | `/v1/builds/{id}/preReleaseVersion` | read | | +| `builds_preReleaseVersion_getToOneRelationship` | GET | `/v1/builds/{id}/relationships/preReleaseVersion` | read | | +| `builds_updateInstance` | PATCH | `/v1/builds/{id}` | write (dry by default) | apple/encryption | +| **bundleIdCapabilities** (3) | | | | | +| `bundleIdCapabilities_createInstance` | POST | `/v1/bundleIdCapabilities` | write (dry by default) | | +| `bundleIdCapabilities_deleteInstance` | DELETE | `/v1/bundleIdCapabilities/{id}` | owner only (typed confirm) | | +| `bundleIdCapabilities_updateInstance` | PATCH | `/v1/bundleIdCapabilities/{id}` | write (dry by default) | | +| **bundleIds** (11) | | | | | +| `bundleIds_app_getToOneRelated` | GET | `/v1/bundleIds/{id}/app` | read | | +| `bundleIds_app_getToOneRelationship` | GET | `/v1/bundleIds/{id}/relationships/app` | read | | +| `bundleIds_bundleIdCapabilities_getToManyRelated` | GET | `/v1/bundleIds/{id}/bundleIdCapabilities` | read | | +| `bundleIds_bundleIdCapabilities_getToManyRelationship` | GET | `/v1/bundleIds/{id}/relationships/bundleIdCapabilities` | read | | +| `bundleIds_createInstance` | POST | `/v1/bundleIds` | write (dry by default) | apple/bundle | +| `bundleIds_deleteInstance` | DELETE | `/v1/bundleIds/{id}` | owner only (typed confirm) | | +| `bundleIds_getCollection` | GET | `/v1/bundleIds` | read | apple/bundle | +| `bundleIds_getInstance` | GET | `/v1/bundleIds/{id}` | read | | +| `bundleIds_profiles_getToManyRelated` | GET | `/v1/bundleIds/{id}/profiles` | read | | +| `bundleIds_profiles_getToManyRelationship` | GET | `/v1/bundleIds/{id}/relationships/profiles` | read | | +| `bundleIds_updateInstance` | PATCH | `/v1/bundleIds/{id}` | write (dry by default) | | +| **certificates** (7) | | | | | +| `certificates_createInstance` | POST | `/v1/certificates` | write (dry by default) | | +| `certificates_deleteInstance` | DELETE | `/v1/certificates/{id}` | owner only (typed confirm) | | +| `certificates_getCollection` | GET | `/v1/certificates` | read | | +| `certificates_getInstance` | GET | `/v1/certificates/{id}` | read | | +| `certificates_passTypeId_getToOneRelated` | GET | `/v1/certificates/{id}/passTypeId` | read | | +| `certificates_passTypeId_getToOneRelationship` | GET | `/v1/certificates/{id}/relationships/passTypeId` | read | | +| `certificates_updateInstance` | PATCH | `/v1/certificates/{id}` | write (dry by default) | | +| **ciArtifacts** (1) | | | | | +| `ciArtifacts_getInstance` | GET | `/v1/ciArtifacts/{id}` | read | | +| **ciBuildActions** (9) | | | | | +| `ciBuildActions_artifacts_getToManyRelated` | GET | `/v1/ciBuildActions/{id}/artifacts` | read | | +| `ciBuildActions_artifacts_getToManyRelationship` | GET | `/v1/ciBuildActions/{id}/relationships/artifacts` | read | | +| `ciBuildActions_buildRun_getToOneRelated` | GET | `/v1/ciBuildActions/{id}/buildRun` | read | | +| `ciBuildActions_buildRun_getToOneRelationship` | GET | `/v1/ciBuildActions/{id}/relationships/buildRun` | read | | +| `ciBuildActions_getInstance` | GET | `/v1/ciBuildActions/{id}` | read | | +| `ciBuildActions_issues_getToManyRelated` | GET | `/v1/ciBuildActions/{id}/issues` | read | | +| `ciBuildActions_issues_getToManyRelationship` | GET | `/v1/ciBuildActions/{id}/relationships/issues` | read | | +| `ciBuildActions_testResults_getToManyRelated` | GET | `/v1/ciBuildActions/{id}/testResults` | read | | +| `ciBuildActions_testResults_getToManyRelationship` | GET | `/v1/ciBuildActions/{id}/relationships/testResults` | read | | +| **ciBuildRuns** (6) | | | | | +| `ciBuildRuns_actions_getToManyRelated` | GET | `/v1/ciBuildRuns/{id}/actions` | read | | +| `ciBuildRuns_actions_getToManyRelationship` | GET | `/v1/ciBuildRuns/{id}/relationships/actions` | read | | +| `ciBuildRuns_builds_getToManyRelated` | GET | `/v1/ciBuildRuns/{id}/builds` | read | | +| `ciBuildRuns_builds_getToManyRelationship` | GET | `/v1/ciBuildRuns/{id}/relationships/builds` | read | | +| `ciBuildRuns_createInstance` | POST | `/v1/ciBuildRuns` | write (dry by default) | | +| `ciBuildRuns_getInstance` | GET | `/v1/ciBuildRuns/{id}` | read | | +| **ciIssues** (1) | | | | | +| `ciIssues_getInstance` | GET | `/v1/ciIssues/{id}` | read | | +| **ciMacOsVersions** (4) | | | | | +| `ciMacOsVersions_getCollection` | GET | `/v1/ciMacOsVersions` | read | | +| `ciMacOsVersions_getInstance` | GET | `/v1/ciMacOsVersions/{id}` | read | | +| `ciMacOsVersions_xcodeVersions_getToManyRelated` | GET | `/v1/ciMacOsVersions/{id}/xcodeVersions` | read | | +| `ciMacOsVersions_xcodeVersions_getToManyRelationship` | GET | `/v1/ciMacOsVersions/{id}/relationships/xcodeVersions` | read | | +| **ciProducts** (13) | | | | | +| `ciProducts_additionalRepositories_getToManyRelated` | GET | `/v1/ciProducts/{id}/additionalRepositories` | read | | +| `ciProducts_additionalRepositories_getToManyRelationship` | GET | `/v1/ciProducts/{id}/relationships/additionalRepositories` | read | | +| `ciProducts_app_getToOneRelated` | GET | `/v1/ciProducts/{id}/app` | read | | +| `ciProducts_app_getToOneRelationship` | GET | `/v1/ciProducts/{id}/relationships/app` | read | | +| `ciProducts_buildRuns_getToManyRelated` | GET | `/v1/ciProducts/{id}/buildRuns` | read | | +| `ciProducts_buildRuns_getToManyRelationship` | GET | `/v1/ciProducts/{id}/relationships/buildRuns` | read | | +| `ciProducts_deleteInstance` | DELETE | `/v1/ciProducts/{id}` | owner only (typed confirm) | | +| `ciProducts_getCollection` | GET | `/v1/ciProducts` | read | | +| `ciProducts_getInstance` | GET | `/v1/ciProducts/{id}` | read | | +| `ciProducts_primaryRepositories_getToManyRelated` | GET | `/v1/ciProducts/{id}/primaryRepositories` | read | | +| `ciProducts_primaryRepositories_getToManyRelationship` | GET | `/v1/ciProducts/{id}/relationships/primaryRepositories` | read | | +| `ciProducts_workflows_getToManyRelated` | GET | `/v1/ciProducts/{id}/workflows` | read | | +| `ciProducts_workflows_getToManyRelationship` | GET | `/v1/ciProducts/{id}/relationships/workflows` | read | | +| **ciTestResults** (1) | | | | | +| `ciTestResults_getInstance` | GET | `/v1/ciTestResults/{id}` | read | | +| **ciWorkflows** (8) | | | | | +| `ciWorkflows_buildRuns_getToManyRelated` | GET | `/v1/ciWorkflows/{id}/buildRuns` | read | | +| `ciWorkflows_buildRuns_getToManyRelationship` | GET | `/v1/ciWorkflows/{id}/relationships/buildRuns` | read | | +| `ciWorkflows_createInstance` | POST | `/v1/ciWorkflows` | write (dry by default) | | +| `ciWorkflows_deleteInstance` | DELETE | `/v1/ciWorkflows/{id}` | owner only (typed confirm) | | +| `ciWorkflows_getInstance` | GET | `/v1/ciWorkflows/{id}` | read | | +| `ciWorkflows_repository_getToOneRelated` | GET | `/v1/ciWorkflows/{id}/repository` | read | | +| `ciWorkflows_repository_getToOneRelationship` | GET | `/v1/ciWorkflows/{id}/relationships/repository` | read | | +| `ciWorkflows_updateInstance` | PATCH | `/v1/ciWorkflows/{id}` | write (dry by default) | | +| **ciXcodeVersions** (4) | | | | | +| `ciXcodeVersions_getCollection` | GET | `/v1/ciXcodeVersions` | read | | +| `ciXcodeVersions_getInstance` | GET | `/v1/ciXcodeVersions/{id}` | read | | +| `ciXcodeVersions_macOsVersions_getToManyRelated` | GET | `/v1/ciXcodeVersions/{id}/macOsVersions` | read | | +| `ciXcodeVersions_macOsVersions_getToManyRelationship` | GET | `/v1/ciXcodeVersions/{id}/relationships/macOsVersions` | read | | +| **customerReviewResponses** (3) | | | | | +| `customerReviewResponses_createInstance` | POST | `/v1/customerReviewResponses` | owner only (typed confirm) | lib/reviews | +| `customerReviewResponses_deleteInstance` | DELETE | `/v1/customerReviewResponses/{id}` | owner only (typed confirm) | | +| `customerReviewResponses_getInstance` | GET | `/v1/customerReviewResponses/{id}` | read | | +| **customerReviews** (3) | | | | | +| `customerReviews_getInstance` | GET | `/v1/customerReviews/{id}` | read | | +| `customerReviews_response_getToOneRelated` | GET | `/v1/customerReviews/{id}/response` | read | | +| `customerReviews_response_getToOneRelationship` | GET | `/v1/customerReviews/{id}/relationships/response` | read | | +| **devices** (4) | | | | | +| `devices_createInstance` | POST | `/v1/devices` | write (dry by default) | | +| `devices_getCollection` | GET | `/v1/devices` | read | | +| `devices_getInstance` | GET | `/v1/devices/{id}` | read | | +| `devices_updateInstance` | PATCH | `/v1/devices/{id}` | write (dry by default) | | +| **diagnosticSignatures** (1) | | | | | +| `diagnosticSignatures_logs_getToManyRelated` | GET | `/v1/diagnosticSignatures/{id}/logs` | read | | +| **endAppAvailabilityPreOrders** (1) | | | | | +| `endAppAvailabilityPreOrders_createInstance` | POST | `/v1/endAppAvailabilityPreOrders` | write (dry by default) | | +| **endUserLicenseAgreements** (6) | | | | | +| `endUserLicenseAgreements_createInstance` | POST | `/v1/endUserLicenseAgreements` | write (dry by default) | | +| `endUserLicenseAgreements_deleteInstance` | DELETE | `/v1/endUserLicenseAgreements/{id}` | owner only (typed confirm) | | +| `endUserLicenseAgreements_getInstance` | GET | `/v1/endUserLicenseAgreements/{id}` | read | | +| `endUserLicenseAgreements_territories_getToManyRelated` | GET | `/v1/endUserLicenseAgreements/{id}/territories` | read | | +| `endUserLicenseAgreements_territories_getToManyRelationship` | GET | `/v1/endUserLicenseAgreements/{id}/relationships/territories` | read | | +| `endUserLicenseAgreements_updateInstance` | PATCH | `/v1/endUserLicenseAgreements/{id}` | write (dry by default) | | +| **financeReports** (1) | | | | | +| `financeReports_getCollection` | GET | `/v1/financeReports` | read | | +| **gameCenterAchievementImages** (8) | | | | | +| `gameCenterAchievementImagesV2_createInstance` | POST | `/v2/gameCenterAchievementImages` | write (dry by default) | | +| `gameCenterAchievementImagesV2_deleteInstance` | DELETE | `/v2/gameCenterAchievementImages/{id}` | owner only (typed confirm) | | +| `gameCenterAchievementImagesV2_getInstance` | GET | `/v2/gameCenterAchievementImages/{id}` | read | | +| `gameCenterAchievementImagesV2_updateInstance` | PATCH | `/v2/gameCenterAchievementImages/{id}` | write (dry by default) | | +| `gameCenterAchievementImages_createInstance` | POST | `/v1/gameCenterAchievementImages` | write (dry by default) | | +| `gameCenterAchievementImages_deleteInstance` | DELETE | `/v1/gameCenterAchievementImages/{id}` | owner only (typed confirm) | | +| `gameCenterAchievementImages_getInstance` | GET | `/v1/gameCenterAchievementImages/{id}` | read | | +| `gameCenterAchievementImages_updateInstance` | PATCH | `/v1/gameCenterAchievementImages/{id}` | write (dry by default) | | +| **gameCenterAchievementLocalizations** (14) | | | | | +| `gameCenterAchievementLocalizationsV2_createInstance` | POST | `/v2/gameCenterAchievementLocalizations` | write (dry by default) | | +| `gameCenterAchievementLocalizationsV2_deleteInstance` | DELETE | `/v2/gameCenterAchievementLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterAchievementLocalizationsV2_getInstance` | GET | `/v2/gameCenterAchievementLocalizations/{id}` | read | | +| `gameCenterAchievementLocalizationsV2_image_getToOneRelated` | GET | `/v2/gameCenterAchievementLocalizations/{id}/image` | read | | +| `gameCenterAchievementLocalizationsV2_image_getToOneRelationship` | GET | `/v2/gameCenterAchievementLocalizations/{id}/relationships/image` | read | | +| `gameCenterAchievementLocalizationsV2_updateInstance` | PATCH | `/v2/gameCenterAchievementLocalizations/{id}` | write (dry by default) | | +| `gameCenterAchievementLocalizations_createInstance` | POST | `/v1/gameCenterAchievementLocalizations` | write (dry by default) | | +| `gameCenterAchievementLocalizations_deleteInstance` | DELETE | `/v1/gameCenterAchievementLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterAchievementLocalizations_gameCenterAchievementImage_getToOneRelated` | GET | `/v1/gameCenterAchievementLocalizations/{id}/gameCenterAchievementImage` | read | | +| `gameCenterAchievementLocalizations_gameCenterAchievementImage_getToOneRelationship` | GET | `/v1/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievementImage` | read | | +| `gameCenterAchievementLocalizations_gameCenterAchievement_getToOneRelated` | GET | `/v1/gameCenterAchievementLocalizations/{id}/gameCenterAchievement` | read | | +| `gameCenterAchievementLocalizations_gameCenterAchievement_getToOneRelationship` | GET | `/v1/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievement` | read | | +| `gameCenterAchievementLocalizations_getInstance` | GET | `/v1/gameCenterAchievementLocalizations/{id}` | read | | +| `gameCenterAchievementLocalizations_updateInstance` | PATCH | `/v1/gameCenterAchievementLocalizations/{id}` | write (dry by default) | | +| **gameCenterAchievementReleases** (3) | | | | | +| `gameCenterAchievementReleases_createInstance` | POST | `/v1/gameCenterAchievementReleases` | owner only (typed confirm) | | +| `gameCenterAchievementReleases_deleteInstance` | DELETE | `/v1/gameCenterAchievementReleases/{id}` | owner only (typed confirm) | | +| `gameCenterAchievementReleases_getInstance` | GET | `/v1/gameCenterAchievementReleases/{id}` | read | | +| **gameCenterAchievementVersions** (4) | | | | | +| `gameCenterAchievementVersionsV2_createInstance` | POST | `/v2/gameCenterAchievementVersions` | write (dry by default) | | +| `gameCenterAchievementVersionsV2_getInstance` | GET | `/v2/gameCenterAchievementVersions/{id}` | read | | +| `gameCenterAchievementVersionsV2_localizations_getToManyRelated` | GET | `/v2/gameCenterAchievementVersions/{id}/localizations` | read | | +| `gameCenterAchievementVersionsV2_localizations_getToManyRelationship` | GET | `/v2/gameCenterAchievementVersions/{id}/relationships/localizations` | read | | +| **gameCenterAchievements** (19) | | | | | +| `gameCenterAchievementsV2_activity_updateToOneRelationship` | PATCH | `/v2/gameCenterAchievements/{id}/relationships/activity` | write (dry by default) | | +| `gameCenterAchievementsV2_createInstance` | POST | `/v2/gameCenterAchievements` | write (dry by default) | | +| `gameCenterAchievementsV2_deleteInstance` | DELETE | `/v2/gameCenterAchievements/{id}` | owner only (typed confirm) | | +| `gameCenterAchievementsV2_getInstance` | GET | `/v2/gameCenterAchievements/{id}` | read | | +| `gameCenterAchievementsV2_updateInstance` | PATCH | `/v2/gameCenterAchievements/{id}` | write (dry by default) | | +| `gameCenterAchievementsV2_versions_getToManyRelated` | GET | `/v2/gameCenterAchievements/{id}/versions` | read | | +| `gameCenterAchievementsV2_versions_getToManyRelationship` | GET | `/v2/gameCenterAchievements/{id}/relationships/versions` | read | | +| `gameCenterAchievements_activity_updateToOneRelationship` | PATCH | `/v1/gameCenterAchievements/{id}/relationships/activity` | write (dry by default) | | +| `gameCenterAchievements_createInstance` | POST | `/v1/gameCenterAchievements` | write (dry by default) | | +| `gameCenterAchievements_deleteInstance` | DELETE | `/v1/gameCenterAchievements/{id}` | owner only (typed confirm) | | +| `gameCenterAchievements_getInstance` | GET | `/v1/gameCenterAchievements/{id}` | read | | +| `gameCenterAchievements_groupAchievement_getToOneRelated` | GET | `/v1/gameCenterAchievements/{id}/groupAchievement` | read | | +| `gameCenterAchievements_groupAchievement_getToOneRelationship` | GET | `/v1/gameCenterAchievements/{id}/relationships/groupAchievement` | read | | +| `gameCenterAchievements_groupAchievement_updateToOneRelationship` | PATCH | `/v1/gameCenterAchievements/{id}/relationships/groupAchievement` | write (dry by default) | | +| `gameCenterAchievements_localizations_getToManyRelated` | GET | `/v1/gameCenterAchievements/{id}/localizations` | read | | +| `gameCenterAchievements_localizations_getToManyRelationship` | GET | `/v1/gameCenterAchievements/{id}/relationships/localizations` | read | | +| `gameCenterAchievements_releases_getToManyRelated` | GET | `/v1/gameCenterAchievements/{id}/releases` | read | | +| `gameCenterAchievements_releases_getToManyRelationship` | GET | `/v1/gameCenterAchievements/{id}/relationships/releases` | read | | +| `gameCenterAchievements_updateInstance` | PATCH | `/v1/gameCenterAchievements/{id}` | write (dry by default) | | +| **gameCenterActivities** (14) | | | | | +| `gameCenterActivities_achievementsV2_createToManyRelationship` | POST | `/v1/gameCenterActivities/{id}/relationships/achievementsV2` | write (dry by default) | | +| `gameCenterActivities_achievementsV2_deleteToManyRelationship` | DELETE | `/v1/gameCenterActivities/{id}/relationships/achievementsV2` | owner only (typed confirm) | | +| `gameCenterActivities_achievements_createToManyRelationship` | POST | `/v1/gameCenterActivities/{id}/relationships/achievements` | write (dry by default) | | +| `gameCenterActivities_achievements_deleteToManyRelationship` | DELETE | `/v1/gameCenterActivities/{id}/relationships/achievements` | owner only (typed confirm) | | +| `gameCenterActivities_createInstance` | POST | `/v1/gameCenterActivities` | write (dry by default) | | +| `gameCenterActivities_deleteInstance` | DELETE | `/v1/gameCenterActivities/{id}` | owner only (typed confirm) | | +| `gameCenterActivities_getInstance` | GET | `/v1/gameCenterActivities/{id}` | read | | +| `gameCenterActivities_leaderboardsV2_createToManyRelationship` | POST | `/v1/gameCenterActivities/{id}/relationships/leaderboardsV2` | write (dry by default) | | +| `gameCenterActivities_leaderboardsV2_deleteToManyRelationship` | DELETE | `/v1/gameCenterActivities/{id}/relationships/leaderboardsV2` | owner only (typed confirm) | | +| `gameCenterActivities_leaderboards_createToManyRelationship` | POST | `/v1/gameCenterActivities/{id}/relationships/leaderboards` | write (dry by default) | | +| `gameCenterActivities_leaderboards_deleteToManyRelationship` | DELETE | `/v1/gameCenterActivities/{id}/relationships/leaderboards` | owner only (typed confirm) | | +| `gameCenterActivities_updateInstance` | PATCH | `/v1/gameCenterActivities/{id}` | write (dry by default) | | +| `gameCenterActivities_versions_getToManyRelated` | GET | `/v1/gameCenterActivities/{id}/versions` | read | | +| `gameCenterActivities_versions_getToManyRelationship` | GET | `/v1/gameCenterActivities/{id}/relationships/versions` | read | | +| **gameCenterActivityImages** (4) | | | | | +| `gameCenterActivityImages_createInstance` | POST | `/v1/gameCenterActivityImages` | write (dry by default) | | +| `gameCenterActivityImages_deleteInstance` | DELETE | `/v1/gameCenterActivityImages/{id}` | owner only (typed confirm) | | +| `gameCenterActivityImages_getInstance` | GET | `/v1/gameCenterActivityImages/{id}` | read | | +| `gameCenterActivityImages_updateInstance` | PATCH | `/v1/gameCenterActivityImages/{id}` | write (dry by default) | | +| **gameCenterActivityLocalizations** (6) | | | | | +| `gameCenterActivityLocalizations_createInstance` | POST | `/v1/gameCenterActivityLocalizations` | write (dry by default) | | +| `gameCenterActivityLocalizations_deleteInstance` | DELETE | `/v1/gameCenterActivityLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterActivityLocalizations_getInstance` | GET | `/v1/gameCenterActivityLocalizations/{id}` | read | | +| `gameCenterActivityLocalizations_image_getToOneRelated` | GET | `/v1/gameCenterActivityLocalizations/{id}/image` | read | | +| `gameCenterActivityLocalizations_image_getToOneRelationship` | GET | `/v1/gameCenterActivityLocalizations/{id}/relationships/image` | read | | +| `gameCenterActivityLocalizations_updateInstance` | PATCH | `/v1/gameCenterActivityLocalizations/{id}` | write (dry by default) | | +| **gameCenterActivityVersionReleases** (3) | | | | | +| `gameCenterActivityVersionReleases_createInstance` | POST | `/v1/gameCenterActivityVersionReleases` | owner only (typed confirm) | | +| `gameCenterActivityVersionReleases_deleteInstance` | DELETE | `/v1/gameCenterActivityVersionReleases/{id}` | owner only (typed confirm) | | +| `gameCenterActivityVersionReleases_getInstance` | GET | `/v1/gameCenterActivityVersionReleases/{id}` | read | | +| **gameCenterActivityVersions** (7) | | | | | +| `gameCenterActivityVersions_createInstance` | POST | `/v1/gameCenterActivityVersions` | write (dry by default) | | +| `gameCenterActivityVersions_defaultImage_getToOneRelated` | GET | `/v1/gameCenterActivityVersions/{id}/defaultImage` | read | | +| `gameCenterActivityVersions_defaultImage_getToOneRelationship` | GET | `/v1/gameCenterActivityVersions/{id}/relationships/defaultImage` | read | | +| `gameCenterActivityVersions_getInstance` | GET | `/v1/gameCenterActivityVersions/{id}` | read | | +| `gameCenterActivityVersions_localizations_getToManyRelated` | GET | `/v1/gameCenterActivityVersions/{id}/localizations` | read | | +| `gameCenterActivityVersions_localizations_getToManyRelationship` | GET | `/v1/gameCenterActivityVersions/{id}/relationships/localizations` | read | | +| `gameCenterActivityVersions_updateInstance` | PATCH | `/v1/gameCenterActivityVersions/{id}` | write (dry by default) | | +| **gameCenterAppVersions** (9) | | | | | +| `gameCenterAppVersions_appStoreVersion_getToOneRelated` | GET | `/v1/gameCenterAppVersions/{id}/appStoreVersion` | read | | +| `gameCenterAppVersions_appStoreVersion_getToOneRelationship` | GET | `/v1/gameCenterAppVersions/{id}/relationships/appStoreVersion` | read | | +| `gameCenterAppVersions_compatibilityVersions_createToManyRelationship` | POST | `/v1/gameCenterAppVersions/{id}/relationships/compatibilityVersions` | write (dry by default) | | +| `gameCenterAppVersions_compatibilityVersions_deleteToManyRelationship` | DELETE | `/v1/gameCenterAppVersions/{id}/relationships/compatibilityVersions` | owner only (typed confirm) | | +| `gameCenterAppVersions_compatibilityVersions_getToManyRelated` | GET | `/v1/gameCenterAppVersions/{id}/compatibilityVersions` | read | | +| `gameCenterAppVersions_compatibilityVersions_getToManyRelationship` | GET | `/v1/gameCenterAppVersions/{id}/relationships/compatibilityVersions` | read | | +| `gameCenterAppVersions_createInstance` | POST | `/v1/gameCenterAppVersions` | write (dry by default) | | +| `gameCenterAppVersions_getInstance` | GET | `/v1/gameCenterAppVersions/{id}` | read | | +| `gameCenterAppVersions_updateInstance` | PATCH | `/v1/gameCenterAppVersions/{id}` | write (dry by default) | | +| **gameCenterChallengeImages** (4) | | | | | +| `gameCenterChallengeImages_createInstance` | POST | `/v1/gameCenterChallengeImages` | write (dry by default) | | +| `gameCenterChallengeImages_deleteInstance` | DELETE | `/v1/gameCenterChallengeImages/{id}` | owner only (typed confirm) | | +| `gameCenterChallengeImages_getInstance` | GET | `/v1/gameCenterChallengeImages/{id}` | read | | +| `gameCenterChallengeImages_updateInstance` | PATCH | `/v1/gameCenterChallengeImages/{id}` | write (dry by default) | | +| **gameCenterChallengeLocalizations** (6) | | | | | +| `gameCenterChallengeLocalizations_createInstance` | POST | `/v1/gameCenterChallengeLocalizations` | write (dry by default) | | +| `gameCenterChallengeLocalizations_deleteInstance` | DELETE | `/v1/gameCenterChallengeLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterChallengeLocalizations_getInstance` | GET | `/v1/gameCenterChallengeLocalizations/{id}` | read | | +| `gameCenterChallengeLocalizations_image_getToOneRelated` | GET | `/v1/gameCenterChallengeLocalizations/{id}/image` | read | | +| `gameCenterChallengeLocalizations_image_getToOneRelationship` | GET | `/v1/gameCenterChallengeLocalizations/{id}/relationships/image` | read | | +| `gameCenterChallengeLocalizations_updateInstance` | PATCH | `/v1/gameCenterChallengeLocalizations/{id}` | write (dry by default) | | +| **gameCenterChallengeVersionReleases** (3) | | | | | +| `gameCenterChallengeVersionReleases_createInstance` | POST | `/v1/gameCenterChallengeVersionReleases` | owner only (typed confirm) | | +| `gameCenterChallengeVersionReleases_deleteInstance` | DELETE | `/v1/gameCenterChallengeVersionReleases/{id}` | owner only (typed confirm) | | +| `gameCenterChallengeVersionReleases_getInstance` | GET | `/v1/gameCenterChallengeVersionReleases/{id}` | read | | +| **gameCenterChallengeVersions** (6) | | | | | +| `gameCenterChallengeVersions_createInstance` | POST | `/v1/gameCenterChallengeVersions` | write (dry by default) | | +| `gameCenterChallengeVersions_defaultImage_getToOneRelated` | GET | `/v1/gameCenterChallengeVersions/{id}/defaultImage` | read | | +| `gameCenterChallengeVersions_defaultImage_getToOneRelationship` | GET | `/v1/gameCenterChallengeVersions/{id}/relationships/defaultImage` | read | | +| `gameCenterChallengeVersions_getInstance` | GET | `/v1/gameCenterChallengeVersions/{id}` | read | | +| `gameCenterChallengeVersions_localizations_getToManyRelated` | GET | `/v1/gameCenterChallengeVersions/{id}/localizations` | read | | +| `gameCenterChallengeVersions_localizations_getToManyRelationship` | GET | `/v1/gameCenterChallengeVersions/{id}/relationships/localizations` | read | | +| **gameCenterChallenges** (8) | | | | | +| `gameCenterChallenges_createInstance` | POST | `/v1/gameCenterChallenges` | write (dry by default) | | +| `gameCenterChallenges_deleteInstance` | DELETE | `/v1/gameCenterChallenges/{id}` | owner only (typed confirm) | | +| `gameCenterChallenges_getInstance` | GET | `/v1/gameCenterChallenges/{id}` | read | | +| `gameCenterChallenges_leaderboardV2_updateToOneRelationship` | PATCH | `/v1/gameCenterChallenges/{id}/relationships/leaderboardV2` | write (dry by default) | | +| `gameCenterChallenges_leaderboard_updateToOneRelationship` | PATCH | `/v1/gameCenterChallenges/{id}/relationships/leaderboard` | write (dry by default) | | +| `gameCenterChallenges_updateInstance` | PATCH | `/v1/gameCenterChallenges/{id}` | write (dry by default) | | +| `gameCenterChallenges_versions_getToManyRelated` | GET | `/v1/gameCenterChallenges/{id}/versions` | read | | +| `gameCenterChallenges_versions_getToManyRelationship` | GET | `/v1/gameCenterChallenges/{id}/relationships/versions` | read | | +| **gameCenterDetailPlayers** (1) | | | | | +| `gameCenterDetailPlayers_updateInstance` | PATCH | `/v1/gameCenterDetailPlayers/{id}` | write (dry by default) | | +| **gameCenterDetails** (44) | | | | | +| `gameCenterDetails_achievementReleases_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/achievementReleases` | read | | +| `gameCenterDetails_achievementReleases_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/achievementReleases` | read | | +| `gameCenterDetails_activityReleases_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/activityReleases` | read | | +| `gameCenterDetails_activityReleases_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/activityReleases` | read | | +| `gameCenterDetails_blockedPlayers_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/blockedPlayers` | read | | +| `gameCenterDetails_blockedPlayers_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/blockedPlayers` | read | | +| `gameCenterDetails_challengeReleases_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/challengeReleases` | read | | +| `gameCenterDetails_challengeReleases_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/challengeReleases` | read | | +| `gameCenterDetails_challengesMinimumPlatformVersions_replaceToManyRelationship` | PATCH | `/v1/gameCenterDetails/{id}/relationships/challengesMinimumPlatformVersions` | write (dry by default) | | +| `gameCenterDetails_classicMatchmakingRequests_getMetrics` | GET | `/v1/gameCenterDetails/{id}/metrics/classicMatchmakingRequests` | read | | +| `gameCenterDetails_createInstance` | POST | `/v1/gameCenterDetails` | write (dry by default) | | +| `gameCenterDetails_gameCenterAchievementsV2_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterAchievementsV2` | read | | +| `gameCenterDetails_gameCenterAchievementsV2_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterAchievementsV2` | read | | +| `gameCenterDetails_gameCenterAchievementsV2_replaceToManyRelationship` | PATCH | `/v1/gameCenterDetails/{id}/relationships/gameCenterAchievementsV2` | write (dry by default) | | +| `gameCenterDetails_gameCenterAchievements_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterAchievements` | read | | +| `gameCenterDetails_gameCenterAchievements_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterAchievements` | read | | +| `gameCenterDetails_gameCenterAchievements_replaceToManyRelationship` | PATCH | `/v1/gameCenterDetails/{id}/relationships/gameCenterAchievements` | write (dry by default) | | +| `gameCenterDetails_gameCenterActivities_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterActivities` | read | | +| `gameCenterDetails_gameCenterActivities_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterActivities` | read | | +| `gameCenterDetails_gameCenterAppVersions_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterAppVersions` | read | | +| `gameCenterDetails_gameCenterAppVersions_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterAppVersions` | read | | +| `gameCenterDetails_gameCenterChallenges_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterChallenges` | read | | +| `gameCenterDetails_gameCenterChallenges_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterChallenges` | read | | +| `gameCenterDetails_gameCenterGroup_getToOneRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterGroup` | read | | +| `gameCenterDetails_gameCenterGroup_getToOneRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterGroup` | read | | +| `gameCenterDetails_gameCenterLeaderboardSetsV2_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterLeaderboardSetsV2` | read | | +| `gameCenterDetails_gameCenterLeaderboardSetsV2_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSetsV2` | read | | +| `gameCenterDetails_gameCenterLeaderboardSetsV2_replaceToManyRelationship` | PATCH | `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSetsV2` | write (dry by default) | | +| `gameCenterDetails_gameCenterLeaderboardSets_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterLeaderboardSets` | read | | +| `gameCenterDetails_gameCenterLeaderboardSets_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSets` | read | | +| `gameCenterDetails_gameCenterLeaderboardSets_replaceToManyRelationship` | PATCH | `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSets` | write (dry by default) | | +| `gameCenterDetails_gameCenterLeaderboardsV2_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterLeaderboardsV2` | read | | +| `gameCenterDetails_gameCenterLeaderboardsV2_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardsV2` | read | | +| `gameCenterDetails_gameCenterLeaderboardsV2_replaceToManyRelationship` | PATCH | `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardsV2` | write (dry by default) | | +| `gameCenterDetails_gameCenterLeaderboards_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/gameCenterLeaderboards` | read | | +| `gameCenterDetails_gameCenterLeaderboards_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboards` | read | | +| `gameCenterDetails_gameCenterLeaderboards_replaceToManyRelationship` | PATCH | `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboards` | write (dry by default) | | +| `gameCenterDetails_getInstance` | GET | `/v1/gameCenterDetails/{id}` | read | | +| `gameCenterDetails_leaderboardReleases_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/leaderboardReleases` | read | | +| `gameCenterDetails_leaderboardReleases_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/leaderboardReleases` | read | | +| `gameCenterDetails_leaderboardSetReleases_getToManyRelated` | GET | `/v1/gameCenterDetails/{id}/leaderboardSetReleases` | read | | +| `gameCenterDetails_leaderboardSetReleases_getToManyRelationship` | GET | `/v1/gameCenterDetails/{id}/relationships/leaderboardSetReleases` | read | | +| `gameCenterDetails_ruleBasedMatchmakingRequests_getMetrics` | GET | `/v1/gameCenterDetails/{id}/metrics/ruleBasedMatchmakingRequests` | read | | +| `gameCenterDetails_updateInstance` | PATCH | `/v1/gameCenterDetails/{id}` | write (dry by default) | | +| **gameCenterEnabledVersions** (5) | | | | | +| `gameCenterEnabledVersions_compatibleVersions_createToManyRelationship` | POST | `/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions` | write (dry by default) | | +| `gameCenterEnabledVersions_compatibleVersions_deleteToManyRelationship` | DELETE | `/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions` | owner only (typed confirm) | | +| `gameCenterEnabledVersions_compatibleVersions_getToManyRelated` | GET | `/v1/gameCenterEnabledVersions/{id}/compatibleVersions` | read | | +| `gameCenterEnabledVersions_compatibleVersions_getToManyRelationship` | GET | `/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions` | read | | +| `gameCenterEnabledVersions_compatibleVersions_replaceToManyRelationship` | PATCH | `/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions` | write (dry by default) | | +| **gameCenterGroups** (29) | | | | | +| `gameCenterGroups_createInstance` | POST | `/v1/gameCenterGroups` | write (dry by default) | | +| `gameCenterGroups_deleteInstance` | DELETE | `/v1/gameCenterGroups/{id}` | owner only (typed confirm) | | +| `gameCenterGroups_gameCenterAchievementsV2_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterAchievementsV2` | read | | +| `gameCenterGroups_gameCenterAchievementsV2_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterAchievementsV2` | read | | +| `gameCenterGroups_gameCenterAchievementsV2_replaceToManyRelationship` | PATCH | `/v1/gameCenterGroups/{id}/relationships/gameCenterAchievementsV2` | write (dry by default) | | +| `gameCenterGroups_gameCenterAchievements_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterAchievements` | read | | +| `gameCenterGroups_gameCenterAchievements_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterAchievements` | read | | +| `gameCenterGroups_gameCenterAchievements_replaceToManyRelationship` | PATCH | `/v1/gameCenterGroups/{id}/relationships/gameCenterAchievements` | write (dry by default) | | +| `gameCenterGroups_gameCenterActivities_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterActivities` | read | | +| `gameCenterGroups_gameCenterActivities_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterActivities` | read | | +| `gameCenterGroups_gameCenterChallenges_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterChallenges` | read | | +| `gameCenterGroups_gameCenterChallenges_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterChallenges` | read | | +| `gameCenterGroups_gameCenterDetails_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterDetails` | read | | +| `gameCenterGroups_gameCenterDetails_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterDetails` | read | | +| `gameCenterGroups_gameCenterLeaderboardSetsV2_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterLeaderboardSetsV2` | read | | +| `gameCenterGroups_gameCenterLeaderboardSetsV2_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSetsV2` | read | | +| `gameCenterGroups_gameCenterLeaderboardSetsV2_replaceToManyRelationship` | PATCH | `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSetsV2` | write (dry by default) | | +| `gameCenterGroups_gameCenterLeaderboardSets_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterLeaderboardSets` | read | | +| `gameCenterGroups_gameCenterLeaderboardSets_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSets` | read | | +| `gameCenterGroups_gameCenterLeaderboardSets_replaceToManyRelationship` | PATCH | `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSets` | write (dry by default) | | +| `gameCenterGroups_gameCenterLeaderboardsV2_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterLeaderboardsV2` | read | | +| `gameCenterGroups_gameCenterLeaderboardsV2_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardsV2` | read | | +| `gameCenterGroups_gameCenterLeaderboardsV2_replaceToManyRelationship` | PATCH | `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardsV2` | write (dry by default) | | +| `gameCenterGroups_gameCenterLeaderboards_getToManyRelated` | GET | `/v1/gameCenterGroups/{id}/gameCenterLeaderboards` | read | | +| `gameCenterGroups_gameCenterLeaderboards_getToManyRelationship` | GET | `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboards` | read | | +| `gameCenterGroups_gameCenterLeaderboards_replaceToManyRelationship` | PATCH | `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboards` | write (dry by default) | | +| `gameCenterGroups_getCollection` | GET | `/v1/gameCenterGroups` | read | | +| `gameCenterGroups_getInstance` | GET | `/v1/gameCenterGroups/{id}` | read | | +| `gameCenterGroups_updateInstance` | PATCH | `/v1/gameCenterGroups/{id}` | write (dry by default) | | +| **gameCenterLeaderboardEntrySubmissions** (1) | | | | | +| `gameCenterLeaderboardEntrySubmissions_createInstance` | POST | `/v1/gameCenterLeaderboardEntrySubmissions` | owner only (typed confirm) | | +| **gameCenterLeaderboardImages** (8) | | | | | +| `gameCenterLeaderboardImagesV2_createInstance` | POST | `/v2/gameCenterLeaderboardImages` | write (dry by default) | | +| `gameCenterLeaderboardImagesV2_deleteInstance` | DELETE | `/v2/gameCenterLeaderboardImages/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardImagesV2_getInstance` | GET | `/v2/gameCenterLeaderboardImages/{id}` | read | | +| `gameCenterLeaderboardImagesV2_updateInstance` | PATCH | `/v2/gameCenterLeaderboardImages/{id}` | write (dry by default) | | +| `gameCenterLeaderboardImages_createInstance` | POST | `/v1/gameCenterLeaderboardImages` | write (dry by default) | | +| `gameCenterLeaderboardImages_deleteInstance` | DELETE | `/v1/gameCenterLeaderboardImages/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardImages_getInstance` | GET | `/v1/gameCenterLeaderboardImages/{id}` | read | | +| `gameCenterLeaderboardImages_updateInstance` | PATCH | `/v1/gameCenterLeaderboardImages/{id}` | write (dry by default) | | +| **gameCenterLeaderboardLocalizations** (12) | | | | | +| `gameCenterLeaderboardLocalizationsV2_createInstance` | POST | `/v2/gameCenterLeaderboardLocalizations` | write (dry by default) | | +| `gameCenterLeaderboardLocalizationsV2_deleteInstance` | DELETE | `/v2/gameCenterLeaderboardLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardLocalizationsV2_getInstance` | GET | `/v2/gameCenterLeaderboardLocalizations/{id}` | read | | +| `gameCenterLeaderboardLocalizationsV2_image_getToOneRelated` | GET | `/v2/gameCenterLeaderboardLocalizations/{id}/image` | read | | +| `gameCenterLeaderboardLocalizationsV2_image_getToOneRelationship` | GET | `/v2/gameCenterLeaderboardLocalizations/{id}/relationships/image` | read | | +| `gameCenterLeaderboardLocalizationsV2_updateInstance` | PATCH | `/v2/gameCenterLeaderboardLocalizations/{id}` | write (dry by default) | | +| `gameCenterLeaderboardLocalizations_createInstance` | POST | `/v1/gameCenterLeaderboardLocalizations` | write (dry by default) | | +| `gameCenterLeaderboardLocalizations_deleteInstance` | DELETE | `/v1/gameCenterLeaderboardLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardLocalizations_gameCenterLeaderboardImage_getToOneRelated` | GET | `/v1/gameCenterLeaderboardLocalizations/{id}/gameCenterLeaderboardImage` | read | | +| `gameCenterLeaderboardLocalizations_gameCenterLeaderboardImage_getToOneRelationship` | GET | `/v1/gameCenterLeaderboardLocalizations/{id}/relationships/gameCenterLeaderboardImage` | read | | +| `gameCenterLeaderboardLocalizations_getInstance` | GET | `/v1/gameCenterLeaderboardLocalizations/{id}` | read | | +| `gameCenterLeaderboardLocalizations_updateInstance` | PATCH | `/v1/gameCenterLeaderboardLocalizations/{id}` | write (dry by default) | | +| **gameCenterLeaderboardReleases** (3) | | | | | +| `gameCenterLeaderboardReleases_createInstance` | POST | `/v1/gameCenterLeaderboardReleases` | owner only (typed confirm) | | +| `gameCenterLeaderboardReleases_deleteInstance` | DELETE | `/v1/gameCenterLeaderboardReleases/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardReleases_getInstance` | GET | `/v1/gameCenterLeaderboardReleases/{id}` | read | | +| **gameCenterLeaderboardSetImages** (8) | | | | | +| `gameCenterLeaderboardSetImagesV2_createInstance` | POST | `/v2/gameCenterLeaderboardSetImages` | write (dry by default) | | +| `gameCenterLeaderboardSetImagesV2_deleteInstance` | DELETE | `/v2/gameCenterLeaderboardSetImages/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetImagesV2_getInstance` | GET | `/v2/gameCenterLeaderboardSetImages/{id}` | read | | +| `gameCenterLeaderboardSetImagesV2_updateInstance` | PATCH | `/v2/gameCenterLeaderboardSetImages/{id}` | write (dry by default) | | +| `gameCenterLeaderboardSetImages_createInstance` | POST | `/v1/gameCenterLeaderboardSetImages` | write (dry by default) | | +| `gameCenterLeaderboardSetImages_deleteInstance` | DELETE | `/v1/gameCenterLeaderboardSetImages/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetImages_getInstance` | GET | `/v1/gameCenterLeaderboardSetImages/{id}` | read | | +| `gameCenterLeaderboardSetImages_updateInstance` | PATCH | `/v1/gameCenterLeaderboardSetImages/{id}` | write (dry by default) | | +| **gameCenterLeaderboardSetLocalizations** (12) | | | | | +| `gameCenterLeaderboardSetLocalizationsV2_createInstance` | POST | `/v2/gameCenterLeaderboardSetLocalizations` | write (dry by default) | | +| `gameCenterLeaderboardSetLocalizationsV2_deleteInstance` | DELETE | `/v2/gameCenterLeaderboardSetLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetLocalizationsV2_getInstance` | GET | `/v2/gameCenterLeaderboardSetLocalizations/{id}` | read | | +| `gameCenterLeaderboardSetLocalizationsV2_image_getToOneRelated` | GET | `/v2/gameCenterLeaderboardSetLocalizations/{id}/image` | read | | +| `gameCenterLeaderboardSetLocalizationsV2_image_getToOneRelationship` | GET | `/v2/gameCenterLeaderboardSetLocalizations/{id}/relationships/image` | read | | +| `gameCenterLeaderboardSetLocalizationsV2_updateInstance` | PATCH | `/v2/gameCenterLeaderboardSetLocalizations/{id}` | write (dry by default) | | +| `gameCenterLeaderboardSetLocalizations_createInstance` | POST | `/v1/gameCenterLeaderboardSetLocalizations` | write (dry by default) | | +| `gameCenterLeaderboardSetLocalizations_deleteInstance` | DELETE | `/v1/gameCenterLeaderboardSetLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetLocalizations_gameCenterLeaderboardSetImage_getToOneRelated` | GET | `/v1/gameCenterLeaderboardSetLocalizations/{id}/gameCenterLeaderboardSetImage` | read | | +| `gameCenterLeaderboardSetLocalizations_gameCenterLeaderboardSetImage_getToOneRelationship` | GET | `/v1/gameCenterLeaderboardSetLocalizations/{id}/relationships/gameCenterLeaderboardSetImage` | read | | +| `gameCenterLeaderboardSetLocalizations_getInstance` | GET | `/v1/gameCenterLeaderboardSetLocalizations/{id}` | read | | +| `gameCenterLeaderboardSetLocalizations_updateInstance` | PATCH | `/v1/gameCenterLeaderboardSetLocalizations/{id}` | write (dry by default) | | +| **gameCenterLeaderboardSetMemberLocalizations** (8) | | | | | +| `gameCenterLeaderboardSetMemberLocalizations_createInstance` | POST | `/v1/gameCenterLeaderboardSetMemberLocalizations` | write (dry by default) | | +| `gameCenterLeaderboardSetMemberLocalizations_deleteInstance` | DELETE | `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboardSet_getToOneRelated` | GET | `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboardSet` | read | | +| `gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboardSet_getToOneRelationship` | GET | `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboardSet` | read | | +| `gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboard_getToOneRelated` | GET | `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboard` | read | | +| `gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboard_getToOneRelationship` | GET | `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboard` | read | | +| `gameCenterLeaderboardSetMemberLocalizations_getCollection` | GET | `/v1/gameCenterLeaderboardSetMemberLocalizations` | read | | +| `gameCenterLeaderboardSetMemberLocalizations_updateInstance` | PATCH | `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}` | write (dry by default) | | +| **gameCenterLeaderboardSetReleases** (3) | | | | | +| `gameCenterLeaderboardSetReleases_createInstance` | POST | `/v1/gameCenterLeaderboardSetReleases` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetReleases_deleteInstance` | DELETE | `/v1/gameCenterLeaderboardSetReleases/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetReleases_getInstance` | GET | `/v1/gameCenterLeaderboardSetReleases/{id}` | read | | +| **gameCenterLeaderboardSetVersions** (4) | | | | | +| `gameCenterLeaderboardSetVersionsV2_createInstance` | POST | `/v2/gameCenterLeaderboardSetVersions` | write (dry by default) | | +| `gameCenterLeaderboardSetVersionsV2_getInstance` | GET | `/v2/gameCenterLeaderboardSetVersions/{id}` | read | | +| `gameCenterLeaderboardSetVersionsV2_localizations_getToManyRelated` | GET | `/v2/gameCenterLeaderboardSetVersions/{id}/localizations` | read | | +| `gameCenterLeaderboardSetVersionsV2_localizations_getToManyRelationship` | GET | `/v2/gameCenterLeaderboardSetVersions/{id}/relationships/localizations` | read | | +| **gameCenterLeaderboardSets** (27) | | | | | +| `gameCenterLeaderboardSetsV2_createInstance` | POST | `/v2/gameCenterLeaderboardSets` | write (dry by default) | | +| `gameCenterLeaderboardSetsV2_deleteInstance` | DELETE | `/v2/gameCenterLeaderboardSets/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetsV2_gameCenterLeaderboards_createToManyRelationship` | POST | `/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` | write (dry by default) | | +| `gameCenterLeaderboardSetsV2_gameCenterLeaderboards_deleteToManyRelationship` | DELETE | `/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` | owner only (typed confirm) | | +| `gameCenterLeaderboardSetsV2_gameCenterLeaderboards_getToManyRelated` | GET | `/v2/gameCenterLeaderboardSets/{id}/gameCenterLeaderboards` | read | | +| `gameCenterLeaderboardSetsV2_gameCenterLeaderboards_getToManyRelationship` | GET | `/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` | read | | +| `gameCenterLeaderboardSetsV2_gameCenterLeaderboards_replaceToManyRelationship` | PATCH | `/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` | write (dry by default) | | +| `gameCenterLeaderboardSetsV2_getInstance` | GET | `/v2/gameCenterLeaderboardSets/{id}` | read | | +| `gameCenterLeaderboardSetsV2_updateInstance` | PATCH | `/v2/gameCenterLeaderboardSets/{id}` | write (dry by default) | | +| `gameCenterLeaderboardSetsV2_versions_getToManyRelated` | GET | `/v2/gameCenterLeaderboardSets/{id}/versions` | read | | +| `gameCenterLeaderboardSetsV2_versions_getToManyRelationship` | GET | `/v2/gameCenterLeaderboardSets/{id}/relationships/versions` | read | | +| `gameCenterLeaderboardSets_createInstance` | POST | `/v1/gameCenterLeaderboardSets` | write (dry by default) | | +| `gameCenterLeaderboardSets_deleteInstance` | DELETE | `/v1/gameCenterLeaderboardSets/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardSets_gameCenterLeaderboards_createToManyRelationship` | POST | `/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` | write (dry by default) | | +| `gameCenterLeaderboardSets_gameCenterLeaderboards_deleteToManyRelationship` | DELETE | `/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` | owner only (typed confirm) | | +| `gameCenterLeaderboardSets_gameCenterLeaderboards_getToManyRelated` | GET | `/v1/gameCenterLeaderboardSets/{id}/gameCenterLeaderboards` | read | | +| `gameCenterLeaderboardSets_gameCenterLeaderboards_getToManyRelationship` | GET | `/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` | read | | +| `gameCenterLeaderboardSets_gameCenterLeaderboards_replaceToManyRelationship` | PATCH | `/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` | write (dry by default) | | +| `gameCenterLeaderboardSets_getInstance` | GET | `/v1/gameCenterLeaderboardSets/{id}` | read | | +| `gameCenterLeaderboardSets_groupLeaderboardSet_getToOneRelated` | GET | `/v1/gameCenterLeaderboardSets/{id}/groupLeaderboardSet` | read | | +| `gameCenterLeaderboardSets_groupLeaderboardSet_getToOneRelationship` | GET | `/v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet` | read | | +| `gameCenterLeaderboardSets_groupLeaderboardSet_updateToOneRelationship` | PATCH | `/v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet` | write (dry by default) | | +| `gameCenterLeaderboardSets_localizations_getToManyRelated` | GET | `/v1/gameCenterLeaderboardSets/{id}/localizations` | read | | +| `gameCenterLeaderboardSets_localizations_getToManyRelationship` | GET | `/v1/gameCenterLeaderboardSets/{id}/relationships/localizations` | read | | +| `gameCenterLeaderboardSets_releases_getToManyRelated` | GET | `/v1/gameCenterLeaderboardSets/{id}/releases` | read | | +| `gameCenterLeaderboardSets_releases_getToManyRelationship` | GET | `/v1/gameCenterLeaderboardSets/{id}/relationships/releases` | read | | +| `gameCenterLeaderboardSets_updateInstance` | PATCH | `/v1/gameCenterLeaderboardSets/{id}` | write (dry by default) | | +| **gameCenterLeaderboardVersions** (4) | | | | | +| `gameCenterLeaderboardVersionsV2_createInstance` | POST | `/v2/gameCenterLeaderboardVersions` | write (dry by default) | | +| `gameCenterLeaderboardVersionsV2_getInstance` | GET | `/v2/gameCenterLeaderboardVersions/{id}` | read | | +| `gameCenterLeaderboardVersionsV2_localizations_getToManyRelated` | GET | `/v2/gameCenterLeaderboardVersions/{id}/localizations` | read | | +| `gameCenterLeaderboardVersionsV2_localizations_getToManyRelationship` | GET | `/v2/gameCenterLeaderboardVersions/{id}/relationships/localizations` | read | | +| **gameCenterLeaderboards** (23) | | | | | +| `gameCenterLeaderboardsV2_activity_updateToOneRelationship` | PATCH | `/v2/gameCenterLeaderboards/{id}/relationships/activity` | write (dry by default) | | +| `gameCenterLeaderboardsV2_challenge_updateToOneRelationship` | PATCH | `/v2/gameCenterLeaderboards/{id}/relationships/challenge` | write (dry by default) | | +| `gameCenterLeaderboardsV2_createInstance` | POST | `/v2/gameCenterLeaderboards` | write (dry by default) | | +| `gameCenterLeaderboardsV2_deleteInstance` | DELETE | `/v2/gameCenterLeaderboards/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboardsV2_gameCenterScoreModerations_getToManyRelated` | GET | `/v2/gameCenterLeaderboards/{id}/gameCenterScoreModerations` | read | | +| `gameCenterLeaderboardsV2_gameCenterScoreModerations_getToManyRelationship` | GET | `/v2/gameCenterLeaderboards/{id}/relationships/gameCenterScoreModerations` | read | | +| `gameCenterLeaderboardsV2_getInstance` | GET | `/v2/gameCenterLeaderboards/{id}` | read | | +| `gameCenterLeaderboardsV2_updateInstance` | PATCH | `/v2/gameCenterLeaderboards/{id}` | write (dry by default) | | +| `gameCenterLeaderboardsV2_versions_getToManyRelated` | GET | `/v2/gameCenterLeaderboards/{id}/versions` | read | | +| `gameCenterLeaderboardsV2_versions_getToManyRelationship` | GET | `/v2/gameCenterLeaderboards/{id}/relationships/versions` | read | | +| `gameCenterLeaderboards_activity_updateToOneRelationship` | PATCH | `/v1/gameCenterLeaderboards/{id}/relationships/activity` | write (dry by default) | | +| `gameCenterLeaderboards_challenge_updateToOneRelationship` | PATCH | `/v1/gameCenterLeaderboards/{id}/relationships/challenge` | write (dry by default) | | +| `gameCenterLeaderboards_createInstance` | POST | `/v1/gameCenterLeaderboards` | write (dry by default) | | +| `gameCenterLeaderboards_deleteInstance` | DELETE | `/v1/gameCenterLeaderboards/{id}` | owner only (typed confirm) | | +| `gameCenterLeaderboards_getInstance` | GET | `/v1/gameCenterLeaderboards/{id}` | read | | +| `gameCenterLeaderboards_groupLeaderboard_getToOneRelated` | GET | `/v1/gameCenterLeaderboards/{id}/groupLeaderboard` | read | | +| `gameCenterLeaderboards_groupLeaderboard_getToOneRelationship` | GET | `/v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard` | read | | +| `gameCenterLeaderboards_groupLeaderboard_updateToOneRelationship` | PATCH | `/v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard` | write (dry by default) | | +| `gameCenterLeaderboards_localizations_getToManyRelated` | GET | `/v1/gameCenterLeaderboards/{id}/localizations` | read | | +| `gameCenterLeaderboards_localizations_getToManyRelationship` | GET | `/v1/gameCenterLeaderboards/{id}/relationships/localizations` | read | | +| `gameCenterLeaderboards_releases_getToManyRelated` | GET | `/v1/gameCenterLeaderboards/{id}/releases` | read | | +| `gameCenterLeaderboards_releases_getToManyRelationship` | GET | `/v1/gameCenterLeaderboards/{id}/relationships/releases` | read | | +| `gameCenterLeaderboards_updateInstance` | PATCH | `/v1/gameCenterLeaderboards/{id}` | write (dry by default) | | +| **gameCenterMatchmakingQueues** (10) | | | | | +| `gameCenterMatchmakingQueues_createInstance` | POST | `/v1/gameCenterMatchmakingQueues` | write (dry by default) | | +| `gameCenterMatchmakingQueues_deleteInstance` | DELETE | `/v1/gameCenterMatchmakingQueues/{id}` | owner only (typed confirm) | | +| `gameCenterMatchmakingQueues_experimentMatchmakingQueueSizes_getMetrics` | GET | `/v1/gameCenterMatchmakingQueues/{id}/metrics/experimentMatchmakingQueueSizes` | read | | +| `gameCenterMatchmakingQueues_experimentMatchmakingRequests_getMetrics` | GET | `/v1/gameCenterMatchmakingQueues/{id}/metrics/experimentMatchmakingRequests` | read | | +| `gameCenterMatchmakingQueues_getCollection` | GET | `/v1/gameCenterMatchmakingQueues` | read | | +| `gameCenterMatchmakingQueues_getInstance` | GET | `/v1/gameCenterMatchmakingQueues/{id}` | read | | +| `gameCenterMatchmakingQueues_matchmakingQueueSizes_getMetrics` | GET | `/v1/gameCenterMatchmakingQueues/{id}/metrics/matchmakingQueueSizes` | read | | +| `gameCenterMatchmakingQueues_matchmakingRequests_getMetrics` | GET | `/v1/gameCenterMatchmakingQueues/{id}/metrics/matchmakingRequests` | read | | +| `gameCenterMatchmakingQueues_matchmakingSessions_getMetrics` | GET | `/v1/gameCenterMatchmakingQueues/{id}/metrics/matchmakingSessions` | read | | +| `gameCenterMatchmakingQueues_updateInstance` | PATCH | `/v1/gameCenterMatchmakingQueues/{id}` | write (dry by default) | | +| **gameCenterMatchmakingRuleSetTests** (1) | | | | | +| `gameCenterMatchmakingRuleSetTests_createInstance` | POST | `/v1/gameCenterMatchmakingRuleSetTests` | write (dry by default) | | +| **gameCenterMatchmakingRuleSets** (11) | | | | | +| `gameCenterMatchmakingRuleSets_createInstance` | POST | `/v1/gameCenterMatchmakingRuleSets` | write (dry by default) | | +| `gameCenterMatchmakingRuleSets_deleteInstance` | DELETE | `/v1/gameCenterMatchmakingRuleSets/{id}` | owner only (typed confirm) | | +| `gameCenterMatchmakingRuleSets_getCollection` | GET | `/v1/gameCenterMatchmakingRuleSets` | read | | +| `gameCenterMatchmakingRuleSets_getInstance` | GET | `/v1/gameCenterMatchmakingRuleSets/{id}` | read | | +| `gameCenterMatchmakingRuleSets_matchmakingQueues_getToManyRelated` | GET | `/v1/gameCenterMatchmakingRuleSets/{id}/matchmakingQueues` | read | | +| `gameCenterMatchmakingRuleSets_matchmakingQueues_getToManyRelationship` | GET | `/v1/gameCenterMatchmakingRuleSets/{id}/relationships/matchmakingQueues` | read | | +| `gameCenterMatchmakingRuleSets_rules_getToManyRelated` | GET | `/v1/gameCenterMatchmakingRuleSets/{id}/rules` | read | | +| `gameCenterMatchmakingRuleSets_rules_getToManyRelationship` | GET | `/v1/gameCenterMatchmakingRuleSets/{id}/relationships/rules` | read | | +| `gameCenterMatchmakingRuleSets_teams_getToManyRelated` | GET | `/v1/gameCenterMatchmakingRuleSets/{id}/teams` | read | | +| `gameCenterMatchmakingRuleSets_teams_getToManyRelationship` | GET | `/v1/gameCenterMatchmakingRuleSets/{id}/relationships/teams` | read | | +| `gameCenterMatchmakingRuleSets_updateInstance` | PATCH | `/v1/gameCenterMatchmakingRuleSets/{id}` | write (dry by default) | | +| **gameCenterMatchmakingRules** (6) | | | | | +| `gameCenterMatchmakingRules_createInstance` | POST | `/v1/gameCenterMatchmakingRules` | write (dry by default) | | +| `gameCenterMatchmakingRules_deleteInstance` | DELETE | `/v1/gameCenterMatchmakingRules/{id}` | owner only (typed confirm) | | +| `gameCenterMatchmakingRules_matchmakingBooleanRuleResults_getMetrics` | GET | `/v1/gameCenterMatchmakingRules/{id}/metrics/matchmakingBooleanRuleResults` | read | | +| `gameCenterMatchmakingRules_matchmakingNumberRuleResults_getMetrics` | GET | `/v1/gameCenterMatchmakingRules/{id}/metrics/matchmakingNumberRuleResults` | read | | +| `gameCenterMatchmakingRules_matchmakingRuleErrors_getMetrics` | GET | `/v1/gameCenterMatchmakingRules/{id}/metrics/matchmakingRuleErrors` | read | | +| `gameCenterMatchmakingRules_updateInstance` | PATCH | `/v1/gameCenterMatchmakingRules/{id}` | write (dry by default) | | +| **gameCenterMatchmakingTeams** (3) | | | | | +| `gameCenterMatchmakingTeams_createInstance` | POST | `/v1/gameCenterMatchmakingTeams` | write (dry by default) | | +| `gameCenterMatchmakingTeams_deleteInstance` | DELETE | `/v1/gameCenterMatchmakingTeams/{id}` | owner only (typed confirm) | | +| `gameCenterMatchmakingTeams_updateInstance` | PATCH | `/v1/gameCenterMatchmakingTeams/{id}` | write (dry by default) | | +| **gameCenterPlayerAchievementSubmissions** (1) | | | | | +| `gameCenterPlayerAchievementSubmissions_createInstance` | POST | `/v1/gameCenterPlayerAchievementSubmissions` | owner only (typed confirm) | | +| **gameCenterScoreModerations** (1) | | | | | +| `gameCenterScoreModerations_updateInstance` | PATCH | `/v1/gameCenterScoreModerations/{id}` | write (dry by default) | | +| **inAppPurchaseAppStoreReviewScreenshots** (4) | | | | | +| `inAppPurchaseAppStoreReviewScreenshots_createInstance` | POST | `/v1/inAppPurchaseAppStoreReviewScreenshots` | write (dry by default) | apple/iap-review | +| `inAppPurchaseAppStoreReviewScreenshots_deleteInstance` | DELETE | `/v1/inAppPurchaseAppStoreReviewScreenshots/{id}` | owner only (typed confirm) | apple/iap-review | +| `inAppPurchaseAppStoreReviewScreenshots_getInstance` | GET | `/v1/inAppPurchaseAppStoreReviewScreenshots/{id}` | read | | +| `inAppPurchaseAppStoreReviewScreenshots_updateInstance` | PATCH | `/v1/inAppPurchaseAppStoreReviewScreenshots/{id}` | write (dry by default) | apple/iap-review | +| **inAppPurchaseAvailabilities** (4) | | | | | +| `inAppPurchaseAvailabilities_availableTerritories_getToManyRelated` | GET | `/v1/inAppPurchaseAvailabilities/{id}/availableTerritories` | read | | +| `inAppPurchaseAvailabilities_availableTerritories_getToManyRelationship` | GET | `/v1/inAppPurchaseAvailabilities/{id}/relationships/availableTerritories` | read | | +| `inAppPurchaseAvailabilities_createInstance` | POST | `/v1/inAppPurchaseAvailabilities` | write (dry by default) | apple/iap | +| `inAppPurchaseAvailabilities_getInstance` | GET | `/v1/inAppPurchaseAvailabilities/{id}` | read | | +| **inAppPurchaseContents** (1) | | | | | +| `inAppPurchaseContents_getInstance` | GET | `/v1/inAppPurchaseContents/{id}` | read | | +| **inAppPurchaseImages** (8) | | | | | +| `inAppPurchaseImagesV2_createInstance` | POST | `/v2/inAppPurchaseImages` | write (dry by default) | | +| `inAppPurchaseImagesV2_deleteInstance` | DELETE | `/v2/inAppPurchaseImages/{id}` | owner only (typed confirm) | | +| `inAppPurchaseImagesV2_getInstance` | GET | `/v2/inAppPurchaseImages/{id}` | read | | +| `inAppPurchaseImagesV2_updateInstance` | PATCH | `/v2/inAppPurchaseImages/{id}` | write (dry by default) | | +| `inAppPurchaseImages_createInstance` | POST | `/v1/inAppPurchaseImages` | write (dry by default) | | +| `inAppPurchaseImages_deleteInstance` | DELETE | `/v1/inAppPurchaseImages/{id}` | owner only (typed confirm) | | +| `inAppPurchaseImages_getInstance` | GET | `/v1/inAppPurchaseImages/{id}` | read | | +| `inAppPurchaseImages_updateInstance` | PATCH | `/v1/inAppPurchaseImages/{id}` | write (dry by default) | | +| **inAppPurchaseLocalizations** (8) | | | | | +| `inAppPurchaseLocalizationsV2_createInstance` | POST | `/v2/inAppPurchaseLocalizations` | write (dry by default) | | +| `inAppPurchaseLocalizationsV2_deleteInstance` | DELETE | `/v2/inAppPurchaseLocalizations/{id}` | owner only (typed confirm) | | +| `inAppPurchaseLocalizationsV2_getInstance` | GET | `/v2/inAppPurchaseLocalizations/{id}` | read | | +| `inAppPurchaseLocalizationsV2_updateInstance` | PATCH | `/v2/inAppPurchaseLocalizations/{id}` | write (dry by default) | | +| `inAppPurchaseLocalizations_createInstance` | POST | `/v1/inAppPurchaseLocalizations` | write (dry by default) | apple/iap | +| `inAppPurchaseLocalizations_deleteInstance` | DELETE | `/v1/inAppPurchaseLocalizations/{id}` | owner only (typed confirm) | | +| `inAppPurchaseLocalizations_getInstance` | GET | `/v1/inAppPurchaseLocalizations/{id}` | read | | +| `inAppPurchaseLocalizations_updateInstance` | PATCH | `/v1/inAppPurchaseLocalizations/{id}` | write (dry by default) | | +| **inAppPurchaseOfferCodeCustomCodes** (3) | | | | | +| `inAppPurchaseOfferCodeCustomCodes_createInstance` | POST | `/v1/inAppPurchaseOfferCodeCustomCodes` | write (dry by default) | | +| `inAppPurchaseOfferCodeCustomCodes_getInstance` | GET | `/v1/inAppPurchaseOfferCodeCustomCodes/{id}` | read | | +| `inAppPurchaseOfferCodeCustomCodes_updateInstance` | PATCH | `/v1/inAppPurchaseOfferCodeCustomCodes/{id}` | write (dry by default) | | +| **inAppPurchaseOfferCodeOneTimeUseCodes** (4) | | | | | +| `inAppPurchaseOfferCodeOneTimeUseCodes_createInstance` | POST | `/v1/inAppPurchaseOfferCodeOneTimeUseCodes` | write (dry by default) | | +| `inAppPurchaseOfferCodeOneTimeUseCodes_getInstance` | GET | `/v1/inAppPurchaseOfferCodeOneTimeUseCodes/{id}` | read | | +| `inAppPurchaseOfferCodeOneTimeUseCodes_updateInstance` | PATCH | `/v1/inAppPurchaseOfferCodeOneTimeUseCodes/{id}` | write (dry by default) | | +| `inAppPurchaseOfferCodeOneTimeUseCodes_values_getToOneRelated` | GET | `/v1/inAppPurchaseOfferCodeOneTimeUseCodes/{id}/values` | read | | +| **inAppPurchaseOfferCodes** (9) | | | | | +| `inAppPurchaseOfferCodes_createInstance` | POST | `/v1/inAppPurchaseOfferCodes` | write (dry by default) | | +| `inAppPurchaseOfferCodes_customCodes_getToManyRelated` | GET | `/v1/inAppPurchaseOfferCodes/{id}/customCodes` | read | | +| `inAppPurchaseOfferCodes_customCodes_getToManyRelationship` | GET | `/v1/inAppPurchaseOfferCodes/{id}/relationships/customCodes` | read | | +| `inAppPurchaseOfferCodes_getInstance` | GET | `/v1/inAppPurchaseOfferCodes/{id}` | read | | +| `inAppPurchaseOfferCodes_oneTimeUseCodes_getToManyRelated` | GET | `/v1/inAppPurchaseOfferCodes/{id}/oneTimeUseCodes` | read | | +| `inAppPurchaseOfferCodes_oneTimeUseCodes_getToManyRelationship` | GET | `/v1/inAppPurchaseOfferCodes/{id}/relationships/oneTimeUseCodes` | read | | +| `inAppPurchaseOfferCodes_prices_getToManyRelated` | GET | `/v1/inAppPurchaseOfferCodes/{id}/prices` | read | | +| `inAppPurchaseOfferCodes_prices_getToManyRelationship` | GET | `/v1/inAppPurchaseOfferCodes/{id}/relationships/prices` | read | | +| `inAppPurchaseOfferCodes_updateInstance` | PATCH | `/v1/inAppPurchaseOfferCodes/{id}` | write (dry by default) | | +| **inAppPurchasePricePoints** (2) | | | | | +| `inAppPurchasePricePoints_equalizations_getToManyRelated` | GET | `/v1/inAppPurchasePricePoints/{id}/equalizations` | read | | +| `inAppPurchasePricePoints_equalizations_getToManyRelationship` | GET | `/v1/inAppPurchasePricePoints/{id}/relationships/equalizations` | read | | +| **inAppPurchasePriceSchedules** (8) | | | | | +| `inAppPurchasePriceSchedules_automaticPrices_getToManyRelated` | GET | `/v1/inAppPurchasePriceSchedules/{id}/automaticPrices` | read | prices | +| `inAppPurchasePriceSchedules_automaticPrices_getToManyRelationship` | GET | `/v1/inAppPurchasePriceSchedules/{id}/relationships/automaticPrices` | read | | +| `inAppPurchasePriceSchedules_baseTerritory_getToOneRelated` | GET | `/v1/inAppPurchasePriceSchedules/{id}/baseTerritory` | read | prices | +| `inAppPurchasePriceSchedules_baseTerritory_getToOneRelationship` | GET | `/v1/inAppPurchasePriceSchedules/{id}/relationships/baseTerritory` | read | | +| `inAppPurchasePriceSchedules_createInstance` | POST | `/v1/inAppPurchasePriceSchedules` | owner only (typed confirm) | apple/iap, prices | +| `inAppPurchasePriceSchedules_getInstance` | GET | `/v1/inAppPurchasePriceSchedules/{id}` | read | | +| `inAppPurchasePriceSchedules_manualPrices_getToManyRelated` | GET | `/v1/inAppPurchasePriceSchedules/{id}/manualPrices` | read | prices | +| `inAppPurchasePriceSchedules_manualPrices_getToManyRelationship` | GET | `/v1/inAppPurchasePriceSchedules/{id}/relationships/manualPrices` | read | | +| **inAppPurchaseSubmissions** (1) | | | | | +| `inAppPurchaseSubmissions_createInstance` | POST | `/v1/inAppPurchaseSubmissions` | owner only (typed confirm) | | +| **inAppPurchaseVersions** (8) | | | | | +| `inAppPurchaseVersions_createInstance` | POST | `/v1/inAppPurchaseVersions` | write (dry by default) | | +| `inAppPurchaseVersions_getInstance` | GET | `/v1/inAppPurchaseVersions/{id}` | read | | +| `inAppPurchaseVersions_image_getToOneRelated` | GET | `/v1/inAppPurchaseVersions/{id}/image` | read | | +| `inAppPurchaseVersions_image_getToOneRelationship` | GET | `/v1/inAppPurchaseVersions/{id}/relationships/image` | read | | +| `inAppPurchaseVersions_images_getToManyRelated` | GET | `/v1/inAppPurchaseVersions/{id}/images` | read | | +| `inAppPurchaseVersions_images_getToManyRelationship` | GET | `/v1/inAppPurchaseVersions/{id}/relationships/images` | read | | +| `inAppPurchaseVersions_localizations_getToManyRelated` | GET | `/v1/inAppPurchaseVersions/{id}/localizations` | read | | +| `inAppPurchaseVersions_localizations_getToManyRelationship` | GET | `/v1/inAppPurchaseVersions/{id}/relationships/localizations` | read | | +| **inAppPurchases** (25) | | | | | +| `inAppPurchasesV2_appStoreReviewScreenshot_getToOneRelated` | GET | `/v2/inAppPurchases/{id}/appStoreReviewScreenshot` | read | apple/iap-review, validate | +| `inAppPurchasesV2_appStoreReviewScreenshot_getToOneRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/appStoreReviewScreenshot` | read | | +| `inAppPurchasesV2_content_getToOneRelated` | GET | `/v2/inAppPurchases/{id}/content` | read | | +| `inAppPurchasesV2_content_getToOneRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/content` | read | | +| `inAppPurchasesV2_createInstance` | POST | `/v2/inAppPurchases` | write (dry by default) | apple/iap | +| `inAppPurchasesV2_deleteInstance` | DELETE | `/v2/inAppPurchases/{id}` | owner only (typed confirm) | | +| `inAppPurchasesV2_getInstance` | GET | `/v2/inAppPurchases/{id}` | read | | +| `inAppPurchasesV2_iapPriceSchedule_getToOneRelated` | GET | `/v2/inAppPurchases/{id}/iapPriceSchedule` | read | apple/iap, catalog | +| `inAppPurchasesV2_iapPriceSchedule_getToOneRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/iapPriceSchedule` | read | | +| `inAppPurchasesV2_images_getToManyRelated` | GET | `/v2/inAppPurchases/{id}/images` | read | | +| `inAppPurchasesV2_images_getToManyRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/images` | read | | +| `inAppPurchasesV2_inAppPurchaseAvailability_getToOneRelated` | GET | `/v2/inAppPurchases/{id}/inAppPurchaseAvailability` | read | apple/iap | +| `inAppPurchasesV2_inAppPurchaseAvailability_getToOneRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/inAppPurchaseAvailability` | read | | +| `inAppPurchasesV2_inAppPurchaseLocalizations_getToManyRelated` | GET | `/v2/inAppPurchases/{id}/inAppPurchaseLocalizations` | read | apple/iap, catalog | +| `inAppPurchasesV2_inAppPurchaseLocalizations_getToManyRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/inAppPurchaseLocalizations` | read | | +| `inAppPurchasesV2_offerCodes_getToManyRelated` | GET | `/v2/inAppPurchases/{id}/offerCodes` | read | | +| `inAppPurchasesV2_offerCodes_getToManyRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/offerCodes` | read | | +| `inAppPurchasesV2_pricePoints_getToManyRelated` | GET | `/v2/inAppPurchases/{id}/pricePoints` | read | apple/iap, prices | +| `inAppPurchasesV2_pricePoints_getToManyRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/pricePoints` | read | | +| `inAppPurchasesV2_promotedPurchase_getToOneRelated` | GET | `/v2/inAppPurchases/{id}/promotedPurchase` | read | | +| `inAppPurchasesV2_promotedPurchase_getToOneRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/promotedPurchase` | read | | +| `inAppPurchasesV2_updateInstance` | PATCH | `/v2/inAppPurchases/{id}` | write (dry by default) | | +| `inAppPurchasesV2_versions_getToManyRelated` | GET | `/v2/inAppPurchases/{id}/versions` | read | | +| `inAppPurchasesV2_versions_getToManyRelationship` | GET | `/v2/inAppPurchases/{id}/relationships/versions` | read | | +| `inAppPurchases_getInstance` | GET | `/v1/inAppPurchases/{id}` | read | | +| **marketplaceSearchDetails** (3) | | | | | +| `marketplaceSearchDetails_createInstance` | POST | `/v1/marketplaceSearchDetails` | write (dry by default) | | +| `marketplaceSearchDetails_deleteInstance` | DELETE | `/v1/marketplaceSearchDetails/{id}` | owner only (typed confirm) | | +| `marketplaceSearchDetails_updateInstance` | PATCH | `/v1/marketplaceSearchDetails/{id}` | write (dry by default) | | +| **marketplaceWebhooks** (4) | | | | | +| `marketplaceWebhooks_createInstance` | POST | `/v1/marketplaceWebhooks` | write (dry by default) | | +| `marketplaceWebhooks_deleteInstance` | DELETE | `/v1/marketplaceWebhooks/{id}` | owner only (typed confirm) | | +| `marketplaceWebhooks_getCollection` | GET | `/v1/marketplaceWebhooks` | read | | +| `marketplaceWebhooks_updateInstance` | PATCH | `/v1/marketplaceWebhooks/{id}` | write (dry by default) | | +| **merchantIds** (7) | | | | | +| `merchantIds_certificates_getToManyRelated` | GET | `/v1/merchantIds/{id}/certificates` | read | | +| `merchantIds_certificates_getToManyRelationship` | GET | `/v1/merchantIds/{id}/relationships/certificates` | read | | +| `merchantIds_createInstance` | POST | `/v1/merchantIds` | write (dry by default) | | +| `merchantIds_deleteInstance` | DELETE | `/v1/merchantIds/{id}` | owner only (typed confirm) | | +| `merchantIds_getCollection` | GET | `/v1/merchantIds` | read | | +| `merchantIds_getInstance` | GET | `/v1/merchantIds/{id}` | read | | +| `merchantIds_updateInstance` | PATCH | `/v1/merchantIds/{id}` | write (dry by default) | | +| **nominations** (5) | | | | | +| `nominations_createInstance` | POST | `/v1/nominations` | write (dry by default) | | +| `nominations_deleteInstance` | DELETE | `/v1/nominations/{id}` | owner only (typed confirm) | | +| `nominations_getCollection` | GET | `/v1/nominations` | read | | +| `nominations_getInstance` | GET | `/v1/nominations/{id}` | read | | +| `nominations_updateInstance` | PATCH | `/v1/nominations/{id}` | write (dry by default) | | +| **passTypeIds** (7) | | | | | +| `passTypeIds_certificates_getToManyRelated` | GET | `/v1/passTypeIds/{id}/certificates` | read | | +| `passTypeIds_certificates_getToManyRelationship` | GET | `/v1/passTypeIds/{id}/relationships/certificates` | read | | +| `passTypeIds_createInstance` | POST | `/v1/passTypeIds` | write (dry by default) | | +| `passTypeIds_deleteInstance` | DELETE | `/v1/passTypeIds/{id}` | owner only (typed confirm) | | +| `passTypeIds_getCollection` | GET | `/v1/passTypeIds` | read | | +| `passTypeIds_getInstance` | GET | `/v1/passTypeIds/{id}` | read | | +| `passTypeIds_updateInstance` | PATCH | `/v1/passTypeIds/{id}` | write (dry by default) | | +| **preReleaseVersions** (6) | | | | | +| `preReleaseVersions_app_getToOneRelated` | GET | `/v1/preReleaseVersions/{id}/app` | read | | +| `preReleaseVersions_app_getToOneRelationship` | GET | `/v1/preReleaseVersions/{id}/relationships/app` | read | | +| `preReleaseVersions_builds_getToManyRelated` | GET | `/v1/preReleaseVersions/{id}/builds` | read | | +| `preReleaseVersions_builds_getToManyRelationship` | GET | `/v1/preReleaseVersions/{id}/relationships/builds` | read | | +| `preReleaseVersions_getCollection` | GET | `/v1/preReleaseVersions` | read | | +| `preReleaseVersions_getInstance` | GET | `/v1/preReleaseVersions/{id}` | read | | +| **profiles** (10) | | | | | +| `profiles_bundleId_getToOneRelated` | GET | `/v1/profiles/{id}/bundleId` | read | | +| `profiles_bundleId_getToOneRelationship` | GET | `/v1/profiles/{id}/relationships/bundleId` | read | | +| `profiles_certificates_getToManyRelated` | GET | `/v1/profiles/{id}/certificates` | read | | +| `profiles_certificates_getToManyRelationship` | GET | `/v1/profiles/{id}/relationships/certificates` | read | | +| `profiles_createInstance` | POST | `/v1/profiles` | write (dry by default) | | +| `profiles_deleteInstance` | DELETE | `/v1/profiles/{id}` | owner only (typed confirm) | | +| `profiles_devices_getToManyRelated` | GET | `/v1/profiles/{id}/devices` | read | | +| `profiles_devices_getToManyRelationship` | GET | `/v1/profiles/{id}/relationships/devices` | read | | +| `profiles_getCollection` | GET | `/v1/profiles` | read | | +| `profiles_getInstance` | GET | `/v1/profiles/{id}` | read | | +| **promotedPurchases** (4) | | | | | +| `promotedPurchases_createInstance` | POST | `/v1/promotedPurchases` | write (dry by default) | | +| `promotedPurchases_deleteInstance` | DELETE | `/v1/promotedPurchases/{id}` | owner only (typed confirm) | | +| `promotedPurchases_getInstance` | GET | `/v1/promotedPurchases/{id}` | read | | +| `promotedPurchases_updateInstance` | PATCH | `/v1/promotedPurchases/{id}` | write (dry by default) | | +| **reviewSubmissionItems** (3) | | | | | +| `reviewSubmissionItems_createInstance` | POST | `/v1/reviewSubmissionItems` | write (dry by default) | | +| `reviewSubmissionItems_deleteInstance` | DELETE | `/v1/reviewSubmissionItems/{id}` | owner only (typed confirm) | | +| `reviewSubmissionItems_updateInstance` | PATCH | `/v1/reviewSubmissionItems/{id}` | write (dry by default) | | +| **reviewSubmissions** (6) | | | | | +| `reviewSubmissions_createInstance` | POST | `/v1/reviewSubmissions` | owner only (typed confirm) | | +| `reviewSubmissions_getCollection` | GET | `/v1/reviewSubmissions` | read | apple/status | +| `reviewSubmissions_getInstance` | GET | `/v1/reviewSubmissions/{id}` | read | | +| `reviewSubmissions_items_getToManyRelated` | GET | `/v1/reviewSubmissions/{id}/items` | read | | +| `reviewSubmissions_items_getToManyRelationship` | GET | `/v1/reviewSubmissions/{id}/relationships/items` | read | | +| `reviewSubmissions_updateInstance` | PATCH | `/v1/reviewSubmissions/{id}` | owner only (typed confirm) | apple/status | +| **routingAppCoverages** (4) | | | | | +| `routingAppCoverages_createInstance` | POST | `/v1/routingAppCoverages` | write (dry by default) | | +| `routingAppCoverages_deleteInstance` | DELETE | `/v1/routingAppCoverages/{id}` | owner only (typed confirm) | | +| `routingAppCoverages_getInstance` | GET | `/v1/routingAppCoverages/{id}` | read | | +| `routingAppCoverages_updateInstance` | PATCH | `/v1/routingAppCoverages/{id}` | write (dry by default) | | +| **salesReports** (1) | | | | | +| `salesReports_getCollection` | GET | `/v1/salesReports` | read | | +| **sandboxTesters** (2) | | | | | +| `sandboxTestersV2_getCollection` | GET | `/v2/sandboxTesters` | read | | +| `sandboxTestersV2_updateInstance` | PATCH | `/v2/sandboxTesters/{id}` | write (dry by default) | | +| **sandboxTestersClearPurchaseHistoryRequest** (1) | | | | | +| `sandboxTestersClearPurchaseHistoryRequestV2_createInstance` | POST | `/v2/sandboxTestersClearPurchaseHistoryRequest` | write (dry by default) | | +| **scmGitReferences** (1) | | | | | +| `scmGitReferences_getInstance` | GET | `/v1/scmGitReferences/{id}` | read | | +| **scmProviders** (4) | | | | | +| `scmProviders_getCollection` | GET | `/v1/scmProviders` | read | | +| `scmProviders_getInstance` | GET | `/v1/scmProviders/{id}` | read | | +| `scmProviders_repositories_getToManyRelated` | GET | `/v1/scmProviders/{id}/repositories` | read | | +| `scmProviders_repositories_getToManyRelationship` | GET | `/v1/scmProviders/{id}/relationships/repositories` | read | | +| **scmPullRequests** (1) | | | | | +| `scmPullRequests_getInstance` | GET | `/v1/scmPullRequests/{id}` | read | | +| **scmRepositories** (6) | | | | | +| `scmRepositories_getCollection` | GET | `/v1/scmRepositories` | read | | +| `scmRepositories_getInstance` | GET | `/v1/scmRepositories/{id}` | read | | +| `scmRepositories_gitReferences_getToManyRelated` | GET | `/v1/scmRepositories/{id}/gitReferences` | read | | +| `scmRepositories_gitReferences_getToManyRelationship` | GET | `/v1/scmRepositories/{id}/relationships/gitReferences` | read | | +| `scmRepositories_pullRequests_getToManyRelated` | GET | `/v1/scmRepositories/{id}/pullRequests` | read | | +| `scmRepositories_pullRequests_getToManyRelationship` | GET | `/v1/scmRepositories/{id}/relationships/pullRequests` | read | | +| **subscriptionAppStoreReviewScreenshots** (4) | | | | | +| `subscriptionAppStoreReviewScreenshots_createInstance` | POST | `/v1/subscriptionAppStoreReviewScreenshots` | write (dry by default) | apple/subscriptions | +| `subscriptionAppStoreReviewScreenshots_deleteInstance` | DELETE | `/v1/subscriptionAppStoreReviewScreenshots/{id}` | owner only (typed confirm) | | +| `subscriptionAppStoreReviewScreenshots_getInstance` | GET | `/v1/subscriptionAppStoreReviewScreenshots/{id}` | read | | +| `subscriptionAppStoreReviewScreenshots_updateInstance` | PATCH | `/v1/subscriptionAppStoreReviewScreenshots/{id}` | write (dry by default) | apple/subscriptions | +| **subscriptionAvailabilities** (4) | | | | | +| `subscriptionAvailabilities_availableTerritories_getToManyRelated` | GET | `/v1/subscriptionAvailabilities/{id}/availableTerritories` | read | | +| `subscriptionAvailabilities_availableTerritories_getToManyRelationship` | GET | `/v1/subscriptionAvailabilities/{id}/relationships/availableTerritories` | read | | +| `subscriptionAvailabilities_createInstance` | POST | `/v1/subscriptionAvailabilities` | write (dry by default) | apple/subscriptions | +| `subscriptionAvailabilities_getInstance` | GET | `/v1/subscriptionAvailabilities/{id}` | read | | +| **subscriptionGracePeriods** (2) | | | | | +| `subscriptionGracePeriods_getInstance` | GET | `/v1/subscriptionGracePeriods/{id}` | read | | +| `subscriptionGracePeriods_updateInstance` | PATCH | `/v1/subscriptionGracePeriods/{id}` | write (dry by default) | | +| **subscriptionGroupLocalizations** (8) | | | | | +| `subscriptionGroupLocalizationsV2_createInstance` | POST | `/v2/subscriptionGroupLocalizations` | write (dry by default) | | +| `subscriptionGroupLocalizationsV2_deleteInstance` | DELETE | `/v2/subscriptionGroupLocalizations/{id}` | owner only (typed confirm) | | +| `subscriptionGroupLocalizationsV2_getInstance` | GET | `/v2/subscriptionGroupLocalizations/{id}` | read | | +| `subscriptionGroupLocalizationsV2_updateInstance` | PATCH | `/v2/subscriptionGroupLocalizations/{id}` | write (dry by default) | | +| `subscriptionGroupLocalizations_createInstance` | POST | `/v1/subscriptionGroupLocalizations` | write (dry by default) | apple/subscriptions | +| `subscriptionGroupLocalizations_deleteInstance` | DELETE | `/v1/subscriptionGroupLocalizations/{id}` | owner only (typed confirm) | | +| `subscriptionGroupLocalizations_getInstance` | GET | `/v1/subscriptionGroupLocalizations/{id}` | read | | +| `subscriptionGroupLocalizations_updateInstance` | PATCH | `/v1/subscriptionGroupLocalizations/{id}` | write (dry by default) | | +| **subscriptionGroupSubmissions** (1) | | | | | +| `subscriptionGroupSubmissions_createInstance` | POST | `/v1/subscriptionGroupSubmissions` | owner only (typed confirm) | | +| **subscriptionGroupVersions** (4) | | | | | +| `subscriptionGroupVersions_createInstance` | POST | `/v1/subscriptionGroupVersions` | write (dry by default) | | +| `subscriptionGroupVersions_getInstance` | GET | `/v1/subscriptionGroupVersions/{id}` | read | | +| `subscriptionGroupVersions_localizations_getToManyRelated` | GET | `/v1/subscriptionGroupVersions/{id}/localizations` | read | | +| `subscriptionGroupVersions_localizations_getToManyRelationship` | GET | `/v1/subscriptionGroupVersions/{id}/relationships/localizations` | read | | +| **subscriptionGroups** (10) | | | | | +| `subscriptionGroups_createInstance` | POST | `/v1/subscriptionGroups` | write (dry by default) | apple/subscriptions | +| `subscriptionGroups_deleteInstance` | DELETE | `/v1/subscriptionGroups/{id}` | owner only (typed confirm) | | +| `subscriptionGroups_getInstance` | GET | `/v1/subscriptionGroups/{id}` | read | | +| `subscriptionGroups_subscriptionGroupLocalizations_getToManyRelated` | GET | `/v1/subscriptionGroups/{id}/subscriptionGroupLocalizations` | read | apple/subscriptions, validate | +| `subscriptionGroups_subscriptionGroupLocalizations_getToManyRelationship` | GET | `/v1/subscriptionGroups/{id}/relationships/subscriptionGroupLocalizations` | read | | +| `subscriptionGroups_subscriptions_getToManyRelated` | GET | `/v1/subscriptionGroups/{id}/subscriptions` | read | apple/subscriptions, catalog, validate | +| `subscriptionGroups_subscriptions_getToManyRelationship` | GET | `/v1/subscriptionGroups/{id}/relationships/subscriptions` | read | | +| `subscriptionGroups_updateInstance` | PATCH | `/v1/subscriptionGroups/{id}` | write (dry by default) | | +| `subscriptionGroups_versions_getToManyRelated` | GET | `/v1/subscriptionGroups/{id}/versions` | read | | +| `subscriptionGroups_versions_getToManyRelationship` | GET | `/v1/subscriptionGroups/{id}/relationships/versions` | read | | +| **subscriptionImages** (8) | | | | | +| `subscriptionImagesV2_createInstance` | POST | `/v2/subscriptionImages` | write (dry by default) | | +| `subscriptionImagesV2_deleteInstance` | DELETE | `/v2/subscriptionImages/{id}` | owner only (typed confirm) | | +| `subscriptionImagesV2_getInstance` | GET | `/v2/subscriptionImages/{id}` | read | | +| `subscriptionImagesV2_updateInstance` | PATCH | `/v2/subscriptionImages/{id}` | write (dry by default) | | +| `subscriptionImages_createInstance` | POST | `/v1/subscriptionImages` | write (dry by default) | | +| `subscriptionImages_deleteInstance` | DELETE | `/v1/subscriptionImages/{id}` | owner only (typed confirm) | | +| `subscriptionImages_getInstance` | GET | `/v1/subscriptionImages/{id}` | read | | +| `subscriptionImages_updateInstance` | PATCH | `/v1/subscriptionImages/{id}` | write (dry by default) | | +| **subscriptionIntroductoryOffers** (3) | | | | | +| `subscriptionIntroductoryOffers_createInstance` | POST | `/v1/subscriptionIntroductoryOffers` | write (dry by default) | | +| `subscriptionIntroductoryOffers_deleteInstance` | DELETE | `/v1/subscriptionIntroductoryOffers/{id}` | owner only (typed confirm) | | +| `subscriptionIntroductoryOffers_updateInstance` | PATCH | `/v1/subscriptionIntroductoryOffers/{id}` | write (dry by default) | | +| **subscriptionLocalizations** (8) | | | | | +| `subscriptionLocalizationsV2_createInstance` | POST | `/v2/subscriptionLocalizations` | write (dry by default) | | +| `subscriptionLocalizationsV2_deleteInstance` | DELETE | `/v2/subscriptionLocalizations/{id}` | owner only (typed confirm) | | +| `subscriptionLocalizationsV2_getInstance` | GET | `/v2/subscriptionLocalizations/{id}` | read | | +| `subscriptionLocalizationsV2_updateInstance` | PATCH | `/v2/subscriptionLocalizations/{id}` | write (dry by default) | | +| `subscriptionLocalizations_createInstance` | POST | `/v1/subscriptionLocalizations` | write (dry by default) | apple/subscriptions | +| `subscriptionLocalizations_deleteInstance` | DELETE | `/v1/subscriptionLocalizations/{id}` | owner only (typed confirm) | | +| `subscriptionLocalizations_getInstance` | GET | `/v1/subscriptionLocalizations/{id}` | read | | +| `subscriptionLocalizations_updateInstance` | PATCH | `/v1/subscriptionLocalizations/{id}` | write (dry by default) | | +| **subscriptionOfferCodeCustomCodes** (3) | | | | | +| `subscriptionOfferCodeCustomCodes_createInstance` | POST | `/v1/subscriptionOfferCodeCustomCodes` | write (dry by default) | apple/subscriptions | +| `subscriptionOfferCodeCustomCodes_getInstance` | GET | `/v1/subscriptionOfferCodeCustomCodes/{id}` | read | | +| `subscriptionOfferCodeCustomCodes_updateInstance` | PATCH | `/v1/subscriptionOfferCodeCustomCodes/{id}` | write (dry by default) | | +| **subscriptionOfferCodeOneTimeUseCodes** (4) | | | | | +| `subscriptionOfferCodeOneTimeUseCodes_createInstance` | POST | `/v1/subscriptionOfferCodeOneTimeUseCodes` | write (dry by default) | | +| `subscriptionOfferCodeOneTimeUseCodes_getInstance` | GET | `/v1/subscriptionOfferCodeOneTimeUseCodes/{id}` | read | | +| `subscriptionOfferCodeOneTimeUseCodes_updateInstance` | PATCH | `/v1/subscriptionOfferCodeOneTimeUseCodes/{id}` | write (dry by default) | | +| `subscriptionOfferCodeOneTimeUseCodes_values_getToOneRelated` | GET | `/v1/subscriptionOfferCodeOneTimeUseCodes/{id}/values` | read | | +| **subscriptionOfferCodes** (9) | | | | | +| `subscriptionOfferCodes_createInstance` | POST | `/v1/subscriptionOfferCodes` | write (dry by default) | apple/subscriptions | +| `subscriptionOfferCodes_customCodes_getToManyRelated` | GET | `/v1/subscriptionOfferCodes/{id}/customCodes` | read | apple/subscriptions | +| `subscriptionOfferCodes_customCodes_getToManyRelationship` | GET | `/v1/subscriptionOfferCodes/{id}/relationships/customCodes` | read | | +| `subscriptionOfferCodes_getInstance` | GET | `/v1/subscriptionOfferCodes/{id}` | read | | +| `subscriptionOfferCodes_oneTimeUseCodes_getToManyRelated` | GET | `/v1/subscriptionOfferCodes/{id}/oneTimeUseCodes` | read | | +| `subscriptionOfferCodes_oneTimeUseCodes_getToManyRelationship` | GET | `/v1/subscriptionOfferCodes/{id}/relationships/oneTimeUseCodes` | read | | +| `subscriptionOfferCodes_prices_getToManyRelated` | GET | `/v1/subscriptionOfferCodes/{id}/prices` | read | | +| `subscriptionOfferCodes_prices_getToManyRelationship` | GET | `/v1/subscriptionOfferCodes/{id}/relationships/prices` | read | | +| `subscriptionOfferCodes_updateInstance` | PATCH | `/v1/subscriptionOfferCodes/{id}` | write (dry by default) | | +| **subscriptionPlanAvailabilities** (6) | | | | | +| `subscriptionPlanAvailabilities_availableTerritories_getToManyRelated` | GET | `/v1/subscriptionPlanAvailabilities/{id}/availableTerritories` | read | | +| `subscriptionPlanAvailabilities_availableTerritories_getToManyRelationship` | GET | `/v1/subscriptionPlanAvailabilities/{id}/relationships/availableTerritories` | read | | +| `subscriptionPlanAvailabilities_availableTerritories_replaceToManyRelationship` | PATCH | `/v1/subscriptionPlanAvailabilities/{id}/relationships/availableTerritories` | write (dry by default) | | +| `subscriptionPlanAvailabilities_createInstance` | POST | `/v1/subscriptionPlanAvailabilities` | write (dry by default) | | +| `subscriptionPlanAvailabilities_getInstance` | GET | `/v1/subscriptionPlanAvailabilities/{id}` | read | | +| `subscriptionPlanAvailabilities_updateInstance` | PATCH | `/v1/subscriptionPlanAvailabilities/{id}` | write (dry by default) | | +| **subscriptionPricePoints** (4) | | | | | +| `subscriptionPricePoints_adjustedEqualizations_getToManyRelated` | GET | `/v1/subscriptionPricePoints/{id}/adjustedEqualizations` | read | | +| `subscriptionPricePoints_equalizations_getToManyRelated` | GET | `/v1/subscriptionPricePoints/{id}/equalizations` | read | apple/subscriptions | +| `subscriptionPricePoints_equalizations_getToManyRelationship` | GET | `/v1/subscriptionPricePoints/{id}/relationships/equalizations` | read | | +| `subscriptionPricePoints_getInstance` | GET | `/v1/subscriptionPricePoints/{id}` | read | | +| **subscriptionPrices** (2) | | | | | +| `subscriptionPrices_createInstance` | POST | `/v1/subscriptionPrices` | owner only (typed confirm) | | +| `subscriptionPrices_deleteInstance` | DELETE | `/v1/subscriptionPrices/{id}` | owner only (typed confirm) | | +| **subscriptionPromotionalOffers** (6) | | | | | +| `subscriptionPromotionalOffers_createInstance` | POST | `/v1/subscriptionPromotionalOffers` | write (dry by default) | apple/subscriptions | +| `subscriptionPromotionalOffers_deleteInstance` | DELETE | `/v1/subscriptionPromotionalOffers/{id}` | owner only (typed confirm) | | +| `subscriptionPromotionalOffers_getInstance` | GET | `/v1/subscriptionPromotionalOffers/{id}` | read | | +| `subscriptionPromotionalOffers_prices_getToManyRelated` | GET | `/v1/subscriptionPromotionalOffers/{id}/prices` | read | | +| `subscriptionPromotionalOffers_prices_getToManyRelationship` | GET | `/v1/subscriptionPromotionalOffers/{id}/relationships/prices` | read | | +| `subscriptionPromotionalOffers_updateInstance` | PATCH | `/v1/subscriptionPromotionalOffers/{id}` | write (dry by default) | | +| **subscriptionSubmissions** (1) | | | | | +| `subscriptionSubmissions_createInstance` | POST | `/v1/subscriptionSubmissions` | owner only (typed confirm) | | +| **subscriptionVersions** (8) | | | | | +| `subscriptionVersions_createInstance` | POST | `/v1/subscriptionVersions` | write (dry by default) | | +| `subscriptionVersions_getInstance` | GET | `/v1/subscriptionVersions/{id}` | read | | +| `subscriptionVersions_image_getToOneRelated` | GET | `/v1/subscriptionVersions/{id}/image` | read | | +| `subscriptionVersions_image_getToOneRelationship` | GET | `/v1/subscriptionVersions/{id}/relationships/image` | read | | +| `subscriptionVersions_images_getToManyRelated` | GET | `/v1/subscriptionVersions/{id}/images` | read | | +| `subscriptionVersions_images_getToManyRelationship` | GET | `/v1/subscriptionVersions/{id}/relationships/images` | read | | +| `subscriptionVersions_localizations_getToManyRelated` | GET | `/v1/subscriptionVersions/{id}/localizations` | read | | +| `subscriptionVersions_localizations_getToManyRelationship` | GET | `/v1/subscriptionVersions/{id}/relationships/localizations` | read | | +| **subscriptions** (32) | | | | | +| `subscriptions_appStoreReviewScreenshot_getToOneRelated` | GET | `/v1/subscriptions/{id}/appStoreReviewScreenshot` | read | apple/subscriptions, validate | +| `subscriptions_appStoreReviewScreenshot_getToOneRelationship` | GET | `/v1/subscriptions/{id}/relationships/appStoreReviewScreenshot` | read | | +| `subscriptions_createInstance` | POST | `/v1/subscriptions` | write (dry by default) | apple/subscriptions | +| `subscriptions_deleteInstance` | DELETE | `/v1/subscriptions/{id}` | owner only (typed confirm) | | +| `subscriptions_getInstance` | GET | `/v1/subscriptions/{id}` | read | | +| `subscriptions_images_getToManyRelated` | GET | `/v1/subscriptions/{id}/images` | read | | +| `subscriptions_images_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/images` | read | | +| `subscriptions_introductoryOffers_deleteToManyRelationship` | DELETE | `/v1/subscriptions/{id}/relationships/introductoryOffers` | owner only (typed confirm) | | +| `subscriptions_introductoryOffers_getToManyRelated` | GET | `/v1/subscriptions/{id}/introductoryOffers` | read | apple/subscriptions, catalog | +| `subscriptions_introductoryOffers_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/introductoryOffers` | read | | +| `subscriptions_offerCodes_getToManyRelated` | GET | `/v1/subscriptions/{id}/offerCodes` | read | apple/subscriptions, catalog | +| `subscriptions_offerCodes_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/offerCodes` | read | | +| `subscriptions_planAvailabilities_getToManyRelated` | GET | `/v1/subscriptions/{id}/planAvailabilities` | read | | +| `subscriptions_planAvailabilities_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/planAvailabilities` | read | | +| `subscriptions_pricePoints_getToManyRelated` | GET | `/v1/subscriptions/{id}/pricePoints` | read | apple/subscriptions | +| `subscriptions_pricePoints_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/pricePoints` | read | | +| `subscriptions_prices_deleteToManyRelationship` | DELETE | `/v1/subscriptions/{id}/relationships/prices` | owner only (typed confirm) | | +| `subscriptions_prices_getToManyRelated` | GET | `/v1/subscriptions/{id}/prices` | read | apple/subscriptions, catalog | +| `subscriptions_prices_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/prices` | read | | +| `subscriptions_promotedPurchase_getToOneRelated` | GET | `/v1/subscriptions/{id}/promotedPurchase` | read | | +| `subscriptions_promotedPurchase_getToOneRelationship` | GET | `/v1/subscriptions/{id}/relationships/promotedPurchase` | read | | +| `subscriptions_promotionalOffers_getToManyRelated` | GET | `/v1/subscriptions/{id}/promotionalOffers` | read | apple/subscriptions, catalog | +| `subscriptions_promotionalOffers_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/promotionalOffers` | read | | +| `subscriptions_subscriptionAvailability_getToOneRelated` | GET | `/v1/subscriptions/{id}/subscriptionAvailability` | read | apple/subscriptions | +| `subscriptions_subscriptionAvailability_getToOneRelationship` | GET | `/v1/subscriptions/{id}/relationships/subscriptionAvailability` | read | | +| `subscriptions_subscriptionLocalizations_getToManyRelated` | GET | `/v1/subscriptions/{id}/subscriptionLocalizations` | read | apple/subscriptions, catalog, validate | +| `subscriptions_subscriptionLocalizations_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/subscriptionLocalizations` | read | | +| `subscriptions_updateInstance` | PATCH | `/v1/subscriptions/{id}` | write (dry by default) | apple/subscriptions | +| `subscriptions_versions_getToManyRelated` | GET | `/v1/subscriptions/{id}/versions` | read | | +| `subscriptions_versions_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/versions` | read | | +| `subscriptions_winBackOffers_getToManyRelated` | GET | `/v1/subscriptions/{id}/winBackOffers` | read | | +| `subscriptions_winBackOffers_getToManyRelationship` | GET | `/v1/subscriptions/{id}/relationships/winBackOffers` | read | | +| **territories** (1) | | | | | +| `territories_getCollection` | GET | `/v1/territories` | read | apple/appinfo, apple/iap, apple/subscriptions | +| **territoryAvailabilities** (1) | | | | | +| `territoryAvailabilities_updateInstance` | PATCH | `/v1/territoryAvailabilities/{id}` | write (dry by default) | | +| **userInvitations** (6) | | | | | +| `userInvitations_createInstance` | POST | `/v1/userInvitations` | owner only (typed confirm) | | +| `userInvitations_deleteInstance` | DELETE | `/v1/userInvitations/{id}` | owner only (typed confirm) | | +| `userInvitations_getCollection` | GET | `/v1/userInvitations` | read | | +| `userInvitations_getInstance` | GET | `/v1/userInvitations/{id}` | read | | +| `userInvitations_visibleApps_getToManyRelated` | GET | `/v1/userInvitations/{id}/visibleApps` | read | | +| `userInvitations_visibleApps_getToManyRelationship` | GET | `/v1/userInvitations/{id}/relationships/visibleApps` | read | | +| **users** (9) | | | | | +| `users_deleteInstance` | DELETE | `/v1/users/{id}` | owner only (typed confirm) | | +| `users_getCollection` | GET | `/v1/users` | read | | +| `users_getInstance` | GET | `/v1/users/{id}` | read | | +| `users_updateInstance` | PATCH | `/v1/users/{id}` | owner only (typed confirm) | | +| `users_visibleApps_createToManyRelationship` | POST | `/v1/users/{id}/relationships/visibleApps` | owner only (typed confirm) | | +| `users_visibleApps_deleteToManyRelationship` | DELETE | `/v1/users/{id}/relationships/visibleApps` | owner only (typed confirm) | | +| `users_visibleApps_getToManyRelated` | GET | `/v1/users/{id}/visibleApps` | read | | +| `users_visibleApps_getToManyRelationship` | GET | `/v1/users/{id}/relationships/visibleApps` | read | | +| `users_visibleApps_replaceToManyRelationship` | PATCH | `/v1/users/{id}/relationships/visibleApps` | owner only (typed confirm) | | +| **webhookDeliveries** (1) | | | | | +| `webhookDeliveries_createInstance` | POST | `/v1/webhookDeliveries` | write (dry by default) | | +| **webhookPings** (1) | | | | | +| `webhookPings_createInstance` | POST | `/v1/webhookPings` | write (dry by default) | | +| **webhooks** (6) | | | | | +| `webhooks_createInstance` | POST | `/v1/webhooks` | write (dry by default) | | +| `webhooks_deleteInstance` | DELETE | `/v1/webhooks/{id}` | owner only (typed confirm) | | +| `webhooks_deliveries_getToManyRelated` | GET | `/v1/webhooks/{id}/deliveries` | read | | +| `webhooks_deliveries_getToManyRelationship` | GET | `/v1/webhooks/{id}/relationships/deliveries` | read | | +| `webhooks_getInstance` | GET | `/v1/webhooks/{id}` | read | | +| `webhooks_updateInstance` | PATCH | `/v1/webhooks/{id}` | write (dry by default) | | +| **winBackOffers** (6) | | | | | +| `winBackOffers_createInstance` | POST | `/v1/winBackOffers` | write (dry by default) | | +| `winBackOffers_deleteInstance` | DELETE | `/v1/winBackOffers/{id}` | owner only (typed confirm) | | +| `winBackOffers_getInstance` | GET | `/v1/winBackOffers/{id}` | read | | +| `winBackOffers_prices_getToManyRelated` | GET | `/v1/winBackOffers/{id}/prices` | read | | +| `winBackOffers_prices_getToManyRelationship` | GET | `/v1/winBackOffers/{id}/relationships/prices` | read | | +| `winBackOffers_updateInstance` | PATCH | `/v1/winBackOffers/{id}` | write (dry by default) | | + +## Google Play Android Developer API v3 (revision 20261008) + +40 resources, 145 operations. + +| operation | method | path | gate | wrapped by (cli/…) | +|---|---|---|---|---| +| **androidpublisher.applications** (1) | | | | | +| `androidpublisher.applications.dataSafety` | POST | `androidpublisher/v3/applications/{packageName}/dataSafety` | write (dry by default) | play/data-safety | +| **androidpublisher.applications.deviceTierConfigs** (3) | | | | | +| `androidpublisher.applications.deviceTierConfigs.create` | POST | `androidpublisher/v3/applications/{packageName}/deviceTierConfigs` | write (dry by default) | | +| `androidpublisher.applications.deviceTierConfigs.get` | GET | `androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}` | read | | +| `androidpublisher.applications.deviceTierConfigs.list` | GET | `androidpublisher/v3/applications/{packageName}/deviceTierConfigs` | read | | +| **androidpublisher.applications.tracks.releases** (1) | | | | | +| `androidpublisher.applications.tracks.releases.list` | GET | `androidpublisher/v3/{+parent}/releases` | read | | +| **androidpublisher.apprecovery** (5) | | | | | +| `androidpublisher.apprecovery.addTargeting` | POST | `androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting` | write (dry by default) | | +| `androidpublisher.apprecovery.cancel` | POST | `androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel` | owner only (typed confirm) | | +| `androidpublisher.apprecovery.create` | POST | `androidpublisher/v3/applications/{packageName}/appRecoveries` | write (dry by default) | | +| `androidpublisher.apprecovery.deploy` | POST | `androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy` | owner only (typed confirm) | | +| `androidpublisher.apprecovery.list` | GET | `androidpublisher/v3/applications/{packageName}/appRecoveries` | read | | +| **androidpublisher.appsigning** (2) | | | | | +| `androidpublisher.appsigning.enrollApp` | POST | `androidpublisher/v3/applications/{name}/appSigning:enrollApp` | owner only (typed confirm) | | +| `androidpublisher.appsigning.rotateAppSigningKey` | POST | `androidpublisher/v3/applications/{name}/appSigning:rotateAppSigningKey` | owner only (typed confirm) | | +| **androidpublisher.appstoreappsreview** (6) | | | | | +| `androidpublisher.appstoreappsreview.createappstorehostedapp` | POST | `androidpublisher/v3/appstore/{appStorePackageName}/apps:create` | write (dry by default) | | +| `androidpublisher.appstoreappsreview.updateappstorehostedapp` | POST | `androidpublisher/v3/appstore/{appStorePackageName}/apps:update` | write (dry by default) | | +| `androidpublisher.appstoreappsreview.updateappstorehostedapppublishstatus` | POST | `androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}:updateAppStoreHostedAppPublishStatus` | owner only (typed confirm) | | +| `androidpublisher.appstoreappsreview.uploadapk` | POST | `androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/apks:upload` | write (dry by default) | | +| `androidpublisher.appstoreappsreview.uploadappstoreapppolicydeclarationfile` | POST | `androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/policyDeclarationFiles:upload` | write (dry by default) | | +| `androidpublisher.appstoreappsreview.uploadimage` | POST | `androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/images:upload` | write (dry by default) | | +| **androidpublisher.appstorecatalog.recentappviews** (1) | | | | | +| `androidpublisher.appstorecatalog.recentappviews.get` | GET | `androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentAppViews/{playAppPackageName}` | read | | +| **androidpublisher.appstorecatalog.recentupdateevents** (1) | | | | | +| `androidpublisher.appstorecatalog.recentupdateevents.list` | GET | `androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentUpdateEvents` | read | | +| **androidpublisher.edits** (5) | | | | | +| `androidpublisher.edits.commit` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}:commit` | owner only (typed confirm) | play/client | +| `androidpublisher.edits.delete` | DELETE | `androidpublisher/v3/applications/{packageName}/edits/{editId}` | owner only (typed confirm) | apps, play/client, validate | +| `androidpublisher.edits.get` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}` | read | | +| `androidpublisher.edits.insert` | POST | `androidpublisher/v3/applications/{packageName}/edits` | write (dry by default) | apps, play/client, validate | +| `androidpublisher.edits.validate` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}:validate` | write (dry by default) | play/client | +| **androidpublisher.edits.apks** (3) | | | | | +| `androidpublisher.edits.apks.addexternallyhosted` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted` | write (dry by default) | | +| `androidpublisher.edits.apks.list` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/apks` | read | play/next-version-code | +| `androidpublisher.edits.apks.upload` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}/apks` | write (dry by default) | | +| **androidpublisher.edits.bundles** (2) | | | | | +| `androidpublisher.edits.bundles.list` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles` | read | play/next-version-code | +| `androidpublisher.edits.bundles.upload` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles` | write (dry by default) | play/release | +| **androidpublisher.edits.countryavailability** (1) | | | | | +| `androidpublisher.edits.countryavailability.get` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}` | read | | +| **androidpublisher.edits.deobfuscationfiles** (1) | | | | | +| `androidpublisher.edits.deobfuscationfiles.upload` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}` | write (dry by default) | | +| **androidpublisher.edits.details** (3) | | | | | +| `androidpublisher.edits.details.get` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/details` | read | apps, play/listing, play/status, validate | +| `androidpublisher.edits.details.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/edits/{editId}/details` | write (dry by default) | | +| `androidpublisher.edits.details.update` | PUT | `androidpublisher/v3/applications/{packageName}/edits/{editId}/details` | write (dry by default) | play/listing | +| **androidpublisher.edits.expansionfiles** (4) | | | | | +| `androidpublisher.edits.expansionfiles.get` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}` | read | | +| `androidpublisher.edits.expansionfiles.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}` | write (dry by default) | | +| `androidpublisher.edits.expansionfiles.update` | PUT | `androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}` | write (dry by default) | | +| `androidpublisher.edits.expansionfiles.upload` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}` | write (dry by default) | | +| **androidpublisher.edits.images** (4) | | | | | +| `androidpublisher.edits.images.delete` | DELETE | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}` | owner only (typed confirm) | | +| `androidpublisher.edits.images.deleteall` | DELETE | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}` | owner only (typed confirm) | play/images | +| `androidpublisher.edits.images.list` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}` | read | apps, play/images, validate | +| `androidpublisher.edits.images.upload` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}` | write (dry by default) | play/images | +| **androidpublisher.edits.listings** (6) | | | | | +| `androidpublisher.edits.listings.delete` | DELETE | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}` | owner only (typed confirm) | | +| `androidpublisher.edits.listings.deleteall` | DELETE | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings` | owner only (typed confirm) | | +| `androidpublisher.edits.listings.get` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}` | read | | +| `androidpublisher.edits.listings.list` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings` | read | play/listing, play/status, validate | +| `androidpublisher.edits.listings.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}` | write (dry by default) | | +| `androidpublisher.edits.listings.update` | PUT | `androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}` | write (dry by default) | play/listing | +| **androidpublisher.edits.testers** (3) | | | | | +| `androidpublisher.edits.testers.get` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}` | read | | +| `androidpublisher.edits.testers.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}` | owner only (typed confirm) | | +| `androidpublisher.edits.testers.update` | PUT | `androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}` | owner only (typed confirm) | | +| **androidpublisher.edits.tracks** (5) | | | | | +| `androidpublisher.edits.tracks.create` | POST | `androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks` | write (dry by default) | | +| `androidpublisher.edits.tracks.get` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}` | read | play/rollout | +| `androidpublisher.edits.tracks.list` | GET | `androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks` | read | play/next-version-code, play/status, validate | +| `androidpublisher.edits.tracks.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}` | write (dry by default) | | +| `androidpublisher.edits.tracks.update` | PUT | `androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}` | write (dry by default) | play/release, play/rollout | +| **androidpublisher.externaltransactions** (3) | | | | | +| `androidpublisher.externaltransactions.createexternaltransaction` | POST | `androidpublisher/v3/{+parent}/externalTransactions` | write (dry by default) | | +| `androidpublisher.externaltransactions.getexternaltransaction` | GET | `androidpublisher/v3/{+name}` | read | | +| `androidpublisher.externaltransactions.refundexternaltransaction` | POST | `androidpublisher/v3/{+name}:refund` | owner only (typed confirm) | | +| **androidpublisher.generatedapks** (2) | | | | | +| `androidpublisher.generatedapks.download` | GET | `androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download` | read | | +| `androidpublisher.generatedapks.list` | GET | `androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}` | read | | +| **androidpublisher.grants** (3) | | | | | +| `androidpublisher.grants.create` | POST | `androidpublisher/v3/{+parent}/grants` | owner only (typed confirm) | | +| `androidpublisher.grants.delete` | DELETE | `androidpublisher/v3/{+name}` | owner only (typed confirm) | | +| `androidpublisher.grants.patch` | PATCH | `androidpublisher/v3/{+name}` | owner only (typed confirm) | | +| **androidpublisher.inappproducts** (9) | | | | | +| `androidpublisher.inappproducts.batchDelete` | POST | `androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete` | owner only (typed confirm) | | +| `androidpublisher.inappproducts.batchGet` | GET | `androidpublisher/v3/applications/{packageName}/inappproducts:batchGet` | read | | +| `androidpublisher.inappproducts.batchUpdate` | POST | `androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate` | write (dry by default) | | +| `androidpublisher.inappproducts.delete` | DELETE | `androidpublisher/v3/applications/{packageName}/inappproducts/{sku}` | owner only (typed confirm) | | +| `androidpublisher.inappproducts.get` | GET | `androidpublisher/v3/applications/{packageName}/inappproducts/{sku}` | read | | +| `androidpublisher.inappproducts.insert` | POST | `androidpublisher/v3/applications/{packageName}/inappproducts` | write (dry by default) | | +| `androidpublisher.inappproducts.list` | GET | `androidpublisher/v3/applications/{packageName}/inappproducts` | read | | +| `androidpublisher.inappproducts.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/inappproducts/{sku}` | write (dry by default) | | +| `androidpublisher.inappproducts.update` | PUT | `androidpublisher/v3/applications/{packageName}/inappproducts/{sku}` | write (dry by default) | | +| **androidpublisher.internalappsharingartifacts** (2) | | | | | +| `androidpublisher.internalappsharingartifacts.uploadapk` | POST | `androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk` | write (dry by default) | | +| `androidpublisher.internalappsharingartifacts.uploadbundle` | POST | `androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle` | write (dry by default) | | +| **androidpublisher.monetization** (1) | | | | | +| `androidpublisher.monetization.convertRegionPrices` | POST | `androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices` | read | play/products, play/subscriptions, prices | +| **androidpublisher.monetization.onetimeproducts** (7) | | | | | +| `androidpublisher.monetization.onetimeproducts.batchDelete` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete` | owner only (typed confirm) | | +| `androidpublisher.monetization.onetimeproducts.batchGet` | GET | `androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchGet` | read | | +| `androidpublisher.monetization.onetimeproducts.batchUpdate` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchUpdate` | write (dry by default) | | +| `androidpublisher.monetization.onetimeproducts.delete` | DELETE | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}` | owner only (typed confirm) | | +| `androidpublisher.monetization.onetimeproducts.get` | GET | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}` | read | prices | +| `androidpublisher.monetization.onetimeproducts.list` | GET | `androidpublisher/v3/applications/{packageName}/oneTimeProducts` | read | play/products | +| `androidpublisher.monetization.onetimeproducts.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}` | write (dry by default) | play/products, prices | +| **androidpublisher.monetization.onetimeproducts.purchaseOptions** (2) | | | | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.batchDelete` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchDelete` | owner only (typed confirm) | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.batchUpdateStates` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchUpdateStates` | owner only (typed confirm) | play/products | +| **androidpublisher.monetization.onetimeproducts.purchaseOptions.offers** (8) | | | | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.activate` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:activate` | owner only (typed confirm) | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchDelete` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchDelete` | owner only (typed confirm) | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchGet` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet` | read | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchUpdate` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdate` | write (dry by default) | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchUpdateStates` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdateStates` | owner only (typed confirm) | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.cancel` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel` | owner only (typed confirm) | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.deactivate` | POST | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:deactivate` | owner only (typed confirm) | | +| `androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.list` | GET | `androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers` | read | | +| **androidpublisher.monetization.subscriptions** (8) | | | | | +| `androidpublisher.monetization.subscriptions.archive` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.batchGet` | GET | `androidpublisher/v3/applications/{packageName}/subscriptions:batchGet` | read | | +| `androidpublisher.monetization.subscriptions.batchUpdate` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate` | write (dry by default) | | +| `androidpublisher.monetization.subscriptions.create` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions` | write (dry by default) | play/subscriptions | +| `androidpublisher.monetization.subscriptions.delete` | DELETE | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.get` | GET | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}` | read | | +| `androidpublisher.monetization.subscriptions.list` | GET | `androidpublisher/v3/applications/{packageName}/subscriptions` | read | catalog, play/subscriptions, validate | +| `androidpublisher.monetization.subscriptions.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}` | write (dry by default) | play/subscriptions | +| **androidpublisher.monetization.subscriptions.basePlans** (6) | | | | | +| `androidpublisher.monetization.subscriptions.basePlans.activate` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate` | owner only (typed confirm) | play/subscriptions | +| `androidpublisher.monetization.subscriptions.basePlans.batchMigratePrices` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.basePlans.batchUpdateStates` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.basePlans.deactivate` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.basePlans.delete` | DELETE | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.basePlans.migratePrices` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices` | owner only (typed confirm) | | +| **androidpublisher.monetization.subscriptions.basePlans.offers** (10) | | | | | +| `androidpublisher.monetization.subscriptions.basePlans.offers.activate` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate` | owner only (typed confirm) | play/subscriptions | +| `androidpublisher.monetization.subscriptions.basePlans.offers.batchGet` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet` | read | | +| `androidpublisher.monetization.subscriptions.basePlans.offers.batchUpdate` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate` | write (dry by default) | | +| `androidpublisher.monetization.subscriptions.basePlans.offers.batchUpdateStates` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.basePlans.offers.create` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers` | write (dry by default) | play/subscriptions | +| `androidpublisher.monetization.subscriptions.basePlans.offers.deactivate` | POST | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.basePlans.offers.delete` | DELETE | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}` | owner only (typed confirm) | | +| `androidpublisher.monetization.subscriptions.basePlans.offers.get` | GET | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}` | read | | +| `androidpublisher.monetization.subscriptions.basePlans.offers.list` | GET | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers` | read | catalog, play/subscriptions | +| `androidpublisher.monetization.subscriptions.basePlans.offers.patch` | PATCH | `androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}` | write (dry by default) | | +| **androidpublisher.orders** (4) | | | | | +| `androidpublisher.orders.batchget` | GET | `androidpublisher/v3/applications/{packageName}/orders:batchGet` | read | | +| `androidpublisher.orders.get` | GET | `androidpublisher/v3/applications/{packageName}/orders/{orderId}` | read | | +| `androidpublisher.orders.refund` | POST | `androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund` | owner only (typed confirm) | | +| `androidpublisher.orders.reviewrefund` | POST | `androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund` | owner only (typed confirm) | | +| **androidpublisher.purchases.products** (3) | | | | | +| `androidpublisher.purchases.products.acknowledge` | POST | `androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge` | write (dry by default) | | +| `androidpublisher.purchases.products.consume` | POST | `androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume` | write (dry by default) | | +| `androidpublisher.purchases.products.get` | GET | `androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}` | read | | +| **androidpublisher.purchases.productsv2** (1) | | | | | +| `androidpublisher.purchases.productsv2.getproductpurchasev2` | GET | `androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}` | read | | +| **androidpublisher.purchases.subscriptions** (3) | | | | | +| `androidpublisher.purchases.subscriptions.acknowledge` | POST | `androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge` | write (dry by default) | | +| `androidpublisher.purchases.subscriptions.cancel` | POST | `androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel` | owner only (typed confirm) | | +| `androidpublisher.purchases.subscriptions.defer` | POST | `androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer` | write (dry by default) | | +| **androidpublisher.purchases.subscriptionsv2** (4) | | | | | +| `androidpublisher.purchases.subscriptionsv2.cancel` | POST | `androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel` | owner only (typed confirm) | | +| `androidpublisher.purchases.subscriptionsv2.defer` | POST | `androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:defer` | write (dry by default) | | +| `androidpublisher.purchases.subscriptionsv2.get` | GET | `androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}` | read | | +| `androidpublisher.purchases.subscriptionsv2.revoke` | POST | `androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke` | owner only (typed confirm) | | +| **androidpublisher.purchases.voidedpurchases** (1) | | | | | +| `androidpublisher.purchases.voidedpurchases.list` | GET | `androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases` | read | | +| **androidpublisher.reviews** (3) | | | | | +| `androidpublisher.reviews.get` | GET | `androidpublisher/v3/applications/{packageName}/reviews/{reviewId}` | read | | +| `androidpublisher.reviews.list` | GET | `androidpublisher/v3/applications/{packageName}/reviews` | read | reviews | +| `androidpublisher.reviews.reply` | POST | `androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply` | owner only (typed confirm) | lib/reviews | +| **androidpublisher.systemapks.variants** (4) | | | | | +| `androidpublisher.systemapks.variants.create` | POST | `androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants` | write (dry by default) | | +| `androidpublisher.systemapks.variants.download` | GET | `androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download` | read | | +| `androidpublisher.systemapks.variants.get` | GET | `androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}` | read | | +| `androidpublisher.systemapks.variants.list` | GET | `androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants` | read | | +| **androidpublisher.users** (4) | | | | | +| `androidpublisher.users.create` | POST | `androidpublisher/v3/{+parent}/users` | owner only (typed confirm) | | +| `androidpublisher.users.delete` | DELETE | `androidpublisher/v3/{+name}` | owner only (typed confirm) | | +| `androidpublisher.users.list` | GET | `androidpublisher/v3/{+parent}/users` | read | | +| `androidpublisher.users.patch` | PATCH | `androidpublisher/v3/{+name}` | owner only (typed confirm) | | + +## Google Play Developer Reporting API v1beta1 (revision 20261008) + +14 resources, 25 operations. + +| operation | method | path | gate | wrapped by (cli/…) | +|---|---|---|---|---| +| **playdeveloperreporting.anomalies** (1) | | | | | +| `playdeveloperreporting.anomalies.list` | GET | `v1beta1/{+parent}/anomalies` | read | | +| **playdeveloperreporting.apps** (2) | | | | | +| `playdeveloperreporting.apps.fetchReleaseFilterOptions` | GET | `v1beta1/{+name}:fetchReleaseFilterOptions` | read | | +| `playdeveloperreporting.apps.search` | GET | `v1beta1/apps:search` | read | apps, lib/store-apps | +| **playdeveloperreporting.vitals.anonrssandswapmemoryusage** (2) | | | | | +| `playdeveloperreporting.vitals.anonrssandswapmemoryusage.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.anonrssandswapmemoryusage.query` | POST | `v1beta1/{+name}:query` | read | | +| **playdeveloperreporting.vitals.anrrate** (2) | | | | | +| `playdeveloperreporting.vitals.anrrate.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.anrrate.query` | POST | `v1beta1/{+name}:query` | read | health | +| **playdeveloperreporting.vitals.bitmapmemoryusage** (2) | | | | | +| `playdeveloperreporting.vitals.bitmapmemoryusage.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.bitmapmemoryusage.query` | POST | `v1beta1/{+name}:query` | read | | +| **playdeveloperreporting.vitals.crashrate** (2) | | | | | +| `playdeveloperreporting.vitals.crashrate.get` | GET | `v1beta1/{+name}` | read | health | +| `playdeveloperreporting.vitals.crashrate.query` | POST | `v1beta1/{+name}:query` | read | health | +| **playdeveloperreporting.vitals.errors.counts** (2) | | | | | +| `playdeveloperreporting.vitals.errors.counts.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.errors.counts.query` | POST | `v1beta1/{+name}:query` | read | | +| **playdeveloperreporting.vitals.errors.issues** (1) | | | | | +| `playdeveloperreporting.vitals.errors.issues.search` | GET | `v1beta1/{+parent}/errorIssues:search` | read | health | +| **playdeveloperreporting.vitals.errors.reports** (1) | | | | | +| `playdeveloperreporting.vitals.errors.reports.search` | GET | `v1beta1/{+parent}/errorReports:search` | read | | +| **playdeveloperreporting.vitals.excessivewakeuprate** (2) | | | | | +| `playdeveloperreporting.vitals.excessivewakeuprate.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.excessivewakeuprate.query` | POST | `v1beta1/{+name}:query` | read | | +| **playdeveloperreporting.vitals.lmkrate** (2) | | | | | +| `playdeveloperreporting.vitals.lmkrate.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.lmkrate.query` | POST | `v1beta1/{+name}:query` | read | | +| **playdeveloperreporting.vitals.slowrenderingrate** (2) | | | | | +| `playdeveloperreporting.vitals.slowrenderingrate.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.slowrenderingrate.query` | POST | `v1beta1/{+name}:query` | read | | +| **playdeveloperreporting.vitals.slowstartrate** (2) | | | | | +| `playdeveloperreporting.vitals.slowstartrate.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.slowstartrate.query` | POST | `v1beta1/{+name}:query` | read | | +| **playdeveloperreporting.vitals.stuckbackgroundwakelockrate** (2) | | | | | +| `playdeveloperreporting.vitals.stuckbackgroundwakelockrate.get` | GET | `v1beta1/{+name}` | read | | +| `playdeveloperreporting.vitals.stuckbackgroundwakelockrate.query` | POST | `v1beta1/{+name}:query` | read | | diff --git a/skills/store-api/SKILL.md b/skills/store-api/SKILL.md new file mode 100644 index 00000000..2be93ac5 --- /dev/null +++ b/skills/store-api/SKILL.md @@ -0,0 +1,55 @@ +--- +name: store-api +description: Call any App Store Connect API or Google Play Developer API operation that storebound's commands do not wrap, safely - `storebound api list / coverage` to find it, `storebound api apple|play ` (or `METHOD path`) to call it, with GETs run freely, writes dry until the owner sends them with --yes in a terminal, and owner-only operations (submit, release, delete, cancel, prices, testers, replies) needing the operation id typed. Use when the user needs a store feature with no storebound command (custom product pages, Game Center, app clips, users, purchases, sales reports, edit-level Play reads) or asks whether an endpoint is supported. +--- + +# Store API (every endpoint) + +storebound covers the release journey with high-level commands. Everything else in the App Store Connect API +(1303 operations) and the Google Play Developer APIs (Android Publisher v3: 145, Reporting v1beta1: 25) is reachable +through `storebound api`, generated from the official specs pinned in `specs/`. Prefer a high-level command whenever +one exists (`storebound api coverage` and docs/api-coverage.md show which operations a command already wraps): those +are idempotent, check the config and know the store's rules. + +## Find the operation +- `storebound api list --store apple --search "appCustomProductPages"` (words match the id, method and path; `--json`). +- `storebound api coverage`: counts per API and per resource, and how many a command already wraps. +- The full table with gates: docs/api-coverage.md in the storebound repository. +- Apple ids look like `apps_getCollection`, `appStoreVersions_updateInstance`, `apps_customerReviews_getToManyRelated`. + Google ids look like `androidpublisher.edits.tracks.list` (the `androidpublisher.` prefix may be left out). + +## Read (runs right away; MCP tool `api_get`) +```sh +storebound api apple apps_getCollection --param 'filter[bundleId]=com.example.app' --param 'fields[apps]=name,sku' +storebound api apple GET '/v1/apps//appStoreVersions?filter[platform]=IOS' --all-pages +storebound api play reviews.list --param packageName=com.example.app --all-pages --json +storebound api play POST /v1beta1/apps/com.example.app/crashRateMetricSet:query --body query.json # a read +storebound api apple salesReports_getCollection --param ... --out report.gz # non-JSON bodies need --out +``` +- Parameters: `--param name=value`, repeatable; lists are comma-separated (Apple) or repeated (Google). Missing + required parameters and unknown names are errors before anything is sent. +- `--all-pages` follows Apple's `links.next` and Google's page tokens and merges the pages. +- Play edit-scoped reads (`edits.*.get/list`) need an edit id, and opening an edit (`edits.insert`) is a write: use + `storebound play status` for those reads instead of opening edits by hand. +- MCP: `api_get` with `store`, `operation`, `params` (object) and `all_pages`. It runs GET operations only. + +## Write (only the owner sends) +1. Run the write without `--yes`: it prints the exact request (method, URL, body; the key is never shown) and sends + nothing. Show that to the owner. +2. The owner runs it in their own terminal with `--yes`. Outside an interactive terminal, under MCP or in the desktop + app, a write is never sent, whatever the flags. +3. Owner-only operations (cli/api/gate.ts: every DELETE, submissions and their cancel, release requests, phased + release changes, product page test start / stop, price schedules and price migrations, review replies, tester and + user invitations, Play `edits.commit`, product activation, refunds, revokes and cancels, app signing) also ask for + the operation id to be typed at the prompt. Never try to get around this: tell the owner what the call does and + let them run it (AGENTS.md rule 1). + +Bodies: `--body file.json` (Apple: a JSON:API document `{ "data": { "type": ..., "attributes": ..., "relationships": ... } }`), +`--upload file` for Google media uploads (bundles, APKs, images). + +## Rules +- Credentials only from env or `.storebound/` (same keys as every other command); never ask for them in chat. +- Never answer compliance questions through raw calls (age rating, App Privacy, Data safety, export compliance): the + matching skill and the owner decide. +- Rate limits: storebound retries 429 and 5xx with backoff (Retry-After honoured) and prints Apple's remaining hourly + quota; long `--all-pages` runs go to the background with a log (`> .storebound/api.log 2>&1 &`). diff --git a/specs/SOURCES.json b/specs/SOURCES.json new file mode 100644 index 00000000..edb74a5c --- /dev/null +++ b/specs/SOURCES.json @@ -0,0 +1,36 @@ +{ + "note": "Pinned API descriptions for tools/gen-api.ts. Refresh: download again, update this file (url, date, sha256), run bun tools/gen-api.ts, commit specs + generated files together.", + "apple": { + "file": "app-store-connect.oas.json", + "title": "App Store Connect API", + "version": "4.5.1", + "url": "https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip", + "zipLastModified": "2026-10-06", + "zipSha256": "7b826ae9ca3e45b0e7df2643cbb811c9930632640944db11a8af4586fab9db46", + "downloaded": "2026-10-11", + "sha256": "7518d3a94a8bd701ac25c1c601b95b8f53aad92091affb15a2a9d331713dac1a" + }, + "play": [ + { + "file": "androidpublisher_v3.discovery.json", + "title": "Google Play Android Developer API v3", + "revision": "20261008", + "url": "https://www.googleapis.com/discovery/v1/apis/androidpublisher/v3/rest", + "downloaded": "2026-10-11", + "sha256": "668757f25cbe47e97f782758e818f1e18bf7da4e2049180ef0e49b3d0e465efc" + }, + { + "file": "playdeveloperreporting_v1beta1.discovery.json", + "title": "Google Play Developer Reporting API v1beta1", + "revision": "20261008", + "url": "https://playdeveloperreporting.googleapis.com/$discovery/rest?version=v1beta1", + "downloaded": "2026-10-11", + "sha256": "277afdf1c026c13d91d0b3d6d5fd10a46ecaa9b21bbc2f085c104193e254a448" + } + ], + "notIncluded": { + "playdeveloperreporting v1alpha1": "revision 20261008 has the same 25 methods as v1beta1 (no unique methods), so only v1beta1 is generated", + "games v1 / gamesConfiguration / gamesManagement": "storebound does not call the Play Games Services APIs", + "playintegrity v1": "storebound does not call the Play Integrity API (it is called by an app's own backend)" + } +} diff --git a/specs/androidpublisher_v3.discovery.json b/specs/androidpublisher_v3.discovery.json new file mode 100644 index 00000000..4d43371e --- /dev/null +++ b/specs/androidpublisher_v3.discovery.json @@ -0,0 +1,14995 @@ +{ + "basePath": "", + "parameters": { + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "type": "string", + "location": "query" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "type": "string", + "location": "query" + }, + "alt": { + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "default": "json", + "description": "Data format for response.", + "type": "string" + }, + "fields": { + "location": "query", + "description": "Selector specifying which fields to include in a partial response.", + "type": "string" + }, + "oauth_token": { + "location": "query", + "type": "string", + "description": "OAuth 2.0 token for the current user." + }, + "access_token": { + "type": "string", + "location": "query", + "description": "OAuth access token." + }, + "prettyPrint": { + "type": "boolean", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "default": "true" + }, + "callback": { + "location": "query", + "type": "string", + "description": "JSONP" + }, + "uploadType": { + "type": "string", + "location": "query", + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." + }, + "$.xgafv": { + "type": "string", + "description": "V1 error format.", + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "enum": [ + "1", + "2" + ], + "location": "query" + } + }, + "rootUrl": "https://androidpublisher.googleapis.com/", + "description": "Lets Android application developers access their Google Play accounts. At a high level, the expected workflow is to \"insert\" an Edit, make changes as necessary, and then \"commit\" it. ", + "canonicalName": "Android Publisher", + "ownerName": "Google", + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/androidpublisher": { + "description": "View and manage your Google Play Developer account" + } + } + } + }, + "ownerDomain": "google.com", + "resources": { + "applications": { + "methods": { + "dataSafety": { + "parameterOrder": [ + "packageName" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "SafetyLabelsUpdateResponse" + }, + "request": { + "$ref": "SafetyLabelsUpdateRequest" + }, + "path": "androidpublisher/v3/applications/{packageName}/dataSafety", + "flatPath": "androidpublisher/v3/applications/{packageName}/dataSafety", + "parameters": { + "packageName": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. Package name of the app." + } + }, + "httpMethod": "POST", + "description": "Writes the Safety Labels declaration of an app.", + "id": "androidpublisher.applications.dataSafety" + } + }, + "resources": { + "deviceTierConfigs": { + "methods": { + "get": { + "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}", + "response": { + "$ref": "DeviceTierConfig" + }, + "parameterOrder": [ + "packageName", + "deviceTierConfigId" + ], + "httpMethod": "GET", + "description": "Returns a particular device tier config.", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "location": "path", + "required": true, + "type": "string" + }, + "deviceTierConfigId": { + "required": true, + "format": "int64", + "type": "string", + "description": "Required. Id of an existing device tier config.", + "location": "path" + } + }, + "id": "androidpublisher.applications.deviceTierConfigs.get", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}" + }, + "list": { + "parameters": { + "packageName": { + "description": "Package name of the app.", + "type": "string", + "location": "path", + "required": true + }, + "pageToken": { + "location": "query", + "description": "A page token, received from a previous `ListDeviceTierConfigs` call. Provide this to retrieve the subsequent page.", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of device tier configs to return. The service may return fewer than this value. If unspecified, at most 10 device tier configs will be returned. The maximum value for this field is 100; values above 100 will be coerced to 100. Device tier configs will be ordered by descending creation time.", + "type": "integer", + "location": "query", + "format": "int32" + } + }, + "httpMethod": "GET", + "id": "androidpublisher.applications.deviceTierConfigs.list", + "parameterOrder": [ + "packageName" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + "description": "Returns created device tier configs, ordered by descending creation time.", + "response": { + "$ref": "ListDeviceTierConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "create": { + "flatPath": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + "description": "Creates a new device tier config for an app.", + "path": "androidpublisher/v3/applications/{packageName}/deviceTierConfigs", + "parameterOrder": [ + "packageName" + ], + "request": { + "$ref": "DeviceTierConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "packageName": { + "required": true, + "description": "Package name of the app.", + "location": "path", + "type": "string" + }, + "allowUnknownDevices": { + "description": "Whether the service should accept device IDs that are unknown to Play's device catalog.", + "location": "query", + "type": "boolean" + } + }, + "response": { + "$ref": "DeviceTierConfig" + }, + "id": "androidpublisher.applications.deviceTierConfigs.create", + "httpMethod": "POST" + } + } + }, + "tracks": { + "resources": { + "releases": { + "methods": { + "list": { + "parameterOrder": [ + "parent" + ], + "description": "Returns the list of all releases for a given track. This excludes any releases that are obsolete.", + "id": "androidpublisher.applications.tracks.releases.list", + "response": { + "$ref": "ListReleaseSummariesResponse" + }, + "path": "androidpublisher/v3/{+parent}/releases", + "flatPath": "androidpublisher/v3/applications/{applicationsId}/tracks/{tracksId}/releases", + "httpMethod": "GET", + "parameters": { + "parent": { + "required": true, + "type": "string", + "location": "path", + "pattern": "^applications/[^/]+/tracks/[^/]+$", + "description": "Required. The parent track, which owns this collection of releases. Format: applications/{package_name}/tracks/{track}" + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + } + } + } + } + } + } + }, + "apprecovery": { + "methods": { + "create": { + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/appRecoveries", + "parameters": { + "packageName": { + "required": true, + "description": "Required. Package name of the app on which recovery action is performed.", + "type": "string", + "location": "path" + } + }, + "request": { + "$ref": "CreateDraftAppRecoveryRequest" + }, + "parameterOrder": [ + "packageName" + ], + "id": "androidpublisher.apprecovery.create", + "description": "Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the recovery action.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/appRecoveries", + "response": { + "$ref": "AppRecoveryAction" + } + }, + "addTargeting": { + "parameterOrder": [ + "packageName", + "appRecoveryId" + ], + "path": "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting", + "response": { + "$ref": "AddTargetingResponse" + }, + "request": { + "$ref": "AddTargetingRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "POST", + "id": "androidpublisher.apprecovery.addTargeting", + "description": "Incrementally update targeting for a recovery action. Note that only the criteria selected during the creation of recovery action can be expanded.", + "flatPath": "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting", + "parameters": { + "packageName": { + "location": "path", + "required": true, + "description": "Required. Package name of the app for which recovery action is to be updated.", + "type": "string" + }, + "appRecoveryId": { + "description": "Required. ID corresponding to the app recovery action.", + "required": true, + "format": "int64", + "location": "path", + "type": "string" + } + } + }, + "deploy": { + "request": { + "$ref": "DeployAppRecoveryRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "appRecoveryId" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy", + "id": "androidpublisher.apprecovery.deploy", + "path": "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy", + "parameters": { + "appRecoveryId": { + "format": "int64", + "location": "path", + "type": "string", + "description": "Required. ID corresponding to the app recovery action to deploy.", + "required": true + }, + "packageName": { + "type": "string", + "location": "path", + "description": "Required. Package name of the app for which recovery action is deployed.", + "required": true + } + }, + "response": { + "$ref": "DeployAppRecoveryResponse" + }, + "httpMethod": "POST", + "description": "Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates the recovery action for all targeted users and changes its status to ACTIVE." + }, + "list": { + "parameterOrder": [ + "packageName" + ], + "response": { + "$ref": "ListAppRecoveriesResponse" + }, + "httpMethod": "GET", + "path": "androidpublisher/v3/applications/{packageName}/appRecoveries", + "parameters": { + "versionCode": { + "location": "query", + "type": "string", + "description": "Required. Version code targeted by the list of recovery actions.", + "format": "int64" + }, + "packageName": { + "description": "Required. Package name of the app for which list of recovery actions is requested.", + "required": true, + "type": "string", + "location": "path" + } + }, + "description": "List all app recovery action resources associated with a particular package name and app version.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.apprecovery.list", + "flatPath": "androidpublisher/v3/applications/{packageName}/appRecoveries" + }, + "cancel": { + "parameters": { + "appRecoveryId": { + "required": true, + "format": "int64", + "type": "string", + "location": "path", + "description": "Required. ID corresponding to the app recovery action." + }, + "packageName": { + "description": "Required. Package name of the app for which recovery action cancellation is requested.", + "type": "string", + "required": true, + "location": "path" + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel", + "httpMethod": "POST", + "description": "Cancel an already executing app recovery action. Note that this action changes status of the recovery action to CANCELED.", + "path": "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "CancelAppRecoveryRequest" + }, + "response": { + "$ref": "CancelAppRecoveryResponse" + }, + "parameterOrder": [ + "packageName", + "appRecoveryId" + ], + "id": "androidpublisher.apprecovery.cancel" + } + } + }, + "externaltransactions": { + "methods": { + "getexternaltransaction": { + "description": "Gets an existing external transaction.", + "httpMethod": "GET", + "parameterOrder": [ + "name" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "name": { + "pattern": "^applications/[^/]+/externalTransactions/[^/]+$", + "required": true, + "description": "Required. The name of the external transaction to retrieve. Format: applications/{package_name}/externalTransactions/{external_transaction}", + "location": "path", + "type": "string" + } + }, + "flatPath": "androidpublisher/v3/applications/{applicationsId}/externalTransactions/{externalTransactionsId}", + "id": "androidpublisher.externaltransactions.getexternaltransaction", + "path": "androidpublisher/v3/{+name}", + "response": { + "$ref": "ExternalTransaction" + } + }, + "refundexternaltransaction": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "name": { + "type": "string", + "required": true, + "description": "Required. The name of the external transaction that will be refunded. Format: applications/{package_name}/externalTransactions/{external_transaction}", + "pattern": "^applications/[^/]+/externalTransactions/[^/]+$", + "location": "path" + } + }, + "parameterOrder": [ + "name" + ], + "httpMethod": "POST", + "response": { + "$ref": "ExternalTransaction" + }, + "description": "Refunds or partially refunds an existing external transaction.", + "path": "androidpublisher/v3/{+name}:refund", + "request": { + "$ref": "RefundExternalTransactionRequest" + }, + "flatPath": "androidpublisher/v3/applications/{applicationsId}/externalTransactions/{externalTransactionsId}:refund", + "id": "androidpublisher.externaltransactions.refundexternaltransaction" + }, + "createexternaltransaction": { + "parameters": { + "parent": { + "required": true, + "pattern": "^applications/[^/]+$", + "type": "string", + "location": "path", + "description": "Required. The parent resource where this external transaction will be created. Format: applications/{package_name}" + }, + "externalTransactionId": { + "location": "query", + "description": "Required. The id to use for the external transaction. Must be unique across all other transactions for the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not use this field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in this field may result in requests being blocked.", + "type": "string" + } + }, + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{applicationsId}/externalTransactions", + "description": "Creates a new external transaction.", + "request": { + "$ref": "ExternalTransaction" + }, + "parameterOrder": [ + "parent" + ], + "path": "androidpublisher/v3/{+parent}/externalTransactions", + "id": "androidpublisher.externaltransactions.createexternaltransaction", + "response": { + "$ref": "ExternalTransaction" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + } + } + }, + "grants": { + "methods": { + "delete": { + "id": "androidpublisher.grants.delete", + "parameterOrder": [ + "name" + ], + "path": "androidpublisher/v3/{+name}", + "description": "Removes all access for the user to the given package or developer account.", + "httpMethod": "DELETE", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "name": { + "pattern": "^developers/[^/]+/users/[^/]+/grants/[^/]+$", + "required": true, + "type": "string", + "location": "path", + "description": "Required. The name of the grant to delete. Format: developers/{developer}/users/{email}/grants/{package_name}" + } + }, + "flatPath": "androidpublisher/v3/developers/{developersId}/users/{usersId}/grants/{grantsId}" + }, + "patch": { + "httpMethod": "PATCH", + "parameters": { + "name": { + "pattern": "^developers/[^/]+/users/[^/]+/grants/[^/]+$", + "required": true, + "type": "string", + "location": "path", + "description": "Required. Resource name for this grant, following the pattern \"developers/{developer}/users/{email}/grants/{package_name}\". If this grant is for a draft app, the app ID will be used in this resource name instead of the package name." + }, + "updateMask": { + "description": "Optional. The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "androidpublisher/v3/{+name}", + "response": { + "$ref": "Grant" + }, + "parameterOrder": [ + "name" + ], + "id": "androidpublisher.grants.patch", + "request": { + "$ref": "Grant" + }, + "flatPath": "androidpublisher/v3/developers/{developersId}/users/{usersId}/grants/{grantsId}", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Updates access for the user to the given package." + }, + "create": { + "flatPath": "androidpublisher/v3/developers/{developersId}/users/{usersId}/grants", + "httpMethod": "POST", + "id": "androidpublisher.grants.create", + "path": "androidpublisher/v3/{+parent}/grants", + "parameters": { + "parent": { + "location": "path", + "type": "string", + "required": true, + "description": "Required. The user which needs permission. Format: developers/{developer}/users/{user}", + "pattern": "^developers/[^/]+/users/[^/]+$" + } + }, + "request": { + "$ref": "Grant" + }, + "description": "Grant access for a user to the given package.", + "response": { + "$ref": "Grant" + }, + "parameterOrder": [ + "parent" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + } + } + }, + "internalappsharingartifacts": { + "methods": { + "uploadbundle": { + "httpMethod": "POST", + "path": "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle", + "parameters": { + "packageName": { + "required": true, + "description": "Package name of the app.", + "location": "path", + "type": "string" + } + }, + "parameterOrder": [ + "packageName" + ], + "response": { + "$ref": "InternalAppSharingArtifact" + }, + "mediaUpload": { + "maxSize": "10737418240", + "protocols": { + "resumable": { + "path": "/resumable/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle", + "multipart": true + }, + "simple": { + "path": "/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle", + "multipart": true + } + }, + "accept": [ + "application/octet-stream" + ] + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle", + "supportsMediaUpload": true, + "description": "Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example in java.", + "id": "androidpublisher.internalappsharingartifacts.uploadbundle" + }, + "uploadapk": { + "description": "Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example in java.", + "response": { + "$ref": "InternalAppSharingArtifact" + }, + "id": "androidpublisher.internalappsharingartifacts.uploadapk", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk", + "mediaUpload": { + "protocols": { + "resumable": { + "multipart": true, + "path": "/resumable/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk" + }, + "simple": { + "multipart": true, + "path": "/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk" + } + }, + "maxSize": "1073741824", + "accept": [ + "application/octet-stream", + "application/vnd.android.package-archive" + ] + }, + "parameterOrder": [ + "packageName" + ], + "supportsMediaUpload": true, + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "required": true, + "type": "string", + "location": "path" + } + } + } + } + }, + "reviews": { + "methods": { + "list": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Lists all reviews.", + "httpMethod": "GET", + "parameters": { + "translationLanguage": { + "location": "query", + "type": "string", + "description": "Language localization code." + }, + "packageName": { + "description": "Package name of the app.", + "required": true, + "type": "string", + "location": "path" + }, + "startIndex": { + "description": "The index of the first element to return.", + "format": "uint32", + "location": "query", + "type": "integer" + }, + "maxResults": { + "type": "integer", + "format": "uint32", + "location": "query", + "description": "How many results the list operation should return." + }, + "token": { + "type": "string", + "description": "Pagination token. If empty, list starts at the first review.", + "location": "query" + } + }, + "response": { + "$ref": "ReviewsListResponse" + }, + "parameterOrder": [ + "packageName" + ], + "path": "androidpublisher/v3/applications/{packageName}/reviews", + "flatPath": "androidpublisher/v3/applications/{packageName}/reviews", + "id": "androidpublisher.reviews.list" + }, + "get": { + "path": "androidpublisher/v3/applications/{packageName}/reviews/{reviewId}", + "description": "Gets a single review.", + "parameters": { + "translationLanguage": { + "type": "string", + "description": "Language localization code.", + "location": "query" + }, + "packageName": { + "description": "Package name of the app.", + "location": "path", + "required": true, + "type": "string" + }, + "reviewId": { + "required": true, + "location": "path", + "description": "Unique identifier for a review.", + "type": "string" + } + }, + "parameterOrder": [ + "packageName", + "reviewId" + ], + "httpMethod": "GET", + "response": { + "$ref": "Review" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/reviews/{reviewId}", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.reviews.get" + }, + "reply": { + "description": "Replies to a single review, or updates an existing reply.", + "id": "androidpublisher.reviews.reply", + "response": { + "$ref": "ReviewsReplyResponse" + }, + "parameterOrder": [ + "packageName", + "reviewId" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply", + "httpMethod": "POST", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply", + "parameters": { + "reviewId": { + "required": true, + "location": "path", + "type": "string", + "description": "Unique identifier for a review." + }, + "packageName": { + "type": "string", + "description": "Package name of the app.", + "location": "path", + "required": true + } + }, + "request": { + "$ref": "ReviewsReplyRequest" + } + } + } + }, + "appstorecatalog": { + "resources": { + "recentupdateevents": { + "methods": { + "list": { + "httpMethod": "GET", + "parameters": { + "appStorePackageName": { + "type": "string", + "required": true, + "location": "path", + "description": "Required. The package name of the app store on behalf of which the request is made." + }, + "pageSize": { + "description": "Optional. The maximum number of update events to return. The service may return fewer than this value. If unspecified, at most 100 update events will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "type": "integer", + "location": "query", + "format": "int32" + }, + "pageToken": { + "location": "query", + "description": "Optional. A page token, received from a previous `ListRecentUpdateEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRecentUpdateEvents` must match the call that provided the page token.", + "type": "string" + }, + "endTime": { + "description": "Required. The end time of the range (exclusive).", + "location": "query", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "format": "google-datetime", + "description": "Required. The start time of the range (inclusive).", + "location": "query", + "type": "string" + } + }, + "path": "androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentUpdateEvents", + "id": "androidpublisher.appstorecatalog.recentupdateevents.list", + "flatPath": "androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentUpdateEvents", + "description": "Lists update events for eligible apps in the given time range.", + "response": { + "$ref": "ListRecentUpdateEventsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "appStorePackageName" + ] + } + } + }, + "recentappviews": { + "methods": { + "get": { + "description": "Returns metadata about a recently updated app.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentAppViews/{playAppPackageName}", + "httpMethod": "GET", + "parameters": { + "appStorePackageName": { + "description": "Required. The package name of the app store on behalf of which the request is made.", + "required": true, + "location": "path", + "type": "string" + }, + "playAppPackageName": { + "location": "path", + "description": "Required. The package name of the requested Play app.", + "required": true, + "type": "string" + } + }, + "id": "androidpublisher.appstorecatalog.recentappviews.get", + "path": "androidpublisher/v3/appstorecatalog/{appStorePackageName}/recentAppViews/{playAppPackageName}", + "response": { + "$ref": "RecentAppView" + }, + "parameterOrder": [ + "appStorePackageName", + "playAppPackageName" + ] + } + } + } + } + }, + "purchases": { + "resources": { + "voidedpurchases": { + "methods": { + "list": { + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases", + "path": "androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases", + "parameterOrder": [ + "packageName" + ], + "description": "Lists the purchases that were canceled, refunded or charged-back.", + "id": "androidpublisher.purchases.voidedpurchases.list", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "token": { + "location": "query", + "description": "Defines the token of the page to return, usually taken from TokenPagination. This can only be used if token paging is enabled.", + "type": "string" + }, + "packageName": { + "description": "The package name of the application for which voided purchases need to be returned (for example, 'com.some.thing').", + "type": "string", + "required": true, + "location": "path" + }, + "startTime": { + "format": "int64", + "description": "The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the response. The value of this parameter cannot be older than 30 days and is ignored if a pagination token is set. Default value is current time minus 30 days. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + "type": "string", + "location": "query" + }, + "endTime": { + "description": "The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the response. The value of this parameter cannot be greater than the current time and is ignored if a pagination token is set. Default value is current time. Note: This filter is applied on the time at which the record is seen as voided by our systems and not the actual voided time returned in the response.", + "format": "int64", + "location": "query", + "type": "string" + }, + "maxResults": { + "format": "uint32", + "type": "integer", + "location": "query", + "description": "Defines how many results the list operation should return. The default number depends on the resource collection." + }, + "startIndex": { + "type": "integer", + "format": "uint32", + "location": "query", + "description": "Defines the index of the first element to return. This can only be used if indexed paging is enabled." + }, + "includeQuantityBasedPartialRefund": { + "location": "query", + "description": "Optional. Whether to include voided purchases of quantity-based partial refunds, which are applicable only to multi-quantity purchases. If true, additional voided purchases may be returned with voidedQuantity that indicates the refund quantity of a quantity-based partial refund. The default value is false.", + "type": "boolean" + }, + "type": { + "format": "int32", + "type": "integer", + "description": "The type of voided purchases that you want to see in the response. Possible values are: 0. Only voided in-app product purchases will be returned in the response. This is the default value. 1. Both voided in-app purchases and voided subscription purchases will be returned in the response. Note: Before requesting to receive voided subscription purchases, you must switch to use orderId in the response which uniquely identifies one-time purchases and subscriptions. Otherwise, you will receive multiple subscription orders with the same PurchaseToken, because subscription renewal orders share the same PurchaseToken.", + "location": "query" + } + }, + "httpMethod": "GET", + "response": { + "$ref": "VoidedPurchasesListResponse" + } + } + } + }, + "subscriptionsv2": { + "methods": { + "get": { + "response": { + "$ref": "SubscriptionPurchaseV2" + }, + "id": "androidpublisher.purchases.subscriptionsv2.get", + "httpMethod": "GET", + "parameters": { + "packageName": { + "required": true, + "type": "string", + "description": "The package of the application for which this subscription was purchased (for example, 'com.some.thing').", + "location": "path" + }, + "token": { + "description": "Required. The token provided to the user's device when the subscription was purchased.", + "type": "string", + "location": "path", + "required": true + } + }, + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "token" + ], + "description": "Get metadata about a subscription", + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}" + }, + "revoke": { + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke", + "description": "Revoke a subscription purchase for the user.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "POST", + "parameters": { + "token": { + "required": true, + "type": "string", + "location": "path", + "description": "Required. The token provided to the user's device when the subscription was purchased." + }, + "packageName": { + "type": "string", + "description": "Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing').", + "location": "path", + "required": true + } + }, + "parameterOrder": [ + "packageName", + "token" + ], + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke", + "request": { + "$ref": "RevokeSubscriptionPurchaseRequest" + }, + "id": "androidpublisher.purchases.subscriptionsv2.revoke", + "response": { + "$ref": "RevokeSubscriptionPurchaseResponse" + } + }, + "cancel": { + "description": "Cancel a subscription purchase for the user.", + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel", + "parameterOrder": [ + "packageName", + "token" + ], + "response": { + "$ref": "CancelSubscriptionPurchaseResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel", + "id": "androidpublisher.purchases.subscriptionsv2.cancel", + "parameters": { + "token": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The token provided to the user's device when the subscription was purchased." + }, + "packageName": { + "type": "string", + "description": "Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing').", + "location": "path", + "required": true + } + }, + "request": { + "$ref": "CancelSubscriptionPurchaseRequest" + } + }, + "defer": { + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:defer", + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:defer", + "parameters": { + "token": { + "location": "path", + "type": "string", + "required": true, + "description": "Required. The token provided to the user's device when the subscription was purchased." + }, + "packageName": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing')." + } + }, + "description": "Defers the renewal of a subscription.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "POST", + "id": "androidpublisher.purchases.subscriptionsv2.defer", + "request": { + "$ref": "DeferSubscriptionPurchaseRequest" + }, + "parameterOrder": [ + "packageName", + "token" + ], + "response": { + "$ref": "DeferSubscriptionPurchaseResponse" + } + } + } + }, + "subscriptions": { + "methods": { + "defer": { + "parameterOrder": [ + "packageName", + "subscriptionId", + "token" + ], + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer", + "id": "androidpublisher.purchases.subscriptions.defer", + "request": { + "$ref": "SubscriptionPurchasesDeferRequest" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer", + "httpMethod": "POST", + "response": { + "$ref": "SubscriptionPurchasesDeferResponse" + }, + "parameters": { + "token": { + "required": true, + "type": "string", + "location": "path", + "description": "The token provided to the user's device when the subscription was purchased." + }, + "subscriptionId": { + "description": "The purchased subscription ID (for example, 'monthly001').", + "location": "path", + "type": "string", + "required": true + }, + "packageName": { + "location": "path", + "required": true, + "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').", + "type": "string" + } + }, + "deprecated": true, + "description": "Deprecated: Use purchases.subscriptionsv2.defer instead. Defers a user's subscription purchase until a specified future expiration time.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "acknowledge": { + "description": "Acknowledges a subscription purchase.", + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge", + "request": { + "$ref": "SubscriptionPurchasesAcknowledgeRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing')." + }, + "subscriptionId": { + "required": true, + "description": "Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with add-ons. The purchased subscription ID (for example, 'monthly001').", + "location": "path", + "type": "string" + }, + "token": { + "type": "string", + "description": "The token provided to the user's device when the subscription was purchased.", + "required": true, + "location": "path" + } + }, + "parameterOrder": [ + "packageName", + "subscriptionId", + "token" + ], + "httpMethod": "POST", + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge", + "id": "androidpublisher.purchases.subscriptions.acknowledge" + }, + "cancel": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.purchases.subscriptions.cancel", + "parameters": { + "subscriptionId": { + "type": "string", + "description": "Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with add-ons. The purchased subscription ID (for example, 'monthly001').", + "required": true, + "location": "path" + }, + "token": { + "location": "path", + "description": "The token provided to the user's device when the subscription was purchased.", + "required": true, + "type": "string" + }, + "packageName": { + "type": "string", + "required": true, + "location": "path", + "description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing')." + } + }, + "deprecated": true, + "parameterOrder": [ + "packageName", + "subscriptionId", + "token" + ], + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel", + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel", + "description": "Deprecated: Use purchases.subscriptionsv2.cancel instead. Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer version is available at purchases.subscriptionsv2.cancel for better client library support." + } + } + }, + "products": { + "methods": { + "consume": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "productId", + "token" + ], + "description": "Consumes a purchase for an inapp item.", + "path": "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume", + "parameters": { + "packageName": { + "type": "string", + "required": true, + "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').", + "location": "path" + }, + "token": { + "description": "The token provided to the user's device when the inapp product was purchased.", + "location": "path", + "type": "string", + "required": true + }, + "productId": { + "description": "The inapp product SKU (for example, 'com.some.thing.inapp1').", + "type": "string", + "location": "path", + "required": true + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume", + "httpMethod": "POST", + "id": "androidpublisher.purchases.products.consume" + }, + "get": { + "parameterOrder": [ + "packageName", + "productId", + "token" + ], + "httpMethod": "GET", + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "required": true, + "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing')." + }, + "productId": { + "type": "string", + "location": "path", + "description": "The inapp product SKU (for example, 'com.some.thing.inapp1').", + "required": true + }, + "token": { + "location": "path", + "required": true, + "type": "string", + "description": "The token provided to the user's device when the inapp product was purchased." + } + }, + "path": "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}", + "id": "androidpublisher.purchases.products.get", + "description": "Checks the purchase and consumption status of an inapp item.", + "response": { + "$ref": "ProductPurchase" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}" + }, + "acknowledge": { + "parameterOrder": [ + "packageName", + "productId", + "token" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "ProductPurchasesAcknowledgeRequest" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge", + "description": "Acknowledges a purchase of an inapp item.", + "parameters": { + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing')." + }, + "productId": { + "description": "The inapp product SKU (for example, 'com.some.thing.inapp1').", + "required": true, + "location": "path", + "type": "string" + }, + "token": { + "required": true, + "location": "path", + "type": "string", + "description": "The token provided to the user's device when the inapp product was purchased." + } + }, + "httpMethod": "POST", + "path": "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge", + "id": "androidpublisher.purchases.products.acknowledge" + } + } + }, + "productsv2": { + "methods": { + "getproductpurchasev2": { + "description": "Checks the purchase and consumption status of an inapp item.", + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}", + "parameters": { + "token": { + "type": "string", + "location": "path", + "required": true, + "description": "The token provided to the user's device when the inapp product was purchased." + }, + "packageName": { + "description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').", + "required": true, + "type": "string", + "location": "path" + } + }, + "id": "androidpublisher.purchases.productsv2.getproductpurchasev2", + "httpMethod": "GET", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "token" + ], + "response": { + "$ref": "ProductPurchaseV2" + }, + "path": "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}" + } + } + } + } + }, + "monetization": { + "methods": { + "convertRegionPrices": { + "description": "Calculates the region prices, using today's exchange rate and country-specific pricing patterns, based on the price in the request for a set of regions.", + "flatPath": "androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices", + "httpMethod": "POST", + "parameters": { + "packageName": { + "description": "Required. The app package name.", + "type": "string", + "location": "path", + "required": true + } + }, + "response": { + "$ref": "ConvertRegionPricesResponse" + }, + "path": "androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.monetization.convertRegionPrices", + "parameterOrder": [ + "packageName" + ], + "request": { + "$ref": "ConvertRegionPricesRequest" + } + } + }, + "resources": { + "onetimeproducts": { + "resources": { + "purchaseOptions": { + "resources": { + "offers": { + "methods": { + "batchGet": { + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet", + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet", + "parameters": { + "productId": { + "required": true, + "description": "Required. The product ID of the parent one-time product, if all updated offers belong to the same product. If this request spans multiple one-time products, set this field to \"-\".", + "location": "path", + "type": "string" + }, + "purchaseOptionId": { + "type": "string", + "required": true, + "description": "Required. The parent purchase option (ID) for which the offers should be updated. May be specified as '-' to update offers from multiple purchase options.", + "location": "path" + }, + "packageName": { + "location": "path", + "description": "Required. The parent app (package name) of the updated offers. Must be equal to the package_name field on all the updated OneTimeProductOffer resources.", + "required": true, + "type": "string" + } + }, + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchGet", + "description": "Reads one or more one-time product offers.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "productId", + "purchaseOptionId" + ], + "request": { + "$ref": "BatchGetOneTimeProductOffersRequest" + }, + "response": { + "$ref": "BatchGetOneTimeProductOffersResponse" + } + }, + "activate": { + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.activate", + "response": { + "$ref": "OneTimeProductOffer" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "ActivateOneTimeProductOfferRequest" + }, + "description": "Activates a one-time product offer.", + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:activate", + "httpMethod": "POST", + "parameters": { + "packageName": { + "type": "string", + "required": true, + "description": "Required. The parent app (package name) of the offer to activate.", + "location": "path" + }, + "offerId": { + "description": "Required. The offer ID of the offer to activate.", + "required": true, + "location": "path", + "type": "string" + }, + "productId": { + "location": "path", + "required": true, + "type": "string", + "description": "Required. The parent one-time product (ID) of the offer to activate." + }, + "purchaseOptionId": { + "required": true, + "type": "string", + "location": "path", + "description": "Required. The parent purchase option (ID) of the offer to activate." + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:activate", + "parameterOrder": [ + "packageName", + "productId", + "purchaseOptionId", + "offerId" + ] + }, + "batchUpdate": { + "httpMethod": "POST", + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchUpdate", + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdate", + "parameters": { + "purchaseOptionId": { + "location": "path", + "type": "string", + "description": "Required. The parent purchase option (ID) for which the offers should be updated. May be specified as '-' to update offers from multiple purchase options.", + "required": true + }, + "packageName": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The parent app (package name) of the updated offers. Must be equal to the package_name field on all the updated OneTimeProductOffer resources." + }, + "productId": { + "required": true, + "location": "path", + "description": "Required. The product ID of the parent one-time product, if all updated offers belong to the same product. If this request spans multiple one-time products, set this field to \"-\".", + "type": "string" + } + }, + "request": { + "$ref": "BatchUpdateOneTimeProductOffersRequest" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdate", + "response": { + "$ref": "BatchUpdateOneTimeProductOffersResponse" + }, + "parameterOrder": [ + "packageName", + "productId", + "purchaseOptionId" + ], + "description": "Creates or updates one or more one-time product offers.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "deactivate": { + "description": "Deactivates a one-time product offer.", + "request": { + "$ref": "DeactivateOneTimeProductOfferRequest" + }, + "parameterOrder": [ + "packageName", + "productId", + "purchaseOptionId", + "offerId" + ], + "response": { + "$ref": "OneTimeProductOffer" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.deactivate", + "parameters": { + "purchaseOptionId": { + "required": true, + "description": "Required. The parent purchase option (ID) of the offer to deactivate.", + "location": "path", + "type": "string" + }, + "productId": { + "description": "Required. The parent one-time product (ID) of the offer to deactivate.", + "location": "path", + "type": "string", + "required": true + }, + "packageName": { + "location": "path", + "type": "string", + "description": "Required. The parent app (package name) of the offer to deactivate.", + "required": true + }, + "offerId": { + "description": "Required. The offer ID of the offer to deactivate.", + "type": "string", + "location": "path", + "required": true + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:deactivate", + "httpMethod": "POST", + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:deactivate" + }, + "batchDelete": { + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchDelete", + "description": "Deletes one or more one-time product offers.", + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchDelete", + "parameterOrder": [ + "packageName", + "productId", + "purchaseOptionId" + ], + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchDelete", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "BatchDeleteOneTimeProductOffersRequest" + }, + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "description": "Required. The parent app (package name) of the offers to delete. Must be equal to the package_name field on all the OneTimeProductOffer resources.", + "required": true + }, + "purchaseOptionId": { + "type": "string", + "description": "Required. The parent purchase option (ID) for which the offers should be deleted. May be specified as '-' to update offers from multiple purchase options.", + "required": true, + "location": "path" + }, + "productId": { + "description": "Required. The product ID of the parent one-time product, if all offers to delete belong to the same product. If this request spans multiple one-time products, set this field to \"-\".", + "required": true, + "type": "string", + "location": "path" + } + }, + "httpMethod": "POST" + }, + "cancel": { + "response": { + "$ref": "OneTimeProductOffer" + }, + "parameters": { + "packageName": { + "location": "path", + "type": "string", + "required": true, + "description": "Required. The parent app (package name) of the offer to cancel." + }, + "offerId": { + "type": "string", + "required": true, + "description": "Required. The offer ID of the offer to cancel.", + "location": "path" + }, + "purchaseOptionId": { + "required": true, + "type": "string", + "location": "path", + "description": "Required. The parent purchase option (ID) of the offer to cancel." + }, + "productId": { + "type": "string", + "location": "path", + "description": "Required. The parent one-time product (ID) of the offer to cancel.", + "required": true + } + }, + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel", + "request": { + "$ref": "CancelOneTimeProductOfferRequest" + }, + "httpMethod": "POST", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "productId", + "purchaseOptionId", + "offerId" + ], + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.cancel", + "description": "Cancels a one-time product offer.", + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel" + }, + "list": { + "response": { + "$ref": "ListOneTimeProductOffersResponse" + }, + "description": "Lists all offers under a given app, product, or purchase option.", + "parameterOrder": [ + "packageName", + "productId", + "purchaseOptionId" + ], + "httpMethod": "GET", + "parameters": { + "pageSize": { + "type": "integer", + "description": "Optional. The maximum number of offers to return. The service may return fewer than this value. If unspecified, at most 50 offers will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query" + }, + "pageToken": { + "type": "string", + "description": "Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. Provide this to retrieve the subsequent page. When paginating, product_id, package_name and purchase_option_id provided to `ListOneTimeProductsOffersRequest` must match the call that provided the page token.", + "location": "query" + }, + "packageName": { + "description": "Required. The parent app (package name) for which the offers should be read.", + "location": "path", + "required": true, + "type": "string" + }, + "productId": { + "required": true, + "type": "string", + "description": "Required. The parent one-time product (ID) for which the offers should be read. May be specified as '-' to read all offers under an app.", + "location": "path" + }, + "purchaseOptionId": { + "type": "string", + "location": "path", + "required": true, + "description": "Required. The parent purchase option (ID) for which the offers should be read. May be specified as '-' to read all offers under a one-time product or an app. Must be specified as '-' if product_id is specified as '-'." + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers", + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers", + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.list" + }, + "batchUpdateStates": { + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdateStates", + "parameterOrder": [ + "packageName", + "productId", + "purchaseOptionId" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdateStates", + "request": { + "$ref": "BatchUpdateOneTimeProductOfferStatesRequest" + }, + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.offers.batchUpdateStates", + "response": { + "$ref": "BatchUpdateOneTimeProductOfferStatesResponse" + }, + "parameters": { + "productId": { + "required": true, + "description": "Required. The product ID of the parent one-time product, if all updated offers belong to the same one-time product. If this batch update spans multiple one-time products, set this field to \"-\".", + "location": "path", + "type": "string" + }, + "purchaseOptionId": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The purchase option ID of the parent purchase option, if all updated offers belong to the same purchase option. If this batch update spans multiple purchase options, set this field to \"-\"." + }, + "packageName": { + "location": "path", + "required": true, + "type": "string", + "description": "Required. The parent app (package name) of the updated one-time product offers." + } + }, + "description": "Updates a batch of one-time product offer states.", + "httpMethod": "POST" + } + } + } + }, + "methods": { + "batchUpdateStates": { + "parameters": { + "productId": { + "location": "path", + "required": true, + "description": "Required. The product ID of the parent one-time product, if all updated purchase options belong to the same one-time product. If this batch update spans multiple one-time products, set this field to \"-\".", + "type": "string" + }, + "packageName": { + "location": "path", + "required": true, + "type": "string", + "description": "Required. The parent app (package name) of the updated purchase options." + } + }, + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.batchUpdateStates", + "httpMethod": "POST", + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchUpdateStates", + "response": { + "$ref": "BatchUpdatePurchaseOptionStatesResponse" + }, + "description": "Activates or deactivates purchase options across one or multiple one-time products.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "BatchUpdatePurchaseOptionStatesRequest" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchUpdateStates", + "parameterOrder": [ + "packageName", + "productId" + ] + }, + "batchDelete": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchDelete", + "parameterOrder": [ + "packageName", + "productId" + ], + "request": { + "$ref": "BatchDeletePurchaseOptionsRequest" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchDelete", + "parameters": { + "productId": { + "description": "Required. The product ID of the parent one-time product, if all purchase options to delete belong to the same one-time product. If this batch delete spans multiple one-time products, set this field to \"-\".", + "location": "path", + "required": true, + "type": "string" + }, + "packageName": { + "description": "Required. The parent app (package name) of the purchase options to delete.", + "required": true, + "location": "path", + "type": "string" + } + }, + "id": "androidpublisher.monetization.onetimeproducts.purchaseOptions.batchDelete", + "httpMethod": "POST", + "description": "Deletes purchase options across one or multiple one-time products. By default this operation will fail if there are any existing offers under the deleted purchase options. Use the force parameter to override the default behavior." + } + } + } + }, + "methods": { + "batchDelete": { + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete", + "httpMethod": "POST", + "request": { + "$ref": "BatchDeleteOneTimeProductsRequest" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete", + "parameters": { + "packageName": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The parent app (package name) for which the one-time products should be deleted. Must be equal to the package_name field on all the OneTimeProduct resources." + } + }, + "id": "androidpublisher.monetization.onetimeproducts.batchDelete", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName" + ], + "description": "Deletes one or more one-time products." + }, + "batchGet": { + "response": { + "$ref": "BatchGetOneTimeProductsResponse" + }, + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchGet", + "description": "Reads one or more one-time products.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "productIds": { + "repeated": true, + "type": "string", + "description": "Required. A list of up to 100 product IDs to retrieve. All IDs must be different.", + "location": "query" + }, + "packageName": { + "required": true, + "location": "path", + "description": "Required. The parent app (package name) for which the products should be retrieved. Must be equal to the package_name field on all requests.", + "type": "string" + } + }, + "id": "androidpublisher.monetization.onetimeproducts.batchGet", + "httpMethod": "GET", + "parameterOrder": [ + "packageName" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchGet" + }, + "patch": { + "request": { + "$ref": "OneTimeProduct" + }, + "response": { + "$ref": "OneTimeProduct" + }, + "path": "androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}", + "description": "Creates or updates a one-time product.", + "httpMethod": "PATCH", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.monetization.onetimeproducts.patch", + "parameterOrder": [ + "packageName", + "productId" + ], + "parameters": { + "updateMask": { + "type": "string", + "location": "query", + "description": "Required. The list of fields to be updated.", + "format": "google-fieldmask" + }, + "packageName": { + "description": "Required. Immutable. Package name of the parent app.", + "required": true, + "location": "path", + "type": "string" + }, + "productId": { + "location": "path", + "required": true, + "description": "Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).", + "type": "string" + }, + "latencyTolerance": { + "description": "Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive.", + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "location": "query" + }, + "regionsVersion.version": { + "location": "query", + "type": "string", + "description": "Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available." + }, + "allowMissing": { + "type": "boolean", + "description": "Optional. If set to true, and the one-time product with the given package_name and product_id doesn't exist, the one-time product will be created. If a new one-time product is created, update_mask is ignored.", + "location": "query" + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}" + }, + "delete": { + "description": "Deletes a one-time product.", + "parameters": { + "latencyTolerance": { + "location": "query", + "type": "string", + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ] + }, + "packageName": { + "description": "Required. The parent app (package name) of the one-time product to delete.", + "required": true, + "location": "path", + "type": "string" + }, + "productId": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The one-time product ID of the one-time product to delete." + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}", + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}", + "httpMethod": "DELETE", + "id": "androidpublisher.monetization.onetimeproducts.delete", + "parameterOrder": [ + "packageName", + "productId" + ] + }, + "batchUpdate": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchUpdate", + "id": "androidpublisher.monetization.onetimeproducts.batchUpdate", + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchUpdate", + "parameters": { + "packageName": { + "type": "string", + "description": "Required. The parent app (package name) for which the one-time products should be updated. Must be equal to the package_name field on all the OneTimeProduct resources.", + "location": "path", + "required": true + } + }, + "response": { + "$ref": "BatchUpdateOneTimeProductsResponse" + }, + "httpMethod": "POST", + "request": { + "$ref": "BatchUpdateOneTimeProductsRequest" + }, + "description": "Creates or updates one or more one-time products.", + "parameterOrder": [ + "packageName" + ] + }, + "list": { + "httpMethod": "GET", + "description": "Lists all one-time products under a given app.", + "parameterOrder": [ + "packageName" + ], + "parameters": { + "packageName": { + "type": "string", + "description": "Required. The parent app (package name) for which the one-time product should be read.", + "location": "path", + "required": true + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListOneTimeProducts` must match the call that provided the page token.", + "type": "string", + "location": "query" + }, + "pageSize": { + "location": "query", + "description": "Optional. The maximum number of one-time product to return. The service may return fewer than this value. If unspecified, at most 50 one-time products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "type": "integer", + "format": "int32" + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "ListOneTimeProductsResponse" + }, + "id": "androidpublisher.monetization.onetimeproducts.list", + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts" + }, + "get": { + "path": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}", + "response": { + "$ref": "OneTimeProduct" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.monetization.onetimeproducts.get", + "parameterOrder": [ + "packageName", + "productId" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}", + "parameters": { + "productId": { + "type": "string", + "description": "Required. The product ID of the product to retrieve.", + "location": "path", + "required": true + }, + "packageName": { + "location": "path", + "type": "string", + "required": true, + "description": "Required. The parent app (package name) of the product to retrieve." + } + }, + "description": "Reads a single one-time product.", + "httpMethod": "GET" + } + } + }, + "subscriptions": { + "methods": { + "batchUpdate": { + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate", + "parameters": { + "packageName": { + "location": "path", + "description": "Required. The parent app (package name) for which the subscriptions should be updated. Must be equal to the package_name field on all the Subscription resources.", + "required": true, + "type": "string" + } + }, + "description": "Updates a batch of subscriptions. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.", + "httpMethod": "POST", + "path": "androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate", + "request": { + "$ref": "BatchUpdateSubscriptionsRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName" + ], + "response": { + "$ref": "BatchUpdateSubscriptionsResponse" + }, + "id": "androidpublisher.monetization.subscriptions.batchUpdate" + }, + "create": { + "path": "androidpublisher/v3/applications/{packageName}/subscriptions", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "Subscription" + }, + "parameters": { + "regionsVersion.version": { + "location": "query", + "type": "string", + "description": "Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available." + }, + "packageName": { + "type": "string", + "description": "Required. The parent app (package name) for which the subscription should be created. Must be equal to the package_name field on the Subscription resource.", + "location": "path", + "required": true + }, + "productId": { + "location": "query", + "description": "Required. The ID to use for the subscription. For the requirements on this format, see the documentation of the product_id field on the Subscription resource.", + "type": "string" + } + }, + "request": { + "$ref": "Subscription" + }, + "parameterOrder": [ + "packageName" + ], + "httpMethod": "POST", + "id": "androidpublisher.monetization.subscriptions.create", + "description": "Creates a new subscription. Newly added base plans will remain in draft state until activated.", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions" + }, + "list": { + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions", + "id": "androidpublisher.monetization.subscriptions.list", + "parameterOrder": [ + "packageName" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "pageToken": { + "description": "A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscriptions` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "showArchived": { + "location": "query", + "type": "boolean", + "description": "Deprecated: subscription archiving is not supported.", + "deprecated": true + }, + "packageName": { + "type": "string", + "description": "Required. The parent app (package name) for which the subscriptions should be read.", + "location": "path", + "required": true + }, + "pageSize": { + "location": "query", + "type": "integer", + "description": "The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32" + } + }, + "httpMethod": "GET", + "path": "androidpublisher/v3/applications/{packageName}/subscriptions", + "response": { + "$ref": "ListSubscriptionsResponse" + }, + "description": "Lists all subscriptions under a given app." + }, + "archive": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "productId": { + "location": "path", + "required": true, + "type": "string", + "description": "Required. The unique product ID of the subscription to delete." + }, + "packageName": { + "required": true, + "description": "Required. The parent app (package name) of the app of the subscription to delete.", + "location": "path", + "type": "string" + } + }, + "deprecated": true, + "parameterOrder": [ + "packageName", + "productId" + ], + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive", + "id": "androidpublisher.monetization.subscriptions.archive", + "request": { + "$ref": "ArchiveSubscriptionRequest" + }, + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive", + "response": { + "$ref": "Subscription" + }, + "description": "Deprecated: subscription archiving is not supported." + }, + "get": { + "id": "androidpublisher.monetization.subscriptions.get", + "description": "Reads a single subscription.", + "response": { + "$ref": "Subscription" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "GET", + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "description": "Required. The parent app (package name) of the subscription to get.", + "required": true + }, + "productId": { + "location": "path", + "type": "string", + "description": "Required. The unique product ID of the subscription to get.", + "required": true + } + }, + "parameterOrder": [ + "packageName", + "productId" + ], + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}" + }, + "delete": { + "httpMethod": "DELETE", + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}", + "parameterOrder": [ + "packageName", + "productId" + ], + "id": "androidpublisher.monetization.subscriptions.delete", + "parameters": { + "productId": { + "description": "Required. The unique product ID of the subscription to delete.", + "required": true, + "location": "path", + "type": "string" + }, + "packageName": { + "description": "Required. The parent app (package name) of the app of the subscription to delete.", + "location": "path", + "required": true, + "type": "string" + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}", + "description": "Deletes a subscription. A subscription can only be deleted if it has never had a base plan published." + }, + "patch": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "allowMissing": { + "type": "boolean", + "description": "Optional. If set to true, and the subscription with the given package_name and product_id doesn't exist, the subscription will be created. If a new subscription is created, update_mask is ignored.", + "location": "query" + }, + "regionsVersion.version": { + "location": "query", + "description": "Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available.", + "type": "string" + }, + "latencyTolerance": { + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "location": "query", + "type": "string" + }, + "packageName": { + "required": true, + "location": "path", + "description": "Immutable. Package name of the parent app.", + "type": "string" + }, + "updateMask": { + "location": "query", + "description": "Required. The list of fields to be updated.", + "type": "string", + "format": "google-fieldmask" + }, + "productId": { + "description": "Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.", + "type": "string", + "location": "path", + "required": true + } + }, + "id": "androidpublisher.monetization.subscriptions.patch", + "httpMethod": "PATCH", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}", + "request": { + "$ref": "Subscription" + }, + "parameterOrder": [ + "packageName", + "productId" + ], + "response": { + "$ref": "Subscription" + }, + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}", + "description": "Updates an existing subscription." + }, + "batchGet": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.monetization.subscriptions.batchGet", + "description": "Reads one or more subscriptions.", + "parameterOrder": [ + "packageName" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions:batchGet", + "httpMethod": "GET", + "response": { + "$ref": "BatchGetSubscriptionsResponse" + }, + "path": "androidpublisher/v3/applications/{packageName}/subscriptions:batchGet", + "parameters": { + "productIds": { + "repeated": true, + "type": "string", + "description": "Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be different.", + "location": "query" + }, + "packageName": { + "description": "Required. The parent app (package name) for which the subscriptions should be retrieved. Must be equal to the package_name field on all the requests.", + "location": "path", + "type": "string", + "required": true + } + } + } + }, + "resources": { + "basePlans": { + "resources": { + "offers": { + "methods": { + "batchUpdate": { + "request": { + "$ref": "BatchUpdateSubscriptionOffersRequest" + }, + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate", + "description": "Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.", + "parameters": { + "productId": { + "description": "Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to \"-\". Must be set.", + "required": true, + "location": "path", + "type": "string" + }, + "basePlanId": { + "description": "Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' to update offers from multiple base plans.", + "required": true, + "type": "string", + "location": "path" + }, + "packageName": { + "required": true, + "location": "path", + "description": "Required. The parent app (package name) of the updated subscription offers. Must be equal to the package_name field on all the updated SubscriptionOffer resources.", + "type": "string" + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "POST", + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.batchUpdate", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "response": { + "$ref": "BatchUpdateSubscriptionOffersResponse" + } + }, + "batchUpdateStates": { + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.batchUpdateStates", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "BatchUpdateSubscriptionOfferStatesResponse" + }, + "httpMethod": "POST", + "parameters": { + "basePlanId": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The parent base plan (ID) for which the offers should be updated. May be specified as '-' to update offers from multiple base plans." + }, + "packageName": { + "location": "path", + "required": true, + "description": "Required. The parent app (package name) of the updated subscription offers. Must be equal to the package_name field on all the updated SubscriptionOffer resources.", + "type": "string" + }, + "productId": { + "description": "Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to \"-\". Must be set.", + "type": "string", + "required": true, + "location": "path" + } + }, + "request": { + "$ref": "BatchUpdateSubscriptionOfferStatesRequest" + }, + "description": "Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.", + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates" + }, + "batchGet": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "BatchGetSubscriptionOffersRequest" + }, + "httpMethod": "POST", + "parameters": { + "productId": { + "description": "Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to \"-\". Must be set.", + "location": "path", + "type": "string", + "required": true + }, + "packageName": { + "location": "path", + "description": "Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the package_name field on all the requests.", + "type": "string", + "required": true + }, + "basePlanId": { + "type": "string", + "location": "path", + "description": "Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to read offers from multiple base plans.", + "required": true + } + }, + "response": { + "$ref": "BatchGetSubscriptionOffersResponse" + }, + "description": "Reads one or more subscription offers.", + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.batchGet" + }, + "activate": { + "response": { + "$ref": "SubscriptionOffer" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate", + "parameters": { + "offerId": { + "required": true, + "description": "Required. The unique offer ID of the offer to activate.", + "location": "path", + "type": "string" + }, + "packageName": { + "description": "Required. The parent app (package name) of the offer to activate.", + "location": "path", + "type": "string", + "required": true + }, + "basePlanId": { + "location": "path", + "required": true, + "description": "Required. The parent base plan (ID) of the offer to activate.", + "type": "string" + }, + "productId": { + "description": "Required. The parent subscription (ID) of the offer to activate.", + "type": "string", + "location": "path", + "required": true + } + }, + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.activate", + "description": "Activates a subscription offer. Once activated, subscription offers will be available to new subscribers.", + "request": { + "$ref": "ActivateSubscriptionOfferRequest" + }, + "httpMethod": "POST", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId", + "offerId" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate" + }, + "patch": { + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.patch", + "httpMethod": "PATCH", + "parameters": { + "offerId": { + "type": "string", + "description": "Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.", + "location": "path", + "required": true + }, + "packageName": { + "location": "path", + "description": "Required. Immutable. The package name of the app the parent subscription belongs to.", + "type": "string", + "required": true + }, + "basePlanId": { + "description": "Required. Immutable. The ID of the base plan to which this offer is an extension.", + "type": "string", + "required": true, + "location": "path" + }, + "regionsVersion.version": { + "description": "Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available.", + "location": "query", + "type": "string" + }, + "allowMissing": { + "type": "boolean", + "location": "query", + "description": "Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a new offer is created, update_mask is ignored." + }, + "productId": { + "required": true, + "description": "Required. Immutable. The ID of the parent subscription this offer belongs to.", + "location": "path", + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated.", + "format": "google-fieldmask", + "type": "string", + "location": "query" + }, + "latencyTolerance": { + "location": "query", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "type": "string" + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}", + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId", + "offerId" + ], + "response": { + "$ref": "SubscriptionOffer" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "SubscriptionOffer" + }, + "description": "Updates an existing subscription offer." + }, + "delete": { + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.delete", + "description": "Deletes a subscription offer. Can only be done for draft offers. This action is irreversible.", + "parameters": { + "offerId": { + "description": "Required. The unique offer ID of the offer to delete.", + "location": "path", + "required": true, + "type": "string" + }, + "productId": { + "required": true, + "type": "string", + "location": "path", + "description": "Required. The parent subscription (ID) of the offer to delete." + }, + "packageName": { + "type": "string", + "required": true, + "description": "Required. The parent app (package name) of the offer to delete.", + "location": "path" + }, + "basePlanId": { + "location": "path", + "required": true, + "description": "Required. The parent base plan (ID) of the offer to delete.", + "type": "string" + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId", + "offerId" + ], + "httpMethod": "DELETE", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}" + }, + "get": { + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}", + "response": { + "$ref": "SubscriptionOffer" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Reads a single offer", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId", + "offerId" + ], + "httpMethod": "GET", + "parameters": { + "productId": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The parent subscription (ID) of the offer to get." + }, + "offerId": { + "required": true, + "type": "string", + "location": "path", + "description": "Required. The unique offer ID of the offer to get." + }, + "basePlanId": { + "description": "Required. The parent base plan (ID) of the offer to get.", + "location": "path", + "type": "string", + "required": true + }, + "packageName": { + "description": "Required. The parent app (package name) of the offer to get.", + "type": "string", + "required": true, + "location": "path" + } + }, + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.get", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}" + }, + "deactivate": { + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate", + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "required": true, + "description": "Required. The parent app (package name) of the offer to deactivate." + }, + "productId": { + "location": "path", + "type": "string", + "required": true, + "description": "Required. The parent subscription (ID) of the offer to deactivate." + }, + "basePlanId": { + "type": "string", + "description": "Required. The parent base plan (ID) of the offer to deactivate.", + "location": "path", + "required": true + }, + "offerId": { + "description": "Required. The unique offer ID of the offer to deactivate.", + "location": "path", + "type": "string", + "required": true + } + }, + "description": "Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their subscription, but the offer will become unavailable to new subscribers.", + "request": { + "$ref": "DeactivateSubscriptionOfferRequest" + }, + "parameterOrder": [ + "packageName", + "productId", + "basePlanId", + "offerId" + ], + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.deactivate", + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "SubscriptionOffer" + } + }, + "create": { + "request": { + "$ref": "SubscriptionOffer" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The offer state will be DRAFT until it is activated.", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers", + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.create", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers", + "response": { + "$ref": "SubscriptionOffer" + }, + "parameters": { + "regionsVersion.version": { + "location": "query", + "type": "string", + "description": "Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available." + }, + "packageName": { + "type": "string", + "description": "Required. The parent app (package name) for which the offer should be created. Must be equal to the package_name field on the Subscription resource.", + "required": true, + "location": "path" + }, + "offerId": { + "description": "Required. The ID to use for the offer. For the requirements on this format, see the documentation of the offer_id field on the SubscriptionOffer resource.", + "location": "query", + "type": "string" + }, + "basePlanId": { + "required": true, + "type": "string", + "description": "Required. The parent base plan (ID) for which the offer should be created. Must be equal to the base_plan_id field on the SubscriptionOffer resource.", + "location": "path" + }, + "productId": { + "required": true, + "location": "path", + "description": "Required. The parent subscription (ID) for which the offer should be created. Must be equal to the product_id field on the SubscriptionOffer resource.", + "type": "string" + } + }, + "httpMethod": "POST" + }, + "list": { + "parameters": { + "productId": { + "location": "path", + "description": "Required. The parent subscription (ID) for which the offers should be read. May be specified as '-' to read all offers under an app.", + "required": true, + "type": "string" + }, + "pageSize": { + "location": "query", + "description": "The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "type": "integer", + "format": "int32" + }, + "basePlanId": { + "type": "string", + "description": "Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to read all offers under a subscription or an app. Must be specified as '-' if product_id is specified as '-'.", + "required": true, + "location": "path" + }, + "pageToken": { + "type": "string", + "description": "A page token, received from a previous `ListSubscriptionsOffers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscriptionOffers` must match the call that provided the page token.", + "location": "query" + }, + "packageName": { + "description": "Required. The parent app (package name) for which the subscriptions should be read.", + "type": "string", + "location": "path", + "required": true + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Lists all offers under a given subscription.", + "id": "androidpublisher.monetization.subscriptions.basePlans.offers.list", + "httpMethod": "GET", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers", + "response": { + "$ref": "ListSubscriptionOffersResponse" + } + } + } + } + }, + "methods": { + "deactivate": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate", + "id": "androidpublisher.monetization.subscriptions.basePlans.deactivate", + "request": { + "$ref": "DeactivateBasePlanRequest" + }, + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate", + "description": "Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription", + "httpMethod": "POST", + "response": { + "$ref": "Subscription" + }, + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "description": "Required. The parent app (package name) of the base plan to deactivate.", + "required": true + }, + "basePlanId": { + "description": "Required. The unique base plan ID of the base plan to deactivate.", + "required": true, + "location": "path", + "type": "string" + }, + "productId": { + "required": true, + "location": "path", + "description": "Required. The parent subscription (ID) of the base plan to deactivate.", + "type": "string" + } + } + }, + "activate": { + "id": "androidpublisher.monetization.subscriptions.basePlans.activate", + "httpMethod": "POST", + "parameters": { + "productId": { + "type": "string", + "description": "Required. The parent subscription (ID) of the base plan to activate.", + "required": true, + "location": "path" + }, + "basePlanId": { + "description": "Required. The unique base plan ID of the base plan to activate.", + "type": "string", + "location": "path", + "required": true + }, + "packageName": { + "location": "path", + "description": "Required. The parent app (package name) of the base plan to activate.", + "required": true, + "type": "string" + } + }, + "description": "Activates a base plan. Once activated, base plans will be available to new subscribers.", + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate", + "response": { + "$ref": "Subscription" + }, + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "ActivateBasePlanRequest" + }, + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate" + }, + "batchMigratePrices": { + "description": "Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.", + "request": { + "$ref": "BatchMigrateBasePlanPricesRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices", + "parameters": { + "productId": { + "type": "string", + "location": "path", + "required": true, + "description": "Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this batch update spans multiple subscriptions, set this field to \"-\". Must be set." + }, + "packageName": { + "description": "Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the package_name field on all the Subscription resources.", + "location": "path", + "required": true, + "type": "string" + } + }, + "response": { + "$ref": "BatchMigrateBasePlanPricesResponse" + }, + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices", + "httpMethod": "POST", + "id": "androidpublisher.monetization.subscriptions.basePlans.batchMigratePrices", + "parameterOrder": [ + "packageName", + "productId" + ] + }, + "migratePrices": { + "request": { + "$ref": "MigrateBasePlanPricesRequest" + }, + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices", + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "MigrateBasePlanPricesResponse" + }, + "id": "androidpublisher.monetization.subscriptions.basePlans.migratePrices", + "description": "Migrates subscribers from one or more legacy price cohorts to the current price. Requests result in Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts are supported.", + "parameters": { + "basePlanId": { + "location": "path", + "type": "string", + "description": "Required. The unique base plan ID of the base plan to update prices on.", + "required": true + }, + "packageName": { + "required": true, + "location": "path", + "description": "Required. Package name of the parent app. Must be equal to the package_name field on the Subscription resource.", + "type": "string" + }, + "productId": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The ID of the subscription to update. Must be equal to the product_id field on the Subscription resource." + } + }, + "httpMethod": "POST" + }, + "delete": { + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}", + "description": "Deletes a base plan. Can only be done for draft base plans. This action is irreversible.", + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "description": "Required. The parent app (package name) of the base plan to delete.", + "required": true + }, + "productId": { + "location": "path", + "required": true, + "type": "string", + "description": "Required. The parent subscription (ID) of the base plan to delete." + }, + "basePlanId": { + "required": true, + "description": "Required. The unique offer ID of the base plan to delete.", + "location": "path", + "type": "string" + } + }, + "parameterOrder": [ + "packageName", + "productId", + "basePlanId" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}", + "httpMethod": "DELETE", + "id": "androidpublisher.monetization.subscriptions.basePlans.delete" + }, + "batchUpdateStates": { + "parameterOrder": [ + "packageName", + "productId" + ], + "path": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates", + "httpMethod": "POST", + "description": "Activates or deactivates base plans across one or multiple subscriptions. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.", + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "description": "Required. The parent app (package name) of the updated base plans.", + "required": true + }, + "productId": { + "location": "path", + "description": "Required. The product ID of the parent subscription, if all updated base plans belong to the same subscription. If this batch update spans multiple subscriptions, set this field to \"-\". Must be set.", + "required": true, + "type": "string" + } + }, + "request": { + "$ref": "BatchUpdateBasePlanStatesRequest" + }, + "id": "androidpublisher.monetization.subscriptions.basePlans.batchUpdateStates", + "response": { + "$ref": "BatchUpdateBasePlanStatesResponse" + } + } + } + } + } + } + } + }, + "generatedapks": { + "methods": { + "list": { + "httpMethod": "GET", + "description": "Returns download metadata for all APKs that were generated from a given app bundle.", + "parameters": { + "versionCode": { + "location": "path", + "description": "Version code of the app bundle.", + "type": "integer", + "format": "int32", + "required": true + }, + "packageName": { + "type": "string", + "location": "path", + "description": "Package name of the app.", + "required": true + } + }, + "id": "androidpublisher.generatedapks.list", + "response": { + "$ref": "GeneratedApksListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}", + "path": "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}", + "parameterOrder": [ + "packageName", + "versionCode" + ] + }, + "download": { + "httpMethod": "GET", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "versionCode": { + "location": "path", + "description": "Version code of the app bundle.", + "format": "int32", + "required": true, + "type": "integer" + }, + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "Package name of the app." + }, + "downloadId": { + "description": "Download ID, which uniquely identifies the APK to download. Can be obtained from the response of `generatedapks.list` method.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download", + "parameterOrder": [ + "packageName", + "versionCode", + "downloadId" + ], + "supportsMediaDownload": true, + "useMediaDownloadService": true, + "id": "androidpublisher.generatedapks.download", + "flatPath": "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download", + "description": "Downloads a single signed APK generated from an app bundle." + } + } + }, + "appstoreappsreview": { + "methods": { + "uploadappstoreapppolicydeclarationfile": { + "flatPath": "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/policyDeclarationFiles:upload", + "parameterOrder": [ + "appStorePackageName", + "packageName" + ], + "id": "androidpublisher.appstoreappsreview.uploadappstoreapppolicydeclarationfile", + "supportsMediaUpload": true, + "description": "Upload a policy declaration file for the hosted app. Returns an ID to track the file.", + "parameters": { + "packageName": { + "description": "Required. Package name of the app.", + "required": true, + "location": "path", + "type": "string" + }, + "appStorePackageName": { + "location": "path", + "required": true, + "type": "string", + "description": "Required. Package name of the third-party app store." + } + }, + "request": { + "$ref": "UploadAppStoreAppPolicyDeclarationFileRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "POST", + "mediaUpload": { + "maxSize": "10485760", + "accept": [ + "application/pdf", + "image/jpeg", + "image/png" + ], + "protocols": { + "simple": { + "path": "/upload/androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/policyDeclarationFiles:upload", + "multipart": true + }, + "resumable": { + "path": "/resumable/upload/androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/policyDeclarationFiles:upload", + "multipart": true + } + } + }, + "response": { + "$ref": "UploadAppStoreAppPolicyDeclarationFileResponse" + }, + "path": "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/policyDeclarationFiles:upload" + }, + "createappstorehostedapp": { + "id": "androidpublisher.appstoreappsreview.createappstorehostedapp", + "response": { + "$ref": "CreateAppStoreHostedAppResponse" + }, + "description": "Creates an app store hosted app. This must be called before any other RPCs for this hosted app.", + "httpMethod": "POST", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "appStorePackageName" + ], + "path": "androidpublisher/v3/appstore/{appStorePackageName}/apps:create", + "flatPath": "androidpublisher/v3/appstore/{appStorePackageName}/apps:create", + "request": { + "$ref": "CreateAppStoreHostedAppRequest" + }, + "parameters": { + "appStorePackageName": { + "required": true, + "type": "string", + "location": "path", + "description": "Required. Package name of the third-party app store." + } + } + }, + "updateappstorehostedapp": { + "response": { + "$ref": "UpdateAppStoreHostedAppResponse" + }, + "httpMethod": "POST", + "parameters": { + "appStorePackageName": { + "required": true, + "description": "Required. Package name of the third-party app store.", + "location": "path", + "type": "string" + } + }, + "request": { + "$ref": "UpdateAppStoreHostedAppRequest" + }, + "description": "Updates details for an app hosted on an app store. Use this to provide details for a new app, or to update details for an existing app. The update will be sent for review immediately after creation.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/appstore/{appStorePackageName}/apps:update", + "id": "androidpublisher.appstoreappsreview.updateappstorehostedapp", + "parameterOrder": [ + "appStorePackageName" + ], + "flatPath": "androidpublisher/v3/appstore/{appStorePackageName}/apps:update" + }, + "uploadapk": { + "httpMethod": "POST", + "parameters": { + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "Required. Package name of the app." + }, + "appStorePackageName": { + "location": "path", + "required": true, + "type": "string", + "description": "Required. Package name of the third-party app store." + } + }, + "response": { + "$ref": "UploadApkResponse" + }, + "description": "Upload an APK file for the hosted app. Returns an ID to track this APK.", + "request": { + "$ref": "UploadApkRequest" + }, + "path": "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/apks:upload", + "supportsMediaUpload": true, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.appstoreappsreview.uploadapk", + "parameterOrder": [ + "appStorePackageName", + "packageName" + ], + "mediaUpload": { + "protocols": { + "simple": { + "multipart": true, + "path": "/upload/androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/apks:upload" + }, + "resumable": { + "multipart": true, + "path": "/resumable/upload/androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/apks:upload" + } + }, + "accept": [ + "application/octet-stream", + "application/vnd.android.package-archive" + ], + "maxSize": "10737418240" + }, + "flatPath": "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/apks:upload" + }, + "uploadimage": { + "parameterOrder": [ + "appStorePackageName", + "packageName" + ], + "id": "androidpublisher.appstoreappsreview.uploadimage", + "mediaUpload": { + "protocols": { + "simple": { + "path": "/upload/androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/images:upload", + "multipart": true + }, + "resumable": { + "multipart": true, + "path": "/resumable/upload/androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/images:upload" + } + }, + "maxSize": "15728640", + "accept": [ + "image/*" + ] + }, + "flatPath": "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/images:upload", + "response": { + "$ref": "UploadImageResponse" + }, + "path": "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}/images:upload", + "supportsMediaUpload": true, + "httpMethod": "POST", + "parameters": { + "appStorePackageName": { + "required": true, + "description": "Required. Package name of the third-party app store.", + "location": "path", + "type": "string" + }, + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "Required. Package name of the app." + } + }, + "description": "Upload a screenshot or app icon for the hosted app. Returns an ID to track the image.", + "request": { + "$ref": "UploadImageRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "updateappstorehostedapppublishstatus": { + "id": "androidpublisher.appstoreappsreview.updateappstorehostedapppublishstatus", + "description": "Updates the publish status of an app store hosted app. The default state after calling UpdateAppStoreHostedApp is PUBLISHED. It is not necessary to call this RPC explicitly to set an app to PUBLISHED.", + "parameters": { + "appStorePackageName": { + "type": "string", + "description": "Required. Package name of the third-party app store.", + "required": true, + "location": "path" + }, + "packageName": { + "description": "Required. Package name of the app.", + "location": "path", + "required": true, + "type": "string" + } + }, + "response": { + "$ref": "UpdateAppStoreHostedAppPublishStatusResponse" + }, + "httpMethod": "POST", + "request": { + "$ref": "UpdateAppStoreHostedAppPublishStatusRequest" + }, + "parameterOrder": [ + "appStorePackageName", + "packageName" + ], + "flatPath": "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}:updateAppStoreHostedAppPublishStatus", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/appstore/{appStorePackageName}/apps/{packageName}:updateAppStoreHostedAppPublishStatus" + } + } + }, + "edits": { + "methods": { + "delete": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}", + "parameterOrder": [ + "packageName", + "editId" + ], + "id": "androidpublisher.edits.delete", + "description": "Deletes an app edit.", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}", + "httpMethod": "DELETE", + "parameters": { + "packageName": { + "required": true, + "type": "string", + "description": "Package name of the app.", + "location": "path" + }, + "editId": { + "location": "path", + "description": "Identifier of the edit.", + "required": true, + "type": "string" + } + } + }, + "get": { + "response": { + "$ref": "AppEdit" + }, + "id": "androidpublisher.edits.get", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "packageName": { + "location": "path", + "description": "Package name of the app.", + "type": "string", + "required": true + }, + "editId": { + "type": "string", + "location": "path", + "required": true, + "description": "Identifier of the edit." + } + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}", + "description": "Gets an app edit.", + "parameterOrder": [ + "packageName", + "editId" + ], + "httpMethod": "GET" + }, + "commit": { + "parameterOrder": [ + "packageName", + "editId" + ], + "description": "Commits an app edit.", + "response": { + "$ref": "AppEdit" + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}:commit", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "POST", + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "required": true, + "description": "Package name of the app." + }, + "changesInReviewBehavior": { + "enum": [ + "CHANGES_IN_REVIEW_BEHAVIOR_TYPE_UNSPECIFIED", + "CANCEL_IN_REVIEW_AND_SUBMIT", + "ERROR_IF_IN_REVIEW" + ], + "description": "Optional. Specify how the API should behave if there are changes currently in review. If this value is not set, it will default to \"CANCEL_IN_REVIEW_AND_SUBMIT\", which will cancel the changes in review and then send all the changes for publishing.", + "location": "query", + "type": "string", + "enumDescriptions": [ + "Defaults to CANCEL_IN_REVIEW_AND_SUBMIT.", + "If there are changes already in review, then this will cancel that review first and then send all the changes for publishing.", + "If there are changes in review, then this will return an error. Please refer to the error message sample that is returned when this happens. Note that this won't invalidate the edit. If there aren't any changes in review, then this will continue and send the new changes for publishing." + ] + }, + "changesNotSentForReview": { + "description": "When a rejection happens, the parameter will make sure that the changes in this edit won't be reviewed until they are explicitly sent for review from within the Google Play Console UI. These changes will be added to any other changes that are not yet sent for review.", + "type": "boolean", + "location": "query" + }, + "editId": { + "description": "Identifier of the edit.", + "type": "string", + "required": true, + "location": "path" + } + }, + "id": "androidpublisher.edits.commit", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}:commit" + }, + "insert": { + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "description": "Package name of the app.", + "required": true + } + }, + "response": { + "$ref": "AppEdit" + }, + "id": "androidpublisher.edits.insert", + "httpMethod": "POST", + "description": "Creates a new edit for an app.", + "request": { + "$ref": "AppEdit" + }, + "parameterOrder": [ + "packageName" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/edits", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits" + }, + "validate": { + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}:validate", + "httpMethod": "POST", + "parameters": { + "packageName": { + "type": "string", + "description": "Package name of the app.", + "location": "path", + "required": true + }, + "editId": { + "description": "Identifier of the edit.", + "type": "string", + "location": "path", + "required": true + } + }, + "id": "androidpublisher.edits.validate", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}:validate", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "AppEdit" + }, + "description": "Validates an app edit.", + "parameterOrder": [ + "packageName", + "editId" + ] + } + }, + "resources": { + "images": { + "methods": { + "delete": { + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}", + "httpMethod": "DELETE", + "description": "Deletes the image (specified by id) from the edit.", + "parameters": { + "packageName": { + "required": true, + "location": "path", + "description": "Package name of the app.", + "type": "string" + }, + "imageType": { + "required": true, + "enumDescriptions": [ + "Unspecified type. Do not use.", + "Phone screenshot.", + "Seven inch screenshot.", + "Ten inch screenshot.", + "TV screenshot.", + "Wear screenshot.", + "Icon.", + "Feature graphic.", + "TV banner." + ], + "description": "Type of the Image.", + "enum": [ + "appImageTypeUnspecified", + "phoneScreenshots", + "sevenInchScreenshots", + "tenInchScreenshots", + "tvScreenshots", + "wearScreenshots", + "icon", + "featureGraphic", + "tvBanner" + ], + "type": "string", + "location": "path" + }, + "language": { + "type": "string", + "required": true, + "location": "path", + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German)." + }, + "editId": { + "type": "string", + "description": "Identifier of the edit.", + "required": true, + "location": "path" + }, + "imageId": { + "type": "string", + "location": "path", + "description": "Unique identifier an image within the set of images attached to this edit.", + "required": true + } + }, + "id": "androidpublisher.edits.images.delete", + "parameterOrder": [ + "packageName", + "editId", + "language", + "imageType", + "imageId" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "upload": { + "description": "Uploads an image of the specified language and image type, and adds to the edit.", + "response": { + "$ref": "ImagesUploadResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "editId", + "language", + "imageType" + ], + "mediaUpload": { + "accept": [ + "image/*" + ], + "protocols": { + "resumable": { + "path": "/resumable/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}", + "multipart": true + }, + "simple": { + "multipart": true, + "path": "/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}" + } + }, + "maxSize": "15728640" + }, + "parameters": { + "language": { + "required": true, + "type": "string", + "location": "path", + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German). Providing a language that is not supported by the App is a no-op." + }, + "imageType": { + "enumDescriptions": [ + "Unspecified type. Do not use.", + "Phone screenshot.", + "Seven inch screenshot.", + "Ten inch screenshot.", + "TV screenshot.", + "Wear screenshot.", + "Icon.", + "Feature graphic.", + "TV banner." + ], + "enum": [ + "appImageTypeUnspecified", + "phoneScreenshots", + "sevenInchScreenshots", + "tenInchScreenshots", + "tvScreenshots", + "wearScreenshots", + "icon", + "featureGraphic", + "tvBanner" + ], + "location": "path", + "description": "Type of the Image.", + "type": "string", + "required": true + }, + "packageName": { + "required": true, + "location": "path", + "description": "Package name of the app.", + "type": "string" + }, + "editId": { + "description": "Identifier of the edit.", + "required": true, + "type": "string", + "location": "path" + }, + "aiGeneratedState": { + "type": "string", + "enumDescriptions": [ + "Catch-all for unrecognized enum values. See go/protodosdonts.", + "The content is not generated by AI.", + "The content is generated by AI and attested by the developer." + ], + "location": "query", + "description": "Optional. Whether the image was generated by AI. Attested by the developer.", + "enum": [ + "aiGeneratedStateUnspecified", + "aiGeneratedStateNotAiGenerated", + "aiGeneratedStateAiGeneratedDeveloperAttested" + ] + } + }, + "httpMethod": "POST", + "id": "androidpublisher.edits.images.upload", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}", + "supportsMediaUpload": true, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}" + }, + "list": { + "parameterOrder": [ + "packageName", + "editId", + "language", + "imageType" + ], + "description": "Lists all images. The response may be empty.", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}", + "httpMethod": "GET", + "response": { + "$ref": "ImagesListResponse" + }, + "parameters": { + "packageName": { + "description": "Package name of the app.", + "location": "path", + "required": true, + "type": "string" + }, + "language": { + "type": "string", + "required": true, + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German). There must be a store listing for the specified language.", + "location": "path" + }, + "imageType": { + "enum": [ + "appImageTypeUnspecified", + "phoneScreenshots", + "sevenInchScreenshots", + "tenInchScreenshots", + "tvScreenshots", + "wearScreenshots", + "icon", + "featureGraphic", + "tvBanner" + ], + "enumDescriptions": [ + "Unspecified type. Do not use.", + "Phone screenshot.", + "Seven inch screenshot.", + "Ten inch screenshot.", + "TV screenshot.", + "Wear screenshot.", + "Icon.", + "Feature graphic.", + "TV banner." + ], + "location": "path", + "required": true, + "description": "Type of the Image. Providing an image type that refers to no images will return an empty response.", + "type": "string" + }, + "editId": { + "description": "Identifier of the edit.", + "location": "path", + "type": "string", + "required": true + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}", + "id": "androidpublisher.edits.images.list", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "deleteall": { + "response": { + "$ref": "ImagesDeleteAllResponse" + }, + "httpMethod": "DELETE", + "parameterOrder": [ + "packageName", + "editId", + "language", + "imageType" + ], + "parameters": { + "packageName": { + "required": true, + "location": "path", + "type": "string", + "description": "Package name of the app." + }, + "editId": { + "description": "Identifier of the edit.", + "required": true, + "location": "path", + "type": "string" + }, + "language": { + "location": "path", + "type": "string", + "required": true, + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German). Providing a language that is not supported by the App is a no-op." + }, + "imageType": { + "enumDescriptions": [ + "Unspecified type. Do not use.", + "Phone screenshot.", + "Seven inch screenshot.", + "Ten inch screenshot.", + "TV screenshot.", + "Wear screenshot.", + "Icon.", + "Feature graphic.", + "TV banner." + ], + "enum": [ + "appImageTypeUnspecified", + "phoneScreenshots", + "sevenInchScreenshots", + "tenInchScreenshots", + "tvScreenshots", + "wearScreenshots", + "icon", + "featureGraphic", + "tvBanner" + ], + "required": true, + "description": "Type of the Image. Providing an image type that refers to no images is a no-op.", + "type": "string", + "location": "path" + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Deletes all images for the specified language and image type. Returns an empty response if no images are found.", + "id": "androidpublisher.edits.images.deleteall", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}" + } + } + }, + "testers": { + "methods": { + "update": { + "response": { + "$ref": "Testers" + }, + "httpMethod": "PUT", + "parameterOrder": [ + "packageName", + "editId", + "track" + ], + "parameters": { + "track": { + "required": true, + "type": "string", + "description": "The track to update.", + "location": "path" + }, + "packageName": { + "required": true, + "description": "Package name of the app.", + "location": "path", + "type": "string" + }, + "editId": { + "description": "Identifier of the edit.", + "type": "string", + "location": "path", + "required": true + } + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}", + "id": "androidpublisher.edits.testers.update", + "request": { + "$ref": "Testers" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Updates testers. Note: Testers resource does not support email lists." + }, + "patch": { + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}", + "description": "Patches testers. Note: Testers resource does not support email lists.", + "parameters": { + "editId": { + "type": "string", + "required": true, + "description": "Identifier of the edit.", + "location": "path" + }, + "packageName": { + "required": true, + "location": "path", + "description": "Package name of the app.", + "type": "string" + }, + "track": { + "required": true, + "location": "path", + "type": "string", + "description": "The track to update." + } + }, + "httpMethod": "PATCH", + "id": "androidpublisher.edits.testers.patch", + "request": { + "$ref": "Testers" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}", + "parameterOrder": [ + "packageName", + "editId", + "track" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "Testers" + } + }, + "get": { + "id": "androidpublisher.edits.testers.get", + "parameterOrder": [ + "packageName", + "editId", + "track" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "Testers" + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}", + "description": "Gets testers. Note: Testers resource does not support email lists.", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}", + "httpMethod": "GET", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "required": true, + "type": "string", + "location": "path" + }, + "track": { + "type": "string", + "description": "The track to read from.", + "required": true, + "location": "path" + }, + "editId": { + "location": "path", + "description": "Identifier of the edit.", + "required": true, + "type": "string" + } + } + } + } + }, + "bundles": { + "methods": { + "list": { + "httpMethod": "GET", + "description": "Lists all current Android App Bundles of the app and edit.", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "location": "path", + "type": "string", + "required": true + }, + "editId": { + "required": true, + "type": "string", + "location": "path", + "description": "Identifier of the edit." + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles", + "parameterOrder": [ + "packageName", + "editId" + ], + "response": { + "$ref": "BundlesListResponse" + }, + "id": "androidpublisher.edits.bundles.list", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "upload": { + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles", + "parameterOrder": [ + "packageName", + "editId" + ], + "mediaUpload": { + "accept": [ + "application/octet-stream" + ], + "maxSize": "53687091200", + "protocols": { + "resumable": { + "multipart": true, + "path": "/resumable/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles" + }, + "simple": { + "path": "/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles", + "multipart": true + } + } + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles", + "id": "androidpublisher.edits.bundles.upload", + "httpMethod": "POST", + "parameters": { + "packageName": { + "location": "path", + "required": true, + "type": "string", + "description": "Package name of the app." + }, + "editId": { + "description": "Identifier of the edit.", + "type": "string", + "required": true, + "location": "path" + }, + "ackBundleInstallationWarning": { + "type": "boolean", + "deprecated": true, + "description": "Deprecated. The installation warning has been removed, it's not necessary to set this field anymore.", + "location": "query" + }, + "deviceTierConfigId": { + "type": "string", + "description": "Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of the DTC or \"LATEST\" for last uploaded DTC.", + "location": "query" + } + }, + "description": "Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example in java.", + "response": { + "$ref": "Bundle" + }, + "supportsMediaUpload": true, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + } + } + }, + "expansionfiles": { + "methods": { + "get": { + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}", + "id": "androidpublisher.edits.expansionfiles.get", + "description": "Fetches the expansion file configuration for the specified APK.", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}", + "response": { + "$ref": "ExpansionFile" + }, + "parameters": { + "apkVersionCode": { + "location": "path", + "type": "integer", + "description": "The version code of the APK whose expansion file configuration is being read or modified.", + "required": true, + "format": "int32" + }, + "expansionFileType": { + "description": "The file type of the file configuration which is being read or modified.", + "type": "string", + "location": "path", + "enumDescriptions": [ + "Unspecified expansion file type.", + "Main expansion file.", + "Patch expansion file." + ], + "enum": [ + "expansionFileTypeUnspecified", + "main", + "patch" + ], + "required": true + }, + "editId": { + "location": "path", + "description": "Identifier of the edit.", + "required": true, + "type": "string" + }, + "packageName": { + "description": "Package name of the app.", + "type": "string", + "location": "path", + "required": true + } + }, + "httpMethod": "GET", + "parameterOrder": [ + "packageName", + "editId", + "apkVersionCode", + "expansionFileType" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "upload": { + "parameters": { + "packageName": { + "description": "Package name of the app.", + "type": "string", + "location": "path", + "required": true + }, + "editId": { + "required": true, + "location": "path", + "type": "string", + "description": "Identifier of the edit." + }, + "apkVersionCode": { + "format": "int32", + "required": true, + "type": "integer", + "location": "path", + "description": "The version code of the APK whose expansion file configuration is being read or modified." + }, + "expansionFileType": { + "type": "string", + "enumDescriptions": [ + "Unspecified expansion file type.", + "Main expansion file.", + "Patch expansion file." + ], + "location": "path", + "enum": [ + "expansionFileTypeUnspecified", + "main", + "patch" + ], + "description": "The file type of the expansion file configuration which is being updated.", + "required": true + } + }, + "httpMethod": "POST", + "mediaUpload": { + "accept": [ + "application/octet-stream" + ], + "maxSize": "2147483648", + "protocols": { + "resumable": { + "path": "/resumable/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}", + "multipart": true + }, + "simple": { + "multipart": true, + "path": "/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}" + } + } + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.edits.expansionfiles.upload", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}", + "supportsMediaUpload": true, + "response": { + "$ref": "ExpansionFilesUploadResponse" + }, + "parameterOrder": [ + "packageName", + "editId", + "apkVersionCode", + "expansionFileType" + ], + "description": "Uploads a new expansion file and attaches to the specified APK." + }, + "update": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "PUT", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}", + "description": "Updates the APK's expansion file configuration to reference another APK's expansion file. To add a new expansion file use the Upload method.", + "parameters": { + "packageName": { + "type": "string", + "description": "Package name of the app.", + "location": "path", + "required": true + }, + "expansionFileType": { + "description": "The file type of the file configuration which is being read or modified.", + "location": "path", + "enum": [ + "expansionFileTypeUnspecified", + "main", + "patch" + ], + "required": true, + "type": "string", + "enumDescriptions": [ + "Unspecified expansion file type.", + "Main expansion file.", + "Patch expansion file." + ] + }, + "editId": { + "location": "path", + "required": true, + "description": "Identifier of the edit.", + "type": "string" + }, + "apkVersionCode": { + "required": true, + "location": "path", + "description": "The version code of the APK whose expansion file configuration is being read or modified.", + "type": "integer", + "format": "int32" + } + }, + "response": { + "$ref": "ExpansionFile" + }, + "id": "androidpublisher.edits.expansionfiles.update", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}", + "request": { + "$ref": "ExpansionFile" + }, + "parameterOrder": [ + "packageName", + "editId", + "apkVersionCode", + "expansionFileType" + ] + }, + "patch": { + "response": { + "$ref": "ExpansionFile" + }, + "parameters": { + "editId": { + "location": "path", + "required": true, + "type": "string", + "description": "Identifier of the edit." + }, + "apkVersionCode": { + "required": true, + "description": "The version code of the APK whose expansion file configuration is being read or modified.", + "location": "path", + "type": "integer", + "format": "int32" + }, + "expansionFileType": { + "description": "The file type of the expansion file configuration which is being updated.", + "enum": [ + "expansionFileTypeUnspecified", + "main", + "patch" + ], + "location": "path", + "enumDescriptions": [ + "Unspecified expansion file type.", + "Main expansion file.", + "Patch expansion file." + ], + "type": "string", + "required": true + }, + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "Package name of the app." + } + }, + "id": "androidpublisher.edits.expansionfiles.patch", + "request": { + "$ref": "ExpansionFile" + }, + "httpMethod": "PATCH", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Patches the APK's expansion file configuration to reference another APK's expansion file. To add a new expansion file use the Upload method.", + "parameterOrder": [ + "packageName", + "editId", + "apkVersionCode", + "expansionFileType" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}" + } + } + }, + "listings": { + "methods": { + "delete": { + "parameterOrder": [ + "packageName", + "editId", + "language" + ], + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}", + "id": "androidpublisher.edits.listings.delete", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "editId": { + "type": "string", + "description": "Identifier of the edit.", + "location": "path", + "required": true + }, + "packageName": { + "description": "Package name of the app.", + "location": "path", + "type": "string", + "required": true + }, + "language": { + "required": true, + "type": "string", + "location": "path", + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German)." + } + }, + "description": "Deletes a localized store listing.", + "httpMethod": "DELETE", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}" + }, + "patch": { + "parameterOrder": [ + "packageName", + "editId", + "language" + ], + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}", + "response": { + "$ref": "Listing" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}", + "request": { + "$ref": "Listing" + }, + "description": "Patches a localized store listing.", + "id": "androidpublisher.edits.listings.patch", + "httpMethod": "PATCH", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "language": { + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German).", + "required": true, + "type": "string", + "location": "path" + }, + "editId": { + "type": "string", + "description": "Identifier of the edit.", + "location": "path", + "required": true + }, + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "Package name of the app." + } + } + }, + "update": { + "description": "Creates or updates a localized store listing.", + "httpMethod": "PUT", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}", + "parameterOrder": [ + "packageName", + "editId", + "language" + ], + "response": { + "$ref": "Listing" + }, + "parameters": { + "editId": { + "description": "Identifier of the edit.", + "location": "path", + "type": "string", + "required": true + }, + "language": { + "required": true, + "location": "path", + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German).", + "type": "string" + }, + "packageName": { + "required": true, + "location": "path", + "description": "Package name of the app.", + "type": "string" + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.edits.listings.update", + "request": { + "$ref": "Listing" + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}" + }, + "get": { + "response": { + "$ref": "Listing" + }, + "description": "Gets a localized store listing.", + "parameterOrder": [ + "packageName", + "editId", + "language" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "packageName": { + "description": "Package name of the app.", + "type": "string", + "location": "path", + "required": true + }, + "language": { + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German).", + "type": "string", + "location": "path", + "required": true + }, + "editId": { + "type": "string", + "description": "Identifier of the edit.", + "location": "path", + "required": true + } + }, + "httpMethod": "GET", + "id": "androidpublisher.edits.listings.get", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}" + }, + "list": { + "id": "androidpublisher.edits.listings.list", + "httpMethod": "GET", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "required": true, + "location": "path", + "type": "string" + }, + "editId": { + "location": "path", + "required": true, + "description": "Identifier of the edit.", + "type": "string" + } + }, + "response": { + "$ref": "ListingsListResponse" + }, + "description": "Lists all localized store listings.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings", + "parameterOrder": [ + "packageName", + "editId" + ] + }, + "deleteall": { + "parameterOrder": [ + "packageName", + "editId" + ], + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings", + "id": "androidpublisher.edits.listings.deleteall", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "packageName": { + "required": true, + "location": "path", + "description": "Package name of the app.", + "type": "string" + }, + "editId": { + "description": "Identifier of the edit.", + "location": "path", + "type": "string", + "required": true + } + }, + "description": "Deletes all store listings.", + "httpMethod": "DELETE" + } + } + }, + "countryavailability": { + "methods": { + "get": { + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "type": "string", + "required": true, + "location": "path" + }, + "track": { + "required": true, + "location": "path", + "type": "string", + "description": "The track to read from." + }, + "editId": { + "description": "Identifier of the edit.", + "location": "path", + "required": true, + "type": "string" + } + }, + "response": { + "$ref": "TrackCountryAvailability" + }, + "httpMethod": "GET", + "description": "Gets country availability.", + "id": "androidpublisher.edits.countryavailability.get", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "editId", + "track" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}" + } + } + }, + "tracks": { + "methods": { + "create": { + "request": { + "$ref": "TrackConfig" + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks", + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks", + "parameters": { + "packageName": { + "description": "Required. Package name of the app.", + "type": "string", + "location": "path", + "required": true + }, + "editId": { + "description": "Required. Identifier of the edit.", + "required": true, + "type": "string", + "location": "path" + } + }, + "parameterOrder": [ + "packageName", + "editId" + ], + "description": "Creates a new track.", + "id": "androidpublisher.edits.tracks.create", + "response": { + "$ref": "Track" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "patch": { + "response": { + "$ref": "Track" + }, + "request": { + "$ref": "Track" + }, + "httpMethod": "PATCH", + "parameterOrder": [ + "packageName", + "editId", + "track" + ], + "description": "Patches a track.", + "parameters": { + "editId": { + "location": "path", + "required": true, + "type": "string", + "description": "Identifier of the edit." + }, + "track": { + "type": "string", + "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", + "required": true, + "location": "path" + }, + "packageName": { + "type": "string", + "description": "Package name of the app.", + "required": true, + "location": "path" + } + }, + "id": "androidpublisher.edits.tracks.patch", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}" + }, + "update": { + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}", + "response": { + "$ref": "Track" + }, + "httpMethod": "PUT", + "description": "Updates a track.", + "parameters": { + "editId": { + "location": "path", + "required": true, + "type": "string", + "description": "Identifier of the edit." + }, + "packageName": { + "location": "path", + "type": "string", + "description": "Package name of the app.", + "required": true + }, + "track": { + "required": true, + "location": "path", + "type": "string", + "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)" + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}", + "request": { + "$ref": "Track" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameterOrder": [ + "packageName", + "editId", + "track" + ], + "id": "androidpublisher.edits.tracks.update" + }, + "list": { + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks", + "parameters": { + "editId": { + "type": "string", + "location": "path", + "required": true, + "description": "Identifier of the edit." + }, + "packageName": { + "location": "path", + "required": true, + "description": "Package name of the app.", + "type": "string" + } + }, + "httpMethod": "GET", + "response": { + "$ref": "TracksListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.edits.tracks.list", + "parameterOrder": [ + "packageName", + "editId" + ], + "description": "Lists all tracks." + }, + "get": { + "parameterOrder": [ + "packageName", + "editId", + "track" + ], + "description": "Gets a track.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}", + "httpMethod": "GET", + "response": { + "$ref": "Track" + }, + "parameters": { + "track": { + "required": true, + "location": "path", + "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", + "type": "string" + }, + "editId": { + "description": "Identifier of the edit.", + "location": "path", + "required": true, + "type": "string" + }, + "packageName": { + "required": true, + "description": "Package name of the app.", + "type": "string", + "location": "path" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}", + "id": "androidpublisher.edits.tracks.get" + } + } + }, + "details": { + "methods": { + "patch": { + "response": { + "$ref": "AppDetails" + }, + "id": "androidpublisher.edits.details.patch", + "request": { + "$ref": "AppDetails" + }, + "parameterOrder": [ + "packageName", + "editId" + ], + "description": "Patches details of an app.", + "httpMethod": "PATCH", + "parameters": { + "editId": { + "type": "string", + "required": true, + "description": "Identifier of the edit.", + "location": "path" + }, + "packageName": { + "type": "string", + "location": "path", + "required": true, + "description": "Package name of the app." + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/details", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/details" + }, + "get": { + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/details", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/details", + "parameterOrder": [ + "packageName", + "editId" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "AppDetails" + }, + "parameters": { + "packageName": { + "type": "string", + "description": "Package name of the app.", + "location": "path", + "required": true + }, + "editId": { + "required": true, + "location": "path", + "description": "Identifier of the edit.", + "type": "string" + } + }, + "id": "androidpublisher.edits.details.get", + "httpMethod": "GET", + "description": "Gets details of an app." + }, + "update": { + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/details", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Updates details of an app.", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/details", + "parameters": { + "packageName": { + "location": "path", + "required": true, + "description": "Package name of the app.", + "type": "string" + }, + "editId": { + "type": "string", + "location": "path", + "description": "Identifier of the edit.", + "required": true + } + }, + "httpMethod": "PUT", + "id": "androidpublisher.edits.details.update", + "parameterOrder": [ + "packageName", + "editId" + ], + "request": { + "$ref": "AppDetails" + }, + "response": { + "$ref": "AppDetails" + } + } + } + }, + "deobfuscationfiles": { + "methods": { + "upload": { + "response": { + "$ref": "DeobfuscationFilesUploadResponse" + }, + "httpMethod": "POST", + "description": "Uploads a new deobfuscation file and attaches to the specified APK.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "editId": { + "description": "Unique identifier for this edit.", + "required": true, + "location": "path", + "type": "string" + }, + "apkVersionCode": { + "required": true, + "description": "The version code of the APK whose Deobfuscation File is being uploaded.", + "format": "int32", + "location": "path", + "type": "integer" + }, + "packageName": { + "description": "Unique identifier for the Android app.", + "location": "path", + "type": "string", + "required": true + }, + "deobfuscationFileType": { + "type": "string", + "location": "path", + "description": "The type of the deobfuscation file.", + "enumDescriptions": [ + "Unspecified deobfuscation file type.", + "Proguard deobfuscation file type.", + "Native debugging symbols file type." + ], + "enum": [ + "deobfuscationFileTypeUnspecified", + "proguard", + "nativeCode" + ], + "required": true + } + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}", + "id": "androidpublisher.edits.deobfuscationfiles.upload", + "supportsMediaUpload": true, + "mediaUpload": { + "maxSize": "2097152000", + "protocols": { + "simple": { + "multipart": true, + "path": "/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}" + }, + "resumable": { + "multipart": true, + "path": "/resumable/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}" + } + }, + "accept": [ + "application/octet-stream" + ] + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}", + "parameterOrder": [ + "packageName", + "editId", + "apkVersionCode", + "deobfuscationFileType" + ] + } + } + }, + "apks": { + "methods": { + "upload": { + "description": "Uploads an APK and adds to the current edit.", + "supportsMediaUpload": true, + "id": "androidpublisher.edits.apks.upload", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks", + "parameterOrder": [ + "packageName", + "editId" + ], + "response": { + "$ref": "Apk" + }, + "parameters": { + "packageName": { + "type": "string", + "location": "path", + "required": true, + "description": "Package name of the app." + }, + "editId": { + "type": "string", + "location": "path", + "description": "Identifier of the edit.", + "required": true + } + }, + "mediaUpload": { + "maxSize": "10737418240", + "protocols": { + "resumable": { + "path": "/resumable/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks", + "multipart": true + }, + "simple": { + "path": "/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks", + "multipart": true + } + }, + "accept": [ + "application/octet-stream", + "application/vnd.android.package-archive" + ] + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks", + "httpMethod": "POST", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "addexternallyhosted": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "packageName": { + "required": true, + "type": "string", + "description": "Package name of the app.", + "location": "path" + }, + "editId": { + "location": "path", + "type": "string", + "description": "Identifier of the edit.", + "required": true + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted", + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted", + "httpMethod": "POST", + "request": { + "$ref": "ApksAddExternallyHostedRequest" + }, + "response": { + "$ref": "ApksAddExternallyHostedResponse" + }, + "id": "androidpublisher.edits.apks.addexternallyhosted", + "description": "Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. This function is only available to organizations using Managed Play whose application is configured to restrict distribution to the organizations.", + "parameterOrder": [ + "packageName", + "editId" + ] + }, + "list": { + "description": "Lists all current APKs of the app and edit.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.edits.apks.list", + "response": { + "$ref": "ApksListResponse" + }, + "parameterOrder": [ + "packageName", + "editId" + ], + "httpMethod": "GET", + "flatPath": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks", + "parameters": { + "editId": { + "location": "path", + "required": true, + "description": "Identifier of the edit.", + "type": "string" + }, + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "Package name of the app." + } + }, + "path": "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks" + } + } + } + } + }, + "orders": { + "methods": { + "reviewrefund": { + "parameterOrder": [ + "packageName", + "orderId" + ], + "id": "androidpublisher.orders.reviewrefund", + "description": "Provide refund preference and purchase usage for a chargeback request", + "flatPath": "androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund", + "request": { + "$ref": "OrdersReviewRefundRequest" + }, + "httpMethod": "POST", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/orders/{orderId}:reviewrefund", + "parameters": { + "packageName": { + "description": "Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing').", + "type": "string", + "required": true, + "location": "path" + }, + "orderId": { + "description": "Required. The order ID provided to the user when the subscription or in-app order was purchased.", + "location": "path", + "type": "string", + "required": true + } + } + }, + "batchget": { + "httpMethod": "GET", + "id": "androidpublisher.orders.batchget", + "parameters": { + "packageName": { + "type": "string", + "description": "Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing').", + "location": "path", + "required": true + }, + "orderIds": { + "type": "string", + "repeated": true, + "description": "Required. The list of order IDs to retrieve order details for. There must be between 1 and 1000 (inclusive) order IDs per request. If any order ID is not found or does not match the provided package, the entire request will fail with an error. The order IDs must be distinct.", + "location": "query" + } + }, + "response": { + "$ref": "BatchGetOrdersResponse" + }, + "description": "Get order details for a list of orders.", + "flatPath": "androidpublisher/v3/applications/{packageName}/orders:batchGet", + "parameterOrder": [ + "packageName" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/orders:batchGet" + }, + "refund": { + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund", + "id": "androidpublisher.orders.refund", + "description": "Refunds a user's subscription or in-app purchase order. Orders older than 3 years cannot be refunded.", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "orderId": { + "description": "The order ID provided to the user when the subscription or in-app order was purchased.", + "required": true, + "type": "string", + "location": "path" + }, + "packageName": { + "required": true, + "type": "string", + "location": "path", + "description": "The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing')." + }, + "revoke": { + "description": "Whether to revoke the purchased item. If set to true, access to the subscription or in-app item will be terminated immediately. If the item is a recurring subscription, all future payments will also be terminated. Consumed in-app items need to be handled by developer's app. (optional).", + "location": "query", + "type": "boolean" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund", + "parameterOrder": [ + "packageName", + "orderId" + ] + }, + "get": { + "flatPath": "androidpublisher/v3/applications/{packageName}/orders/{orderId}", + "parameterOrder": [ + "packageName", + "orderId" + ], + "path": "androidpublisher/v3/applications/{packageName}/orders/{orderId}", + "description": "Get order details for a single order.", + "parameters": { + "packageName": { + "description": "Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing').", + "location": "path", + "required": true, + "type": "string" + }, + "orderId": { + "type": "string", + "location": "path", + "description": "Required. The order ID provided to the user when the subscription or in-app order was purchased.", + "required": true + } + }, + "id": "androidpublisher.orders.get", + "httpMethod": "GET", + "response": { + "$ref": "Order" + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + } + } + }, + "inappproducts": { + "methods": { + "update": { + "path": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", + "parameterOrder": [ + "packageName", + "sku" + ], + "response": { + "$ref": "InAppProduct" + }, + "description": "Updates an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "PUT", + "request": { + "$ref": "InAppProduct" + }, + "parameters": { + "latencyTolerance": { + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "location": "query", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ] + }, + "allowMissing": { + "description": "If set to true, and the in-app product with the given package_name and sku doesn't exist, the in-app product will be created.", + "type": "boolean", + "location": "query" + }, + "packageName": { + "required": true, + "location": "path", + "description": "Package name of the app.", + "type": "string" + }, + "autoConvertMissingPrices": { + "description": "If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false.", + "location": "query", + "type": "boolean" + }, + "sku": { + "type": "string", + "required": true, + "description": "Unique identifier for the in-app product.", + "location": "path" + } + }, + "id": "androidpublisher.inappproducts.update" + }, + "list": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken` will be set and the caller should provide its value as a `token` request parameter to retrieve the next page. This method should no longer be used to retrieve subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "httpMethod": "GET", + "id": "androidpublisher.inappproducts.list", + "parameters": { + "token": { + "location": "query", + "type": "string", + "description": "Pagination token. If empty, list starts at the first product." + }, + "packageName": { + "type": "string", + "required": true, + "description": "Package name of the app.", + "location": "path" + }, + "startIndex": { + "format": "uint32", + "deprecated": true, + "location": "query", + "type": "integer", + "description": "Deprecated and ignored. Set the `token` parameter to retrieve the next page." + }, + "maxResults": { + "format": "uint32", + "deprecated": true, + "type": "integer", + "location": "query", + "description": "Deprecated and ignored. The page size is determined by the server." + } + }, + "response": { + "$ref": "InappproductsListResponse" + }, + "parameterOrder": [ + "packageName" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts", + "path": "androidpublisher/v3/applications/{packageName}/inappproducts" + }, + "insert": { + "id": "androidpublisher.inappproducts.insert", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "description": "Creates an in-app product (a managed product or a subscription). This method should no longer be used to create subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "request": { + "$ref": "InAppProduct" + }, + "parameterOrder": [ + "packageName" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts", + "httpMethod": "POST", + "response": { + "$ref": "InAppProduct" + }, + "parameters": { + "autoConvertMissingPrices": { + "type": "boolean", + "location": "query", + "description": "If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false." + }, + "packageName": { + "required": true, + "location": "path", + "description": "Package name of the app.", + "type": "string" + } + }, + "path": "androidpublisher/v3/applications/{packageName}/inappproducts" + }, + "batchDelete": { + "description": "Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This method should not be used to delete subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "id": "androidpublisher.inappproducts.batchDelete", + "parameters": { + "packageName": { + "location": "path", + "type": "string", + "required": true, + "description": "Package name of the app." + } + }, + "parameterOrder": [ + "packageName" + ], + "path": "androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete", + "httpMethod": "POST", + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "request": { + "$ref": "InappproductsBatchDeleteRequest" + } + }, + "get": { + "path": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", + "description": "Gets an in-app product, which can be a managed product or a subscription. This method should no longer be used to retrieve subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "parameterOrder": [ + "packageName", + "sku" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.inappproducts.get", + "httpMethod": "GET", + "parameters": { + "sku": { + "description": "Unique identifier for the in-app product.", + "location": "path", + "type": "string", + "required": true + }, + "packageName": { + "description": "Package name of the app.", + "type": "string", + "location": "path", + "required": true + } + }, + "response": { + "$ref": "InAppProduct" + } + }, + "delete": { + "description": "Deletes an in-app product (a managed product or a subscription). This method should no longer be used to delete subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "path": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", + "id": "androidpublisher.inappproducts.delete", + "parameterOrder": [ + "packageName", + "sku" + ], + "httpMethod": "DELETE", + "parameters": { + "sku": { + "required": true, + "location": "path", + "type": "string", + "description": "Unique identifier for the in-app product." + }, + "packageName": { + "type": "string", + "description": "Package name of the app.", + "location": "path", + "required": true + }, + "latencyTolerance": { + "location": "query", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "type": "string", + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive." + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}" + }, + "batchGet": { + "httpMethod": "GET", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "type": "string", + "required": true, + "location": "path" + }, + "sku": { + "type": "string", + "location": "query", + "description": "Unique identifier for the in-app products.", + "repeated": true + } + }, + "id": "androidpublisher.inappproducts.batchGet", + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts:batchGet", + "description": "Reads multiple in-app products, which can be managed products or subscriptions. This method should not be used to retrieve subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "response": { + "$ref": "InappproductsBatchGetResponse" + }, + "parameterOrder": [ + "packageName" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/inappproducts:batchGet" + }, + "batchUpdate": { + "response": { + "$ref": "InappproductsBatchUpdateResponse" + }, + "request": { + "$ref": "InappproductsBatchUpdateRequest" + }, + "description": "Updates or inserts one or more in-app products (managed products or subscriptions). Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "parameterOrder": [ + "packageName" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "location": "path", + "required": true, + "type": "string" + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate", + "httpMethod": "POST", + "id": "androidpublisher.inappproducts.batchUpdate" + }, + "patch": { + "response": { + "$ref": "InAppProduct" + }, + "path": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}", + "request": { + "$ref": "InAppProduct" + }, + "id": "androidpublisher.inappproducts.patch", + "description": "Patches an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See [this article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html) for more information.", + "httpMethod": "PATCH", + "parameterOrder": [ + "packageName", + "sku" + ], + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "parameters": { + "autoConvertMissingPrices": { + "type": "boolean", + "location": "query", + "description": "If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false." + }, + "sku": { + "type": "string", + "required": true, + "description": "Unique identifier for the in-app product.", + "location": "path" + }, + "packageName": { + "description": "Package name of the app.", + "location": "path", + "required": true, + "type": "string" + }, + "latencyTolerance": { + "type": "string", + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "location": "query", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ] + } + }, + "flatPath": "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}" + } + } + }, + "systemapks": { + "resources": { + "variants": { + "methods": { + "get": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}", + "id": "androidpublisher.systemapks.variants.get", + "path": "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}", + "response": { + "$ref": "Variant" + }, + "description": "Returns a previously created system APK variant.", + "parameterOrder": [ + "packageName", + "versionCode", + "variantId" + ], + "parameters": { + "versionCode": { + "location": "path", + "format": "int64", + "required": true, + "type": "string", + "description": "The version code of the App Bundle." + }, + "packageName": { + "location": "path", + "required": true, + "description": "Package name of the app.", + "type": "string" + }, + "variantId": { + "required": true, + "description": "The ID of a previously created system APK variant.", + "format": "uint32", + "type": "integer", + "location": "path" + } + }, + "httpMethod": "GET" + }, + "list": { + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "SystemApksListResponse" + }, + "parameterOrder": [ + "packageName", + "versionCode" + ], + "description": "Returns the list of previously created system APK variants.", + "parameters": { + "packageName": { + "description": "Package name of the app.", + "type": "string", + "required": true, + "location": "path" + }, + "versionCode": { + "format": "int64", + "description": "The version code of the App Bundle.", + "location": "path", + "type": "string", + "required": true + } + }, + "id": "androidpublisher.systemapks.variants.list", + "httpMethod": "GET", + "flatPath": "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants", + "path": "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants" + }, + "download": { + "flatPath": "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download", + "supportsMediaDownload": true, + "id": "androidpublisher.systemapks.variants.download", + "path": "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download", + "parameterOrder": [ + "packageName", + "versionCode", + "variantId" + ], + "description": "Downloads a previously created system APK which is suitable for inclusion in a system image.", + "httpMethod": "GET", + "parameters": { + "packageName": { + "required": true, + "description": "Package name of the app.", + "location": "path", + "type": "string" + }, + "variantId": { + "required": true, + "format": "uint32", + "description": "The ID of a previously created system APK variant.", + "location": "path", + "type": "integer" + }, + "versionCode": { + "description": "The version code of the App Bundle.", + "format": "int64", + "type": "string", + "required": true, + "location": "path" + } + }, + "useMediaDownloadService": true, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "create": { + "httpMethod": "POST", + "response": { + "$ref": "Variant" + }, + "request": { + "$ref": "Variant" + }, + "parameters": { + "versionCode": { + "type": "string", + "required": true, + "description": "The version code of the App Bundle.", + "format": "int64", + "location": "path" + }, + "packageName": { + "type": "string", + "description": "Package name of the app.", + "location": "path", + "required": true + } + }, + "description": "Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App Bundle.", + "id": "androidpublisher.systemapks.variants.create", + "path": "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants", + "parameterOrder": [ + "packageName", + "versionCode" + ] + } + } + } + } + }, + "users": { + "methods": { + "delete": { + "flatPath": "androidpublisher/v3/developers/{developersId}/users/{usersId}", + "parameters": { + "name": { + "location": "path", + "description": "Required. The name of the user to delete. Format: developers/{developer}/users/{email}", + "type": "string", + "required": true, + "pattern": "^developers/[^/]+/users/[^/]+$" + } + }, + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "httpMethod": "DELETE", + "path": "androidpublisher/v3/{+name}", + "id": "androidpublisher.users.delete", + "parameterOrder": [ + "name" + ], + "description": "Removes all access for the user to the given developer account." + }, + "patch": { + "path": "androidpublisher/v3/{+name}", + "response": { + "$ref": "User" + }, + "description": "Updates access for the user to the developer account.", + "parameters": { + "name": { + "description": "Required. Resource name for this user, following the pattern \"developers/{developer}/users/{email}\".", + "location": "path", + "type": "string", + "pattern": "^developers/[^/]+/users/[^/]+$", + "required": true + }, + "updateMask": { + "type": "string", + "description": "Optional. The list of fields to be updated.", + "location": "query", + "format": "google-fieldmask" + } + }, + "parameterOrder": [ + "name" + ], + "flatPath": "androidpublisher/v3/developers/{developersId}/users/{usersId}", + "httpMethod": "PATCH", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "id": "androidpublisher.users.patch", + "request": { + "$ref": "User" + } + }, + "list": { + "httpMethod": "GET", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "response": { + "$ref": "ListUsersResponse" + }, + "parameters": { + "parent": { + "pattern": "^developers/[^/]+$", + "description": "Required. The developer account to fetch users from. Format: developers/{developer}", + "location": "path", + "type": "string", + "required": true + }, + "pageToken": { + "description": "A token received from a previous call to this method, in order to retrieve further results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. This must be set to -1 to disable pagination.", + "type": "integer", + "format": "int32", + "location": "query" + } + }, + "id": "androidpublisher.users.list", + "path": "androidpublisher/v3/{+parent}/users", + "parameterOrder": [ + "parent" + ], + "flatPath": "androidpublisher/v3/developers/{developersId}/users", + "description": "Lists all users with access to a developer account." + }, + "create": { + "parameterOrder": [ + "parent" + ], + "response": { + "$ref": "User" + }, + "request": { + "$ref": "User" + }, + "id": "androidpublisher.users.create", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "path": "androidpublisher/v3/{+parent}/users", + "description": "Grant access for a user to the given developer account.", + "httpMethod": "POST", + "parameters": { + "parent": { + "pattern": "^developers/[^/]+$", + "required": true, + "location": "path", + "description": "Required. The developer account to add the user to. Format: developers/{developer}", + "type": "string" + } + }, + "flatPath": "androidpublisher/v3/developers/{developersId}/users" + } + } + }, + "appsigning": { + "methods": { + "enrollApp": { + "description": "Enrolls an app in Play App Signing using a self-hosted Google Cloud KMS key. Warning: Do not use this method for standard Play App Signing enrollment. * Standard enrollment with Google-generated or Google-managed keys cannot be done via API. * This advanced API is strictly for enterprise organizations with mandatory compliance, regulatory, or policy requirements to retain key custody in an external Google Cloud KMS instance. * Prerequisites: Requires an active, properly configured Google Cloud KMS key with appropriate IAM permissions granted to Google Play before calling this method. See Help Center: https://support.google.com/googleplay/android-developer/answer/9842756", + "parameterOrder": [ + "name" + ], + "request": { + "$ref": "EnrollAppRequest" + }, + "flatPath": "androidpublisher/v3/applications/{name}/appSigning:enrollApp", + "id": "androidpublisher.appsigning.enrollApp", + "path": "androidpublisher/v3/applications/{name}/appSigning:enrollApp", + "response": { + "$ref": "EnrollAppResponse" + }, + "parameters": { + "name": { + "type": "string", + "location": "path", + "description": "Required. Either package name or app ID of the app enrolling in Play Signing.", + "required": true + } + }, + "httpMethod": "POST", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ] + }, + "rotateAppSigningKey": { + "parameters": { + "name": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. Either package name or app ID of the app rotating the signing key." + } + }, + "parameterOrder": [ + "name" + ], + "httpMethod": "POST", + "path": "androidpublisher/v3/applications/{name}/appSigning:rotateAppSigningKey", + "response": { + "$ref": "RotateAppSigningKeyResponse" + }, + "description": "Rotates an app's signing key to a new self-hosted Google Cloud KMS key. Warning: This method only applies to apps enrolled with self-hosted Cloud KMS keys. For apps using standard Google-managed Play App Signing, key rotation requests must be initiated through the Google Play Console UI. See Help Center: https://support.google.com/googleplay/android-developer/answer/9842756", + "scopes": [ + "https://www.googleapis.com/auth/androidpublisher" + ], + "flatPath": "androidpublisher/v3/applications/{name}/appSigning:rotateAppSigningKey", + "request": { + "$ref": "RotateAppSigningKeyRequest" + }, + "id": "androidpublisher.appsigning.rotateAppSigningKey" + } + } + } + }, + "schemas": { + "CatalogDeviceSelector": { + "properties": { + "socSelectors": { + "items": { + "$ref": "SocSelector" + }, + "type": "array", + "description": "The SOC selectors. A device matches the device selector if it matches any of the SOC selectors." + }, + "ramSelector": { + "$ref": "RamSelector", + "description": "Defines a RAM selector for a device." + }, + "deviceTypeSelector": { + "enum": [ + "DEVICE_TYPE_SELECTOR_UNSPECIFIED", + "ANDROID_GO" + ], + "enumDescriptions": [ + "Unspecified device type selector.", + "Android Go device type." + ], + "description": "The device type selector.", + "type": "string" + } + }, + "description": "Defines a device selector for a device. A device is considered matched if it matches any of given the selectors.", + "id": "CatalogDeviceSelector", + "type": "object" + }, + "BatchUpdateSubscriptionsRequest": { + "id": "BatchUpdateSubscriptionsRequest", + "type": "object", + "properties": { + "requests": { + "items": { + "$ref": "UpdateSubscriptionRequest" + }, + "description": "Required. A list of update requests of up to 100 elements. All requests must update different subscriptions.", + "type": "array" + } + }, + "description": "Request message for BatchUpdateSubscription." + }, + "RecentAppView": { + "type": "object", + "id": "RecentAppView", + "properties": { + "appView": { + "description": "Recently updated app view.", + "$ref": "CatalogAppView" + } + }, + "description": "Metadata about a recently updated app." + }, + "AssetSliceSet": { + "id": "AssetSliceSet", + "properties": { + "assetModuleMetadata": { + "description": "Module level metadata.", + "$ref": "AssetModuleMetadata" + }, + "apkDescription": { + "description": "Asset slices.", + "type": "array", + "items": { + "$ref": "ApkDescription" + } + } + }, + "type": "object", + "description": "Set of asset slices belonging to a single asset module." + }, + "OneTimeProductTaxAndComplianceSettings": { + "type": "object", + "description": "Details about taxation, Google Play policy and legal compliance for one-time products.", + "properties": { + "productTaxCategoryCode": { + "type": "string", + "description": "Product tax category code to assign to the one-time product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information." + }, + "isTokenizedDigitalAsset": { + "description": "Whether this one-time product is declared as a product representing a tokenized digital asset.", + "type": "boolean" + }, + "regionalTaxConfigs": { + "type": "array", + "description": "Regional tax configuration.", + "items": { + "$ref": "RegionalTaxConfig" + } + }, + "regionalProductAgeRatingInfos": { + "description": "Regional age rating information. Currently this field is only supported for region code `US`.", + "items": { + "$ref": "RegionalProductAgeRatingInfo" + }, + "type": "array" + } + }, + "id": "OneTimeProductTaxAndComplianceSettings" + }, + "ProrationPeriodOfferPhase": { + "type": "object", + "description": "Details about proration period offer phase.", + "id": "ProrationPeriodOfferPhase", + "properties": { + "originalOfferPhaseType": { + "enum": [ + "ORIGINAL_OFFER_PHASE_TYPE_UNSPECIFIED", + "BASE", + "INTRODUCTORY", + "FREE_TRIAL" + ], + "type": "string", + "enumDescriptions": [ + "Unspecified original offer phase type.", + "The subscription is in the base pricing phase (e.g. full price).", + "The subscription is in an introductory pricing phase.", + "The subscription is in a free trial." + ], + "description": "The original offer phase type before the proration period. Only set when the proration period is updated from an existing offer phase." + } + } + }, + "ConsumptionUsageEvent": { + "description": "List of events, each representing an instance where the user consumed or used the purchased item or service.", + "properties": { + "ipAddress": { + "type": "string", + "description": "Optional. The IP address from which the consumption occurred." + }, + "obfuscatedAccountId": { + "description": "Optional. Obfuscated string that is uniquely associated with the purchaser's user account in the app. https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setObfuscatedAccountId(java.lang.String)", + "type": "string" + }, + "consumptionTime": { + "format": "google-datetime", + "description": "Optional. Time when the user consumed, used, downloaded, opened, or streamed the content.", + "type": "string" + }, + "consumptionItemDescription": { + "type": "string", + "description": "Optional. Free form text that allows developers to provide more info on the item consumed. Maximum length is 5000 characters." + }, + "obfuscatedProfileId": { + "type": "string", + "description": "Optional. Obfuscated string that is uniquely associated with the purchaser's user profile in the app. https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setObfuscatedProfileId(java.lang.String)" + }, + "location": { + "description": "Optional. Geographic location where the consumption occurred.", + "$ref": "CoarseLocation" + } + }, + "id": "ConsumptionUsageEvent", + "type": "object" + }, + "OrdersReviewRefundRequest": { + "description": "Request for the orders.reviewrefund API.", + "type": "object", + "id": "OrdersReviewRefundRequest", + "properties": { + "consumptionPercentageMilliunits": { + "type": "integer", + "description": "Optional. Percentage of the In-App purchase the customer consumed, in milliunits. Minimum: 0 Maximum: 100,000. For paid apps, this can be omitted. Example : 45200 represents 45.2%.", + "format": "int32" + }, + "sampleContentProvided": { + "description": "Required. Indicates whether you provided a free sample, trial, or information about the functionality prior to the purchase.", + "type": "boolean" + }, + "refundPreference": { + "type": "string", + "enumDescriptions": [ + "Refund preference unspecified. This value is not used.", + "Developer prefers that Play declines the refund.", + "Developer prefers that Play grants the refund in full.", + "Developer has no preference about Google Play's decision to issue a refund" + ], + "enum": [ + "REFUND_PREFERENCE_UNSPECIFIED", + "DECLINE", + "APPROVE", + "NEUTRAL" + ], + "description": "Required. Indicates your preference, based on your operational logic, as to whether the Play Store should grant the refund." + }, + "pendingRefundToken": { + "description": "Required. The pending refund token included in the pending refund review notification.", + "type": "string" + }, + "consumptionUsageEvents": { + "type": "array", + "description": "Optional. List of events, each representing an instance where the user consumed or used the purchased item or service. Lists with over 1000 items will be rejected.", + "items": { + "$ref": "ConsumptionUsageEvent" + } + } + } + }, + "SystemFeature": { + "properties": { + "name": { + "description": "The name of the feature.", + "type": "string" + } + }, + "type": "object", + "description": "Representation of a system feature.", + "id": "SystemFeature" + }, + "AppVersionList": { + "description": "Data format for a list of app versions.", + "type": "object", + "id": "AppVersionList", + "properties": { + "versionCodes": { + "type": "array", + "items": { + "format": "int64", + "type": "string" + }, + "description": "List of app version codes." + } + } + }, + "PrepaidPlan": { + "properties": { + "allowExtendAfterTime": { + "description": "If present, this is the time after which top up purchases are allowed for the prepaid plan. Will not be present for expired prepaid plans.", + "type": "string", + "format": "google-datetime" + } + }, + "type": "object", + "description": "Information related to a prepaid plan.", + "id": "PrepaidPlan" + }, + "RemoteInAppUpdateDataPerBundle": { + "type": "object", + "properties": { + "totalDeviceCount": { + "type": "string", + "format": "int64", + "description": "Total number of devices affected by this recovery action associated with bundle of the app." + }, + "versionCode": { + "description": "Version Code corresponding to the target bundle.", + "type": "string", + "format": "int64" + }, + "recoveredDeviceCount": { + "format": "int64", + "type": "string", + "description": "Total number of devices which have been rescued." + } + }, + "id": "RemoteInAppUpdateDataPerBundle", + "description": "Data related to the recovery action at bundle level." + }, + "Timestamp": { + "id": "Timestamp", + "description": "A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970.", + "type": "object", + "properties": { + "seconds": { + "description": "Represents seconds of UTC time since Unix epoch.", + "type": "string", + "format": "int64" + }, + "nanos": { + "description": "Non-negative fractions of a second at nanosecond resolution. Must be from 0 to 999,999,999 inclusive.", + "type": "integer", + "format": "int32" + } + } + }, + "DeactivateBasePlanRequest": { + "type": "object", + "id": "DeactivateBasePlanRequest", + "description": "Request message for DeactivateBasePlan.", + "properties": { + "packageName": { + "description": "Required. The parent app (package name) of the base plan to deactivate.", + "type": "string" + }, + "basePlanId": { + "description": "Required. The unique base plan ID of the base plan to deactivate.", + "type": "string" + }, + "productId": { + "description": "Required. The parent subscription (ID) of the base plan to deactivate.", + "type": "string" + }, + "latencyTolerance": { + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive." + } + } + }, + "AssetModuleMetadata": { + "id": "AssetModuleMetadata", + "properties": { + "name": { + "type": "string", + "description": "Module name." + }, + "deliveryType": { + "enum": [ + "UNKNOWN_DELIVERY_TYPE", + "INSTALL_TIME", + "ON_DEMAND", + "FAST_FOLLOW" + ], + "enumDescriptions": [ + "Unspecified delivery type.", + "This module will always be downloaded as part of the initial install of the app.", + "This module is requested on-demand, which means it will not be part of the initial install, and will only be sent when requested by the client.", + "This module will be downloaded immediately after initial install finishes. The app can be opened before these modules are downloaded." + ], + "type": "string", + "description": "Indicates the delivery type for persistent install." + } + }, + "description": "Metadata of an asset module.", + "type": "object" + }, + "DeviceIdentifier": { + "type": "object", + "description": "Defines a device identifier for a device.", + "properties": { + "deviceBrand": { + "type": "string", + "description": "The brand of the device." + }, + "deviceModel": { + "type": "string", + "description": "The model of the device." + } + }, + "id": "DeviceIdentifier" + }, + "DeployAppRecoveryResponse": { + "type": "object", + "id": "DeployAppRecoveryResponse", + "properties": {}, + "description": "Response message for DeployAppRecovery." + }, + "OneTimeProductOffer": { + "type": "object", + "description": "A single offer for a one-time product.", + "properties": { + "purchaseOptionId": { + "description": "Required. Immutable. The ID of the purchase option to which this offer is an extension.", + "type": "string" + }, + "state": { + "readOnly": true, + "description": "Output only. The current state of this offer. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.", + "enumDescriptions": [ + "Default value, should never be used.", + "The offer is not and has never been available to users.", + "The offer is available to users, as long as its conditions are met.", + "This state is specific to pre-orders. The offer is cancelled and not available to users. All pending orders related to this offer were cancelled.", + "This state is specific to discounted offers. The offer is no longer available to users." + ], + "enum": [ + "STATE_UNSPECIFIED", + "DRAFT", + "ACTIVE", + "CANCELLED", + "INACTIVE" + ], + "type": "string" + }, + "offerId": { + "type": "string", + "description": "Required. Immutable. The ID of this product offer. Must be unique within the purchase option. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters." + }, + "packageName": { + "type": "string", + "description": "Required. Immutable. The package name of the app the parent product belongs to." + }, + "regionalPricingAndAvailabilityConfigs": { + "items": { + "$ref": "OneTimeProductOfferRegionalPricingAndAvailabilityConfig" + }, + "type": "array", + "description": "Set of regional pricing and availability information for this offer. Must not have duplicate entries with the same region_code." + }, + "gameRewardOffer": { + "$ref": "OneTimeProductGameRewardOffer", + "description": "A game reward offer." + }, + "productId": { + "type": "string", + "description": "Required. Immutable. The ID of the parent product this offer belongs to." + }, + "preOrderOffer": { + "$ref": "OneTimeProductPreOrderOffer", + "description": "A pre-order offer." + }, + "offerTags": { + "items": { + "$ref": "OfferTag" + }, + "description": "Optional. List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.", + "type": "array" + }, + "discountedOffer": { + "description": "A discounted offer.", + "$ref": "OneTimeProductDiscountedOffer" + }, + "regionsVersion": { + "readOnly": true, + "$ref": "RegionsVersion", + "description": "Output only. The version of the regions configuration that was used to generate the one-time product offer." + } + }, + "id": "OneTimeProductOffer" + }, + "CatalogPermission": { + "id": "CatalogPermission", + "properties": { + "name": { + "description": "The `name` attribute indicating the permission name.", + "type": "string" + }, + "maxSdkVersion": { + "format": "int32", + "type": "integer", + "description": "The `maxSdkVersion` attribute indicating up to which Android SDK version the permission is requested." + } + }, + "description": "A permission declared by an app.", + "type": "object" + }, + "EnrollExistingApp": { + "description": "Enroll an existing app into Play signing.", + "properties": { + "cloudKmsKey": { + "description": "Required. Self-hosted key. Once enrolled, this key will be used to sign your app.", + "$ref": "CloudKmsKey" + } + }, + "id": "EnrollExistingApp", + "type": "object" + }, + "DeferredItemRemoval": { + "id": "DeferredItemRemoval", + "type": "object", + "properties": {}, + "description": "Information related to deferred item replacement." + }, + "UploadImageRequest": { + "id": "UploadImageRequest", + "description": "Request to upload an image.", + "properties": {}, + "type": "object" + }, + "DeviceTierSet": { + "type": "object", + "id": "DeviceTierSet", + "description": "A set of device tiers. A tier set determines what variation of app content gets served to a specific device, for device-targeted content. You should assign a priority level to each tier, which determines the ordering by which they are evaluated by Play. See the documentation of DeviceTier.level for more details.", + "properties": { + "deviceTiers": { + "items": { + "$ref": "DeviceTier" + }, + "description": "Device tiers belonging to the set.", + "type": "array" + } + } + }, + "DeveloperComment": { + "description": "Developer entry from conversation between user and developer.", + "properties": { + "lastModified": { + "description": "The last time at which this comment was updated.", + "$ref": "Timestamp" + }, + "text": { + "type": "string", + "description": "The content of the comment, i.e. reply body." + } + }, + "type": "object", + "id": "DeveloperComment" + }, + "TargetingUpdate": { + "id": "TargetingUpdate", + "type": "object", + "properties": { + "androidSdks": { + "description": "Additional android sdk levels are targeted by the recovery action.", + "$ref": "AndroidSdks" + }, + "allUsers": { + "description": "All users are targeted.", + "$ref": "AllUsers" + }, + "regions": { + "$ref": "Regions", + "description": "Additional regions are targeted by the recovery action." + } + }, + "description": "Update type for targeting. Note it is always a subset Targeting." + }, + "MultiAbiTargeting": { + "properties": { + "alternatives": { + "items": { + "$ref": "MultiAbi" + }, + "type": "array", + "description": "Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other main splits." + }, + "value": { + "description": "Value of a multi abi.", + "items": { + "$ref": "MultiAbi" + }, + "type": "array" + } + }, + "id": "MultiAbiTargeting", + "description": "Targeting based on multiple abis.", + "type": "object" + }, + "GeneratedRecoveryApk": { + "id": "GeneratedRecoveryApk", + "type": "object", + "properties": { + "recoveryId": { + "format": "int64", + "type": "string", + "description": "ID of the recovery action." + }, + "recoveryStatus": { + "description": "The status of the recovery action corresponding to the recovery apk.", + "enum": [ + "RECOVERY_STATUS_UNSPECIFIED", + "RECOVERY_STATUS_ACTIVE", + "RECOVERY_STATUS_CANCELED", + "RECOVERY_STATUS_DRAFT", + "RECOVERY_STATUS_GENERATION_IN_PROGRESS", + "RECOVERY_STATUS_GENERATION_FAILED" + ], + "enumDescriptions": [ + "RecoveryStatus is unspecified.", + "The app recovery action has not been canceled since it has been created.", + "The recovery action has been canceled. The action cannot be resumed.", + "The recovery action is in the draft state and has not yet been deployed to users.", + "The recovery action is generating recovery apks.", + "The app recovery action generation has failed." + ], + "type": "string" + }, + "downloadId": { + "type": "string", + "description": "Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method." + }, + "moduleName": { + "type": "string", + "description": "Name of the module which recovery apk belongs to." + } + }, + "description": "Download metadata for an app recovery module." + }, + "BatchUpdateOneTimeProductOffersResponse": { + "type": "object", + "properties": { + "oneTimeProductOffers": { + "description": "The list of updated one-time product offers, in the same order as the request.", + "items": { + "$ref": "OneTimeProductOffer" + }, + "type": "array" + } + }, + "id": "BatchUpdateOneTimeProductOffersResponse", + "description": "Response message for BatchUpdateOneTimeProductOffers." + }, + "CreateDraftAppRecoveryRequest": { + "type": "object", + "id": "CreateDraftAppRecoveryRequest", + "properties": { + "targeting": { + "$ref": "Targeting", + "description": "Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc." + }, + "remoteInAppUpdate": { + "description": "Action type is remote in-app update. As a consequence of this action, a downloadable recovery module is also created for testing purposes.", + "$ref": "RemoteInAppUpdate" + } + }, + "description": "Request message for CreateDraftAppRecovery." + }, + "Review": { + "id": "Review", + "description": "An Android app review.", + "properties": { + "reviewId": { + "description": "Unique identifier for this review.", + "type": "string" + }, + "authorName": { + "description": "The name of the user who wrote the review.", + "type": "string" + }, + "comments": { + "type": "array", + "description": "A repeated field containing comments for the review.", + "items": { + "$ref": "Comment" + } + } + }, + "type": "object" + }, + "SubscriptionPurchaseLineItem": { + "id": "SubscriptionPurchaseLineItem", + "description": "Item-level info for a subscription purchase.", + "type": "object", + "properties": { + "signupPromotion": { + "$ref": "SignupPromotion", + "description": "Promotion details about this item. Only set if a promotion was applied during signup." + }, + "offerPhase": { + "description": "Current offer phase details for this item.", + "$ref": "OfferPhase" + }, + "productId": { + "description": "The purchased product ID (for example, 'monthly001').", + "type": "string" + }, + "expiryTime": { + "description": "Time at which the subscription expired or will expire unless the access is extended (ex. renews).", + "format": "google-datetime", + "type": "string" + }, + "prepaidPlan": { + "$ref": "PrepaidPlan", + "description": "The item is prepaid." + }, + "offerDetails": { + "$ref": "OfferDetails", + "description": "The offer details for this item." + }, + "deferredItemReplacement": { + "$ref": "DeferredItemReplacement", + "description": "Information for deferred item replacement." + }, + "deferredItemRemoval": { + "description": "Information for deferred item removal.", + "$ref": "DeferredItemRemoval" + }, + "latestSuccessfulOrderId": { + "type": "string", + "description": "The order id of the latest successful order associated with this item. Not present if the item is not owned by the user yet (e.g. the item being deferred replaced to)." + }, + "autoRenewingPlan": { + "description": "The item is auto renewing.", + "$ref": "AutoRenewingPlan" + }, + "itemReplacement": { + "description": "Details of the item being replaced. This field is only populated if this item replaced another item in a previous subscription and is only available for 60 days after the purchase time.", + "$ref": "ItemReplacement" + } + } + }, + "CancellationContext": { + "id": "CancellationContext", + "type": "object", + "description": "Cancellation context of the purchases.subscriptionsv2.cancel API.", + "properties": { + "cancellationType": { + "type": "string", + "description": "Required. The type of cancellation for the purchased subscription.", + "enum": [ + "CANCELLATION_TYPE_UNSPECIFIED", + "USER_REQUESTED_STOP_RENEWALS", + "DEVELOPER_REQUESTED_STOP_PAYMENTS" + ], + "enumDescriptions": [ + "Cancellation type unspecified.", + "Cancellation requested by the user, and the subscription can be restored. It only stops the subscription's next renewal. For an installment subscription, users still need to finish the commitment period. For more details on renewals and payments, see https://developer.android.com/google/play/billing/subscriptions#installments", + "Cancellation requested by the developer, and the subscription cannot be restored. It stops the subscription's next payment. For an installment subscription, users will not need to pay the next payment and finish the commitment period. For more details on renewals and payments, see https://developer.android.com/google/play/billing/subscriptions#installments" + ] + } + } + }, + "EnrollAppResponse": { + "description": "Response to enroll an app into Play signing.", + "properties": { + "uploadCertificate": { + "description": "The upload certificate hashes for the app. Set iff pem_upload_certificate was set in the request.", + "$ref": "CertificateHashes" + }, + "signingCertificate": { + "$ref": "CertificateHashes", + "description": "The signing certificate hashes for the app. Always set." + } + }, + "type": "object", + "id": "EnrollAppResponse" + }, + "LocalizedText": { + "properties": { + "text": { + "description": "The text in the given language.", + "type": "string" + }, + "language": { + "type": "string", + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German)." + } + }, + "id": "LocalizedText", + "description": "Localized text in given language.", + "type": "object" + }, + "BatchGetSubscriptionsResponse": { + "id": "BatchGetSubscriptionsResponse", + "description": "Response message for BatchGetSubscriptions endpoint.", + "properties": { + "subscriptions": { + "type": "array", + "description": "The list of requested subscriptions, in the same order as the request.", + "items": { + "$ref": "Subscription" + } + } + }, + "type": "object" + }, + "OtherRegionsSubscriptionOfferPhaseFreePriceOverride": { + "type": "object", + "id": "OtherRegionsSubscriptionOfferPhaseFreePriceOverride", + "properties": {}, + "description": "Represents the free price override configuration for any new locations Play may launch for a single offer phase." + }, + "ApksAddExternallyHostedResponse": { + "type": "object", + "properties": { + "externallyHostedApk": { + "$ref": "ExternallyHostedApk", + "description": "The definition of the externally-hosted APK and where it is located." + } + }, + "description": "Response for creating a new externally hosted APK.", + "id": "ApksAddExternallyHostedResponse" + }, + "UsesConfiguration": { + "description": "Represents all configurations marked as required by use of the uses-configuration manifest tag.", + "properties": { + "requiresHardwareKeyboard": { + "description": "Whether or not the application requires a hardware keyboard.", + "type": "boolean" + }, + "requiredKeyboardType": { + "enumDescriptions": [ + "Unspecified keyboard type.", + "Undefined keyboard type.", + "No keys keyboard.", + "Qwerty keyboard.", + "Twelve key keyboard." + ], + "enum": [ + "KEYBOARD_TYPE_UNSPECIFIED", + "KEYBOARD_TYPE_UNDEFINED", + "KEYBOARD_TYPE_NO_KEYS", + "KEYBOARD_TYPE_QWERTY", + "KEYBOARD_TYPE_TWELVE_KEY" + ], + "type": "string", + "description": "The type of keyboard required." + }, + "requiresFiveWayNavigation": { + "description": "Whether or not the application requires a five-way navigation control.", + "type": "boolean" + }, + "requiredNavigationType": { + "enum": [ + "NAVIGATION_TYPE_UNSPECIFIED", + "NAVIGATION_TYPE_UNDEFINED", + "NAVIGATION_TYPE_NO_NAVIGATION", + "NAVIGATION_TYPE_DPAD", + "NAVIGATION_TYPE_TRACKBALL", + "NAVIGATION_TYPE_WHEEL" + ], + "description": "The navigation device required.", + "enumDescriptions": [ + "Unspecified navigation type.", + "Undefined navigation type.", + "No navigation.", + "Dpad navigation.", + "Trackball navigation.", + "Wheel navigation." + ], + "type": "string" + }, + "requiredTouchscreenType": { + "description": "The type of touchscreen required.", + "enumDescriptions": [ + "Unspecified touchscreen type.", + "Undefined touchscreen type.", + "No touchscreen.", + "Stylus touchscreen.", + "Finger touchscreen." + ], + "enum": [ + "TOUCHSCREEN_TYPE_UNSPECIFIED", + "TOUCHSCREEN_TYPE_UNDEFINED", + "TOUCHSCREEN_TYPE_NO_TOUCHSCREEN", + "TOUCHSCREEN_TYPE_STYLUS", + "TOUCHSCREEN_TYPE_FINGER" + ], + "type": "string" + } + }, + "type": "object", + "id": "UsesConfiguration" + }, + "UploadApkResponse": { + "id": "UploadApkResponse", + "properties": { + "apkId": { + "type": "string", + "description": "The unique ID of the uploaded APK." + } + }, + "description": "Response for uploading an APK.", + "type": "object" + }, + "CreateAppStoreHostedAppResponse": { + "properties": {}, + "id": "CreateAppStoreHostedAppResponse", + "description": "Response for creating a new app record for an app store hosted app.", + "type": "object" + }, + "ApkDescription": { + "id": "ApkDescription", + "properties": { + "splitApkMetadata": { + "$ref": "SplitApkMetadata", + "description": "Set only for Split APKs." + }, + "instantApkMetadata": { + "$ref": "SplitApkMetadata", + "description": "Set only for Instant split APKs." + }, + "path": { + "description": "Path of the Apk, will be in the following format: .apk where DownloadId is the ID used to download the apk using GeneratedApks.Download API.", + "type": "string" + }, + "standaloneApkMetadata": { + "description": "Set only for standalone APKs.", + "$ref": "StandaloneApkMetadata" + }, + "targeting": { + "description": "Apk-level targeting.", + "$ref": "ApkTargeting" + }, + "assetSliceMetadata": { + "$ref": "SplitApkMetadata", + "description": "Set only for asset slices." + } + }, + "description": "Description of the created apks.", + "type": "object" + }, + "TokenPagination": { + "properties": { + "nextPageToken": { + "type": "string", + "description": "Tokens to pass to the standard list field 'page_token'. Whenever available, tokens are preferred over manipulating start_index." + }, + "previousPageToken": { + "type": "string" + } + }, + "id": "TokenPagination", + "description": "Pagination information returned by a List operation when token pagination is enabled. List operations that supports paging return only one \"page\" of results. This protocol buffer message describes the page that has been returned. When using token pagination, clients should use the next/previous token to get another page of the result. The presence or absence of next/previous token indicates whether a next/previous page is available and provides a mean of accessing this page. ListRequest.page_token should be set to either next_page_token or previous_page_token to access another page.", + "type": "object" + }, + "AppStoreAppPolicyDeclaration": { + "type": "object", + "properties": { + "declarationId": { + "description": "Required. ID of the policy declaration.", + "type": "string" + }, + "responses": { + "type": "array", + "items": { + "$ref": "PolicyResponse" + }, + "description": "Required. Responses provided for this declaration." + } + }, + "description": "A policy declaration with its responses.", + "id": "AppStoreAppPolicyDeclaration" + }, + "TrackCountryAvailability": { + "properties": { + "countries": { + "type": "array", + "items": { + "$ref": "TrackTargetedCountry" + }, + "description": "A list of one or more countries where artifacts in this track are available. This list includes all countries that are targeted by the track, even if only specific carriers are targeted in that country." + }, + "syncWithProduction": { + "description": "Whether this track's availability is synced with the default production track. See https://support.google.com/googleplay/android-developer/answer/7550024 for more information on syncing country availability with production. Note that if this is true, the returned \"countries\" and \"rest_of_world\" fields will reflect the values for the default production track.", + "type": "boolean" + }, + "restOfWorld": { + "type": "boolean", + "description": "Whether artifacts in this track are available to \"rest of the world\" countries." + } + }, + "id": "TrackCountryAvailability", + "type": "object", + "description": "Resource for per-track country availability information." + }, + "RotateAppSigningKeyRequest": { + "properties": { + "rotatedCloudKmsKey": { + "$ref": "RotatedCloudKmsKey", + "description": "Required. Self-hosted Cloud KMS key." + }, + "keyRotationReason": { + "type": "string", + "enum": [ + "KEY_ROTATION_REASON_UNSPECIFIED", + "COMPROMISED_KEY", + "USE_STRONGER_KEY", + "USE_SAME_KEY_FOR_MULTIPLE_APPS", + "ROUTINE_KEY_UPGRADE", + "OTHER" + ], + "enumDescriptions": [ + "Unspecified key rotation reason. Cannot be used.", + "Key is compromised.", + "Stronger key is required.", + "Same key is used for multiple apps.", + "Routine key upgrade.", + "Other reason." + ], + "description": "Required. Reason for rotating the app key." + } + }, + "id": "RotateAppSigningKeyRequest", + "description": "Request to rotate an app's signing key.", + "type": "object" + }, + "CancelSubscriptionPurchaseRequest": { + "type": "object", + "id": "CancelSubscriptionPurchaseRequest", + "description": "Request for the purchases.subscriptionsv2.cancel API.", + "properties": { + "cancellationContext": { + "$ref": "CancellationContext", + "description": "Required. Additional details around the subscription revocation." + } + } + }, + "PaidAppDetails": { + "id": "PaidAppDetails", + "description": "Details of a paid app purchase.", + "properties": {}, + "type": "object" + }, + "GeneratedSplitApk": { + "description": "Download metadata for a split APK.", + "type": "object", + "id": "GeneratedSplitApk", + "properties": { + "moduleName": { + "description": "Name of the module that this APK belongs to.", + "type": "string" + }, + "variantId": { + "description": "ID of the generated variant.", + "format": "int32", + "type": "integer" + }, + "downloadId": { + "description": "Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method.", + "type": "string" + }, + "splitId": { + "type": "string", + "description": "Split ID. Empty for the main split of the base module." + } + } + }, + "DeferredItemReplacement": { + "type": "object", + "properties": { + "productId": { + "type": "string", + "description": "The product_id going to replace the existing product_id." + } + }, + "description": "Information related to deferred item replacement.", + "id": "DeferredItemReplacement" + }, + "InAppProduct": { + "description": "An in-app product. The resource for InappproductsService.", + "type": "object", + "properties": { + "trialPeriod": { + "description": "Trial period, specified in ISO 8601 format. Acceptable values are anything between P7D (seven days) and P999D (999 days).", + "type": "string" + }, + "sku": { + "description": "Stock-keeping-unit (SKU) of the product, unique within an app.", + "type": "string" + }, + "defaultLanguage": { + "type": "string", + "description": "Default language of the localized data, as defined by BCP-47. e.g. \"en-US\"." + }, + "status": { + "enum": [ + "statusUnspecified", + "active", + "inactive" + ], + "enumDescriptions": [ + "Unspecified status.", + "The product is published and active in the store.", + "The product is not published and therefore inactive in the store." + ], + "description": "The status of the product, e.g. whether it's active.", + "type": "string" + }, + "subscriptionTaxesAndComplianceSettings": { + "description": "Details about taxes and legal compliance. Only applicable to subscription products.", + "$ref": "SubscriptionTaxAndComplianceSettings" + }, + "defaultPrice": { + "description": "Default price. Cannot be zero, as in-app products are never free. Always in the developer's Checkout merchant currency.", + "$ref": "Price" + }, + "prices": { + "additionalProperties": { + "$ref": "Price" + }, + "description": "Prices per buyer region. None of these can be zero, as in-app products are never free. Map key is region code, as defined by ISO 3166-2.", + "type": "object" + }, + "listings": { + "additionalProperties": { + "$ref": "InAppProductListing" + }, + "description": "List of localized title and description data. Map key is the language of the localized data, as defined by BCP-47, e.g. \"en-US\".", + "type": "object" + }, + "packageName": { + "description": "Package name of the parent app.", + "type": "string" + }, + "purchaseType": { + "enum": [ + "purchaseTypeUnspecified", + "managedUser", + "subscription" + ], + "enumDescriptions": [ + "Unspecified purchase type.", + "The default product type - one time purchase.", + "In-app product with a recurring period." + ], + "description": "The type of the product, e.g. a recurring subscription.", + "type": "string" + }, + "managedProductTaxesAndComplianceSettings": { + "description": "Details about taxes and legal compliance. Only applicable to managed products.", + "$ref": "ManagedProductTaxAndComplianceSettings" + }, + "subscriptionPeriod": { + "type": "string", + "description": "Subscription period, specified in ISO 8601 format. Acceptable values are P1W (one week), P1M (one month), P3M (three months), P6M (six months), and P1Y (one year)." + }, + "gracePeriod": { + "type": "string", + "description": "Grace period of the subscription, specified in ISO 8601 format. Allows developers to give their subscribers a grace period when the payment for the new recurrence period is declined. Acceptable values are P0D (zero days), P3D (three days), P7D (seven days), P14D (14 days), and P30D (30 days)." + } + }, + "id": "InAppProduct" + }, + "RefundEvent": { + "description": "Details of when the order was fully refunded.", + "type": "object", + "properties": { + "refundReason": { + "enum": [ + "REFUND_REASON_UNSPECIFIED", + "OTHER", + "CHARGEBACK" + ], + "enumDescriptions": [ + "Refund reason unspecified. This value is not used.", + "The order was refunded for a reason other than the listed reasons here.", + "The order was charged back." + ], + "type": "string", + "description": "The reason the order was refunded." + }, + "refundDetails": { + "description": "Details for the full refund.", + "$ref": "RefundDetails" + }, + "eventTime": { + "type": "string", + "format": "google-datetime", + "description": "The time when the order was fully refunded." + } + }, + "id": "RefundEvent" + }, + "PointsDetails": { + "type": "object", + "description": "Details relating to any Play Points applied to an order.", + "id": "PointsDetails", + "properties": { + "pointsDiscountRateMicros": { + "type": "string", + "format": "int64", + "description": "The percentage rate which the Play Points promotion reduces the cost by. E.g. for a 100 points for $2 coupon, this is 500,000. Since $2 has an estimate of 200 points, but the actual Points required, 100, is 50% of this, and 50% in micros is 500,000. Between 0 and 1,000,000." + }, + "pointsOfferId": { + "description": "ID unique to the play points offer in use for this order.", + "type": "string" + }, + "pointsCouponValue": { + "description": "The monetary value of a Play Points coupon. This is the discount the coupon provides, which may not be the total amount. Only set when Play Points coupons have been used. E.g. for a 100 points for $2 coupon, this is $2.", + "$ref": "Money" + }, + "pointsSpent": { + "format": "int64", + "type": "string", + "description": "The number of Play Points applied in this order. E.g. for a 100 points for $2 coupon, this is 100. For coupon stacked with base offer, this is the total points spent across both." + } + } + }, + "BatchGetOneTimeProductsResponse": { + "id": "BatchGetOneTimeProductsResponse", + "type": "object", + "description": "Response message for the BatchGetOneTimeProducts endpoint.", + "properties": { + "oneTimeProducts": { + "description": "The list of requested one-time products, in the same order as the request.", + "type": "array", + "items": { + "$ref": "OneTimeProduct" + } + } + } + }, + "AppStoreAppDetails": { + "description": "Details about the app.", + "id": "AppStoreAppDetails", + "type": "object", + "properties": { + "contactEmail": { + "type": "string", + "description": "Required. The app developer's contact email address." + }, + "developerWebsite": { + "description": "Optional. Website link for the developer or app.", + "type": "string" + }, + "developerName": { + "type": "string", + "description": "Required. The app developer's name." + } + } + }, + "ModuleMetadata": { + "id": "ModuleMetadata", + "type": "object", + "properties": { + "targeting": { + "$ref": "ModuleTargeting", + "description": "The targeting that makes a conditional module installed. Relevant only for Split APKs." + }, + "deliveryType": { + "type": "string", + "description": "Indicates the delivery type (e.g. on-demand) of the module.", + "enumDescriptions": [ + "Unspecified delivery type.", + "This module will always be downloaded as part of the initial install of the app.", + "This module is requested on-demand, which means it will not be part of the initial install, and will only be sent when requested by the client.", + "This module will be downloaded immediately after initial install finishes. The app can be opened before these modules are downloaded." + ], + "enum": [ + "UNKNOWN_DELIVERY_TYPE", + "INSTALL_TIME", + "ON_DEMAND", + "FAST_FOLLOW" + ] + }, + "dependencies": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Names of the modules that this module directly depends on. Each module implicitly depends on the base module." + }, + "moduleType": { + "enumDescriptions": [ + "Unknown feature module.", + "Regular feature module." + ], + "type": "string", + "enum": [ + "UNKNOWN_MODULE_TYPE", + "FEATURE_MODULE" + ], + "description": "Indicates the type of this feature module." + }, + "name": { + "description": "Module name.", + "type": "string" + } + }, + "description": "Metadata of a module." + }, + "InappproductsBatchGetResponse": { + "type": "object", + "properties": { + "inappproduct": { + "type": "array", + "items": { + "$ref": "InAppProduct" + }, + "description": "The list of requested in-app products, in the same order as the request." + } + }, + "description": "Response message for BatchGetSubscriptions endpoint.", + "id": "InappproductsBatchGetResponse" + }, + "ExpansionFile": { + "type": "object", + "properties": { + "referencesVersion": { + "type": "integer", + "format": "int32", + "description": "If set, this APK's expansion file references another APK's expansion file. The file_size field will not be set." + }, + "fileSize": { + "type": "string", + "format": "int64", + "description": "If set, this field indicates that this APK has an expansion file uploaded to it: this APK does not reference another APK's expansion file. The field's value is the size of the uploaded expansion file in bytes." + } + }, + "description": "An expansion file. The resource for ExpansionFilesService.", + "id": "ExpansionFile" + }, + "CatalogAppView": { + "description": "LINT.IfChange A view of a Google Play app within the Catalog Export for app stores.", + "properties": { + "appCategory": { + "type": "string", + "enum": [ + "APP_CATEGORY_UNSPECIFIED", + "GAME", + "APP" + ], + "description": "The category of the app.", + "enumDescriptions": [ + "Unspecified category.", + "Game app.", + "General app." + ] + }, + "priceInTheUnitedStates": { + "description": "The price of the app in the United States. Empty if the app is free.", + "$ref": "Money" + }, + "permissions": { + "items": { + "$ref": "CatalogPermission" + }, + "type": "array", + "description": "Required permissions declared by the app which apply for all Android SDK versions." + }, + "developerDetails": { + "$ref": "DeveloperDetails", + "description": "The developer details of the app." + }, + "permissionsSdk23": { + "description": "Required permissions declared by the app which apply for Android SDK versions SDK 23 and above.", + "type": "array", + "items": { + "$ref": "CatalogPermission" + } + }, + "lastPublishTime": { + "type": "string", + "format": "google-datetime", + "description": "The timestamp when the app was last published." + }, + "hasInAppPurchases": { + "type": "boolean", + "description": "Whether the app has in-app purchases through Google Play." + }, + "hasInAppAds": { + "description": "Whether the app has ads.", + "type": "boolean" + }, + "activeVersionNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Active versions of the app mapped from `android:versionName` manifest attributes." + }, + "isAdultOnlyAudience": { + "type": "boolean", + "description": "Whether the app is targeted to an adult-only (18+) audience." + }, + "deviceCompatibilityRequirements": { + "description": "The app may specify multiple sets of device compatibility requirements, and a device is considered compatible with the app if it satisfies at least one of `DeviceCompatibilityRequirements`.", + "type": "array", + "items": { + "$ref": "DeviceCompatibilityRequirements" + } + }, + "localizedStoreListings": { + "description": "The localized store listings of the app which are shown on Google Play.", + "$ref": "LocalizedStoreListings" + }, + "excludedDevicesBySelector": { + "items": { + "$ref": "CatalogDeviceSelector" + }, + "type": "array", + "description": "List of devices excluded from the app's distribution even if they are otherwise compatible with the requirements from device_compatibility_requirements. A device is excluded if it matches any of given the selectors." + }, + "deliveryToken": { + "description": "The token used for delivery of the app with the Google Play Inline Install API.", + "type": "string" + }, + "iarcCertificateId": { + "description": "The IARC certificate ID for the app.", + "type": "string" + }, + "excludedDevicesByIdentifier": { + "items": { + "$ref": "DeviceIdentifier" + }, + "type": "array", + "description": "List of devices excluded from the app's distribution even if they are otherwise compatible with the requirements from device_compatibility_requirements. These are OR-ed, i.e. a device is excluded if it matches any of the identifiers." + }, + "packageName": { + "description": "The package name of the app.", + "type": "string" + }, + "appSubcategory": { + "description": "The subcategory of the app e.g. \"GAME_ACTION\".", + "type": "string" + }, + "privacyPolicyUrl": { + "type": "string", + "description": "The URL of the app's privacy policy." + }, + "salePriceInTheUnitedStates": { + "description": "The sale price of the app in the United States. Only populated for paid apps with an active US sale.", + "$ref": "Money" + }, + "firstReleaseDate": { + "$ref": "Date", + "description": "The date when the app was first released." + }, + "appContactInformation": { + "description": "Developer-provided contact information for the app.", + "$ref": "AppContactInformation" + } + }, + "id": "CatalogAppView", + "type": "object" + }, + "DeviceRam": { + "id": "DeviceRam", + "type": "object", + "description": "Conditions about a device's RAM capabilities.", + "properties": { + "maxBytes": { + "format": "int64", + "type": "string", + "description": "Maximum RAM in bytes (bound excluded)." + }, + "minBytes": { + "type": "string", + "format": "int64", + "description": "Minimum RAM in bytes (bound included)." + } + } + }, + "OtherRecurringProduct": { + "id": "OtherRecurringProduct", + "type": "object", + "properties": {}, + "description": "Details of a recurring external transaction product which doesn't belong to any other more specific category." + }, + "RamSelector": { + "id": "RamSelector", + "properties": { + "ramMbLessThanOrEqual": { + "type": "string", + "description": "This will match any device that has less than or equal ram_mb_less_than_or_equal mb of RAM.", + "format": "int64" + } + }, + "description": "Defines a RAM selector for a device.", + "type": "object" + }, + "CoarseLocation": { + "id": "CoarseLocation", + "type": "object", + "properties": { + "regionCode": { + "description": "Required. [CLDR region code](https://cldr.unicode.org/) of the country/region of the address. This value is never inferred and you must ensure the value is correct. Example: \"CH\" for Switzerland.", + "type": "string" + }, + "administrativeArea": { + "description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated.", + "type": "string" + }, + "sublocality": { + "description": "Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district. For most addresses, you can omit this.", + "type": "string" + }, + "locality": { + "type": "string", + "description": "Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty." + } + }, + "description": "Coarse Geographic location details for where the consumption happened." + }, + "ActivateSubscriptionOfferRequest": { + "type": "object", + "properties": { + "productId": { + "type": "string", + "description": "Required. The parent subscription (ID) of the offer to activate." + }, + "basePlanId": { + "type": "string", + "description": "Required. The parent base plan (ID) of the offer to activate." + }, + "packageName": { + "description": "Required. The parent app (package name) of the offer to activate.", + "type": "string" + }, + "latencyTolerance": { + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ] + }, + "offerId": { + "type": "string", + "description": "Required. The unique offer ID of the offer to activate." + } + }, + "description": "Request message for ActivateSubscriptionOffer.", + "id": "ActivateSubscriptionOfferRequest" + }, + "BatchUpdateSubscriptionOfferStatesResponse": { + "description": "Response message for BatchUpdateSubscriptionOfferStates.", + "type": "object", + "id": "BatchUpdateSubscriptionOfferStatesResponse", + "properties": { + "subscriptionOffers": { + "items": { + "$ref": "SubscriptionOffer" + }, + "description": "The updated subscription offers list.", + "type": "array" + } + } + }, + "RevocationContextItemBasedRefund": { + "type": "object", + "properties": { + "productId": { + "description": "Required. If the subscription is a subscription with add-ons, the product id of the subscription item to revoke.", + "type": "string" + } + }, + "id": "RevocationContextItemBasedRefund", + "description": "Used to determine what specific item to revoke in a subscription with multiple items." + }, + "OfferPhaseDetails": { + "description": "Details of a pricing phase for the entitlement period funded by this order.", + "type": "object", + "properties": { + "freeTrialDetails": { + "$ref": "FreeTrialDetails", + "description": "The order funds a free trial period." + }, + "prorationPeriodDetails": { + "description": "The order funds a proration period.", + "$ref": "ProrationPeriodDetails" + }, + "introductoryPriceDetails": { + "description": "The order funds an introductory pricing period.", + "$ref": "IntroductoryPriceDetails" + }, + "baseDetails": { + "$ref": "BaseDetails", + "description": "The order funds a base price period." + } + }, + "id": "OfferPhaseDetails" + }, + "ExternalSubscription": { + "description": "Details of an external subscription.", + "properties": { + "subscriptionType": { + "type": "string", + "enumDescriptions": [ + "Unspecified, do not use.", + "This is a recurring subscription where the user is charged every billing cycle.", + "This is a prepaid subscription where the user pays up front." + ], + "description": "Required. The type of the external subscription.", + "enum": [ + "SUBSCRIPTION_TYPE_UNSPECIFIED", + "RECURRING", + "PREPAID" + ] + } + }, + "type": "object", + "id": "ExternalSubscription" + }, + "SubscriptionListing": { + "type": "object", + "properties": { + "description": { + "description": "The description of this subscription in the language of this listing. Maximum length - 200 characters. Plain text.", + "type": "string" + }, + "title": { + "description": "Required. The title of this subscription in the language of this listing. Plain text.", + "type": "string" + }, + "benefits": { + "items": { + "type": "string" + }, + "type": "array", + "description": "A list of benefits shown to the user on platforms such as the Play Store and in restoration flows in the language of this listing. Plain text. Ordered list of at most four benefits." + }, + "languageCode": { + "description": "Required. The language of this listing, as defined by BCP-47, e.g. \"en-US\".", + "type": "string" + } + }, + "id": "SubscriptionListing", + "description": "The consumer-visible metadata of a subscription." + }, + "RentOfferDetails": { + "properties": {}, + "description": "Offer details information related to a rental line item.", + "id": "RentOfferDetails", + "type": "object" + }, + "ApksAddExternallyHostedRequest": { + "description": "Request to create a new externally hosted APK.", + "properties": { + "externallyHostedApk": { + "$ref": "ExternallyHostedApk", + "description": "The definition of the externally-hosted APK and where it is located." + } + }, + "type": "object", + "id": "ApksAddExternallyHostedRequest" + }, + "ScreenDensityTargeting": { + "description": "Targeting based on screen density.", + "properties": { + "value": { + "items": { + "$ref": "ScreenDensity" + }, + "description": "Value of a screen density.", + "type": "array" + }, + "alternatives": { + "type": "array", + "items": { + "$ref": "ScreenDensity" + }, + "description": "Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other main splits." + } + }, + "id": "ScreenDensityTargeting", + "type": "object" + }, + "OneTimeProductDiscountedOffer": { + "type": "object", + "description": "Configuration specific to discounted offers.", + "id": "OneTimeProductDiscountedOffer", + "properties": { + "endTime": { + "format": "google-datetime", + "type": "string", + "description": "Time when the offer will stop being available." + }, + "redemptionLimit": { + "type": "string", + "description": "Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.", + "format": "int64" + }, + "startTime": { + "type": "string", + "format": "google-datetime", + "description": "Time when the offer will start being available." + } + } + }, + "OneTimeProductOfferNoPriceOverrideOptions": { + "properties": {}, + "description": "Options for one-time product offers without a regional price override.", + "id": "OneTimeProductOfferNoPriceOverrideOptions", + "type": "object" + }, + "LanguageTargeting": { + "type": "object", + "properties": { + "alternatives": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Alternative languages." + }, + "value": { + "items": { + "type": "string" + }, + "type": "array", + "description": "ISO-639: 2 or 3 letter language code." + } + }, + "description": "Targeting based on language.", + "id": "LanguageTargeting" + }, + "DeactivatePurchaseOptionRequest": { + "description": "Request message for UpdatePurchaseOptionState.", + "type": "object", + "id": "DeactivatePurchaseOptionRequest", + "properties": { + "purchaseOptionId": { + "description": "Required. The purchase option ID of the purchase option to deactivate.", + "type": "string" + }, + "packageName": { + "type": "string", + "description": "Required. The parent app (package name) of the purchase option to deactivate." + }, + "productId": { + "description": "Required. The parent one-time product (ID) of the purchase option to deactivate.", + "type": "string" + }, + "latencyTolerance": { + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "type": "string" + } + } + }, + "ConvertRegionPricesResponse": { + "id": "ConvertRegionPricesResponse", + "properties": { + "convertedOtherRegionsPrice": { + "$ref": "ConvertedOtherRegionsPrice", + "description": "Converted other regions prices in USD and EUR, to use for countries where Play doesn't support a country's local currency." + }, + "regionVersion": { + "description": "The region version at which the prices were generated.", + "$ref": "RegionsVersion" + }, + "convertedRegionPrices": { + "type": "object", + "additionalProperties": { + "$ref": "ConvertedRegionPrice" + }, + "description": "Map from region code to converted region price." + } + }, + "description": "Response message for ConvertRegionPrices.", + "type": "object" + }, + "ReviewReplyResult": { + "properties": { + "lastEdited": { + "$ref": "Timestamp", + "description": "The time at which the reply took effect." + }, + "replyText": { + "description": "The reply text that was applied.", + "type": "string" + } + }, + "id": "ReviewReplyResult", + "type": "object", + "description": "The result of replying/updating a reply to review." + }, + "BatchGetSubscriptionOffersRequest": { + "type": "object", + "properties": { + "requests": { + "description": "Required. A list of update requests of up to 100 elements. All requests must update different subscriptions.", + "items": { + "$ref": "GetSubscriptionOfferRequest" + }, + "type": "array" + } + }, + "description": "Request message for BatchGetSubscriptionOffers endpoint.", + "id": "BatchGetSubscriptionOffersRequest" + }, + "TracksListResponse": { + "id": "TracksListResponse", + "description": "Response listing all tracks.", + "type": "object", + "properties": { + "tracks": { + "items": { + "$ref": "Track" + }, + "type": "array", + "description": "All tracks (including tracks with no releases)." + }, + "kind": { + "type": "string", + "description": "The kind of this response (\"androidpublisher#tracksListResponse\")." + } + } + }, + "DeferralContext": { + "properties": { + "etag": { + "type": "string", + "description": "Required. The API will fail if the etag does not match the latest etag for this subscription. The etag is retrieved from purchases.subscriptionsv2.get: https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptionsv2/get" + }, + "validateOnly": { + "type": "boolean", + "description": "If set to \"true\", the request is a dry run to validate the effect of Defer, the subscription would not be impacted." + }, + "deferDuration": { + "description": "Required. The duration by which all subscription items should be deferred.", + "type": "string", + "format": "google-duration" + } + }, + "type": "object", + "description": "Deferral context of the purchases.subscriptionsv2.defer API.", + "id": "DeferralContext" + }, + "AutoRenewingPlan": { + "description": "Information related to an auto renewing plan.", + "id": "AutoRenewingPlan", + "type": "object", + "properties": { + "priceChangeDetails": { + "$ref": "SubscriptionItemPriceChangeDetails", + "description": "The information of the last price change for the item since subscription signup." + }, + "recurringPrice": { + "description": "The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and does not include taxes. For tax-exclusive pricing, please call orders.get API instead if transaction details are needed.", + "$ref": "Money" + }, + "priceStepUpConsentDetails": { + "$ref": "PriceStepUpConsentDetails", + "description": "The information of the latest price step-up consent." + }, + "autoRenewEnabled": { + "type": "boolean", + "description": "If the subscription is currently set to auto-renew, e.g. the user has not canceled the subscription" + }, + "installmentDetails": { + "description": "The installment plan commitment and state related info for the auto renewing plan.", + "$ref": "InstallmentPlan" + } + } + }, + "MigrateBasePlanPricesResponse": { + "type": "object", + "description": "Response message for MigrateBasePlanPrices.", + "properties": {}, + "id": "MigrateBasePlanPricesResponse" + }, + "Apk": { + "id": "Apk", + "properties": { + "versionCode": { + "description": "The version code of the APK, as specified in the manifest file.", + "type": "integer", + "format": "int32" + }, + "binary": { + "description": "Information about the binary payload of this APK.", + "$ref": "ApkBinary" + } + }, + "type": "object", + "description": "Information about an APK. The resource for ApksService." + }, + "CountryTargeting": { + "type": "object", + "properties": { + "includeRestOfWorld": { + "type": "boolean", + "description": "Include \"rest of world\" as well as explicitly targeted countries." + }, + "countries": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Countries to target, specified as two letter [CLDR codes](https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html)." + } + }, + "description": "Country targeting specification.", + "id": "CountryTargeting" + }, + "OneTimeProductListing": { + "id": "OneTimeProductListing", + "properties": { + "title": { + "description": "Required. The title of this product in the language of this listing. The maximum length is 55 characters.", + "type": "string" + }, + "languageCode": { + "type": "string", + "description": "Required. The language of this listing, as defined by BCP-47, e.g., \"en-US\"." + }, + "description": { + "description": "Required. The description of this product in the language of this listing. The maximum length is 200 characters.", + "type": "string" + } + }, + "type": "object", + "description": "Regional store listing for a one-time product." + }, + "OneTimeProductPurchaseOptionNewRegionsConfig": { + "type": "object", + "id": "OneTimeProductPurchaseOptionNewRegionsConfig", + "properties": { + "usdPrice": { + "$ref": "Money", + "description": "Required. Price in USD to use for any new regions Play may launch in." + }, + "availability": { + "enum": [ + "AVAILABILITY_UNSPECIFIED", + "AVAILABLE", + "NO_LONGER_AVAILABLE" + ], + "type": "string", + "enumDescriptions": [ + "Unspecified availability. Must not be used.", + "The config will be used for any new regions Play may launch in the future.", + "The config is not available anymore and will not be used for any new regions Play may launch in the future. This value can only be used if the availability was previously set as AVAILABLE." + ], + "description": "Required. The regional availability for the new regions config. When set to AVAILABLE, the pricing information will be used for any new regions Play may launch in the future." + }, + "eurPrice": { + "$ref": "Money", + "description": "Required. Price in EUR to use for any new regions Play may launch in." + } + }, + "description": "Pricing information for any new regions Play may launch in the future." + }, + "ItemExpiryTimeDetails": { + "properties": { + "productId": { + "type": "string", + "description": "The product ID of the subscription item (for example, 'premium_plan')." + }, + "expiryTime": { + "type": "string", + "description": "The new expiry time for this subscription item.", + "format": "google-datetime" + } + }, + "type": "object", + "description": "Expiry time details of a subscription item.", + "id": "ItemExpiryTimeDetails" + }, + "CreateAppStoreHostedAppRequest": { + "id": "CreateAppStoreHostedAppRequest", + "type": "object", + "description": "Request to create a new app record for an app store hosted app.", + "properties": { + "packageName": { + "description": "Required. Package name of the app.", + "type": "string" + } + } + }, + "InternalAppSharingArtifact": { + "type": "object", + "id": "InternalAppSharingArtifact", + "description": "An artifact resource which gets created when uploading an APK or Android App Bundle through internal app sharing.", + "properties": { + "certificateFingerprint": { + "description": "The sha256 fingerprint of the certificate used to sign the generated artifact.", + "type": "string" + }, + "sha256": { + "type": "string", + "description": "The sha256 hash of the artifact represented as a lowercase hexadecimal number, matching the output of the sha256sum command." + }, + "downloadUrl": { + "type": "string", + "description": "The download URL generated for the uploaded artifact. Users that are authorized to download can follow the link to the Play Store app to install it." + } + } + }, + "TargetingInfo": { + "id": "TargetingInfo", + "properties": { + "assetSliceSet": { + "description": "List of created asset slices.", + "type": "array", + "items": { + "$ref": "AssetSliceSet" + } + }, + "variant": { + "description": "List of the created variants.", + "type": "array", + "items": { + "$ref": "SplitApkVariant" + } + }, + "packageName": { + "description": "The package name of this app.", + "type": "string" + } + }, + "type": "object", + "description": "Targeting information about the generated apks." + }, + "DeferSubscriptionPurchaseRequest": { + "description": "Request for the v2 purchases.subscriptions.defer API.", + "properties": { + "deferralContext": { + "$ref": "DeferralContext", + "description": "Required. Details about the subscription deferral." + } + }, + "type": "object", + "id": "DeferSubscriptionPurchaseRequest" + }, + "PendingCancellation": { + "description": "This is an indicator of whether there is a pending cancellation on the virtual installment plan. The cancellation will happen only after the user finished all committed payments.", + "id": "PendingCancellation", + "type": "object", + "properties": {} + }, + "MigrateBasePlanPricesRequest": { + "properties": { + "basePlanId": { + "type": "string", + "description": "Required. The unique base plan ID of the base plan to update prices on." + }, + "latencyTolerance": { + "type": "string", + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ] + }, + "regionsVersion": { + "description": "Required. The version of the available regions being used for the regional_price_migrations.", + "$ref": "RegionsVersion" + }, + "packageName": { + "description": "Required. Package name of the parent app. Must be equal to the package_name field on the Subscription resource.", + "type": "string" + }, + "regionalPriceMigrations": { + "description": "Required. The regional prices to update.", + "items": { + "$ref": "RegionalPriceMigrationConfig" + }, + "type": "array" + }, + "productId": { + "description": "Required. The ID of the subscription to update. Must be equal to the product_id field on the Subscription resource.", + "type": "string" + } + }, + "description": "Request message for MigrateBasePlanPrices.", + "id": "MigrateBasePlanPricesRequest", + "type": "object" + }, + "RemoteInAppUpdate": { + "id": "RemoteInAppUpdate", + "type": "object", + "description": "Object representation for Remote in-app update action type.", + "properties": { + "isRemoteInAppUpdateRequested": { + "description": "Required. Set to true if Remote In-App Update action type is needed.", + "type": "boolean" + } + } + }, + "StandaloneApkMetadata": { + "id": "StandaloneApkMetadata", + "properties": { + "fusedModuleName": { + "type": "array", + "description": "Names of the modules fused in this standalone APK.", + "items": { + "type": "string" + } + } + }, + "type": "object", + "description": "Holds data specific to Standalone APKs." + }, + "ProductPurchaseV2": { + "id": "ProductPurchaseV2", + "description": "A ProductPurchaseV2 resource indicates the status of a user's inapp product purchase.", + "properties": { + "regionCode": { + "type": "string", + "description": "ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted." + }, + "productLineItem": { + "items": { + "$ref": "ProductLineItem" + }, + "type": "array", + "description": "Contains item-level info for a ProductPurchaseV2." + }, + "acknowledgementState": { + "readOnly": true, + "type": "string", + "enumDescriptions": [ + "Unspecified acknowledgement state.", + "The purchase is not acknowledged yet.", + "The purchase is acknowledged." + ], + "enum": [ + "ACKNOWLEDGEMENT_STATE_UNSPECIFIED", + "ACKNOWLEDGEMENT_STATE_PENDING", + "ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED" + ], + "description": "Output only. The acknowledgement state of the purchase." + }, + "obfuscatedExternalAccountId": { + "type": "string", + "description": "An obfuscated version of the id that is uniquely associated with the user's account in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made." + }, + "purchaseCompletionTime": { + "description": "The time when the purchase was successful, i.e., when the PurchaseState has changed to PURCHASED. This field will not be present until the payment is complete. For example, if the user initiated a pending transaction (https://developer.android.com/google/play/billing/integrate#pending), this field will not be populated until the user successfully completes the steps required to complete the transaction.", + "format": "google-datetime", + "type": "string" + }, + "testPurchaseContext": { + "description": "Information related to test purchases. This will only be set for test purchases.", + "$ref": "TestPurchaseContext" + }, + "kind": { + "type": "string", + "description": "This kind represents a ProductPurchaseV2 object in the androidpublisher service." + }, + "obfuscatedExternalProfileId": { + "description": "An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made.", + "type": "string" + }, + "orderId": { + "type": "string", + "description": "The order id associated with the purchase of the inapp product. May not be set if there is no order associated with the purchase." + }, + "purchaseStateContext": { + "description": "Information about the purchase state of the purchase.", + "$ref": "PurchaseStateContext" + } + }, + "type": "object" + }, + "VoidedPurchasesListResponse": { + "id": "VoidedPurchasesListResponse", + "properties": { + "tokenPagination": { + "description": "Pagination information for token pagination.", + "$ref": "TokenPagination" + }, + "pageInfo": { + "$ref": "PageInfo", + "description": "General pagination information." + }, + "voidedPurchases": { + "type": "array", + "items": { + "$ref": "VoidedPurchase" + } + } + }, + "description": "Response for the voidedpurchases.list API.", + "type": "object" + }, + "VideoAsset": { + "description": "A video asset.", + "properties": { + "videoUrl": { + "description": "The URL of the video asset.", + "type": "string" + } + }, + "type": "object", + "id": "VideoAsset" + }, + "InappproductsBatchDeleteRequest": { + "properties": { + "requests": { + "items": { + "$ref": "InappproductsDeleteRequest" + }, + "description": "Individual delete requests. At least one request is required. Can contain up to 100 requests. All requests must correspond to different in-app products.", + "type": "array" + } + }, + "id": "InappproductsBatchDeleteRequest", + "description": "Request to delete multiple in-app products.", + "type": "object" + }, + "BatchUpdateSubscriptionOfferStatesRequest": { + "properties": { + "requests": { + "description": "Required. The update request list of up to 100 elements. All requests must update different offers.", + "items": { + "$ref": "UpdateSubscriptionOfferStateRequest" + }, + "type": "array" + } + }, + "description": "Request message for BatchUpdateSubscriptionOfferStates.", + "type": "object", + "id": "BatchUpdateSubscriptionOfferStatesRequest" + }, + "LocalizedStoreListing": { + "properties": { + "fullDescription": { + "description": "A longer description of the app in this localization.", + "type": "string" + }, + "icon": { + "description": "The icon of the app.", + "$ref": "ImageAsset" + }, + "tabletSmallScreenshots": { + "description": "The small tablet screenshots of the app.", + "$ref": "ScreenshotSet" + }, + "appName": { + "description": "The name of the app in this localization.", + "type": "string" + }, + "shortDescription": { + "description": "A short description of the app in this localization.", + "type": "string" + }, + "video": { + "description": "The video of the app.", + "$ref": "VideoAsset" + }, + "phoneScreenshots": { + "description": "The phone screenshots of the app.", + "$ref": "ScreenshotSet" + }, + "featureGraphic": { + "description": "The feature graphic of the app.", + "$ref": "ImageAsset" + }, + "languageCode": { + "description": "The BCP-47 language code for this localization.", + "type": "string" + }, + "tabletRegularScreenshots": { + "$ref": "ScreenshotSet", + "description": "The regular tablet screenshots of the app." + } + }, + "id": "LocalizedStoreListing", + "description": "A localized store listings of the app.", + "type": "object" + }, + "AppContactInformation": { + "description": "Contact information for the app.", + "id": "AppContactInformation", + "properties": { + "contactEmail": { + "type": "string", + "description": "The contact email for this app. Always set." + }, + "websiteUrl": { + "description": "The contact website url for this app. Optionally provided by the developer.", + "type": "string" + }, + "phoneNumber": { + "description": "The contact phone for this app. Optionally provided by the developer.", + "type": "string" + } + }, + "type": "object" + }, + "UploadApkRequest": { + "id": "UploadApkRequest", + "description": "Request to upload an APK.", + "properties": {}, + "type": "object" + }, + "TrackRelease": { + "type": "object", + "id": "TrackRelease", + "properties": { + "releaseNotes": { + "items": { + "$ref": "LocalizedText" + }, + "type": "array", + "description": "A description of what is new in this release." + }, + "name": { + "description": "The release name. Not required to be unique. If not set, the name is generated from the APK's version_name. If the release contains multiple APKs, the name is generated from the date.", + "type": "string" + }, + "versionCodes": { + "type": "array", + "items": { + "type": "string", + "format": "int64" + }, + "description": "Version codes of all APKs in the release. Must include version codes to retain from previous releases." + }, + "userFraction": { + "description": "Fraction of users who are eligible for a staged release. 0 \u003c fraction \u003c 1. Can only be set when status is \"inProgress\" or \"halted\".", + "type": "number", + "format": "double" + }, + "status": { + "description": "The status of the release.", + "enumDescriptions": [ + "Unspecified status.", + "The release's APKs are not being served to users.", + "The release's APKs are being served to a fraction of users, determined by 'user_fraction'.", + "The release's APKs will no longer be served to users. Users who already have these APKs are unaffected.", + "The release will have no further changes. Its APKs are being served to all users, unless they are eligible to APKs of a more recent release." + ], + "enum": [ + "statusUnspecified", + "draft", + "inProgress", + "halted", + "completed" + ], + "type": "string" + }, + "countryTargeting": { + "$ref": "CountryTargeting", + "description": "Restricts a release to a specific set of countries. Note this is only allowed to be set for inProgress releases in the production track." + }, + "inAppUpdatePriority": { + "description": "In-app update priority of the release. All newly added APKs in the release will be considered at this priority. Can take values in the range [0, 5], with 5 the highest priority. Defaults to 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/guide/playcore/in-app-updates.", + "format": "int32", + "type": "integer" + } + }, + "description": "A release within a track." + }, + "LocalizedStoreListings": { + "description": "The localized store listings of an app.", + "properties": { + "defaultLanguageCode": { + "description": "The default language code of the app. If a localized store listing is not available for a given language, assets from the default language are used instead.", + "type": "string" + }, + "localizedStoreListings": { + "type": "array", + "items": { + "$ref": "LocalizedStoreListing" + } + } + }, + "id": "LocalizedStoreListings", + "type": "object" + }, + "ExternalAccountIdentifiers": { + "id": "ExternalAccountIdentifiers", + "description": "User account identifier in the third-party service.", + "type": "object", + "properties": { + "obfuscatedExternalProfileId": { + "description": "An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made.", + "type": "string" + }, + "externalAccountId": { + "type": "string", + "description": "User account identifier in the third-party service. Only present if account linking happened as part of the subscription purchase flow." + }, + "obfuscatedExternalAccountId": { + "description": "An obfuscated version of the id that is uniquely associated with the user's account in your app. Present for the following purchases: * If account linking happened as part of the subscription purchase flow. * It was specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.", + "type": "string" + } + } + }, + "ApkSet": { + "properties": { + "apkDescription": { + "type": "array", + "description": "Description of the generated apks.", + "items": { + "$ref": "ApkDescription" + } + }, + "moduleMetadata": { + "description": "Metadata about the module represented by this ApkSet", + "$ref": "ModuleMetadata" + } + }, + "type": "object", + "id": "ApkSet", + "description": "A set of apks representing a module." + }, + "OnHoldStateContext": { + "id": "OnHoldStateContext", + "properties": { + "renewalDeclined": { + "$ref": "RenewalDeclinedContext", + "description": "Optional. The payment for the renewal was declined." + } + }, + "type": "object", + "description": "Additional context around subscriptions in ON_HOLD state." + }, + "DeviceMetadata": { + "properties": { + "productName": { + "type": "string", + "description": "Device model name (e.g. Droid)" + }, + "nativePlatform": { + "type": "string", + "description": "Comma separated list of native platforms (e.g. \"arm\", \"arm7\")" + }, + "manufacturer": { + "type": "string", + "description": "Device manufacturer (e.g. Motorola)" + }, + "screenWidthPx": { + "description": "Screen width in pixels", + "type": "integer", + "format": "int32" + }, + "screenHeightPx": { + "format": "int32", + "description": "Screen height in pixels", + "type": "integer" + }, + "screenDensityDpi": { + "description": "Screen density in DPI", + "type": "integer", + "format": "int32" + }, + "glEsVersion": { + "description": "OpenGL version", + "format": "int32", + "type": "integer" + }, + "cpuModel": { + "type": "string", + "description": "Device CPU model, e.g. \"MSM8974\"" + }, + "ramMb": { + "description": "Device RAM in Megabytes, e.g. \"2048\"", + "format": "int32", + "type": "integer" + }, + "cpuMake": { + "description": "Device CPU make, e.g. \"Qualcomm\"", + "type": "string" + }, + "deviceClass": { + "description": "Device class (e.g. tablet)", + "type": "string" + } + }, + "description": "Characteristics of the user's device.", + "type": "object", + "id": "DeviceMetadata" + }, + "BatchUpdatePurchaseOptionStatesRequest": { + "type": "object", + "id": "BatchUpdatePurchaseOptionStatesRequest", + "description": "Request message for BatchUpdatePurchaseOptionStates.", + "properties": { + "requests": { + "type": "array", + "items": { + "$ref": "UpdatePurchaseOptionStateRequest" + }, + "description": "Required. The update request list of up to 100 elements. All requests must update different purchase options." + } + } + }, + "InstallmentsBasePlanType": { + "type": "object", + "properties": { + "accountHoldDuration": { + "description": "Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.", + "type": "string" + }, + "gracePeriodDuration": { + "description": "Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive.", + "type": "string" + }, + "prorationMode": { + "enumDescriptions": [ + "Unspecified mode.", + "Users will be charged for their new base plan at the end of their current billing period.", + "Users will be charged for their new base plan immediately and in full. Any remaining period of their existing subscription will be used to extend the duration of the new billing plan." + ], + "type": "string", + "enum": [ + "SUBSCRIPTION_PRORATION_MODE_UNSPECIFIED", + "SUBSCRIPTION_PRORATION_MODE_CHARGE_ON_NEXT_BILLING_DATE", + "SUBSCRIPTION_PRORATION_MODE_CHARGE_FULL_PRICE_IMMEDIATELY" + ], + "description": "The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE." + }, + "committedPaymentsCount": { + "type": "integer", + "format": "int32", + "description": "Required. Immutable. The number of payments the user is committed to. It is immutable after the base plan is created." + }, + "renewalType": { + "enumDescriptions": [ + "Unspecified state.", + "Renews periodically for the billing period duration without commitment.", + "Renews with the commitment of the same duration as the initial one." + ], + "type": "string", + "enum": [ + "RENEWAL_TYPE_UNSPECIFIED", + "RENEWAL_TYPE_RENEWS_WITHOUT_COMMITMENT", + "RENEWAL_TYPE_RENEWS_WITH_COMMITMENT" + ], + "description": "Required. Immutable. Installments base plan renewal type. Determines the behavior at the end of the initial commitment. The renewal type is immutable after the base plan is created." + }, + "resubscribeState": { + "type": "string", + "enumDescriptions": [ + "Unspecified state.", + "Resubscribe is active.", + "Resubscribe is inactive." + ], + "enum": [ + "RESUBSCRIBE_STATE_UNSPECIFIED", + "RESUBSCRIBE_STATE_ACTIVE", + "RESUBSCRIBE_STATE_INACTIVE" + ], + "description": "Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified." + }, + "billingPeriodDuration": { + "description": "Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.", + "type": "string" + } + }, + "id": "InstallmentsBasePlanType", + "description": "Represents an installments base plan where a user commits to a specified number of payments." + }, + "CancelAppRecoveryRequest": { + "id": "CancelAppRecoveryRequest", + "type": "object", + "description": "Request message for CancelAppRecovery.", + "properties": {} + }, + "RefundDetails": { + "id": "RefundDetails", + "type": "object", + "description": "Details for a partial or full refund.", + "properties": { + "total": { + "description": "The total amount refunded, including tax.", + "$ref": "Money" + }, + "tax": { + "description": "The amount of tax refunded.", + "$ref": "Money" + } + } + }, + "Subscription": { + "type": "object", + "id": "Subscription", + "description": "A single subscription for an app.", + "properties": { + "listings": { + "type": "array", + "items": { + "$ref": "SubscriptionListing" + }, + "description": "Required. List of localized listings for this subscription. Must contain at least an entry for the default language of the parent app." + }, + "archived": { + "type": "boolean", + "readOnly": true, + "description": "Output only. Deprecated: subscription archiving is not supported.", + "deprecated": true + }, + "packageName": { + "description": "Immutable. Package name of the parent app.", + "type": "string" + }, + "taxAndComplianceSettings": { + "$ref": "SubscriptionTaxAndComplianceSettings", + "description": "Details about taxes and legal compliance." + }, + "restrictedPaymentCountries": { + "description": "Optional. Countries where the purchase of this subscription is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.", + "$ref": "RestrictedPaymentCountries" + }, + "productId": { + "type": "string", + "description": "Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length." + }, + "basePlans": { + "description": "The set of base plans for this subscription. Represents the prices and duration of the subscription if no other offers apply.", + "type": "array", + "items": { + "$ref": "BasePlan" + } + } + } + }, + "OneTimeProduct": { + "type": "object", + "id": "OneTimeProduct", + "properties": { + "listings": { + "type": "array", + "description": "Required. Set of localized title and description data. Must not have duplicate entries with the same language_code.", + "items": { + "$ref": "OneTimeProductListing" + } + }, + "offerTags": { + "type": "array", + "items": { + "$ref": "OfferTag" + }, + "description": "Optional. List of up to 20 custom tags specified for this one-time product, and returned to the app through the billing library. Purchase options and offers for this product will also receive these tags in the billing library." + }, + "restrictedPaymentCountries": { + "$ref": "RestrictedPaymentCountries", + "description": "Optional. Countries where the purchase of this one-time product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed." + }, + "regionsVersion": { + "description": "Output only. The version of the regions configuration that was used to generate the one-time product.", + "$ref": "RegionsVersion", + "readOnly": true + }, + "packageName": { + "type": "string", + "description": "Required. Immutable. Package name of the parent app." + }, + "purchaseOptions": { + "description": "Required. The set of purchase options for this one-time product.", + "type": "array", + "items": { + "$ref": "OneTimeProductPurchaseOption" + } + }, + "taxAndComplianceSettings": { + "description": "Details about taxes and legal compliance.", + "$ref": "OneTimeProductTaxAndComplianceSettings" + }, + "productId": { + "type": "string", + "description": "Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.)." + } + }, + "description": "A single one-time product for an app." + }, + "ListRecentUpdateEventsResponse": { + "id": "ListRecentUpdateEventsResponse", + "type": "object", + "properties": { + "recentUpdateEvents": { + "type": "array", + "items": { + "$ref": "RecentUpdateEvent" + }, + "description": "The list of recent update events." + }, + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages." + } + }, + "description": "Response message for ListRecentUpdateEvents." + }, + "RecurringExternalTransaction": { + "type": "object", + "description": "Represents a transaction that is part of a recurring series of payments. This can be a subscription or a one-time product with multiple payments (such as preorder).", + "id": "RecurringExternalTransaction", + "properties": { + "migratedTransactionProgram": { + "description": "Input only. Provided during the call to Create. Must only be used when migrating a subscription from manual monthly reporting to automated reporting.", + "enumDescriptions": [ + "Unspecified transaction program. Not used.", + "User choice billing, where a user may choose between Google Play Billing developer-managed billing.", + "Alternative billing only, where users may only use developer-manager billing." + ], + "type": "string", + "enum": [ + "EXTERNAL_TRANSACTION_PROGRAM_UNSPECIFIED", + "USER_CHOICE_BILLING", + "ALTERNATIVE_BILLING_ONLY" + ] + }, + "initialExternalTransactionId": { + "type": "string", + "description": "The external transaction id of the first transaction of this recurring series of transactions. For example, for a subscription this would be the transaction id of the first payment. Required when creating recurring external transactions." + }, + "externalSubscription": { + "$ref": "ExternalSubscription", + "description": "Details of an external subscription." + }, + "externalTransactionToken": { + "type": "string", + "description": "Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched. Required only for the initial purchase." + }, + "otherRecurringProduct": { + "description": "Details of a recurring external transaction product which doesn't belong to any other specific category.", + "$ref": "OtherRecurringProduct" + } + } + }, + "SignupPromotion": { + "type": "object", + "properties": { + "oneTimeCode": { + "description": "A one-time code was applied.", + "$ref": "OneTimeCode" + }, + "vanityCode": { + "description": "A vanity code was applied.", + "$ref": "VanityCode" + } + }, + "id": "SignupPromotion", + "description": "The promotion applied on this item when purchased." + }, + "VariantTargeting": { + "type": "object", + "id": "VariantTargeting", + "properties": { + "abiTargeting": { + "$ref": "AbiTargeting", + "description": "The abi that the variant targets" + }, + "screenDensityTargeting": { + "$ref": "ScreenDensityTargeting", + "description": "The screen densities that this variant supports" + }, + "textureCompressionFormatTargeting": { + "description": "Texture-compression-format-level targeting", + "$ref": "TextureCompressionFormatTargeting" + }, + "sdkVersionTargeting": { + "$ref": "SdkVersionTargeting", + "description": "The sdk version that the variant targets" + }, + "multiAbiTargeting": { + "description": "Multi-api-level targeting", + "$ref": "MultiAbiTargeting" + } + }, + "description": "Targeting on the level of variants." + }, + "UpdateAppStoreHostedAppPublishStatusRequest": { + "description": "Request to update the publish status of an app store hosted app. The default state for any app with an update is PUBLISHED. It is not necessary to call this RPC explicitly to set an app to PUBLISHED.", + "id": "UpdateAppStoreHostedAppPublishStatusRequest", + "type": "object", + "properties": { + "publishState": { + "enum": [ + "APP_STORE_APP_PUBLISH_STATE_UNSPECIFIED", + "APP_STORE_APP_PUBLISH_STATE_PUBLISHED", + "APP_STORE_APP_PUBLISH_STATE_UNPUBLISHED" + ], + "enumDescriptions": [ + "Unspecified publish state. Do not use.", + "The app is published and available on the third-party app store.", + "The app is unpublished and no longer available on the third-party app store." + ], + "type": "string", + "description": "Required. The new publish state for the hosted app." + } + } + }, + "ImageAsset": { + "type": "object", + "id": "ImageAsset", + "description": "An image asset.", + "properties": { + "imageUrl": { + "type": "string", + "description": "The URL of the image asset." + } + } + }, + "TrackTargetedCountry": { + "type": "object", + "properties": { + "countryCode": { + "description": "The country that can be targeted, as a two-letter CLDR code.", + "type": "string" + } + }, + "description": "Representation of a single country where the contents of a track can be made available.", + "id": "TrackTargetedCountry" + }, + "EnrollNewApp": { + "type": "object", + "id": "EnrollNewApp", + "description": "Enroll a new app into Play signing.", + "properties": { + "cloudKmsKeyAndCert": { + "description": "Required. Self-hosted key. Once enrolled, this key will be used to sign your app.", + "$ref": "CloudKmsKeyAndCert" + } + } + }, + "OneTimeProductOfferRegionalPricingAndAvailabilityConfig": { + "id": "OneTimeProductOfferRegionalPricingAndAvailabilityConfig", + "properties": { + "availability": { + "description": "Required. The availability for this region.", + "enumDescriptions": [ + "Unspecified availability. Must not be used.", + "The offer is available to users.", + "The offer is no longer available to users. This value can only be used if the availability was previously set as AVAILABLE." + ], + "type": "string", + "enum": [ + "AVAILABILITY_UNSPECIFIED", + "AVAILABLE", + "NO_LONGER_AVAILABLE" + ] + }, + "relativeDiscount": { + "description": "The fraction of the purchase option price that the user pays for this offer. For example, if the purchase option price for this region is $12, then a 50% discount would correspond to a price of $6. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.", + "type": "number", + "format": "double" + }, + "absoluteDiscount": { + "description": "The absolute value of the discount that is subtracted from the purchase option price. It should be between 0 and the purchase option price.", + "$ref": "Money" + }, + "regionCode": { + "type": "string", + "description": "Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., \"US\"." + }, + "noOverride": { + "$ref": "OneTimeProductOfferNoPriceOverrideOptions", + "description": "The price defined in the purchase option for this region will be used." + } + }, + "description": "Regional pricing and availability configuration for a one-time product offer.", + "type": "object" + }, + "OneTimeCode": { + "type": "object", + "properties": {}, + "description": "A single use promotion code.", + "id": "OneTimeCode" + }, + "ActivatePurchaseOptionRequest": { + "type": "object", + "id": "ActivatePurchaseOptionRequest", + "description": "Request message for UpdatePurchaseOptionState.", + "properties": { + "productId": { + "description": "Required. The parent one-time product (ID) of the purchase option to activate.", + "type": "string" + }, + "latencyTolerance": { + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "type": "string", + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive." + }, + "purchaseOptionId": { + "description": "Required. The purchase option ID of the purchase option to activate.", + "type": "string" + }, + "packageName": { + "type": "string", + "description": "Required. The parent app (package name) of the purchase option to activate." + } + } + }, + "SubscriptionOffer": { + "description": "A single, temporary offer", + "properties": { + "productId": { + "description": "Required. Immutable. The ID of the parent subscription this offer belongs to.", + "type": "string" + }, + "phases": { + "items": { + "$ref": "SubscriptionOfferPhase" + }, + "type": "array", + "description": "Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order." + }, + "offerId": { + "description": "Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.", + "type": "string" + }, + "offerTags": { + "description": "List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.", + "items": { + "$ref": "OfferTag" + }, + "type": "array" + }, + "targeting": { + "description": "The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.", + "$ref": "SubscriptionOfferTargeting" + }, + "state": { + "enumDescriptions": [ + "Default value, should never be used.", + "The subscription offer is not and has never been available to users.", + "The subscription offer is available to new and existing users.", + "The subscription offer is not available to new users. Existing users retain access." + ], + "type": "string", + "description": "Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.", + "readOnly": true, + "enum": [ + "STATE_UNSPECIFIED", + "DRAFT", + "ACTIVE", + "INACTIVE" + ] + }, + "packageName": { + "description": "Required. Immutable. The package name of the app the parent subscription belongs to.", + "type": "string" + }, + "basePlanId": { + "description": "Required. Immutable. The ID of the base plan to which this offer is an extension.", + "type": "string" + }, + "regionalConfigs": { + "type": "array", + "description": "Required. The region-specific configuration of this offer. Must contain at least one entry.", + "items": { + "$ref": "RegionalSubscriptionOfferConfig" + } + }, + "otherRegionsConfig": { + "$ref": "OtherRegionsSubscriptionOfferConfig", + "description": "The configuration for any new locations Play may launch in the future." + } + }, + "type": "object", + "id": "SubscriptionOffer" + }, + "AppStoreAppActiveApkSet": { + "description": "An installable set of active APKs. All APKs in this set should belong to the same version of the app. A set of APKs might only contain 1 APK if the app in question publishes using APKs. If the app uses app bundles (or a similar technology), this set should contain all APKs (even optional ones) that might be installed for this app. A set of APKs should be installable together. If certain APKs are exclusive to one another and cannot be installed together, then a separate AppStoreAppActiveApkSet should be created.", + "type": "object", + "id": "AppStoreAppActiveApkSet", + "properties": { + "splitApkId": { + "items": { + "type": "string" + }, + "description": "Optional. IDs for split modules that might be installed in combination with the base APK. Can be empty if app bundles (or a similar technology) are not used. Example: config.en.apk.", + "type": "array" + }, + "baseApkId": { + "description": "Required. The ID for the main base application module. Example: base.apk or app.apk.", + "type": "string" + }, + "alreadyPublishedOnPlay": { + "type": "boolean", + "description": "Optional. Whether all APKs referenced in this active APK set are published on Play Store (or derived from an app bundle published on Play Store). When this is set, version_code must be provided." + }, + "versionCode": { + "format": "int64", + "description": "Optional. Version code for the version this APK set represents.", + "type": "string" + } + } + }, + "OfferDetails": { + "description": "Offer details information related to a purchase line item.", + "type": "object", + "properties": { + "basePlanId": { + "description": "The base plan ID. Present for all base plan and offers.", + "type": "string" + }, + "offerId": { + "type": "string", + "description": "The offer ID. Only present for discounted offers." + }, + "offerTags": { + "description": "The latest offer tags associated with the offer. It includes tags inherited from the base plan.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "id": "OfferDetails" + }, + "LineItem": { + "description": "Details of a line item.", + "properties": { + "productId": { + "description": "The purchased product ID or in-app SKU (for example, 'monthly001' or 'com.some.thing.inapp1').", + "type": "string" + }, + "listingPrice": { + "$ref": "Money", + "description": "Item's listed price on Play Store, this may or may not include tax. Excludes Google-funded discounts only." + }, + "paidAppDetails": { + "$ref": "PaidAppDetails", + "description": "Details of a paid app purchase." + }, + "tax": { + "description": "The tax paid for this line item.", + "$ref": "Money" + }, + "total": { + "description": "The total amount paid by the user for this line item, taking into account discounts and tax.", + "$ref": "Money" + }, + "productTitle": { + "description": "Developer-specified name of the product. Displayed in buyer's locale. Example: coins, monthly subscription, etc.", + "type": "string" + }, + "oneTimePurchaseDetails": { + "$ref": "OneTimePurchaseDetails", + "description": "Details of a one-time purchase." + }, + "subscriptionDetails": { + "$ref": "SubscriptionDetails", + "description": "Details of a subscription purchase." + } + }, + "type": "object", + "id": "LineItem" + }, + "RegionalSubscriptionOfferConfig": { + "id": "RegionalSubscriptionOfferConfig", + "description": "Configuration for a subscription offer in a single region.", + "type": "object", + "properties": { + "regionCode": { + "description": "Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. \"US\".", + "type": "string" + }, + "newSubscriberAvailability": { + "type": "boolean", + "description": "Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false." + } + } + }, + "PolicyGroupResponse": { + "id": "PolicyGroupResponse", + "type": "object", + "properties": { + "groups": { + "description": "Optional. Groups of responses to questions.", + "items": { + "$ref": "Group" + }, + "type": "array" + } + }, + "description": "A repeated group of responses." + }, + "OutOfAppPurchaseContext": { + "properties": { + "expiredExternalAccountIdentifiers": { + "description": "User account identifier from the last expired subscription for this SKU.", + "$ref": "ExternalAccountIdentifiers" + }, + "expiredPurchaseToken": { + "description": "The purchase token of the last expired subscription. This purchase token must only be used to help identify the user if the link between the purchaseToken and user is stored in your database. This cannot be used to call the Google Developer API if it has been more than 60 days since expiry.", + "type": "string" + } + }, + "type": "object", + "description": "Information specific to an out of app purchase.", + "id": "OutOfAppPurchaseContext" + }, + "UpdateOneTimeProductRequest": { + "description": "Request message for UpdateOneTimeProduct.", + "type": "object", + "properties": { + "latencyTolerance": { + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "description": "Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive.", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ] + }, + "regionsVersion": { + "$ref": "RegionsVersion", + "description": "Required. The version of the available regions being used for the one-time product." + }, + "updateMask": { + "description": "Required. The list of fields to be updated.", + "format": "google-fieldmask", + "type": "string" + }, + "allowMissing": { + "type": "boolean", + "description": "Optional. If set to true, and the one-time product with the given package_name and product_id doesn't exist, the one-time product will be created. If a new one-time product is created, update_mask is ignored." + }, + "oneTimeProduct": { + "description": "Required. The one-time product to upsert.", + "$ref": "OneTimeProduct" + } + }, + "id": "UpdateOneTimeProductRequest" + }, + "ConvertedOtherRegionsPrice": { + "properties": { + "usdPrice": { + "$ref": "Money", + "description": "Price in USD to use for the \"Other regions\" location exclusive of taxes." + }, + "eurPrice": { + "$ref": "Money", + "description": "Price in EUR to use for the \"Other regions\" location exclusive of taxes." + } + }, + "description": "Converted other regions prices.", + "type": "object", + "id": "ConvertedOtherRegionsPrice" + }, + "UsesPermission": { + "properties": { + "maxSdkVersion": { + "type": "integer", + "description": "Optionally, the maximum SDK version for which the permission is required.", + "format": "int32" + }, + "name": { + "description": "The name of the permission requested.", + "type": "string" + } + }, + "description": "A permission used by this APK.", + "type": "object", + "id": "UsesPermission" + }, + "AppStoreAppStoreListing": { + "description": "A localized store listing. These are the details about the app as shown in your app store.", + "properties": { + "shortDescription": { + "type": "string", + "description": "Optional. Quick summary about the app." + }, + "videoLink": { + "description": "Optional. Link to a video about the app.", + "type": "string" + }, + "appIconId": { + "type": "string", + "description": "Required. Image ID generated from UploadImage for the main app icon." + }, + "appName": { + "description": "Required. The title of the app.", + "type": "string" + }, + "languageCode": { + "description": "Required. Language code (e.g., \"en-US\") of the listing.", + "type": "string" + }, + "screenshotId": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Required. Multiple image IDs for screenshot galleries." + }, + "fullDescription": { + "description": "Required. Comprehensive description text about the app.", + "type": "string" + } + }, + "id": "AppStoreAppStoreListing", + "type": "object" + }, + "GeneratedApksPerSigningKey": { + "id": "GeneratedApksPerSigningKey", + "description": "Download metadata for split, standalone and universal APKs, as well as asset pack slices, signed with a given key.", + "type": "object", + "properties": { + "unprotectedGeneratedStandaloneApks": { + "items": { + "$ref": "GeneratedStandaloneApk" + }, + "type": "array", + "description": "List of generated standalone APKs without automatic protection, signed with a key corresponding to certificate_sha256_hash. This field is only present if the app uses automatic protection. In this case, `generated_standalone_apks` contains APKs with automatic protection enabled, whereas this field contains APKs without automatic protection." + }, + "generatedSplitApks": { + "items": { + "$ref": "GeneratedSplitApk" + }, + "type": "array", + "description": "List of generated split APKs, signed with a key corresponding to certificate_sha256_hash." + }, + "targetingInfo": { + "description": "Contains targeting information about the generated apks.", + "$ref": "TargetingInfo" + }, + "certificateSha256Hash": { + "type": "string", + "description": "SHA256 hash of the APK signing public key certificate." + }, + "generatedUniversalApk": { + "$ref": "GeneratedUniversalApk", + "description": "Generated universal APK, signed with a key corresponding to certificate_sha256_hash. This field is not set if no universal APK was generated for this signing key." + }, + "generatedStandaloneApks": { + "items": { + "$ref": "GeneratedStandaloneApk" + }, + "description": "List of generated standalone APKs, signed with a key corresponding to certificate_sha256_hash.", + "type": "array" + }, + "generatedAssetPackSlices": { + "items": { + "$ref": "GeneratedAssetPackSlice" + }, + "description": "List of asset pack slices which will be served for this app bundle, signed with a key corresponding to certificate_sha256_hash.", + "type": "array" + }, + "unprotectedGeneratedSplitApks": { + "items": { + "$ref": "GeneratedSplitApk" + }, + "type": "array", + "description": "List of generated split APKs without automatic protection, signed with a key corresponding to certificate_sha256_hash. This field is only present if the app uses automatic protection. In this case, `generated_split_apks` contains APKs with automatic protection enabled, whereas this field contains APKs without automatic protection." + }, + "generatedRecoveryModules": { + "items": { + "$ref": "GeneratedRecoveryApk" + }, + "description": "Generated recovery apks for recovery actions signed with a key corresponding to certificate_sha256_hash. This includes all generated recovery APKs, also those in draft or cancelled state. This field is not set if no recovery actions were created for this signing key.", + "type": "array" + } + } + }, + "OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig": { + "description": "Regional pricing and availability configuration for a purchase option.", + "properties": { + "regionCode": { + "description": "Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g., \"US\".", + "type": "string" + }, + "price": { + "$ref": "Money", + "description": "The price of the purchase option in the specified region. Must be set in the currency that is linked to the specified region." + }, + "availability": { + "type": "string", + "enumDescriptions": [ + "Unspecified availability. Must not be used.", + "The purchase option is available to users.", + "The purchase option is no longer available to users. This value can only be used if the availability was previously set as AVAILABLE.", + "The purchase option is initially unavailable, but made available via a released pre-order offer.", + "The purchase option is unavailable but offers linked to it (i.e. Play Points offer) are available." + ], + "description": "The availability of the purchase option.", + "enum": [ + "AVAILABILITY_UNSPECIFIED", + "AVAILABLE", + "NO_LONGER_AVAILABLE", + "AVAILABLE_IF_RELEASED", + "AVAILABLE_FOR_OFFERS_ONLY" + ] + } + }, + "id": "OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig", + "type": "object" + }, + "OrderDetails": { + "description": "Detailed information about the order at creation time.", + "id": "OrderDetails", + "type": "object", + "properties": { + "taxInclusive": { + "type": "boolean", + "description": "Indicates whether the listed price was tax inclusive or not." + } + } + }, + "DeviceSpec": { + "properties": { + "supportedAbis": { + "description": "Supported ABI architectures in the order of preference. The values should be the string as reported by the platform, e.g. \"armeabi-v7a\", \"x86_64\".", + "items": { + "type": "string" + }, + "type": "array" + }, + "screenDensity": { + "type": "integer", + "description": "Screen dpi.", + "format": "uint32" + }, + "supportedLocales": { + "description": "All installed locales represented as BCP-47 strings, e.g. \"en-US\".", + "type": "array", + "items": { + "type": "string" + } + } + }, + "type": "object", + "description": "The device spec used to generate a system APK.", + "id": "DeviceSpec" + }, + "PageInfo": { + "type": "object", + "properties": { + "startIndex": { + "format": "int32", + "type": "integer", + "description": "Index of the first result returned in the current page." + }, + "totalResults": { + "type": "integer", + "description": "Total number of results available on the backend ! The total number of results in the result set.", + "format": "int32" + }, + "resultPerPage": { + "format": "int32", + "type": "integer", + "description": "Maximum number of results returned in one page. ! The number of results included in the API response." + } + }, + "description": "Information about the current page. List operations that supports paging return only one \"page\" of results. This protocol buffer message describes the page that has been returned.", + "id": "PageInfo" + }, + "ActivateBasePlanRequest": { + "properties": { + "packageName": { + "description": "Required. The parent app (package name) of the base plan to activate.", + "type": "string" + }, + "latencyTolerance": { + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "type": "string" + }, + "basePlanId": { + "description": "Required. The unique base plan ID of the base plan to activate.", + "type": "string" + }, + "productId": { + "description": "Required. The parent subscription (ID) of the base plan to activate.", + "type": "string" + } + }, + "description": "Request message for ActivateBasePlan.", + "id": "ActivateBasePlanRequest", + "type": "object" + }, + "PolicyDocumentResponse": { + "id": "PolicyDocumentResponse", + "properties": { + "nonExpiring": { + "description": "Optional. True if confirmed that the document does not have an expiry date.", + "type": "boolean" + }, + "expiryDate": { + "description": "Optional. Expiry date for the document.", + "$ref": "Date" + }, + "documentId": { + "type": "string", + "description": "Required. ID of the uploaded document." + } + }, + "description": "An uploaded document. Must be a single logical document (e.g. a financial license).", + "type": "object" + }, + "BatchDeleteOneTimeProductsRequest": { + "description": "Request message for BatchDeleteOneTimeProduct.", + "type": "object", + "id": "BatchDeleteOneTimeProductsRequest", + "properties": { + "requests": { + "items": { + "$ref": "DeleteOneTimeProductRequest" + }, + "type": "array", + "description": "Required. A list of delete requests of up to 100 elements. All requests must delete different one-time products." + } + } + }, + "UpdatePurchaseOptionStateRequest": { + "id": "UpdatePurchaseOptionStateRequest", + "type": "object", + "properties": { + "activatePurchaseOptionRequest": { + "description": "Activates a purchase option. Once activated, the purchase option will be available.", + "$ref": "ActivatePurchaseOptionRequest" + }, + "deactivatePurchaseOptionRequest": { + "description": "Deactivates a purchase option. Once deactivated, the purchase option will become unavailable.", + "$ref": "DeactivatePurchaseOptionRequest" + } + }, + "description": "Request message to update the state of a one-time product purchase option." + }, + "AcquisitionTargetingRule": { + "id": "AcquisitionTargetingRule", + "type": "object", + "properties": { + "scope": { + "description": "Required. The scope of subscriptions this rule considers. Only allows \"this subscription\" and \"any subscription in app\".", + "$ref": "TargetingRuleScope" + } + }, + "description": "Represents a targeting rule of the form: User never had {scope} before." + }, + "PolicySingleChoiceResponse": { + "type": "object", + "description": "Any response where a single option is chosen from several possibilities.", + "id": "PolicySingleChoiceResponse", + "properties": { + "value": { + "description": "Required. Provided value.", + "type": "string" + } + } + }, + "UploadAppStoreAppPolicyDeclarationFileResponse": { + "type": "object", + "description": "Response for uploading a policy declaration file.", + "id": "UploadAppStoreAppPolicyDeclarationFileResponse", + "properties": { + "fileId": { + "description": "The unique ID of the uploaded file.", + "type": "string" + } + } + }, + "ProductLineItem": { + "type": "object", + "description": "Contains item-level info for a ProductPurchaseV2.", + "properties": { + "productId": { + "description": "The purchased product ID (for example, 'monthly001').", + "type": "string" + }, + "productOfferDetails": { + "$ref": "ProductOfferDetails", + "description": "The offer details for this item." + } + }, + "id": "ProductLineItem" + }, + "DeviceFeature": { + "id": "DeviceFeature", + "description": "Represents a device feature.", + "type": "object", + "properties": { + "featureName": { + "description": "Name of the feature.", + "type": "string" + }, + "featureVersion": { + "type": "integer", + "format": "int32", + "description": "The feature version specified by android:glEsVersion or android:version in in the AndroidManifest." + } + } + }, + "Group": { + "properties": { + "responses": { + "description": "Required. Responses within a group.", + "type": "array", + "items": { + "$ref": "NestedPolicyResponse" + } + } + }, + "description": "A group of responses.", + "id": "Group", + "type": "object" + }, + "GeneratedStandaloneApk": { + "id": "GeneratedStandaloneApk", + "type": "object", + "properties": { + "downloadId": { + "type": "string", + "description": "Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method." + }, + "variantId": { + "description": "ID of the generated variant.", + "format": "int32", + "type": "integer" + } + }, + "description": "Download metadata for a standalone APK." + }, + "OtherRegionsSubscriptionOfferPhasePrices": { + "description": "Pricing information for any new locations Play may launch in.", + "id": "OtherRegionsSubscriptionOfferPhasePrices", + "properties": { + "usdPrice": { + "$ref": "Money", + "description": "Required. Price in USD to use for any new locations Play may launch in." + }, + "eurPrice": { + "description": "Required. Price in EUR to use for any new locations Play may launch in.", + "$ref": "Money" + } + }, + "type": "object" + }, + "BatchUpdateSubscriptionOffersResponse": { + "type": "object", + "description": "Response message for BatchUpdateSubscriptionOffers.", + "id": "BatchUpdateSubscriptionOffersResponse", + "properties": { + "subscriptionOffers": { + "items": { + "$ref": "SubscriptionOffer" + }, + "type": "array", + "description": "The updated subscription offers list." + } + } + }, + "CancelSurveyResult": { + "description": "Result of the cancel survey when the subscription was canceled by the user.", + "properties": { + "reasonUserInput": { + "type": "string", + "description": "Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user's freeform response to the survey." + }, + "reason": { + "type": "string", + "description": "The reason the user selected in the cancel survey.", + "enumDescriptions": [ + "Unspecified cancel survey reason.", + "Not enough usage of the subscription.", + "Technical issues while using the app.", + "Cost related issues.", + "The user found a better app.", + "Other reasons." + ], + "enum": [ + "CANCEL_SURVEY_REASON_UNSPECIFIED", + "CANCEL_SURVEY_REASON_NOT_ENOUGH_USAGE", + "CANCEL_SURVEY_REASON_TECHNICAL_ISSUES", + "CANCEL_SURVEY_REASON_COST_RELATED", + "CANCEL_SURVEY_REASON_FOUND_BETTER_APP", + "CANCEL_SURVEY_REASON_OTHERS" + ] + } + }, + "type": "object", + "id": "CancelSurveyResult" + }, + "ActivateOneTimeProductOfferRequest": { + "description": "Request message for ActivateOneTimeProductOffer.", + "id": "ActivateOneTimeProductOfferRequest", + "properties": { + "offerId": { + "description": "Required. The offer ID of the offer to activate.", + "type": "string" + }, + "purchaseOptionId": { + "type": "string", + "description": "Required. The parent purchase option (ID) of the offer to activate." + }, + "packageName": { + "description": "Required. The parent app (package name) of the offer to activate.", + "type": "string" + }, + "latencyTolerance": { + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "description": "Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ] + }, + "productId": { + "type": "string", + "description": "Required. The parent one-time product (ID) of the offer to activate." + } + }, + "type": "object" + }, + "BatchUpdateOneTimeProductOffersRequest": { + "id": "BatchUpdateOneTimeProductOffersRequest", + "type": "object", + "description": "Request message for BatchUpdateOneTimeProductOffers.", + "properties": { + "requests": { + "description": "Required. A list of update requests of up to 100 elements. All requests must update different offers.", + "items": { + "$ref": "UpdateOneTimeProductOfferRequest" + }, + "type": "array" + } + } + }, + "BatchUpdateOneTimeProductOfferStatesRequest": { + "properties": { + "requests": { + "description": "Required. The update request list of up to 100 elements. All requests must update different offers.", + "type": "array", + "items": { + "$ref": "UpdateOneTimeProductOfferStateRequest" + } + } + }, + "type": "object", + "description": "Request message for BatchUpdateOneTimeProductOfferStates.", + "id": "BatchUpdateOneTimeProductOfferStatesRequest" + }, + "BundlesListResponse": { + "type": "object", + "description": "Response listing all app bundles.", + "id": "BundlesListResponse", + "properties": { + "bundles": { + "description": "All app bundles.", + "items": { + "$ref": "Bundle" + }, + "type": "array" + }, + "kind": { + "type": "string", + "description": "The kind of this response (\"androidpublisher#bundlesListResponse\")." + } + } + }, + "RestrictedPaymentCountries": { + "id": "RestrictedPaymentCountries", + "type": "object", + "description": "Countries where the purchase of this product is restricted to payment methods registered in the same country. If empty, no payment location restrictions are imposed.", + "properties": { + "regionCodes": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Required. Region codes to impose payment restrictions on, as defined by ISO 3166-2, e.g. \"US\"." + } + } + }, + "FullRefund": { + "id": "FullRefund", + "description": "A full refund of the remaining amount of a transaction.", + "type": "object", + "properties": {} + }, + "ArchiveSubscriptionRequest": { + "deprecated": true, + "properties": {}, + "id": "ArchiveSubscriptionRequest", + "type": "object", + "description": "Deprecated: subscription archiving is not supported." + }, + "BatchUpdateSubscriptionsResponse": { + "type": "object", + "description": "Response message for BatchUpdateSubscription.", + "id": "BatchUpdateSubscriptionsResponse", + "properties": { + "subscriptions": { + "type": "array", + "items": { + "$ref": "Subscription" + }, + "description": "The updated subscriptions list." + } + } + }, + "ReviewsListResponse": { + "type": "object", + "description": "Response listing reviews.", + "id": "ReviewsListResponse", + "properties": { + "tokenPagination": { + "description": "Pagination token, to handle a number of products that is over one page.", + "$ref": "TokenPagination" + }, + "pageInfo": { + "$ref": "PageInfo", + "description": "Information about the current page." + }, + "reviews": { + "type": "array", + "description": "List of reviews.", + "items": { + "$ref": "Review" + } + } + } + }, + "BaseDetails": { + "properties": {}, + "type": "object", + "description": "Details of a base price pricing phase.", + "id": "BaseDetails" + }, + "ExternalAccountIds": { + "description": "User account identifier in your app.", + "properties": { + "obfuscatedAccountId": { + "type": "string", + "description": "Optional. Specifies an optional obfuscated string that is uniquely associated with the purchaser's user account in your app. If you pass this value, Google Play can use it to detect irregular activity. Do not use this field to store any Personally Identifiable Information (PII) such as emails in cleartext. Attempting to store PII in this field will result in purchases being blocked. Google Play recommends that you use either encryption or a one-way hash to generate an obfuscated identifier to send to Google Play. This identifier is limited to 64 characters. This field can only be set for resubscription purchases. See https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid to set this field for purchases made using the standard in-app billing flow." + }, + "obfuscatedProfileId": { + "description": "Optional. Specifies an optional obfuscated string that is uniquely associated with the purchaser's user profile in your app. If you pass this value, Google Play can use it to detect irregular activity. Do not use this field to store any Personally Identifiable Information (PII) such as emails in cleartext. Attempting to store PII in this field will result in purchases being blocked. Google Play recommends that you use either encryption or a one-way hash to generate an obfuscated identifier to send to Google Play. This identifier is limited to 64 characters. This field can only be set for resubscription purchases. See https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid to set this field for purchases made using the standard in-app billing flow.", + "type": "string" + } + }, + "type": "object", + "id": "ExternalAccountIds" + }, + "BatchDeleteOneTimeProductOffersRequest": { + "description": "Request message for BatchDeleteOneTimeProductOffers.", + "properties": { + "requests": { + "items": { + "$ref": "DeleteOneTimeProductOfferRequest" + }, + "description": "Required. A list of update requests of up to 100 elements. All requests must correspond to different offers.", + "type": "array" + } + }, + "type": "object", + "id": "BatchDeleteOneTimeProductOffersRequest" + }, + "RegionalTaxRateInfo": { + "description": "Specified details about taxation in a given geographical region.", + "properties": { + "taxTier": { + "description": "Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498).", + "type": "string", + "enum": [ + "TAX_TIER_UNSPECIFIED", + "TAX_TIER_BOOKS_1", + "TAX_TIER_NEWS_1", + "TAX_TIER_NEWS_2", + "TAX_TIER_MUSIC_OR_AUDIO_1", + "TAX_TIER_LIVE_OR_BROADCAST_1" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ] + }, + "eligibleForStreamingServiceTaxRate": { + "description": "You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States.", + "type": "boolean" + }, + "streamingTaxType": { + "description": "To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).", + "enum": [ + "STREAMING_TAX_TYPE_UNSPECIFIED", + "STREAMING_TAX_TYPE_TELCO_VIDEO_RENTAL", + "STREAMING_TAX_TYPE_TELCO_VIDEO_SALES", + "STREAMING_TAX_TYPE_TELCO_VIDEO_MULTI_CHANNEL", + "STREAMING_TAX_TYPE_TELCO_AUDIO_RENTAL", + "STREAMING_TAX_TYPE_TELCO_AUDIO_SALES", + "STREAMING_TAX_TYPE_TELCO_AUDIO_MULTI_CHANNEL" + ], + "enumDescriptions": [ + "No telecommunications tax collected.", + "US-specific telecommunications tax tier for video streaming, on demand, rentals / subscriptions / pay-per-view.", + "US-specific telecommunications tax tier for video streaming of pre-recorded content like movies, tv shows.", + "US-specific telecommunications tax tier for video streaming of multi-channel programming.", + "US-specific telecommunications tax tier for audio streaming, rental / subscription.", + "US-specific telecommunications tax tier for audio streaming, sale / permanent download.", + "US-specific telecommunications tax tier for multi channel audio streaming like radio." + ], + "type": "string" + } + }, + "type": "object", + "id": "RegionalTaxRateInfo" + }, + "Bundle": { + "type": "object", + "description": "Information about an app bundle. The resource for BundlesService.", + "id": "Bundle", + "properties": { + "versionCode": { + "description": "The version code of the Android App Bundle, as specified in the Android App Bundle's base module APK manifest file.", + "type": "integer", + "format": "int32" + }, + "sha1": { + "description": "A sha1 hash of the upload payload, encoded as a hex string and matching the output of the sha1sum command.", + "type": "string" + }, + "sha256": { + "description": "A sha256 hash of the upload payload, encoded as a hex string and matching the output of the sha256sum command.", + "type": "string" + } + } + }, + "RotatedCloudKmsKey": { + "id": "RotatedCloudKmsKey", + "type": "object", + "properties": { + "signingCertificateLineage": { + "format": "byte", + "type": "string", + "description": "Required. Proof-of-rotation. See [creating signing certificate lineages](https://developer.android.com/studio/command-line/apksigner#rotate_signing_keys_2)." + }, + "cloudKmsKeyAndCert": { + "description": "Required. Cloud KMS key and the certificate associated with the key.", + "$ref": "CloudKmsKeyAndCert" + } + }, + "description": "Message representing rotated Cloud KMS key. Consists of the Cloud KMS key and its associated proof of rotation." + }, + "RevocationContextFullRefund": { + "type": "object", + "properties": {}, + "description": "Used to determine if the refund type in the RevocationContext is a full refund.", + "id": "RevocationContextFullRefund" + }, + "SdkVersionTargeting": { + "description": "Targeting based on sdk version.", + "type": "object", + "id": "SdkVersionTargeting", + "properties": { + "alternatives": { + "items": { + "$ref": "SdkVersion" + }, + "description": "Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other main splits.", + "type": "array" + }, + "value": { + "type": "array", + "items": { + "$ref": "SdkVersion" + }, + "description": "Value of an sdk version." + } + } + }, + "TrackConfig": { + "description": "Configurations of the new track.", + "type": "object", + "id": "TrackConfig", + "properties": { + "track": { + "type": "string", + "description": "Required. Identifier of the new track. For default tracks, this field consists of the track alias only. Form factor tracks have a special prefix as an identifier, for example `wear:production`, `automotive:production`. This prefix must match the value of the `form_factor` field, if it is not a default track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)" + }, + "formFactor": { + "enum": [ + "FORM_FACTOR_UNSPECIFIED", + "DEFAULT", + "WEAR", + "AUTOMOTIVE" + ], + "description": "Required. Form factor of the new track. Defaults to the default track.", + "enumDescriptions": [ + "Fallback value, do not use.", + "Default track.", + "Wear form factor track.", + "Automotive form factor track." + ], + "type": "string" + }, + "type": { + "enumDescriptions": [ + "Fallback value, do not use.", + "Closed testing track." + ], + "enum": [ + "TRACK_TYPE_UNSPECIFIED", + "CLOSED_TESTING" + ], + "type": "string", + "description": "Required. Type of the new track. Currently, the only supported value is closedTesting." + } + } + }, + "SocSelector": { + "description": "Defines a SOC selector for a device. This will match any device whose SoC (System on Chip) matches all fields in the selector.", + "properties": { + "socMake": { + "type": "string", + "description": "The manufacturer of the SoC." + }, + "socModel": { + "type": "string", + "description": "The model of the SoC." + } + }, + "id": "SocSelector", + "type": "object" + }, + "Variant": { + "properties": { + "variantId": { + "description": "Output only. The ID of a previously created system APK variant.", + "type": "integer", + "readOnly": true, + "format": "uint32" + }, + "options": { + "$ref": "SystemApkOptions", + "description": "Optional. Options applied to the generated APK." + }, + "deviceSpec": { + "$ref": "DeviceSpec", + "description": "The device spec used to generate the APK." + } + }, + "description": "APK that is suitable for inclusion in a system image. The resource of SystemApksService.", + "id": "Variant", + "type": "object" + }, + "PartialRefund": { + "description": "A partial refund of a transaction.", + "type": "object", + "properties": { + "refundId": { + "type": "string", + "description": "Required. A unique id distinguishing this partial refund. If the refund is successful, subsequent refunds with the same id will fail. Must be unique across refunds for one individual transaction." + }, + "refundPreTaxAmount": { + "description": "Required. The pre-tax amount of the partial refund. Should be less than the remaining pre-tax amount of the transaction.", + "$ref": "Price" + } + }, + "id": "PartialRefund" + }, + "VanityCode": { + "type": "object", + "id": "VanityCode", + "properties": { + "promotionCode": { + "description": "The promotion code.", + "type": "string" + } + }, + "description": "A multiple use, predefined promotion code." + }, + "SafetyLabelsUpdateResponse": { + "properties": {}, + "description": "Response for SafetyLabelsUpdate rpc.", + "id": "SafetyLabelsUpdateResponse", + "type": "object" + }, + "OneTimeProductBuyPurchaseOption": { + "description": "A purchase option that can be bought.", + "id": "OneTimeProductBuyPurchaseOption", + "type": "object", + "properties": { + "legacyCompatible": { + "description": "Optional. Whether this purchase option will be available in legacy PBL flows that do not support one-time products model. Up to one \"buy\" purchase option can be marked as backwards compatible.", + "type": "boolean" + }, + "multiQuantityEnabled": { + "description": "Optional. Whether this purchase option allows multi-quantity. Multi-quantity allows buyer to purchase more than one item in a single checkout.", + "type": "boolean" + } + } + }, + "OneTimeExternalTransaction": { + "description": "Represents a one-time transaction.", + "id": "OneTimeExternalTransaction", + "type": "object", + "properties": { + "externalTransactionToken": { + "type": "string", + "description": "Input only. Provided during the call to Create. Retrieved from the client when the alternative billing flow is launched." + } + } + }, + "DeactivateSubscriptionOfferRequest": { + "id": "DeactivateSubscriptionOfferRequest", + "description": "Request message for DeactivateSubscriptionOffer.", + "properties": { + "packageName": { + "description": "Required. The parent app (package name) of the offer to deactivate.", + "type": "string" + }, + "basePlanId": { + "description": "Required. The parent base plan (ID) of the offer to deactivate.", + "type": "string" + }, + "offerId": { + "type": "string", + "description": "Required. The unique offer ID of the offer to deactivate." + }, + "latencyTolerance": { + "type": "string", + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ] + }, + "productId": { + "type": "string", + "description": "Required. The parent subscription (ID) of the offer to deactivate." + } + }, + "type": "object" + }, + "AppRecoveryAction": { + "description": "Information about an app recovery action.", + "properties": { + "targeting": { + "$ref": "Targeting", + "description": "Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc." + }, + "cancelTime": { + "type": "string", + "format": "google-datetime", + "description": "Timestamp of when the app recovery action is canceled by the developer. Only set if the recovery action has been canceled." + }, + "appRecoveryId": { + "description": "ID corresponding to the app recovery action.", + "type": "string", + "format": "int64" + }, + "createTime": { + "type": "string", + "description": "Timestamp of when the app recovery action is created by the developer. It is always set after creation of the recovery action.", + "format": "google-datetime" + }, + "deployTime": { + "format": "google-datetime", + "type": "string", + "description": "Timestamp of when the app recovery action is deployed to the users. Only set if the recovery action has been deployed." + }, + "remoteInAppUpdateData": { + "$ref": "RemoteInAppUpdateData", + "description": "Data about the remote in-app update action such as such as recovered user base, recoverable user base etc. Set only if the recovery action type is Remote In-App Update." + }, + "lastUpdateTime": { + "format": "google-datetime", + "type": "string", + "description": "Timestamp of when the developer last updated recovery action. In case the action is cancelled, it corresponds to cancellation time. It is always set after creation of the recovery action." + }, + "status": { + "type": "string", + "enumDescriptions": [ + "RecoveryStatus is unspecified.", + "The app recovery action has not been canceled since it has been created.", + "The recovery action has been canceled. The action cannot be resumed.", + "The recovery action is in the draft state and has not yet been deployed to users.", + "The recovery action is generating recovery apks.", + "The app recovery action generation has failed." + ], + "description": "The status of the recovery action.", + "enum": [ + "RECOVERY_STATUS_UNSPECIFIED", + "RECOVERY_STATUS_ACTIVE", + "RECOVERY_STATUS_CANCELED", + "RECOVERY_STATUS_DRAFT", + "RECOVERY_STATUS_GENERATION_IN_PROGRESS", + "RECOVERY_STATUS_GENERATION_FAILED" + ] + } + }, + "type": "object", + "id": "AppRecoveryAction" + }, + "PolicyMultipleChoiceResponse": { + "id": "PolicyMultipleChoiceResponse", + "type": "object", + "properties": { + "values": { + "items": { + "type": "string" + }, + "description": "Optional. Provided values.", + "type": "array" + } + }, + "description": "Any response where multiple options can be chosen from several possibilities." + }, + "ScreenDensity": { + "properties": { + "densityDpi": { + "format": "int32", + "description": "Value for density dpi.", + "type": "integer" + }, + "densityAlias": { + "type": "string", + "enumDescriptions": [ + "Unspecified screen density.", + "NODPI screen density.", + "LDPI screen density.", + "MDPI screen density.", + "TVDPI screen density.", + "HDPI screen density.", + "XHDPI screen density.", + "XXHDPI screen density.", + "XXXHDPI screen density." + ], + "enum": [ + "DENSITY_UNSPECIFIED", + "NODPI", + "LDPI", + "MDPI", + "TVDPI", + "HDPI", + "XHDPI", + "XXHDPI", + "XXXHDPI" + ], + "description": "Alias for a screen density." + } + }, + "description": "Represents a screen density.", + "type": "object", + "id": "ScreenDensity" + }, + "ArtifactSummary": { + "id": "ArtifactSummary", + "type": "object", + "properties": { + "versionCode": { + "description": "Artifact's version code", + "format": "int32", + "type": "integer" + } + }, + "description": "Summary of an artifact." + }, + "ReleaseSummary": { + "type": "object", + "properties": { + "activeArtifacts": { + "type": "array", + "items": { + "$ref": "ArtifactSummary" + }, + "description": "List of active artifacts on this release" + }, + "track": { + "description": "Identifier for the track. [Learn more about track names.](https://developers.google.com/android-publisher/tracks).", + "type": "string" + }, + "releaseLifecycleState": { + "type": "string", + "description": "The lifecycle state of a release.", + "enum": [ + "RELEASE_LIFECYCLE_STATE_UNSPECIFIED", + "RELEASE_LIFECYCLE_STATE_DRAFT", + "RELEASE_LIFECYCLE_STATE_NOT_SENT_FOR_REVIEW", + "RELEASE_LIFECYCLE_STATE_IN_REVIEW", + "RELEASE_LIFECYCLE_STATE_APPROVED_NOT_PUBLISHED", + "RELEASE_LIFECYCLE_STATE_NOT_APPROVED", + "RELEASE_LIFECYCLE_STATE_PUBLISHED" + ], + "enumDescriptions": [ + "Not specified.", + "The release is not yet ready and can still be edited.", + "The release is ready to be sent for review and an action is required from developer", + "Submitted and in review", + "Passed review and is ready to be published manually by developer", + "App was rejected in review", + "Available to users on the track. This includes fully- or partially-rolled out releases and any halted release that can be resumed." + ] + }, + "releaseName": { + "type": "string", + "description": "Name of the release." + } + }, + "id": "ReleaseSummary", + "description": "Summary of a release." + }, + "UserInitiatedCancellation": { + "id": "UserInitiatedCancellation", + "description": "Information specific to cancellations initiated by users.", + "properties": { + "cancelSurveyResult": { + "$ref": "CancelSurveyResult", + "description": "Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey)." + }, + "cancelTime": { + "format": "google-datetime", + "description": "The time at which the subscription was canceled by the user. The user might still have access to the subscription after this time. Use line_items.expiry_time to determine if a user still has access.", + "type": "string" + } + }, + "type": "object" + }, + "Track": { + "description": "A track configuration. The resource for TracksService.", + "id": "Track", + "type": "object", + "properties": { + "releases": { + "items": { + "$ref": "TrackRelease" + }, + "type": "array", + "description": "In a read request, represents all active releases in the track. In an update request, represents desired changes." + }, + "track": { + "description": "Identifier of the track. Form factor tracks have a special prefix as an identifier, for example `wear:production`, `automotive:production`. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", + "type": "string" + } + } + }, + "SystemApkOptions": { + "properties": { + "uncompressedNativeLibraries": { + "type": "boolean", + "description": "Whether system APK was generated with uncompressed native libraries." + }, + "rotated": { + "type": "boolean", + "description": "Whether to use the rotated key for signing the system APK." + }, + "uncompressedDexFiles": { + "description": "Whether system APK was generated with uncompressed dex files.", + "type": "boolean" + } + }, + "id": "SystemApkOptions", + "type": "object", + "description": "Options for system APKs." + }, + "BatchMigrateBasePlanPricesRequest": { + "type": "object", + "properties": { + "requests": { + "description": "Required. Up to 100 price migration requests. All requests must update different base plans.", + "type": "array", + "items": { + "$ref": "MigrateBasePlanPricesRequest" + } + } + }, + "description": "Request message for BatchMigrateBasePlanPrices.", + "id": "BatchMigrateBasePlanPricesRequest" + }, + "InappproductsBatchUpdateRequest": { + "id": "InappproductsBatchUpdateRequest", + "description": "Request to update or insert one or more in-app products.", + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "$ref": "InappproductsUpdateRequest" + }, + "description": "Required. Individual update requests. At least one request is required. Can contain up to 100 requests. All requests must correspond to different in-app products." + } + } + }, + "RegionalSubscriptionOfferPhaseFreePriceOverride": { + "description": "Represents the free price override configuration for a single phase of a subscription offer", + "type": "object", + "properties": {}, + "id": "RegionalSubscriptionOfferPhaseFreePriceOverride" + }, + "BatchUpdateOneTimeProductsResponse": { + "type": "object", + "description": "Response message for BatchUpdateOneTimeProduct.", + "properties": { + "oneTimeProducts": { + "description": "The list of updated one-time products list, in the same order as the request.", + "type": "array", + "items": { + "$ref": "OneTimeProduct" + } + } + }, + "id": "BatchUpdateOneTimeProductsResponse" + }, + "SubscriptionItemPriceChangeDetails": { + "type": "object", + "description": "Price change related information of a subscription item.", + "id": "SubscriptionItemPriceChangeDetails", + "properties": { + "priceChangeMode": { + "enumDescriptions": [ + "Price change mode unspecified. This value should never be set.", + "If the subscription price is decreasing.", + "If the subscription price is increasing and the user needs to accept it.", + "If the subscription price is increasing with opt out mode." + ], + "enum": [ + "PRICE_CHANGE_MODE_UNSPECIFIED", + "PRICE_DECREASE", + "PRICE_INCREASE", + "OPT_OUT_PRICE_INCREASE" + ], + "description": "Price change mode specifies how the subscription item price is changing.", + "type": "string" + }, + "priceChangeState": { + "enum": [ + "PRICE_CHANGE_STATE_UNSPECIFIED", + "OUTSTANDING", + "CONFIRMED", + "APPLIED", + "CANCELED" + ], + "description": "State the price change is currently in.", + "type": "string", + "enumDescriptions": [ + "Price change state unspecified. This value should not be used.", + "Waiting for the user to agree for the price change.", + "The price change is confirmed to happen for the user.", + "The price change is applied, i.e. the user has started being charged the new price.", + "The price change was canceled." + ] + }, + "newPrice": { + "$ref": "Money", + "description": "New recurring price for the subscription item." + }, + "expectedNewPriceChargeTime": { + "type": "string", + "description": "The renewal time at which the price change will become effective for the user. This is subject to change(to a future time) due to cases where the renewal time shifts like pause. This field is only populated if the price change has not taken effect.", + "format": "google-datetime" + } + } + }, + "BasePlan": { + "type": "object", + "description": "A single base plan for a subscription.", + "properties": { + "regionalConfigs": { + "description": "Region-specific information for this base plan.", + "type": "array", + "items": { + "$ref": "RegionalBasePlanConfig" + } + }, + "state": { + "type": "string", + "enumDescriptions": [ + "Unspecified state.", + "The base plan is currently in a draft state, and hasn't been activated. It can be safely deleted at this point.", + "The base plan is active and available for new subscribers.", + "The base plan is inactive and only available for existing subscribers." + ], + "enum": [ + "STATE_UNSPECIFIED", + "DRAFT", + "ACTIVE", + "INACTIVE" + ], + "description": "Output only. The state of the base plan, i.e. whether it's active. Draft and inactive base plans can be activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This field cannot be changed by updating the resource. Use the dedicated endpoints instead.", + "readOnly": true + }, + "autoRenewingBasePlanType": { + "$ref": "AutoRenewingBasePlanType", + "description": "Set when the base plan automatically renews at a regular interval." + }, + "installmentsBasePlanType": { + "description": "Set for installments base plans where a user is committed to a specified number of payments.", + "$ref": "InstallmentsBasePlanType" + }, + "otherRegionsConfig": { + "$ref": "OtherRegionsBasePlanConfig", + "description": "Pricing information for any new locations Play may launch in the future. If omitted, the BasePlan will not be automatically available any new locations Play may launch in the future." + }, + "offerTags": { + "type": "array", + "description": "List of up to 20 custom tags specified for this base plan, and returned to the app through the billing library. Subscription offers for this base plan will also receive these offer tags in the billing library.", + "items": { + "$ref": "OfferTag" + } + }, + "basePlanId": { + "type": "string", + "description": "Required. Immutable. The unique identifier of this base plan. Must be unique within the subscription, and conform with RFC-1034. That is, this ID can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 63 characters." + }, + "prepaidBasePlanType": { + "description": "Set when the base plan does not automatically renew at the end of the billing period.", + "$ref": "PrepaidBasePlanType" + } + }, + "id": "BasePlan" + }, + "SubscribeWithGoogleInfo": { + "description": "Information associated with purchases made with 'Subscribe with Google'.", + "properties": { + "profileId": { + "type": "string", + "description": "The Google profile id of the user when the subscription was purchased." + }, + "familyName": { + "description": "The family name of the user when the subscription was purchased.", + "type": "string" + }, + "profileName": { + "type": "string", + "description": "The profile name of the user when the subscription was purchased." + }, + "emailAddress": { + "description": "The email address of the user when the subscription was purchased.", + "type": "string" + }, + "givenName": { + "type": "string", + "description": "The given name of the user when the subscription was purchased." + } + }, + "id": "SubscribeWithGoogleInfo", + "type": "object" + }, + "PurchaseStateContext": { + "type": "object", + "properties": { + "purchaseState": { + "type": "string", + "enumDescriptions": [ + "Purchase state unspecified. This value should never be set.", + "Purchased successfully.", + "Purchase canceled.", + "The purchase is in a pending state and has not yet been completed. For more information on handling pending purchases, see https://developer.android.com/google/play/billing/integrate#pending." + ], + "description": "Output only. The purchase state of the purchase.", + "readOnly": true, + "enum": [ + "PURCHASE_STATE_UNSPECIFIED", + "PURCHASED", + "CANCELLED", + "PENDING" + ] + } + }, + "description": "Context about the purchase state.", + "id": "PurchaseStateContext" + }, + "ReviewsReplyRequest": { + "id": "ReviewsReplyRequest", + "type": "object", + "description": "Request to reply to review or update existing reply.", + "properties": { + "replyText": { + "description": "The text to set as the reply. Replies of more than approximately 350 characters will be rejected. HTML tags will be stripped.", + "type": "string" + } + } + }, + "ProductPurchase": { + "id": "ProductPurchase", + "description": "A ProductPurchase resource indicates the status of a user's inapp product purchase.", + "type": "object", + "properties": { + "purchaseTimeMillis": { + "format": "int64", + "type": "string", + "description": "The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970)." + }, + "orderId": { + "type": "string", + "description": "The order id associated with the purchase of the inapp product." + }, + "developerPayload": { + "description": "A developer-specified string that contains supplemental information about an order.", + "type": "string" + }, + "purchaseType": { + "format": "int32", + "type": "integer", + "description": "The type of purchase of the inapp product. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e. purchased using a promo code). Does not include Play Points purchases. 2. Rewarded (i.e. from watching a video ad instead of paying)" + }, + "acknowledgementState": { + "format": "int32", + "description": "The acknowledgement state of the inapp product. Possible values are: 0. Yet to be acknowledged 1. Acknowledged", + "type": "integer" + }, + "purchaseToken": { + "type": "string", + "description": "The purchase token generated to identify this purchase. May not be present." + }, + "productId": { + "description": "The inapp product SKU. May not be present.", + "type": "string" + }, + "obfuscatedExternalAccountId": { + "description": "An obfuscated version of the id that is uniquely associated with the user's account in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.", + "type": "string" + }, + "kind": { + "description": "This kind represents an inappPurchase object in the androidpublisher service.", + "type": "string" + }, + "regionCode": { + "type": "string", + "description": "ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted." + }, + "purchaseState": { + "type": "integer", + "description": "The purchase state of the order. Possible values are: 0. Purchased 1. Canceled 2. Pending", + "format": "int32" + }, + "obfuscatedExternalProfileId": { + "description": "An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made.", + "type": "string" + }, + "quantity": { + "format": "int32", + "description": "The quantity associated with the purchase of the inapp product. If not present, the quantity is 1.", + "type": "integer" + }, + "consumptionState": { + "description": "The consumption state of the inapp product. Possible values are: 0. Yet to be consumed 1. Consumed", + "type": "integer", + "format": "int32" + }, + "refundableQuantity": { + "type": "integer", + "description": "The quantity eligible for refund, i.e. quantity that hasn't been refunded. The value reflects quantity-based partial refunds and full refunds.", + "format": "int32" + } + } + }, + "UserCountrySet": { + "description": "A set of user countries. A country set determines what variation of app content gets served to a specific location.", + "properties": { + "countryCodes": { + "items": { + "type": "string" + }, + "type": "array", + "description": "List of country codes representing countries. A Country code is represented in ISO 3166 alpha-2 format. For Example:- \"IT\" for Italy, \"GE\" for Georgia." + }, + "name": { + "description": "Country set name.", + "type": "string" + } + }, + "type": "object", + "id": "UserCountrySet" + }, + "DeviceFeatureTargeting": { + "description": "Targeting for a device feature.", + "properties": { + "requiredFeature": { + "description": "Feature of the device.", + "$ref": "DeviceFeature" + } + }, + "id": "DeviceFeatureTargeting", + "type": "object" + }, + "UpdateAppStoreHostedAppPublishStatusResponse": { + "id": "UpdateAppStoreHostedAppPublishStatusResponse", + "description": "Response for updating the publish status of an app store hosted app.", + "properties": {}, + "type": "object" + }, + "GeneratedUniversalApk": { + "id": "GeneratedUniversalApk", + "type": "object", + "properties": { + "downloadId": { + "description": "Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method.", + "type": "string" + } + }, + "description": "Download metadata for a universal APK." + }, + "PolicyKeyedGroupResponse": { + "type": "object", + "id": "PolicyKeyedGroupResponse", + "properties": { + "groups": { + "items": { + "$ref": "KeyedGroup" + }, + "type": "array", + "description": "Optional. Groups of responses to questions. Each KeyedGroup.key must be unique within this list." + } + }, + "description": "A group of responses each identified by a distinct key within an allowed set." + }, + "UserComment": { + "type": "object", + "description": "User entry from conversation between user and developer.", + "properties": { + "appVersionCode": { + "format": "int32", + "type": "integer", + "description": "Integer version code of the app as installed at the time the review was written. May be absent." + }, + "reviewerLanguage": { + "type": "string", + "description": "Language code for the reviewer. This is taken from the device settings so is not guaranteed to match the language the review is written in. May be absent." + }, + "appVersionName": { + "description": "String version name of the app as installed at the time the review was written. May be absent.", + "type": "string" + }, + "originalText": { + "type": "string", + "description": "Untranslated text of the review, where the review was translated. If the review was not translated this is left blank." + }, + "thumbsDownCount": { + "type": "integer", + "format": "int32", + "description": "Number of users who have given this review a thumbs down." + }, + "thumbsUpCount": { + "type": "integer", + "description": "Number of users who have given this review a thumbs up.", + "format": "int32" + }, + "lastModified": { + "description": "The last time at which this comment was updated.", + "$ref": "Timestamp" + }, + "deviceMetadata": { + "$ref": "DeviceMetadata", + "description": "Information about the characteristics of the user's device." + }, + "androidOsVersion": { + "description": "Integer Android SDK version of the user's device at the time the review was written, e.g. 23 is Marshmallow. May be absent.", + "format": "int32", + "type": "integer" + }, + "device": { + "type": "string", + "description": "Codename for the reviewer's device, e.g. klte, flounder. May be absent." + }, + "starRating": { + "format": "int32", + "description": "The star rating associated with the review, from 1 to 5.", + "type": "integer" + }, + "text": { + "type": "string", + "description": "The content of the comment, i.e. review body. In some cases users have been able to write a review with separate title and body; in those cases the title and body are concatenated and separated by a tab character." + } + }, + "id": "UserComment" + }, + "FreeTrialDetails": { + "id": "FreeTrialDetails", + "properties": {}, + "type": "object", + "description": "Details of a free trial pricing phase." + }, + "SubscriptionPurchasesDeferRequest": { + "type": "object", + "id": "SubscriptionPurchasesDeferRequest", + "description": "Request for the purchases.subscriptions.defer API.", + "properties": { + "deferralInfo": { + "description": "The information about the new desired expiry time for the subscription.", + "$ref": "SubscriptionDeferralInfo" + } + } + }, + "RotateAppSigningKeyResponse": { + "description": "Response to rotate an app's signing key.", + "type": "object", + "id": "RotateAppSigningKeyResponse", + "properties": { + "rotatedKeyCertificate": { + "$ref": "CertificateHashes", + "description": "The rotated key certificate hashes for the app. Always set." + } + } + }, + "SubscriptionDetails": { + "description": "Details of a subscription purchase.", + "id": "SubscriptionDetails", + "properties": { + "basePlanId": { + "description": "The base plan ID of the subscription.", + "type": "string" + }, + "offerPhase": { + "description": "Deprecated: Use offer_phase_details instead. The pricing phase for the billing period funded by this order.", + "enum": [ + "OFFER_PHASE_UNSPECIFIED", + "BASE", + "INTRODUCTORY", + "FREE_TRIAL" + ], + "enumDescriptions": [ + "Offer phase unspecified. This value is not used.", + "The order funds a base price period.", + "The order funds an introductory pricing period.", + "The order funds a free trial period." + ], + "type": "string", + "deprecated": true + }, + "offerId": { + "description": "The offer ID for the current subscription offer.", + "type": "string" + }, + "servicePeriodStartTime": { + "description": "The start of the billing period funded by this order. This is a snapshot of the billing/service period start time at the moment the order was processed, and should be used only for accounting.", + "format": "google-datetime", + "type": "string" + }, + "offerPhaseDetails": { + "$ref": "OfferPhaseDetails", + "description": "The pricing phase details for the entitlement period funded by this order." + }, + "servicePeriodEndTime": { + "type": "string", + "format": "google-datetime", + "description": "The end of the billing period funded by this order. This is a snapshot of the billing/service period end time at the moment the order was processed, and should be used only for accounting. To get the current end time of the subscription service period, use purchases.subscriptionsv2.get." + } + }, + "type": "object" + }, + "FreeTrialOfferPhase": { + "id": "FreeTrialOfferPhase", + "type": "object", + "properties": {}, + "description": "Details about free trial offer phase." + }, + "AddTargetingRequest": { + "description": "Request message for AddTargeting.", + "properties": { + "targetingUpdate": { + "$ref": "TargetingUpdate", + "description": "Specifies targeting updates such as regions, android sdk versions etc." + } + }, + "type": "object", + "id": "AddTargetingRequest" + }, + "AllUsers": { + "description": "Object representation to describe all set of users.", + "type": "object", + "id": "AllUsers", + "properties": { + "isAllUsersRequested": { + "type": "boolean", + "description": "Required. Set to true if all set of users are needed." + } + } + }, + "OneTimeProductGameRewardOffer": { + "id": "OneTimeProductGameRewardOffer", + "type": "object", + "description": "Configuration specific to game reward offers.", + "properties": { + "redemptionLimit": { + "format": "int64", + "description": "Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.", + "type": "string" + } + } + }, + "OneTimeProductPurchaseOption": { + "properties": { + "regionalPricingAndAvailabilityConfigs": { + "items": { + "$ref": "OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig" + }, + "description": "Regional pricing and availability information for this purchase option.", + "type": "array" + }, + "state": { + "enum": [ + "STATE_UNSPECIFIED", + "DRAFT", + "ACTIVE", + "INACTIVE", + "INACTIVE_PUBLISHED" + ], + "readOnly": true, + "enumDescriptions": [ + "Default value, should never be used.", + "The purchase option is not and has never been available to users.", + "The purchase option is available to users.", + "The purchase option is not available to users anymore.", + "The purchase option is not available for purchase anymore, but we continue to expose its offer via the Play Billing Library for backwards compatibility. Only automatically migrated purchase options can be in this state." + ], + "type": "string", + "description": "Output only. The state of the purchase option, i.e., whether it's active. This field cannot be changed by updating the resource. Use the dedicated endpoints instead." + }, + "newRegionsConfig": { + "description": "Pricing information for any new locations Play may launch in the future. If omitted, the purchase option will not be automatically available in any new locations Play may launch in the future.", + "$ref": "OneTimeProductPurchaseOptionNewRegionsConfig" + }, + "buyOption": { + "$ref": "OneTimeProductBuyPurchaseOption", + "description": "A purchase option that can be bought." + }, + "taxAndComplianceSettings": { + "$ref": "PurchaseOptionTaxAndComplianceSettings", + "description": "Optional. Details about taxes and legal compliance." + }, + "offerTags": { + "items": { + "$ref": "OfferTag" + }, + "description": "Optional. List of up to 20 custom tags specified for this purchase option, and returned to the app through the billing library. Offers for this purchase option will also receive these tags in the billing library.", + "type": "array" + }, + "purchaseOptionId": { + "type": "string", + "description": "Required. Immutable. The unique identifier of this purchase option. Must be unique within the one-time product. It must start with a number or lower-case letter, and can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The maximum length is 63 characters." + }, + "rentOption": { + "$ref": "OneTimeProductRentPurchaseOption", + "description": "A purchase option that can be rented." + } + }, + "type": "object", + "id": "OneTimeProductPurchaseOption", + "description": "A single purchase option for a one-time product." + }, + "NestedPolicyResponse": { + "type": "object", + "id": "NestedPolicyResponse", + "description": "An individual nested response to a policy question about an app. Nested responses are like regular responses but without groups.", + "properties": { + "documentResponse": { + "$ref": "PolicyDocumentResponse", + "description": "Optional. A document response." + }, + "singleChoiceResponse": { + "description": "Optional. A single choice response.", + "$ref": "PolicySingleChoiceResponse" + }, + "multipleChoiceResponse": { + "description": "Optional. A multiple choice response.", + "$ref": "PolicyMultipleChoiceResponse" + }, + "booleanResponse": { + "$ref": "PolicyBooleanResponse", + "description": "Optional. A boolean response." + }, + "questionId": { + "type": "string", + "description": "Required. ID of the question being answered." + }, + "stringResponse": { + "$ref": "PolicyStringResponse", + "description": "Optional. A string response." + } + } + }, + "MultiAbi": { + "type": "object", + "properties": { + "abi": { + "type": "array", + "items": { + "$ref": "Abi" + }, + "description": "A list of targeted ABIs, as represented by the Android Platform" + } + }, + "id": "MultiAbi", + "description": "Represents a list of ABIs." + }, + "TargetingRuleScope": { + "type": "object", + "id": "TargetingRuleScope", + "properties": { + "anySubscriptionInApp": { + "description": "The scope of the current targeting rule is any subscription in the parent app.", + "$ref": "TargetingRuleScopeAnySubscriptionInApp" + }, + "specificSubscriptionInApp": { + "description": "The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.", + "type": "string" + }, + "thisSubscription": { + "$ref": "TargetingRuleScopeThisSubscription", + "description": "The scope of the current targeting rule is the subscription in which this offer is defined." + } + }, + "description": "Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement." + }, + "DeployAppRecoveryRequest": { + "description": "Request message for DeployAppRecovery.", + "id": "DeployAppRecoveryRequest", + "properties": {}, + "type": "object" + }, + "PurchaseOptionTaxAndComplianceSettings": { + "type": "object", + "description": "Details about taxation, Google Play policy and legal compliance for one-time product purchase options.", + "id": "PurchaseOptionTaxAndComplianceSettings", + "properties": { + "withdrawalRightType": { + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string", + "enum": [ + "WITHDRAWAL_RIGHT_TYPE_UNSPECIFIED", + "WITHDRAWAL_RIGHT_DIGITAL_CONTENT", + "WITHDRAWAL_RIGHT_SERVICE" + ], + "description": "Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information." + } + } + }, + "GeneratedApksListResponse": { + "description": "Response to list generated APKs.", + "type": "object", + "properties": { + "generatedApks": { + "type": "array", + "items": { + "$ref": "GeneratedApksPerSigningKey" + }, + "description": "All generated APKs, grouped by the APK signing key." + } + }, + "id": "GeneratedApksListResponse" + }, + "Testers": { + "description": "The testers of an app. The resource for TestersService. Note: while it is possible in the Play Console UI to add testers via email lists, email lists are not supported by this resource.", + "properties": { + "googleGroups": { + "description": "All testing Google Groups, as email addresses.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "id": "Testers", + "type": "object" + }, + "PrepaidBasePlanType": { + "type": "object", + "id": "PrepaidBasePlanType", + "properties": { + "billingPeriodDuration": { + "description": "Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.", + "type": "string" + }, + "timeExtension": { + "enumDescriptions": [ + "Unspecified state.", + "Time extension is active. Users are allowed to top-up or extend their prepaid plan.", + "Time extension is inactive. Users cannot top-up or extend their prepaid plan." + ], + "description": "Whether users should be able to extend this prepaid base plan in Google Play surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.", + "type": "string", + "enum": [ + "TIME_EXTENSION_UNSPECIFIED", + "TIME_EXTENSION_ACTIVE", + "TIME_EXTENSION_INACTIVE" + ] + } + }, + "description": "Represents a base plan that does not automatically renew at the end of the base plan, and must be manually renewed by the user." + }, + "SystemOnChip": { + "id": "SystemOnChip", + "type": "object", + "properties": { + "manufacturer": { + "description": "Required. The designer of the SoC, eg. \"Google\" Value of build property \"ro.soc.manufacturer\" https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER Required.", + "type": "string" + }, + "model": { + "description": "Required. The model of the SoC, eg. \"Tensor\" Value of build property \"ro.soc.model\" https://developer.android.com/reference/android/os/Build#SOC_MODEL Required.", + "type": "string" + } + }, + "description": "Representation of a System-on-Chip (SoC) of an Android device. Can be used to target S+ devices." + }, + "InstallmentPlan": { + "type": "object", + "description": "Information to a installment plan.", + "id": "InstallmentPlan", + "properties": { + "pendingCancellation": { + "description": "If present, this installment plan is pending to be canceled. The cancellation will happen only after the user finished all committed payments.", + "$ref": "PendingCancellation" + }, + "initialCommittedPaymentsCount": { + "format": "int32", + "description": "Total number of payments the user is initially committed for.", + "type": "integer" + }, + "remainingCommittedPaymentsCount": { + "description": "Total number of committed payments remaining to be paid for in this renewal cycle.", + "type": "integer", + "format": "int32" + }, + "subsequentCommittedPaymentsCount": { + "type": "integer", + "format": "int32", + "description": "Total number of payments the user will be committed for after each commitment period. Empty means the installment plan will fall back to a normal auto-renew subscription after initial commitment." + } + } + }, + "SubscriptionDeferralInfo": { + "properties": { + "expectedExpiryTimeMillis": { + "format": "int64", + "description": "The expected expiry time for the subscription. If the current expiry time for the subscription is not the value specified here, the deferral will not occur.", + "type": "string" + }, + "desiredExpiryTimeMillis": { + "format": "int64", + "type": "string", + "description": "The desired next expiry time to assign to the subscription, in milliseconds since the Epoch. The given time must be later/greater than the current expiry time for the subscription." + } + }, + "type": "object", + "description": "A SubscriptionDeferralInfo contains the data needed to defer a subscription purchase to a future expiry time.", + "id": "SubscriptionDeferralInfo" + }, + "ExternalTransactionTestPurchase": { + "description": "Represents a transaction performed using a test account. These transactions will not be charged by Google.", + "id": "ExternalTransactionTestPurchase", + "type": "object", + "properties": {} + }, + "BatchGetOneTimeProductOffersRequest": { + "id": "BatchGetOneTimeProductOffersRequest", + "properties": { + "requests": { + "type": "array", + "items": { + "$ref": "GetOneTimeProductOfferRequest" + }, + "description": "Required. A list of get requests of up to 100 elements. All requests must retrieve different offers." + } + }, + "description": "Request message for the BatchGetOneTimeProductOffers endpoint.", + "type": "object" + }, + "SdkVersion": { + "description": "Represents an sdk version.", + "type": "object", + "id": "SdkVersion", + "properties": { + "min": { + "format": "int32", + "type": "integer", + "description": "Inclusive minimum value of an sdk version." + } + } + }, + "InappproductsDeleteRequest": { + "description": "Request to delete an in-app product.", + "id": "InappproductsDeleteRequest", + "type": "object", + "properties": { + "latencyTolerance": { + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "type": "string", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive." + }, + "sku": { + "description": "Unique identifier for the in-app product.", + "type": "string" + }, + "packageName": { + "description": "Package name of the app.", + "type": "string" + } + } + }, + "GetOneTimeProductOfferRequest": { + "id": "GetOneTimeProductOfferRequest", + "type": "object", + "properties": { + "packageName": { + "description": "Required. The parent app (package name) of the offer to get.", + "type": "string" + }, + "offerId": { + "description": "Required. The unique offer ID of the offer to get.", + "type": "string" + }, + "purchaseOptionId": { + "description": "Required. The parent purchase option (ID) of the offer to get.", + "type": "string" + }, + "productId": { + "description": "Required. The parent one-time product (ID) of the offer to get.", + "type": "string" + } + }, + "description": "Request message for GetOneTimeProductOffers." + }, + "UpdateBasePlanStateRequest": { + "properties": { + "activateBasePlanRequest": { + "$ref": "ActivateBasePlanRequest", + "description": "Activates a base plan. Once activated, base plans will be available to new subscribers." + }, + "deactivateBasePlanRequest": { + "$ref": "DeactivateBasePlanRequest", + "description": "Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription" + } + }, + "type": "object", + "description": "Request message to update the state of a subscription base plan.", + "id": "UpdateBasePlanStateRequest" + }, + "ExternallyHostedApk": { + "id": "ExternallyHostedApk", + "description": "Defines an APK available for this application that is hosted externally and not uploaded to Google Play. This function is only available to organizations using Managed Play whose application is configured to restrict distribution to the organizations.", + "type": "object", + "properties": { + "nativeCodes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The native code environments supported by this APK (optional)." + }, + "maximumSdk": { + "description": "The maximum SDK supported by this APK (optional).", + "format": "int32", + "type": "integer" + }, + "versionCode": { + "format": "int32", + "description": "The version code of this APK.", + "type": "integer" + }, + "packageName": { + "description": "The package name.", + "type": "string" + }, + "fileSha256Base64": { + "type": "string", + "description": "The sha256 checksum of this APK, represented as a base64 encoded byte array." + }, + "applicationLabel": { + "description": "The application label.", + "type": "string" + }, + "iconBase64": { + "description": "The icon image from the APK, as a base64 encoded byte array.", + "type": "string" + }, + "certificateBase64s": { + "items": { + "type": "string" + }, + "description": "A certificate (or array of certificates if a certificate-chain is used) used to sign this APK, represented as a base64 encoded byte array.", + "type": "array" + }, + "usesFeatures": { + "type": "array", + "description": "The features required by this APK (optional).", + "items": { + "type": "string" + } + }, + "fileSha1Base64": { + "description": "The sha1 checksum of this APK, represented as a base64 encoded byte array.", + "type": "string" + }, + "fileSize": { + "format": "int64", + "description": "The file size in bytes of this APK.", + "type": "string" + }, + "externallyHostedUrl": { + "description": "The URL at which the APK is hosted. This must be an https URL.", + "type": "string" + }, + "versionName": { + "description": "The version name of this APK.", + "type": "string" + }, + "usesPermissions": { + "items": { + "$ref": "UsesPermission" + }, + "type": "array", + "description": "The permissions requested by this APK." + }, + "minimumSdk": { + "description": "The minimum SDK targeted by this APK.", + "type": "integer", + "format": "int32" + } + } + }, + "GeneratedAssetPackSlice": { + "description": "Download metadata for an asset pack slice.", + "properties": { + "downloadId": { + "description": "Download ID, which uniquely identifies the APK to download. Should be supplied to `generatedapks.download` method.", + "type": "string" + }, + "sliceId": { + "description": "Asset slice ID.", + "type": "string" + }, + "moduleName": { + "description": "Name of the module that this asset slice belongs to.", + "type": "string" + }, + "version": { + "format": "int64", + "type": "string", + "description": "Asset module version." + } + }, + "type": "object", + "id": "GeneratedAssetPackSlice" + }, + "SystemInitiatedCancellation": { + "properties": {}, + "id": "SystemInitiatedCancellation", + "description": "Information specific to cancellations initiated by Google system.", + "type": "object" + }, + "BatchUpdateBasePlanStatesResponse": { + "properties": { + "subscriptions": { + "items": { + "$ref": "Subscription" + }, + "description": "The list of updated subscriptions. This list will match the requests one to one, in the same order.", + "type": "array" + } + }, + "type": "object", + "description": "Response message for BatchUpdateBasePlanStates.", + "id": "BatchUpdateBasePlanStatesResponse" + }, + "CloudKmsKeyAndCert": { + "type": "object", + "id": "CloudKmsKeyAndCert", + "description": "Cloud KMS key and the certificate associated with the key.", + "properties": { + "cloudKmsKey": { + "$ref": "CloudKmsKey", + "description": "Required. Cloud KMS key." + }, + "pemCertificate": { + "description": "Required. Certificate associated with the key. The bytes must contain the certificate in PEM format.", + "format": "byte", + "type": "string" + } + } + }, + "DeferSubscriptionPurchaseResponse": { + "properties": { + "itemExpiryTimeDetails": { + "items": { + "$ref": "ItemExpiryTimeDetails" + }, + "type": "array", + "description": "The new expiry time for each subscription items." + } + }, + "id": "DeferSubscriptionPurchaseResponse", + "description": "Response for the v2 purchases.subscriptions.defer API.", + "type": "object" + }, + "SubscriptionOfferPhase": { + "type": "object", + "id": "SubscriptionOfferPhase", + "description": "A single phase of a subscription offer.", + "properties": { + "regionalConfigs": { + "description": "Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.", + "type": "array", + "items": { + "$ref": "RegionalSubscriptionOfferPhaseConfig" + } + }, + "duration": { + "description": "Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.", + "type": "string" + }, + "otherRegionsConfig": { + "description": "Pricing information for any new locations Play may launch in.", + "$ref": "OtherRegionsSubscriptionOfferPhaseConfig" + }, + "recurrenceCount": { + "type": "integer", + "description": "Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.", + "format": "int32" + } + } + }, + "ListingsListResponse": { + "type": "object", + "properties": { + "kind": { + "description": "The kind of this response (\"androidpublisher#listingsListResponse\").", + "type": "string" + }, + "listings": { + "description": "All localized listings.", + "type": "array", + "items": { + "$ref": "Listing" + } + } + }, + "description": "Response listing all localized listings.", + "id": "ListingsListResponse" + }, + "GetSubscriptionOfferRequest": { + "properties": { + "productId": { + "description": "Required. The parent subscription (ID) of the offer to get.", + "type": "string" + }, + "basePlanId": { + "type": "string", + "description": "Required. The parent base plan (ID) of the offer to get." + }, + "offerId": { + "description": "Required. The unique offer ID of the offer to get.", + "type": "string" + }, + "packageName": { + "description": "Required. The parent app (package name) of the offer to get.", + "type": "string" + } + }, + "type": "object", + "description": "Request message for GetSubscriptionOffer.", + "id": "GetSubscriptionOfferRequest" + }, + "ImagesUploadResponse": { + "properties": { + "image": { + "description": "The uploaded image.", + "$ref": "Image" + } + }, + "description": "Response for uploading an image.", + "id": "ImagesUploadResponse", + "type": "object" + }, + "SubscriptionOfferTargeting": { + "properties": { + "upgradeRule": { + "description": "Offer targeting rule for upgrading users' existing plans.", + "$ref": "UpgradeTargetingRule" + }, + "acquisitionRule": { + "$ref": "AcquisitionTargetingRule", + "description": "Offer targeting rule for new user acquisition." + } + }, + "type": "object", + "id": "SubscriptionOfferTargeting", + "description": "Defines the rule a user needs to satisfy to receive this offer." + }, + "UploadImageResponse": { + "type": "object", + "description": "Response for uploading an image.", + "id": "UploadImageResponse", + "properties": { + "imageId": { + "description": "The unique ID of the uploaded image.", + "type": "string" + } + } + }, + "OfferTag": { + "id": "OfferTag", + "properties": { + "tag": { + "description": "Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.", + "type": "string" + } + }, + "type": "object", + "description": "Represents a custom tag specified for a product offer." + }, + "AppEdit": { + "id": "AppEdit", + "properties": { + "expiryTimeSeconds": { + "type": "string", + "description": "Output only. The time (as seconds since Epoch) at which the edit will expire and will be no longer valid for use.", + "readOnly": true + }, + "id": { + "description": "Output only. Identifier of the edit. Can be used in subsequent API calls.", + "readOnly": true, + "type": "string" + } + }, + "type": "object", + "description": "An app edit. The resource for EditsService." + }, + "SplitApkVariant": { + "properties": { + "apkSet": { + "type": "array", + "description": "Set of APKs, one set per module.", + "items": { + "$ref": "ApkSet" + } + }, + "targeting": { + "$ref": "VariantTargeting", + "description": "Variant-level targeting." + }, + "variantNumber": { + "description": "Number of the variant, starting at 0 (unless overridden). A device will receive APKs from the first variant that matches the device configuration, with higher variant numbers having priority over lower variant numbers.", + "format": "int32", + "type": "integer" + } + }, + "type": "object", + "id": "SplitApkVariant", + "description": "Variant is a group of APKs that covers a part of the device configuration space. APKs from multiple variants are never combined on one device." + }, + "InAppProductListing": { + "description": "Store listing of a single in-app product.", + "id": "InAppProductListing", + "type": "object", + "properties": { + "title": { + "description": "Title for the store listing.", + "type": "string" + }, + "description": { + "description": "Description for the store listing.", + "type": "string" + }, + "benefits": { + "description": "Localized entitlement benefits for a subscription.", + "items": { + "type": "string" + }, + "type": "array" + } + } + }, + "Targeting": { + "id": "Targeting", + "properties": { + "androidSdks": { + "$ref": "AndroidSdks", + "description": "Targeting is based on android api levels of devices." + }, + "regions": { + "$ref": "Regions", + "description": "Targeting is based on the user account region." + }, + "allUsers": { + "$ref": "AllUsers", + "description": "All users are targeted." + }, + "versionRange": { + "description": "Target version codes as a range.", + "$ref": "AppVersionRange" + }, + "versionList": { + "$ref": "AppVersionList", + "description": "Target version codes as a list." + } + }, + "description": "Targeting details for a recovery action such as regions, android sdk levels, app versions etc.", + "type": "object" + }, + "DeobfuscationFilesUploadResponse": { + "description": "Responses for the upload.", + "properties": { + "deobfuscationFile": { + "description": "The uploaded Deobfuscation File configuration.", + "$ref": "DeobfuscationFile" + } + }, + "type": "object", + "id": "DeobfuscationFilesUploadResponse" + }, + "CancelAppRecoveryResponse": { + "description": "Response message for CancelAppRecovery.", + "type": "object", + "id": "CancelAppRecoveryResponse", + "properties": {} + }, + "PreorderOfferDetails": { + "id": "PreorderOfferDetails", + "properties": { + "preorderReleaseTime": { + "type": "string", + "format": "google-datetime", + "description": "The time when a preordered item is released for a preorder purchase." + } + }, + "type": "object", + "description": "Offer details information related to a preorder line item." + }, + "UpdateAppStoreHostedAppRequest": { + "id": "UpdateAppStoreHostedAppRequest", + "type": "object", + "description": "Request to update an app record for an app store hosted app.", + "properties": { + "activeLocalizedStoreListings": { + "type": "array", + "items": { + "$ref": "AppStoreAppStoreListing" + }, + "description": "Required. Localized store listings details of the update." + }, + "appDetails": { + "description": "Required. General developer details for the app.", + "$ref": "AppStoreAppDetails" + }, + "packageName": { + "type": "string", + "description": "Required. Package name of the app." + }, + "policyDeclarations": { + "description": "Required. Policy declarations provided for the app.", + "type": "array", + "items": { + "$ref": "AppStoreAppPolicyDeclaration" + } + }, + "activeApks": { + "$ref": "AppStoreAppActiveApks", + "description": "Required. Actively distributed APKs of the app." + } + } + }, + "Order": { + "id": "Order", + "description": "The Order resource encapsulates comprehensive information about a transaction made on Google Play. It includes a variety of attributes that provide details about the order itself, the products purchased, and the history of events related to the order. The Orders APIs provide real-time access to your order data within the Google Play ecosystem. You can retrieve detailed information and metadata for both one-time and recurring orders, including transaction details like charges, taxes, and refunds, as well as metadata such as pricing phases for subscriptions. The Orders APIs let you automate tasks related to order management, reducing the need for manual checks via the Play Developer Console. The following are some of the use cases for this API: + Real-time order data retrieval - Get order details and metadata immediately after a purchase using an order ID. + Order update synchronization - Periodically sync order updates to maintain an up-to-date record of order information. Note: + The Orders API calls count towards your Play Developer API quota, which defaults to 200K daily, and may be insufficient to sync extensive order histories. + A maximum of 1000 orders can be retrieved per call. Using larger page sizes is recommended to minimize quota usage. Check your quota in the Cloud Console and request more if required.", + "properties": { + "orderHistory": { + "$ref": "OrderHistory", + "description": "Details about events which modified the order." + }, + "developerRevenueInBuyerCurrency": { + "description": "Your revenue for this order in the buyer's currency, including deductions of partial refunds, taxes and fees. Google deducts standard transaction and third party fees from each sale, including VAT in some regions.", + "$ref": "Money" + }, + "total": { + "$ref": "Money", + "description": "The final amount paid by the customer, taking into account discounts and taxes." + }, + "buyerAddress": { + "description": "Address information for the customer, for use in tax computation. When Google is the Merchant of Record for the order, only country is shown.", + "$ref": "BuyerAddress" + }, + "orderDetails": { + "$ref": "OrderDetails", + "description": "Detailed information about the order at creation time." + }, + "orderId": { + "description": "The order ID.", + "type": "string" + }, + "tax": { + "description": "The total tax paid as a part of this order.", + "$ref": "Money" + }, + "pointsDetails": { + "description": "Play points applied to the order, including offer information, discount rate and point values.", + "$ref": "PointsDetails" + }, + "lineItems": { + "type": "array", + "description": "The individual line items making up this order.", + "items": { + "$ref": "LineItem" + } + }, + "state": { + "enumDescriptions": [ + "State unspecified. This value is not used.", + "Order has been created and is waiting to be processed.", + "Order has been successfully processed.", + "Order was canceled before being processed.", + "Requested refund is waiting to be processed.", + "Part of the order amount was refunded.", + "The full order amount was refunded." + ], + "type": "string", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "PROCESSED", + "CANCELED", + "PENDING_REFUND", + "PARTIALLY_REFUNDED", + "REFUNDED" + ], + "description": "The state of the order." + }, + "purchaseToken": { + "type": "string", + "description": "The token provided to the user's device when the subscription or item was purchased." + }, + "createTime": { + "format": "google-datetime", + "type": "string", + "description": "The time when the order was created." + }, + "lastEventTime": { + "description": "The time of the last event that occurred on the order.", + "format": "google-datetime", + "type": "string" + }, + "salesChannel": { + "description": "The originating sales channel of the order.", + "enumDescriptions": [ + "Sales channel unspecified. This value is not used.", + "Standard orders that initiated from in-app.", + "Orders initiated from a PC emulator for in-app purchases.", + "Orders initiated from a native PC app for in-app purchases.", + "Orders initiated from the Google Play store.", + "Orders initiated outside the Google Play store." + ], + "type": "string", + "enum": [ + "SALES_CHANNEL_UNSPECIFIED", + "IN_APP", + "PC_EMULATOR", + "NATIVE_PC", + "PLAY_STORE", + "OUTSIDE_PLAY_STORE" + ] + } + }, + "type": "object" + }, + "ImagesListResponse": { + "properties": { + "images": { + "items": { + "$ref": "Image" + }, + "type": "array", + "description": "All listed Images." + } + }, + "id": "ImagesListResponse", + "description": "Response listing all images.", + "type": "object" + }, + "PolicyResponse": { + "id": "PolicyResponse", + "type": "object", + "description": "An individual response (answer) to a policy question about an app.", + "properties": { + "questionId": { + "description": "Required. ID of the question being answered.", + "type": "string" + }, + "multipleChoiceResponse": { + "description": "Optional. A multiple choice response.", + "$ref": "PolicyMultipleChoiceResponse" + }, + "documentResponse": { + "$ref": "PolicyDocumentResponse", + "description": "Optional. A document response." + }, + "stringResponse": { + "$ref": "PolicyStringResponse", + "description": "Optional. A string response." + }, + "booleanResponse": { + "$ref": "PolicyBooleanResponse", + "description": "Optional. A boolean response." + }, + "keyedGroupResponse": { + "description": "Optional. A keyed group response.", + "$ref": "PolicyKeyedGroupResponse" + }, + "groupResponse": { + "description": "Optional. A group response.", + "$ref": "PolicyGroupResponse" + }, + "singleChoiceResponse": { + "$ref": "PolicySingleChoiceResponse", + "description": "Optional. A single choice response." + } + } + }, + "SubscriptionPurchaseV2": { + "type": "object", + "description": "Indicates the status of a user's subscription purchase.", + "properties": { + "lineItems": { + "type": "array", + "description": "Item-level info for a subscription purchase. The items in the same purchase should be either all with AutoRenewingPlan or all with PrepaidPlan.", + "items": { + "$ref": "SubscriptionPurchaseLineItem" + } + }, + "outOfAppPurchaseContext": { + "description": "Additional context for out of app purchases. This information is only present for re-subscription purchases (subscription purchases made after the previous subscription of the same product has expired) made through the Google Play subscriptions center. This field will be removed after you acknowledge the subscription.", + "$ref": "OutOfAppPurchaseContext" + }, + "canceledStateContext": { + "$ref": "CanceledStateContext", + "description": "Additional context around canceled subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED." + }, + "inGracePeriodStateContext": { + "description": "Optional. Additional context around subscriptions in IN_GRACE_PERIOD state. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_IN_GRACE_PERIOD.", + "$ref": "InGracePeriodStateContext" + }, + "etag": { + "type": "string", + "description": "Entity tag representing the current state of the subscription. The developer will provide this etag for subscription actions. This etag is always present for auto-renewing and prepaid subscriptions." + }, + "kind": { + "description": "This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service.", + "type": "string" + }, + "regionCode": { + "description": "ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted.", + "type": "string" + }, + "testPurchase": { + "$ref": "TestPurchase", + "description": "Only present if this subscription purchase is a test purchase." + }, + "externalAccountIdentifiers": { + "description": "User account identifier in the third-party service.", + "$ref": "ExternalAccountIdentifiers" + }, + "subscribeWithGoogleInfo": { + "description": "User profile associated with purchases made with 'Subscribe with Google'.", + "$ref": "SubscribeWithGoogleInfo" + }, + "pausedStateContext": { + "description": "Additional context around paused subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_PAUSED.", + "$ref": "PausedStateContext" + }, + "linkedPurchaseToken": { + "type": "string", + "description": "The purchase token of the old subscription if this subscription is one of the following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/downgrade from a previous subscription. * Convert from prepaid to auto renewing subscription. * Convert from an auto renewing subscription to prepaid. * Topup a prepaid subscription." + }, + "onHoldStateContext": { + "$ref": "OnHoldStateContext", + "description": "Optional. Additional context around subscriptions in ON_HOLD state. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_ON_HOLD." + }, + "subscriptionState": { + "type": "string", + "enumDescriptions": [ + "Unspecified subscription state.", + "Subscription was created but awaiting payment during signup. In this state, all items are awaiting payment.", + "Subscription is active. - (1) If the subscription is an auto renewing plan, at least one item is auto_renew_enabled and not expired. - (2) If the subscription is a prepaid plan, at least one item is not expired.", + "Subscription is paused. The state is only available when the subscription is an auto renewing plan. In this state, all items are in paused state.", + "Subscription is in grace period. The state is only available when the subscription is an auto renewing plan. In this state, all items are in grace period.", + "Subscription is on hold (suspended). The state is only available when the subscription is an auto renewing plan. In this state, all items are on hold.", + "Subscription is canceled but not expired yet. The state is only available when the subscription is an auto renewing plan. All items have auto_renew_enabled set to false.", + "Subscription is expired. All items have expiry_time in the past.", + "Pending transaction for subscription is canceled. If this pending purchase was for an existing subscription, use linked_purchase_token to get the current state of that subscription." + ], + "description": "The current state of the subscription.", + "enum": [ + "SUBSCRIPTION_STATE_UNSPECIFIED", + "SUBSCRIPTION_STATE_PENDING", + "SUBSCRIPTION_STATE_ACTIVE", + "SUBSCRIPTION_STATE_PAUSED", + "SUBSCRIPTION_STATE_IN_GRACE_PERIOD", + "SUBSCRIPTION_STATE_ON_HOLD", + "SUBSCRIPTION_STATE_CANCELED", + "SUBSCRIPTION_STATE_EXPIRED", + "SUBSCRIPTION_STATE_PENDING_PURCHASE_CANCELED" + ] + }, + "acknowledgementState": { + "enum": [ + "ACKNOWLEDGEMENT_STATE_UNSPECIFIED", + "ACKNOWLEDGEMENT_STATE_PENDING", + "ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED" + ], + "enumDescriptions": [ + "Unspecified acknowledgement state.", + "The subscription is not acknowledged yet.", + "The subscription is acknowledged." + ], + "type": "string", + "description": "The acknowledgement state of the subscription." + }, + "startTime": { + "description": "Time at which the subscription was granted. Not set for pending subscriptions (subscription was created but awaiting payment during signup).", + "format": "google-datetime", + "type": "string" + } + }, + "id": "SubscriptionPurchaseV2" + }, + "RegionalBasePlanConfig": { + "type": "object", + "description": "Configuration for a base plan specific to a region.", + "properties": { + "regionCode": { + "type": "string", + "description": "Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. \"US\"." + }, + "newSubscriberAvailability": { + "description": "Whether the base plan in the specified region is available for new subscribers. Existing subscribers will not have their subscription canceled if this value is set to false. If not specified, this will default to false.", + "type": "boolean" + }, + "price": { + "description": "The price of the base plan in the specified region. Must be set if the base plan is available to new subscribers. Must be set in the currency that is linked to the specified region.", + "$ref": "Money" + } + }, + "id": "RegionalBasePlanConfig" + }, + "ProcessedEvent": { + "id": "ProcessedEvent", + "properties": { + "eventTime": { + "type": "string", + "description": "The time when the order was processed.", + "format": "google-datetime" + } + }, + "type": "object", + "description": "Details of when the order was processed." + }, + "ProrationPeriodDetails": { + "type": "object", + "properties": { + "originalOfferPhase": { + "description": "Represent the original offer phase from the purchased the line item if the proration period contains any of them. For example, a proration period from CHARGE_FULL_PRICE plan change may merge the 1st offer phase of the subscription offer of the new product user purchased. In this case, the original offer phase will be set here.", + "type": "string", + "enum": [ + "OFFER_PHASE_UNSPECIFIED", + "BASE", + "INTRODUCTORY", + "FREE_TRIAL" + ], + "enumDescriptions": [ + "Offer phase unspecified. This value is not used.", + "The order funds a base price period.", + "The order funds an introductory pricing period.", + "The order funds a free trial period." + ] + } + }, + "id": "ProrationPeriodDetails", + "description": "Details of a proration period. A proration period can be a period calculated during a plan change to cover existing entitlements (For more information, see [Allow users to upgrade, downgrade, or change their subscription](https://developer.android.com/google/play/billing/subscriptions#allow-users-change), or a prorated period to align add-on renewal dates with the base (For more information, see [Rules applicable for items in the purchase](https://developer.android.com/google/play/billing/subscription-with-addons#rules-base-addons))." + }, + "CloudKmsKey": { + "id": "CloudKmsKey", + "type": "object", + "description": "Reference to a private key hosted in developer-managed Google Cloud KMS.", + "properties": { + "cryptoKeyVersionResource": { + "description": "Required. Resource identifier of the private key hosted in Google Cloud KMS. The Google Play service account must be granted Decrypt and Sign permissions on this resource. Format: projects//locations//keyRings//cryptoKeys//cryptoKeyVersions/", + "type": "string" + } + } + }, + "ScreenshotSet": { + "description": "A set of screenshots.", + "type": "object", + "properties": { + "screenshots": { + "description": "The image assets of the screenshots.", + "type": "array", + "items": { + "$ref": "ImageAsset" + } + } + }, + "id": "ScreenshotSet" + }, + "DeviceGroup": { + "type": "object", + "id": "DeviceGroup", + "properties": { + "name": { + "description": "The name of the group.", + "type": "string" + }, + "deviceSelectors": { + "description": "Device selectors for this group. A device matching any of the selectors is included in this group.", + "type": "array", + "items": { + "$ref": "DeviceSelector" + } + } + }, + "description": "A group of devices. A group is defined by a set of device selectors. A device belongs to the group if it matches any selector (logical OR)." + }, + "AbiTargeting": { + "id": "AbiTargeting", + "properties": { + "value": { + "items": { + "$ref": "Abi" + }, + "description": "Value of an abi.", + "type": "array" + }, + "alternatives": { + "items": { + "$ref": "Abi" + }, + "type": "array", + "description": "Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other main splits." + } + }, + "description": "Targeting based on Abi.", + "type": "object" + }, + "SubscriptionPurchasesDeferResponse": { + "properties": { + "newExpiryTimeMillis": { + "type": "string", + "description": "The new expiry time for the subscription in milliseconds since the Epoch.", + "format": "int64" + } + }, + "description": "Response for the purchases.subscriptions.defer API.", + "id": "SubscriptionPurchasesDeferResponse", + "type": "object" + }, + "InappproductsBatchUpdateResponse": { + "properties": { + "inappproducts": { + "description": "The updated or inserted in-app products.", + "items": { + "$ref": "InAppProduct" + }, + "type": "array" + } + }, + "id": "InappproductsBatchUpdateResponse", + "type": "object", + "description": "Response for a batch in-app product update." + }, + "User": { + "id": "User", + "description": "A user resource.", + "properties": { + "name": { + "description": "Required. Resource name for this user, following the pattern \"developers/{developer}/users/{email}\".", + "type": "string" + }, + "partial": { + "type": "boolean", + "readOnly": true, + "description": "Output only. Whether there are more permissions for the user that are not represented here. This can happen if the caller does not have permission to manage all apps in the account. This is also `true` if this user is the account owner. If this field is `true`, it should be taken as a signal that this user cannot be fully managed via the API. That is, the API caller is not be able to manage all of the permissions this user holds, either because it doesn't know about them or because the user is the account owner." + }, + "grants": { + "readOnly": true, + "type": "array", + "description": "Output only. Per-app permissions for the user.", + "items": { + "$ref": "Grant" + } + }, + "accessState": { + "enumDescriptions": [ + "Unknown or unspecified access state.", + "User is invited but has not yet accepted the invitation.", + "Invitation has expired.", + "User has accepted an invitation and has access to the Play Console.", + "Account access has expired." + ], + "enum": [ + "ACCESS_STATE_UNSPECIFIED", + "INVITED", + "INVITATION_EXPIRED", + "ACCESS_GRANTED", + "ACCESS_EXPIRED" + ], + "type": "string", + "description": "Output only. The state of the user's access to the Play Console.", + "readOnly": true + }, + "email": { + "description": "Immutable. The user's email address.", + "type": "string" + }, + "developerAccountPermissions": { + "description": "Permissions for the user which apply across the developer account.", + "items": { + "type": "string", + "enumDescriptions": [ + "Unknown or unspecified permission.", + "View app information and download bulk reports (read-only). Deprecated: Check CAN_VIEW_NON_FINANCIAL_DATA_GLOBAL.", + "View financial data, orders, and cancellation survey responses.", + "Admin (all permissions).", + "Edit Play Games Services projects.", + "Publish Play Games Services projects.", + "Reply to reviews.", + "Release to production, exclude devices, and use app signing by Google Play.", + "Release to testing tracks.", + "Manage testing tracks and edit tester lists.", + "Manage store presence.", + "Create, edit, and delete draft apps.", + "Create and publish private apps to your organization.", + "Deprecated: This permission is no longer supported. Choose whether apps are public, or only available to your organization.", + "Manage orders and subscriptions.", + "Manage policy related pages on all apps for the developer.", + "View app information and download bulk reports (read-only).", + "View app quality information for all apps for the developer.", + "Manage the deep links setup for all apps for the developer.", + "Allows viewing connected apps in the Google Play Console.", + "Allows editing connected apps in the Google Play Console." + ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false + ], + "enum": [ + "DEVELOPER_LEVEL_PERMISSION_UNSPECIFIED", + "CAN_SEE_ALL_APPS", + "CAN_VIEW_FINANCIAL_DATA_GLOBAL", + "CAN_MANAGE_PERMISSIONS_GLOBAL", + "CAN_EDIT_GAMES_GLOBAL", + "CAN_PUBLISH_GAMES_GLOBAL", + "CAN_REPLY_TO_REVIEWS_GLOBAL", + "CAN_MANAGE_PUBLIC_APKS_GLOBAL", + "CAN_MANAGE_TRACK_APKS_GLOBAL", + "CAN_MANAGE_TRACK_USERS_GLOBAL", + "CAN_MANAGE_PUBLIC_LISTING_GLOBAL", + "CAN_MANAGE_DRAFT_APPS_GLOBAL", + "CAN_CREATE_MANAGED_PLAY_APPS_GLOBAL", + "CAN_CHANGE_MANAGED_PLAY_SETTING_GLOBAL", + "CAN_MANAGE_ORDERS_GLOBAL", + "CAN_MANAGE_APP_CONTENT_GLOBAL", + "CAN_VIEW_NON_FINANCIAL_DATA_GLOBAL", + "CAN_VIEW_APP_QUALITY_GLOBAL", + "CAN_MANAGE_DEEPLINKS_GLOBAL", + "CAN_VIEW_CONNECTED_APPS_GLOBAL", + "CAN_EDIT_CONNECTED_APPS_GLOBAL" + ] + }, + "type": "array" + }, + "expirationTime": { + "type": "string", + "format": "google-datetime", + "description": "The time at which the user's access expires, if set. When setting this value, it must always be in the future." + } + }, + "type": "object" + }, + "UpdateSubscriptionOfferRequest": { + "type": "object", + "properties": { + "latencyTolerance": { + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ] + }, + "updateMask": { + "type": "string", + "description": "Required. The list of fields to be updated.", + "format": "google-fieldmask" + }, + "allowMissing": { + "description": "Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a new offer is created, update_mask is ignored.", + "type": "boolean" + }, + "regionsVersion": { + "description": "Required. The version of the available regions being used for the subscription_offer.", + "$ref": "RegionsVersion" + }, + "subscriptionOffer": { + "description": "Required. The subscription offer to update.", + "$ref": "SubscriptionOffer" + } + }, + "description": "Request message for UpdateSubscriptionOffer.", + "id": "UpdateSubscriptionOfferRequest" + }, + "OneTimeProductRentPurchaseOption": { + "type": "object", + "description": "A purchase option that can be rented.", + "id": "OneTimeProductRentPurchaseOption", + "properties": { + "rentalPeriod": { + "description": "Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.", + "type": "string" + }, + "expirationPeriod": { + "type": "string", + "description": "Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format." + } + } + }, + "RecentUpdateEvent": { + "description": "A recent update event.", + "id": "RecentUpdateEvent", + "properties": { + "updateType": { + "type": "string", + "enum": [ + "UPDATE_TYPE_UNSPECIFIED", + "MODIFICATION", + "DELETION" + ], + "description": "The type of the update event.", + "enumDescriptions": [ + "Default value. This value is not used.", + "The app was modified.", + "The app stopped being eligible for catalog inclusion or was removed from the Play Store." + ] + }, + "eventTime": { + "format": "google-datetime", + "type": "string", + "description": "The timestamp of the update." + }, + "playAppPackageName": { + "type": "string", + "description": "The package name of the app." + } + }, + "type": "object" + }, + "ListOneTimeProductsResponse": { + "description": "Response message for ListOneTimeProducts.", + "id": "ListOneTimeProductsResponse", + "properties": { + "oneTimeProducts": { + "description": "The one-time products from the specified app.", + "items": { + "$ref": "OneTimeProduct" + }, + "type": "array" + }, + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages." + } + }, + "type": "object" + }, + "EnrollAppRequest": { + "id": "EnrollAppRequest", + "properties": { + "enrollExistingApp": { + "$ref": "EnrollExistingApp", + "description": "Enrolls an existing app into Play signing using an external Cloud KMS key." + }, + "pemUploadCertificate": { + "format": "byte", + "description": "The certificate associated with the upload key, in PEM format.", + "type": "string" + }, + "enrollNewApp": { + "$ref": "EnrollNewApp", + "description": "Changes the signing key of a new app to an external Cloud KMS key. The app must not have published to Open testing or Production tracks." + } + }, + "description": "Request to enroll an app into Play App Signing using a self-hosted Cloud KMS key.", + "type": "object" + }, + "Regions": { + "description": "Region targeting data for app recovery action targeting.", + "properties": { + "regionCode": { + "type": "array", + "description": "Regions targeted by the recovery action. Region codes are ISO 3166 Alpha-2 country codes. For example, US stands for United States of America. See https://www.iso.org/iso-3166-country-codes.html for the complete list of country codes.", + "items": { + "type": "string" + } + } + }, + "id": "Regions", + "type": "object" + }, + "TestPurchase": { + "id": "TestPurchase", + "type": "object", + "properties": {}, + "description": "Whether this subscription purchase is a test purchase." + }, + "CancelOneTimeProductOfferRequest": { + "properties": { + "productId": { + "type": "string", + "description": "Required. The parent one-time product (ID) of the offer to cancel." + }, + "purchaseOptionId": { + "type": "string", + "description": "Required. The parent purchase option (ID) of the offer to cancel." + }, + "offerId": { + "description": "Required. The offer ID of the offer to cancel.", + "type": "string" + }, + "latencyTolerance": { + "description": "Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.", + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ] + }, + "packageName": { + "description": "Required. The parent app (package name) of the offer to cancel.", + "type": "string" + } + }, + "description": "Request message for CancelOneTimeProductOffer.", + "id": "CancelOneTimeProductOfferRequest", + "type": "object" + }, + "RentalDetails": { + "type": "object", + "description": "Details of a rental purchase.", + "properties": {}, + "id": "RentalDetails" + }, + "ProductOfferDetails": { + "type": "object", + "description": "Offer details information related to a purchase line item.", + "id": "ProductOfferDetails", + "properties": { + "preorderOfferDetails": { + "$ref": "PreorderOfferDetails", + "description": "Offer details for a preorder offer. This will only be set for preorders." + }, + "consumptionState": { + "readOnly": true, + "enumDescriptions": [ + "Consumption state unspecified. This value should never be set.", + "Yet to be consumed.", + "Consumed already." + ], + "type": "string", + "description": "Output only. The consumption state of the purchase.", + "enum": [ + "CONSUMPTION_STATE_UNSPECIFIED", + "CONSUMPTION_STATE_YET_TO_BE_CONSUMED", + "CONSUMPTION_STATE_CONSUMED" + ] + }, + "offerTags": { + "description": "The latest offer tags associated with the offer. It includes tags inherited from the purchase option.", + "type": "array", + "items": { + "type": "string" + } + }, + "refundableQuantity": { + "description": "The quantity eligible for refund, i.e. quantity that hasn't been refunded. The value reflects quantity-based partial refunds and full refunds.", + "type": "integer", + "format": "int32" + }, + "offerId": { + "description": "The offer ID. Only present for offers.", + "type": "string" + }, + "offerToken": { + "type": "string", + "description": "The per-transaction offer token used to make this purchase line item." + }, + "purchaseOptionId": { + "type": "string", + "description": "The purchase option ID." + }, + "quantity": { + "format": "int32", + "type": "integer", + "description": "The quantity associated with the purchase of the inapp product." + }, + "rentOfferDetails": { + "$ref": "RentOfferDetails", + "description": "Offer details about rent offers. This will only be set for rental line items." + } + } + }, + "RegionalTaxConfig": { + "type": "object", + "properties": { + "taxTier": { + "type": "string", + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "enum": [ + "TAX_TIER_UNSPECIFIED", + "TAX_TIER_BOOKS_1", + "TAX_TIER_NEWS_1", + "TAX_TIER_NEWS_2", + "TAX_TIER_MUSIC_OR_AUDIO_1", + "TAX_TIER_LIVE_OR_BROADCAST_1" + ], + "description": "Tax tier to specify reduced tax rate. Developers who sell digital news, magazines, newspapers, books, or audiobooks in various regions may be eligible for reduced tax rates. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498)." + }, + "regionCode": { + "description": "Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. \"US\".", + "type": "string" + }, + "eligibleForStreamingServiceTaxRate": { + "type": "boolean", + "description": "You must tell us if your app contains streaming products to correctly charge US state and local sales tax. Field only supported in the United States." + }, + "streamingTaxType": { + "enum": [ + "STREAMING_TAX_TYPE_UNSPECIFIED", + "STREAMING_TAX_TYPE_TELCO_VIDEO_RENTAL", + "STREAMING_TAX_TYPE_TELCO_VIDEO_SALES", + "STREAMING_TAX_TYPE_TELCO_VIDEO_MULTI_CHANNEL", + "STREAMING_TAX_TYPE_TELCO_AUDIO_RENTAL", + "STREAMING_TAX_TYPE_TELCO_AUDIO_SALES", + "STREAMING_TAX_TYPE_TELCO_AUDIO_MULTI_CHANNEL" + ], + "description": "To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).", + "enumDescriptions": [ + "No telecommunications tax collected.", + "US-specific telecommunications tax tier for video streaming, on demand, rentals / subscriptions / pay-per-view.", + "US-specific telecommunications tax tier for video streaming of pre-recorded content like movies, tv shows.", + "US-specific telecommunications tax tier for video streaming of multi-channel programming.", + "US-specific telecommunications tax tier for audio streaming, rental / subscription.", + "US-specific telecommunications tax tier for audio streaming, sale / permanent download.", + "US-specific telecommunications tax tier for multi channel audio streaming like radio." + ], + "type": "string" + } + }, + "description": "Details about taxation in a given geographical region.", + "id": "RegionalTaxConfig" + }, + "SystemApksListResponse": { + "id": "SystemApksListResponse", + "type": "object", + "description": "Response to list previously created system APK variants.", + "properties": { + "variants": { + "description": "All system APK variants created.", + "type": "array", + "items": { + "$ref": "Variant" + } + } + } + }, + "ListSubscriptionsResponse": { + "properties": { + "subscriptions": { + "type": "array", + "items": { + "$ref": "Subscription" + }, + "description": "The subscriptions from the specified app." + }, + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages." + } + }, + "id": "ListSubscriptionsResponse", + "description": "Response message for ListSubscriptions.", + "type": "object" + }, + "ReplacementCancellation": { + "description": "Information specific to cancellations caused by subscription replacement.", + "properties": {}, + "id": "ReplacementCancellation", + "type": "object" + }, + "ReviewsReplyResponse": { + "properties": { + "result": { + "$ref": "ReviewReplyResult", + "description": "The result of replying/updating a reply to review." + } + }, + "type": "object", + "id": "ReviewsReplyResponse", + "description": "Response on status of replying to a review." + }, + "PausedStateContext": { + "type": "object", + "description": "Information specific to a subscription in paused state.", + "id": "PausedStateContext", + "properties": { + "autoResumeTime": { + "format": "google-datetime", + "type": "string", + "description": "Time at which the subscription will be automatically resumed." + } + } + }, + "PreorderDetails": { + "properties": {}, + "id": "PreorderDetails", + "description": "Details of a pre-order purchase.", + "type": "object" + }, + "ListAppRecoveriesResponse": { + "description": "Response message for ListAppRecoveries. -- api-linter: core::0158::response-next-page-token-field=disabled", + "properties": { + "recoveryActions": { + "description": "List of recovery actions associated with the requested package name.", + "items": { + "$ref": "AppRecoveryAction" + }, + "type": "array" + } + }, + "type": "object", + "id": "ListAppRecoveriesResponse" + }, + "BatchGetSubscriptionOffersResponse": { + "properties": { + "subscriptionOffers": { + "items": { + "$ref": "SubscriptionOffer" + }, + "type": "array" + } + }, + "id": "BatchGetSubscriptionOffersResponse", + "description": "Response message for BatchGetSubscriptionOffers endpoint.", + "type": "object" + }, + "DeleteOneTimeProductRequest": { + "type": "object", + "properties": { + "productId": { + "description": "Required. The one-time product ID of the one-time product to delete.", + "type": "string" + }, + "packageName": { + "type": "string", + "description": "Required. The parent app (package name) of the one-time product to delete." + }, + "latencyTolerance": { + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "type": "string" + } + }, + "description": "Request message for deleting a one-time product.", + "id": "DeleteOneTimeProductRequest" + }, + "TargetingRuleScopeAnySubscriptionInApp": { + "id": "TargetingRuleScopeAnySubscriptionInApp", + "type": "object", + "description": "Represents the targeting rule scope corresponding to any subscription in the parent app.", + "properties": {} + }, + "DeviceId": { + "description": "Identifier of a device.", + "type": "object", + "id": "DeviceId", + "properties": { + "buildDevice": { + "type": "string", + "description": "Value of Build.DEVICE." + }, + "buildBrand": { + "description": "Value of Build.BRAND.", + "type": "string" + } + } + }, + "AutoRenewingBasePlanType": { + "type": "object", + "description": "Represents a base plan that automatically renews at the end of its subscription period.", + "id": "AutoRenewingBasePlanType", + "properties": { + "gracePeriodDuration": { + "type": "string", + "description": "Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive." + }, + "billingPeriodDuration": { + "description": "Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing periods, refer to the help center. The duration is immutable after the base plan is created.", + "type": "string" + }, + "resubscribeState": { + "enumDescriptions": [ + "Unspecified state.", + "Resubscribe is active.", + "Resubscribe is inactive." + ], + "type": "string", + "enum": [ + "RESUBSCRIBE_STATE_UNSPECIFIED", + "RESUBSCRIBE_STATE_ACTIVE", + "RESUBSCRIBE_STATE_INACTIVE" + ], + "description": "Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified." + }, + "accountHoldDuration": { + "type": "string", + "description": "Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D and P60D days, inclusive." + }, + "prorationMode": { + "description": "The proration mode for the base plan determines what happens when a user switches to this plan from another base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.", + "enum": [ + "SUBSCRIPTION_PRORATION_MODE_UNSPECIFIED", + "SUBSCRIPTION_PRORATION_MODE_CHARGE_ON_NEXT_BILLING_DATE", + "SUBSCRIPTION_PRORATION_MODE_CHARGE_FULL_PRICE_IMMEDIATELY" + ], + "enumDescriptions": [ + "Unspecified mode.", + "Users will be charged for their new base plan at the end of their current billing period.", + "Users will be charged for their new base plan immediately and in full. Any remaining period of their existing subscription will be used to extend the duration of the new billing plan." + ], + "type": "string" + }, + "legacyCompatibleSubscriptionOfferId": { + "type": "string", + "description": "Subscription offer id which is legacy compatible. The backward compatible subscription offer is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one subscription offer can be marked as legacy compatible for a given renewing base plan. To have no Subscription offer as legacy compatible set this field as empty string." + }, + "legacyCompatible": { + "type": "boolean", + "description": "Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy compatible for a given subscription." + } + } + }, + "ExternalTransaction": { + "description": "The details of an external transaction.", + "type": "object", + "properties": { + "transactionTime": { + "type": "string", + "format": "google-datetime", + "description": "Required. The time when the transaction was completed." + }, + "recurringTransaction": { + "$ref": "RecurringExternalTransaction", + "description": "This transaction is part of a recurring series of transactions." + }, + "externalOfferDetails": { + "$ref": "ExternalOfferDetails", + "description": "Optional. Details necessary to accurately report external offers transactions." + }, + "oneTimeTransaction": { + "$ref": "OneTimeExternalTransaction", + "description": "This is a one-time transaction and not part of a subscription." + }, + "currentTaxAmount": { + "readOnly": true, + "$ref": "Price", + "description": "Output only. The current tax amount. This represents the current tax amount including any refunds that may have been applied to this transaction." + }, + "originalTaxAmount": { + "description": "Required. The original tax amount. This represents the tax amount originally notified to Google before any refunds were applied.", + "$ref": "Price" + }, + "transactionProgramCode": { + "type": "integer", + "format": "int32", + "description": "Optional. The transaction program code, used to help determine service fee for eligible apps participating in partner programs. Developers participating in the Play Media Experience Program (https://play.google.com/console/about/programs/mediaprogram/) must provide the program code when reporting alternative billing transactions. If you are an eligible developer, please contact your BDM for more information on how to set this field. Note: this field can not be used for external offers transactions." + }, + "transactionState": { + "readOnly": true, + "description": "Output only. The current state of the transaction.", + "type": "string", + "enumDescriptions": [ + "Unspecified transaction state. Not used.", + "The transaction has been successfully reported to Google.", + "The transaction has been fully refunded." + ], + "enum": [ + "TRANSACTION_STATE_UNSPECIFIED", + "TRANSACTION_REPORTED", + "TRANSACTION_CANCELED" + ] + }, + "packageName": { + "readOnly": true, + "description": "Output only. The resource name of the external transaction. The package name of the application the inapp products were sold (for example, 'com.some.app').", + "type": "string" + }, + "originalPreTaxAmount": { + "description": "Required. The original transaction amount before taxes. This represents the pre-tax amount originally notified to Google before any refunds were applied.", + "$ref": "Price" + }, + "externalContentLinkDetails": { + "description": "Optional. Details necessary to accurately report external content link transactions.", + "$ref": "ExternalContentLinkDetails" + }, + "createTime": { + "readOnly": true, + "format": "google-datetime", + "description": "Output only. The time when this transaction was created. This is the time when Google was notified of the transaction.", + "type": "string" + }, + "currentPreTaxAmount": { + "readOnly": true, + "description": "Output only. The current transaction amount before tax. This represents the current pre-tax amount including any refunds that may have been applied to this transaction.", + "$ref": "Price" + }, + "userTaxAddress": { + "description": "Required. User address for tax computation.", + "$ref": "ExternalTransactionAddress" + }, + "testPurchase": { + "description": "Output only. If set, this transaction was a test purchase. Google will not charge for a test transaction.", + "readOnly": true, + "$ref": "ExternalTransactionTestPurchase" + }, + "externalTransactionId": { + "description": "Output only. The id of this transaction. All transaction ids under the same package name must be unique. Set when creating the external transaction.", + "readOnly": true, + "type": "string" + } + }, + "id": "ExternalTransaction" + }, + "OtherRegionsSubscriptionOfferConfig": { + "type": "object", + "id": "OtherRegionsSubscriptionOfferConfig", + "properties": { + "otherRegionsNewSubscriberAvailability": { + "description": "Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.", + "type": "boolean" + } + }, + "description": "Configuration for any new locations Play may launch in specified on a subscription offer." + }, + "AndroidSdks": { + "type": "object", + "properties": { + "sdkLevels": { + "description": "Android api levels of devices targeted by recovery action. See https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels for different api levels in android.", + "type": "array", + "items": { + "type": "string", + "format": "int64" + } + } + }, + "description": "Android api level targeting data for app recovery action targeting.", + "id": "AndroidSdks" + }, + "AppStoreAppActiveApks": { + "description": "Information about active APKs of an app store hosted app.", + "properties": { + "activeApkSets": { + "description": "Required. List specifying which APK sets are distributed together. This list should contain all APKs that you're distributing for this app. Add an entry for each individual installable set of APKs.", + "type": "array", + "items": { + "$ref": "AppStoreAppActiveApkSet" + } + } + }, + "type": "object", + "id": "AppStoreAppActiveApks" + }, + "UpdateAppStoreHostedAppResponse": { + "type": "object", + "id": "UpdateAppStoreHostedAppResponse", + "description": "Response for updating an app record for an app store hosted app.", + "properties": { + "updateId": { + "type": "string", + "description": "Unique identifier for the specific version of the hosted app submitted in this update. This identifier can be used to correlate publishing signals (such as those returned by ListHostedAppsPublishingSignals) with this specific app update." + } + } + }, + "OtherRegionsBasePlanConfig": { + "type": "object", + "id": "OtherRegionsBasePlanConfig", + "description": "Pricing information for any new locations Play may launch in.", + "properties": { + "newSubscriberAvailability": { + "description": "Whether the base plan is available for new subscribers in any new locations Play may launch in. If not specified, this will default to false.", + "type": "boolean" + }, + "usdPrice": { + "description": "Required. Price in USD to use for any new locations Play may launch in.", + "$ref": "Money" + }, + "eurPrice": { + "description": "Required. Price in EUR to use for any new locations Play may launch in.", + "$ref": "Money" + } + } + }, + "DeveloperInitiatedCancellation": { + "description": "Information specific to cancellations initiated by developers.", + "id": "DeveloperInitiatedCancellation", + "type": "object", + "properties": {} + }, + "BuyerAddress": { + "properties": { + "buyerState": { + "description": "Top-level administrative subdivision of the buyer address country. When Google is the Merchant of Record for the order, this information is not included.", + "type": "string" + }, + "buyerCountry": { + "description": "Two letter country code based on ISO-3166-1 Alpha-2 (UN country codes).", + "type": "string" + }, + "buyerPostcode": { + "description": "Postal code of an address. When Google is the Merchant of Record for the order, this information is not included.", + "type": "string" + } + }, + "id": "BuyerAddress", + "description": "Address information for the customer, for use in tax computation.", + "type": "object" + }, + "UpgradeTargetingRule": { + "id": "UpgradeTargetingRule", + "properties": { + "billingPeriodDuration": { + "description": "The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.", + "type": "string" + }, + "oncePerUser": { + "type": "boolean", + "description": "Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer." + }, + "scope": { + "description": "Required. The scope of subscriptions this rule considers. Only allows \"this subscription\" and \"specific subscription in app\".", + "$ref": "TargetingRuleScope" + } + }, + "type": "object", + "description": "Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]." + }, + "AppDetails": { + "description": "The app details. The resource for DetailsService.", + "type": "object", + "id": "AppDetails", + "properties": { + "contactWebsite": { + "type": "string", + "description": "The user-visible website for this app." + }, + "contactPhone": { + "type": "string", + "description": "The user-visible support telephone number for this app." + }, + "contactEmail": { + "description": "The user-visible support email for this app.", + "type": "string" + }, + "defaultLanguage": { + "type": "string", + "description": "Default language code, in BCP 47 format (eg \"en-US\")." + } + } + }, + "ApkTargeting": { + "properties": { + "screenDensityTargeting": { + "description": "The screen density that this apk supports.", + "$ref": "ScreenDensityTargeting" + }, + "abiTargeting": { + "description": "The abi that the apk targets", + "$ref": "AbiTargeting" + }, + "textureCompressionFormatTargeting": { + "$ref": "TextureCompressionFormatTargeting", + "description": "Texture-compression-format-level targeting" + }, + "multiAbiTargeting": { + "description": "Multi-api-level targeting.", + "$ref": "MultiAbiTargeting" + }, + "sdkVersionTargeting": { + "description": "The sdk version that the apk targets", + "$ref": "SdkVersionTargeting" + }, + "languageTargeting": { + "description": "The language that the apk targets", + "$ref": "LanguageTargeting" + } + }, + "description": "Represents a set of apk-level targetings.", + "type": "object", + "id": "ApkTargeting" + }, + "Image": { + "id": "Image", + "description": "An uploaded image. The resource for ImagesService.", + "properties": { + "url": { + "type": "string", + "description": "A URL that will serve a preview of the image." + }, + "sha256": { + "description": "A sha256 hash of the image.", + "type": "string" + }, + "sha1": { + "type": "string", + "description": "A sha1 hash of the image." + }, + "aiGeneratedState": { + "enum": [ + "aiGeneratedStateUnspecified", + "aiGeneratedStateNotAiGenerated", + "aiGeneratedStateAiGeneratedDeveloperAttested" + ], + "enumDescriptions": [ + "Catch-all for unrecognized enum values. See go/protodosdonts.", + "The content is not generated by AI.", + "The content is generated by AI and attested by the developer." + ], + "description": "Optional. Whether the image was generated by AI. Attested by the developer.", + "type": "string" + }, + "id": { + "type": "string", + "description": "A unique id representing this image." + } + }, + "type": "object" + }, + "ImagesDeleteAllResponse": { + "id": "ImagesDeleteAllResponse", + "description": "Response for deleting all images.", + "properties": { + "deleted": { + "description": "The deleted images.", + "items": { + "$ref": "Image" + }, + "type": "array" + } + }, + "type": "object" + }, + "ExternalOfferDetails": { + "type": "object", + "description": "Reporting details unique to the external offers program.", + "properties": { + "installedAppCategory": { + "enumDescriptions": [ + "Unspecified, do not use.", + "The app is classified under the app category.", + "The app is classified under the game category." + ], + "type": "string", + "description": "Optional. The category of the downloaded app though this transaction. This must match the category provided in Play Console during the external app verification process. Only required for app downloads.", + "enum": [ + "EXTERNAL_OFFER_APP_CATEGORY_UNSPECIFIED", + "APP", + "GAME" + ] + }, + "appDownloadEventExternalTransactionId": { + "description": "Optional. The external transaction id associated with the app download event through an external link. Required when reporting transactions made in externally installed apps.", + "type": "string" + }, + "linkType": { + "description": "Optional. The type of content being reported by this transaction. Required when reporting app downloads or purchased digital content offers made in app installed through Google Play.", + "type": "string", + "enumDescriptions": [ + "Unspecified, do not use.", + "An offer to purchase digital content.", + "An app install." + ], + "enum": [ + "EXTERNAL_OFFER_LINK_TYPE_UNSPECIFIED", + "LINK_TO_DIGITAL_CONTENT_OFFER", + "LINK_TO_APP_DOWNLOAD" + ] + }, + "installedAppPackage": { + "description": "Optional. The package name of the app downloaded through this transaction. Required when link_type is LINK_TO_APP_DOWNLOAD.", + "type": "string" + } + }, + "id": "ExternalOfferDetails" + }, + "RegionalSubscriptionOfferPhaseConfig": { + "properties": { + "price": { + "description": "The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.", + "$ref": "Money" + }, + "regionCode": { + "type": "string", + "description": "Required. Immutable. The region to which this config applies." + }, + "relativeDiscount": { + "type": "number", + "description": "The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.", + "format": "double" + }, + "absoluteDiscount": { + "$ref": "Money", + "description": "The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region." + }, + "free": { + "$ref": "RegionalSubscriptionOfferPhaseFreePriceOverride", + "description": "Set to specify this offer is free to obtain." + } + }, + "description": "Configuration for a single phase of a subscription offer in a single region.", + "id": "RegionalSubscriptionOfferPhaseConfig", + "type": "object" + }, + "SafetyLabelsUpdateRequest": { + "id": "SafetyLabelsUpdateRequest", + "type": "object", + "properties": { + "safetyLabels": { + "description": "Required. Contents of the CSV file containing Data Safety responses. For the format of this file, see the Help Center documentation at https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cunderstand-the-csv-format To download an up to date template, follow the steps at https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cexport-to-a-csv-file", + "type": "string" + } + }, + "description": "Request to update Safety Labels of an app." + }, + "DeviceTierConfig": { + "description": "Configuration describing device targeting criteria for the content of an app.", + "type": "object", + "id": "DeviceTierConfig", + "properties": { + "deviceTierConfigId": { + "type": "string", + "format": "int64", + "description": "Output only. The device tier config ID.", + "readOnly": true + }, + "userCountrySets": { + "description": "Definition of user country sets for the app.", + "items": { + "$ref": "UserCountrySet" + }, + "type": "array" + }, + "deviceGroups": { + "items": { + "$ref": "DeviceGroup" + }, + "description": "Definition of device groups for the app.", + "type": "array" + }, + "deviceTierSet": { + "$ref": "DeviceTierSet", + "description": "Definition of the set of device tiers for the app." + } + } + }, + "RegionsVersion": { + "id": "RegionsVersion", + "type": "object", + "properties": { + "version": { + "description": "Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available.", + "type": "string" + } + }, + "description": "The version of the available regions being used for the specified resource." + }, + "PriceStepUpConsentDetails": { + "id": "PriceStepUpConsentDetails", + "type": "object", + "description": "Information related to a price step-up that requires user consent.", + "properties": { + "newPrice": { + "description": "The new price which requires user consent.", + "$ref": "Money" + }, + "state": { + "description": "Output only. The state of the price step-up consent.", + "type": "string", + "enumDescriptions": [ + "Unspecified consent state.", + "The user has not yet provided consent.", + "The user has consented, and the new price is waiting to take effect.", + "The user has consented, and the new price has taken effect." + ], + "readOnly": true, + "enum": [ + "CONSENT_STATE_UNSPECIFIED", + "PENDING", + "CONFIRMED", + "COMPLETED" + ] + }, + "consentDeadlineTime": { + "type": "string", + "description": "The deadline by which the user must provide consent. If consent is not provided by this time, the subscription will be canceled.", + "format": "google-datetime" + } + } + }, + "BatchUpdatePurchaseOptionStatesResponse": { + "type": "object", + "properties": { + "oneTimeProducts": { + "items": { + "$ref": "OneTimeProduct" + }, + "description": "The list of updated one-time products. This list will match the requests one to one, in the same order.", + "type": "array" + } + }, + "id": "BatchUpdatePurchaseOptionStatesResponse", + "description": "Response message for BatchUpdatePurchaseOptionStates." + }, + "Listing": { + "type": "object", + "id": "Listing", + "properties": { + "language": { + "type": "string", + "description": "Language localization code (a BCP-47 language tag; for example, \"de-AT\" for Austrian German)." + }, + "video": { + "description": "URL of a promotional YouTube video for the app.", + "type": "string" + }, + "fullDescription": { + "type": "string", + "description": "Full description of the app." + }, + "title": { + "description": "Localized title of the app.", + "type": "string" + }, + "shortDescription": { + "description": "Short description of the app.", + "type": "string" + } + }, + "description": "A localized store listing. The resource for ListingsService." + }, + "DeviceCompatibilityRequirements": { + "id": "DeviceCompatibilityRequirements", + "description": "Defines a set of device compatibility requirements for the app. A device must satisfy all of the requirements in a set to be considered compatible with the app.", + "type": "object", + "properties": { + "supportedScreens": { + "type": "array", + "description": "Compatible screens as listed in the `supports-screens` Manifest tag.", + "items": { + "enumDescriptions": [ + "Unspecified screen size.", + "Small screen size.", + "Normal screen size.", + "Large screen size.", + "Extra large screen size." + ], + "type": "string", + "enum": [ + "SCREEN_SIZE_UNSPECIFIED", + "SCREEN_SIZE_SMALL", + "SCREEN_SIZE_NORMAL", + "SCREEN_SIZE_LARGE", + "SCREEN_SIZE_EXTRA_LARGE" + ] + } + }, + "sdkVersion": { + "$ref": "CatalogSdkVersion", + "description": "Defines a range of SDK versions that the app is compatible with." + }, + "nativePlatforms": { + "description": "List of required ABIs (Application Binary Interface), e.g. `armeabi` or `x86`.", + "type": "array", + "items": { + "type": "string" + } + }, + "requiredSoftwareLibraries": { + "items": { + "type": "string" + }, + "type": "array", + "description": "List of required libraries as declared in the `uses-library` manifest tag." + }, + "usesConfigurations": { + "type": "array", + "description": "Lists all configurations marked as required by use of the `uses-configuration` manifest tag. Each instance of this proto represents a single `uses-configuration` entry. See http://developer.android.com/guide/topics/manifest/uses-configuration-element.html", + "items": { + "$ref": "UsesConfiguration" + } + }, + "compatibleScreens": { + "items": { + "$ref": "CompatibleScreen" + }, + "type": "array", + "description": "Compatible screens as listed in the `compatible-screens` Manifest tag." + }, + "use32BitAbi": { + "enumDescriptions": [ + "Unspecified 32-bit ABI usage.", + "Value of use32BitAbi is set to \"true\".", + "Value of use32BitAbi is not set or set to something other than \"true\"." + ], + "enum": [ + "USE_32_BIT_ABI_UNSPECIFIED", + "USE_32_BIT_ABI_TRUE", + "USE_32_BIT_ABI_OTHER" + ], + "type": "string", + "description": "Value of `android:use32BitAbi` flag retrieved from the Manifest." + }, + "requiresSmallestWidthDp": { + "format": "int64", + "type": "string", + "description": "Specifies the minimum smallest width required of the screen." + }, + "supportedGlTextures": { + "items": { + "type": "string" + }, + "description": "Supported gl textures as specified by the `supported-gl-texture` Manifest tag.", + "type": "array" + }, + "isScreenRequired": { + "type": "boolean", + "description": "Specifies if the app requires a screen." + }, + "requiredSystemFeatures": { + "description": "The system features that the app requires. A device must have all of the system features to be considered compatible with the app.", + "items": { + "type": "string" + }, + "type": "array" + }, + "glEsVersion": { + "description": "Required version of OpenGL ES.", + "type": "integer", + "format": "int32" + } + } + }, + "VoidedPurchase": { + "description": "A VoidedPurchase resource indicates a purchase that was either canceled/refunded/charged-back.", + "id": "VoidedPurchase", + "type": "object", + "properties": { + "purchaseTimeMillis": { + "description": "The time at which the purchase was made, in milliseconds since the epoch (Jan 1, 1970).", + "type": "string", + "format": "int64" + }, + "kind": { + "description": "This kind represents a voided purchase object in the androidpublisher service.", + "type": "string" + }, + "voidedTimeMillis": { + "type": "string", + "description": "The time at which the purchase was canceled/refunded/charged-back, in milliseconds since the epoch (Jan 1, 1970).", + "format": "int64" + }, + "orderId": { + "type": "string", + "description": "The order id which uniquely identifies a one-time purchase, subscription purchase, or subscription renewal." + }, + "voidedQuantity": { + "format": "int32", + "description": "The voided quantity as the result of a quantity-based partial refund. Voided purchases of quantity-based partial refunds may only be returned when includeQuantityBasedPartialRefund is set to true.", + "type": "integer" + }, + "purchaseToken": { + "type": "string", + "description": "The token which uniquely identifies a one-time purchase or subscription. To uniquely identify subscription renewals use order_id (available starting from version 3 of the API)." + }, + "voidedSource": { + "description": "The initiator of voided purchase, possible values are: 0. User 1. Developer 2. Google", + "type": "integer", + "format": "int32" + }, + "voidedReason": { + "format": "int32", + "type": "integer", + "description": "The reason why the purchase was voided, possible values are: 0. Other 1. Remorse 2. Not_received 3. Defective 4. Accidental_purchase 5. Fraud 6. Friendly_fraud 7. Chargeback 8. Unacknowledged_purchase" + } + } + }, + "ListOneTimeProductOffersResponse": { + "id": "ListOneTimeProductOffersResponse", + "type": "object", + "description": "Response message for ListOneTimeProductOffers.", + "properties": { + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages." + }, + "oneTimeProductOffers": { + "description": "The one_time_product offers from the specified request.", + "items": { + "$ref": "OneTimeProductOffer" + }, + "type": "array" + } + } + }, + "PolicyBooleanResponse": { + "properties": { + "value": { + "type": "boolean", + "description": "Required. Provided boolean value." + } + }, + "id": "PolicyBooleanResponse", + "type": "object", + "description": "Responses that will only ever be a boolean." + }, + "KeyedGroup": { + "id": "KeyedGroup", + "properties": { + "key": { + "description": "Required. Key for this group.", + "type": "string" + }, + "responses": { + "description": "Required. Responses in this group.", + "items": { + "$ref": "NestedPolicyResponse" + }, + "type": "array" + } + }, + "type": "object", + "description": "A group of responses, with a key." + }, + "TextureCompressionFormatTargeting": { + "type": "object", + "description": "Targeting by a texture compression format.", + "properties": { + "value": { + "items": { + "$ref": "TextureCompressionFormat" + }, + "type": "array", + "description": "The list of targeted TCFs. Should not be empty." + }, + "alternatives": { + "items": { + "$ref": "TextureCompressionFormat" + }, + "description": "List of alternative TCFs (TCFs targeted by the sibling splits).", + "type": "array" + } + }, + "id": "TextureCompressionFormatTargeting" + }, + "BatchGetOneTimeProductOffersResponse": { + "id": "BatchGetOneTimeProductOffersResponse", + "description": "Response message for the BatchGetOneTimeProductOffers endpoint.", + "type": "object", + "properties": { + "oneTimeProductOffers": { + "type": "array", + "description": "The list of updated one-time product offers, in the same order as the request.", + "items": { + "$ref": "OneTimeProductOffer" + } + } + } + }, + "PartialRefundEvent": { + "description": "Details of the partial refund events for this order.", + "type": "object", + "id": "PartialRefundEvent", + "properties": { + "processTime": { + "type": "string", + "format": "google-datetime", + "description": "The time when the partial refund was processed." + }, + "state": { + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "PROCESSED_SUCCESSFULLY" + ], + "description": "The state of the partial refund.", + "type": "string", + "enumDescriptions": [ + "State unspecified. This value is not used.", + "The partial refund has been created, but not yet processed.", + "The partial refund was processed successfully." + ] + }, + "refundDetails": { + "$ref": "RefundDetails", + "description": "Details for the partial refund." + }, + "createTime": { + "type": "string", + "format": "google-datetime", + "description": "The time when the partial refund was created." + } + } + }, + "BatchUpdateOneTimeProductsRequest": { + "type": "object", + "id": "BatchUpdateOneTimeProductsRequest", + "properties": { + "requests": { + "description": "Required. A list of update requests of up to 100 elements. All requests must update different one-time products.", + "type": "array", + "items": { + "$ref": "UpdateOneTimeProductRequest" + } + } + }, + "description": "Request message for BatchUpdateOneTimeProduct." + }, + "ProductPurchasesAcknowledgeRequest": { + "description": "Request for the product.purchases.acknowledge API.", + "id": "ProductPurchasesAcknowledgeRequest", + "properties": { + "developerPayload": { + "description": "Payload to attach to the purchase.", + "type": "string" + } + }, + "type": "object" + }, + "DeactivateOneTimeProductOfferRequest": { + "properties": { + "productId": { + "type": "string", + "description": "Required. The parent one-time product (ID) of the offer to deactivate." + }, + "latencyTolerance": { + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "description": "Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive." + }, + "packageName": { + "description": "Required. The parent app (package name) of the offer to deactivate.", + "type": "string" + }, + "purchaseOptionId": { + "description": "Required. The parent purchase option (ID) of the offer to deactivate.", + "type": "string" + }, + "offerId": { + "description": "Required. The offer ID of the offer to deactivate.", + "type": "string" + } + }, + "description": "Request message for DeactivateOneTimeProductOffer.", + "type": "object", + "id": "DeactivateOneTimeProductOfferRequest" + }, + "CatalogSdkVersion": { + "id": "CatalogSdkVersion", + "type": "object", + "description": "Defines a range of SDK versions. A device is considered compatible uf its\\ SDK version falls within the min_sdk_version and max_sdk_version range.", + "properties": { + "minSdkVersion": { + "description": "The minimum SDK version required for the app (inclusive).", + "type": "string", + "format": "int64" + }, + "targetSdkVersion": { + "description": "The target SDK version for the app.", + "format": "int64", + "type": "string" + }, + "maxSdkVersion": { + "description": "The maximum SDK version required for the app (inclusive).", + "type": "string", + "format": "int64" + } + } + }, + "DeobfuscationFile": { + "type": "object", + "id": "DeobfuscationFile", + "properties": { + "symbolType": { + "enum": [ + "deobfuscationFileTypeUnspecified", + "proguard", + "nativeCode" + ], + "description": "The type of the deobfuscation file.", + "type": "string", + "enumDescriptions": [ + "Unspecified deobfuscation file type.", + "Proguard deobfuscation file type.", + "Native debugging symbols file type." + ] + } + }, + "description": "Represents a deobfuscation file." + }, + "ListDeviceTierConfigsResponse": { + "description": "Response listing existing device tier configs.", + "type": "object", + "properties": { + "deviceTierConfigs": { + "type": "array", + "description": "Device tier configs created by the developer.", + "items": { + "$ref": "DeviceTierConfig" + } + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "id": "ListDeviceTierConfigsResponse" + }, + "ManagedProductTaxAndComplianceSettings": { + "description": "Details about taxation and legal compliance for managed products.", + "properties": { + "regionalProductAgeRatingInfos": { + "type": "array", + "description": "Regional age rating information. Currently this field is only supported for region code `US`.", + "items": { + "$ref": "RegionalProductAgeRatingInfo" + } + }, + "eeaWithdrawalRightType": { + "type": "string", + "enumDescriptions": [ + "", + "", + "" + ], + "description": "Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.", + "enum": [ + "WITHDRAWAL_RIGHT_TYPE_UNSPECIFIED", + "WITHDRAWAL_RIGHT_DIGITAL_CONTENT", + "WITHDRAWAL_RIGHT_SERVICE" + ] + }, + "productTaxCategoryCode": { + "type": "string", + "description": "Product tax category code to assign to the in-app product. Product tax category determines the transaction tax rates applied to the product. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information." + }, + "isTokenizedDigitalAsset": { + "type": "boolean", + "description": "Whether this in-app product is declared as a product representing a tokenized digital asset." + }, + "taxRateInfoByRegionCode": { + "additionalProperties": { + "$ref": "RegionalTaxRateInfo" + }, + "description": "A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's \"CLDR\".", + "type": "object" + } + }, + "id": "ManagedProductTaxAndComplianceSettings", + "type": "object" + }, + "RevokeSubscriptionPurchaseRequest": { + "properties": { + "revocationContext": { + "description": "Required. Additional details around the subscription revocation.", + "$ref": "RevocationContext" + } + }, + "type": "object", + "description": "Request for the purchases.subscriptionsv2.revoke API.", + "id": "RevokeSubscriptionPurchaseRequest" + }, + "InGracePeriodStateContext": { + "properties": { + "renewalDeclined": { + "$ref": "RenewalDeclinedContext", + "description": "Optional. The payment for the renewal was declined." + } + }, + "id": "InGracePeriodStateContext", + "description": "Additional context around subscriptions in IN_GRACE_PERIOD state.", + "type": "object" + }, + "InappproductsUpdateRequest": { + "type": "object", + "description": "Request to update an in-app product.", + "properties": { + "sku": { + "description": "Unique identifier for the in-app product.", + "type": "string" + }, + "inappproduct": { + "description": "The new in-app product.", + "$ref": "InAppProduct" + }, + "latencyTolerance": { + "type": "string", + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ] + }, + "autoConvertMissingPrices": { + "type": "boolean", + "description": "If true the prices for all regions targeted by the parent app that don't have a price specified for this in-app product will be auto converted to the target currency based on the default price. Defaults to false." + }, + "allowMissing": { + "type": "boolean", + "description": "If set to true, and the in-app product with the given package_name and sku doesn't exist, the in-app product will be created." + }, + "packageName": { + "description": "Package name of the app.", + "type": "string" + } + }, + "id": "InappproductsUpdateRequest" + }, + "BatchMigrateBasePlanPricesResponse": { + "properties": { + "responses": { + "type": "array", + "items": { + "$ref": "MigrateBasePlanPricesResponse" + }, + "description": "Contains one response per requested price migration, in the same order as the request." + } + }, + "description": "Response message for BatchMigrateBasePlanPrices.", + "type": "object", + "id": "BatchMigrateBasePlanPricesResponse" + }, + "DeveloperDetails": { + "description": "The developer details of a Google Play app.", + "type": "object", + "properties": { + "website": { + "type": "string", + "description": "The website of the developer." + }, + "address": { + "description": "The physical address of the developer.", + "type": "string" + }, + "contactEmail": { + "description": "The contact email of the developer.", + "type": "string" + }, + "developerName": { + "description": "The developer name of the app.", + "type": "string" + }, + "phoneNumber": { + "description": "The phone number of the developer.", + "type": "string" + } + }, + "id": "DeveloperDetails" + }, + "BatchUpdateBasePlanStatesRequest": { + "id": "BatchUpdateBasePlanStatesRequest", + "properties": { + "requests": { + "type": "array", + "description": "Required. The update request list of up to 100 elements. All requests must update different base plans.", + "items": { + "$ref": "UpdateBasePlanStateRequest" + } + } + }, + "type": "object", + "description": "Request message for BatchUpdateBasePlanStates." + }, + "DeviceSelector": { + "properties": { + "deviceRam": { + "$ref": "DeviceRam", + "description": "Conditions on the device's RAM." + }, + "includedDeviceIds": { + "type": "array", + "description": "Device models included by this selector.", + "items": { + "$ref": "DeviceId" + } + }, + "systemOnChips": { + "items": { + "$ref": "SystemOnChip" + }, + "description": "Optional. The SoCs included by this selector. Only works for Android S+ devices.", + "type": "array" + }, + "excludedDeviceIds": { + "items": { + "$ref": "DeviceId" + }, + "description": "Device models excluded by this selector, even if they match all other conditions.", + "type": "array" + }, + "requiredSystemFeatures": { + "type": "array", + "items": { + "$ref": "SystemFeature" + }, + "description": "A device needs to have all these system features to be included by the selector." + }, + "forbiddenSystemFeatures": { + "description": "A device that has any of these system features is excluded by this selector, even if it matches all other conditions.", + "items": { + "$ref": "SystemFeature" + }, + "type": "array" + } + }, + "description": "Selector for a device group. A selector consists of a set of conditions on the device that should all match (logical AND) to determine a device group eligibility. For instance, if a selector specifies RAM conditions, device model inclusion and device model exclusion, a device is considered to match if: device matches RAM conditions AND device matches one of the included device models AND device doesn't match excluded device models", + "type": "object", + "id": "DeviceSelector" + }, + "CancellationEvent": { + "description": "Details of when the order was canceled.", + "type": "object", + "id": "CancellationEvent", + "properties": { + "eventTime": { + "description": "The time when the order was canceled.", + "type": "string", + "format": "google-datetime" + } + } + }, + "TextureCompressionFormat": { + "type": "object", + "description": "Represents texture compression format.", + "id": "TextureCompressionFormat", + "properties": { + "alias": { + "type": "string", + "description": "Alias for texture compression format.", + "enumDescriptions": [ + "Unspecified format.", + "ETC1_RGB8 format.", + "PALETTED format.", + "THREE_DC format.", + "ATC format.", + "LATC format.", + "DXT1 format.", + "S3TC format.", + "PVRTC format.", + "ASTC format.", + "ETC2 format." + ], + "enum": [ + "UNSPECIFIED_TEXTURE_COMPRESSION_FORMAT", + "ETC1_RGB8", + "PALETTED", + "THREE_DC", + "ATC", + "LATC", + "DXT1", + "S3TC", + "PVRTC", + "ASTC", + "ETC2" + ] + } + } + }, + "ListUsersResponse": { + "type": "object", + "id": "ListUsersResponse", + "description": "A response containing one or more users with access to an account.", + "properties": { + "users": { + "items": { + "$ref": "User" + }, + "type": "array", + "description": "The resulting users." + }, + "nextPageToken": { + "type": "string", + "description": "A token to pass to subsequent calls in order to retrieve subsequent results. This will not be set if there are no more results to return." + } + } + }, + "UpdateSubscriptionOfferStateRequest": { + "type": "object", + "properties": { + "activateSubscriptionOfferRequest": { + "$ref": "ActivateSubscriptionOfferRequest", + "description": "Activates an offer. Once activated, the offer will be available to new subscribers." + }, + "deactivateSubscriptionOfferRequest": { + "description": "Deactivates an offer. Once deactivated, the offer will become unavailable to new subscribers, but existing subscribers will maintain their subscription", + "$ref": "DeactivateSubscriptionOfferRequest" + } + }, + "description": "Request message to update the state of a subscription offer.", + "id": "UpdateSubscriptionOfferStateRequest" + }, + "UpdateOneTimeProductOfferStateRequest": { + "id": "UpdateOneTimeProductOfferStateRequest", + "type": "object", + "properties": { + "activateOneTimeProductOfferRequest": { + "$ref": "ActivateOneTimeProductOfferRequest", + "description": "Activates an offer. Once activated, the offer is available to users, as long as its conditions are met." + }, + "deactivateOneTimeProductOfferRequest": { + "description": "Deactivates an offer. Once deactivated, the offer is no longer available to users. This state transition is specific to discounted offers.", + "$ref": "DeactivateOneTimeProductOfferRequest" + }, + "cancelOneTimeProductOfferRequest": { + "$ref": "CancelOneTimeProductOfferRequest", + "description": "Cancels an offer. Once cancelled, the offer is not available to users. Any pending orders related to this offer will be cancelled. This state transition is specific to pre-orders." + } + }, + "description": "Request message to update the state of a one-time product offer." + }, + "OrderHistory": { + "description": "Details about events which modified the order.", + "type": "object", + "properties": { + "partialRefundEvents": { + "items": { + "$ref": "PartialRefundEvent" + }, + "description": "Details of the partial refund events for this order.", + "type": "array" + }, + "refundEvent": { + "description": "Details of when the order was fully refunded.", + "$ref": "RefundEvent" + }, + "cancellationEvent": { + "$ref": "CancellationEvent", + "description": "Details of when the order was canceled." + }, + "processedEvent": { + "description": "Details of when the order was processed.", + "$ref": "ProcessedEvent" + } + }, + "id": "OrderHistory" + }, + "BatchUpdateSubscriptionOffersRequest": { + "properties": { + "requests": { + "description": "Required. A list of update requests of up to 100 elements. All requests must update different subscription offers.", + "items": { + "$ref": "UpdateSubscriptionOfferRequest" + }, + "type": "array" + } + }, + "type": "object", + "description": "Request message for BatchUpdateSubscriptionOffers.", + "id": "BatchUpdateSubscriptionOffersRequest" + }, + "UpdateOneTimeProductOfferRequest": { + "description": "Request message for UpdateOneTimeProductOffer.", + "id": "UpdateOneTimeProductOfferRequest", + "type": "object", + "properties": { + "allowMissing": { + "description": "Optional. If set to true, and the offer with the given package_name, product_id, purchase_option_id and offer_id doesn't exist, an offer will be created. If a new offer is created, the update_mask is ignored.", + "type": "boolean" + }, + "regionsVersion": { + "description": "Required. The version of the available regions being used for the offer.", + "$ref": "RegionsVersion" + }, + "oneTimeProductOffer": { + "description": "Required. The one-time product offer to update.", + "$ref": "OneTimeProductOffer" + }, + "updateMask": { + "type": "string", + "description": "Required. The list of fields to be updated.", + "format": "google-fieldmask" + }, + "latencyTolerance": { + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "description": "Optional. The latency tolerance for the propagation of this offer update. Defaults to latency-sensitive.", + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ] + } + } + }, + "RevocationContext": { + "properties": { + "proratedRefund": { + "description": "Optional. Used when users should be refunded a prorated amount they paid for their subscription based on the amount of time remaining in a subscription.", + "$ref": "RevocationContextProratedRefund" + }, + "fullRefund": { + "description": "Optional. Used when users should be refunded the full amount of latest charge on each item in the subscription.", + "$ref": "RevocationContextFullRefund" + }, + "itemBasedRefund": { + "description": "Optional. Used when a specific item should be refunded in a subscription with add-on items.", + "$ref": "RevocationContextItemBasedRefund" + } + }, + "id": "RevocationContext", + "type": "object", + "description": "Revocation context of the purchases.subscriptionsv2.revoke API." + }, + "ConvertedRegionPrice": { + "type": "object", + "description": "A converted region price.", + "id": "ConvertedRegionPrice", + "properties": { + "price": { + "description": "The converted price tax inclusive.", + "$ref": "Money" + }, + "taxAmount": { + "description": "The tax amount of the converted price.", + "$ref": "Money" + }, + "regionCode": { + "description": "The region code of the region.", + "type": "string" + } + } + }, + "UpdateSubscriptionRequest": { + "properties": { + "regionsVersion": { + "$ref": "RegionsVersion", + "description": "Required. The version of the available regions being used for the subscription." + }, + "subscription": { + "description": "Required. The subscription to update.", + "$ref": "Subscription" + }, + "allowMissing": { + "description": "Optional. If set to true, and the subscription with the given package_name and product_id doesn't exist, the subscription will be created. If a new subscription is created, update_mask is ignored.", + "type": "boolean" + }, + "latencyTolerance": { + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "type": "string", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ] + }, + "updateMask": { + "format": "google-fieldmask", + "description": "Required. The list of fields to be updated.", + "type": "string" + } + }, + "description": "Request message for UpdateSubscription.", + "type": "object", + "id": "UpdateSubscriptionRequest" + }, + "IntroductoryPriceOfferPhase": { + "id": "IntroductoryPriceOfferPhase", + "type": "object", + "properties": {}, + "description": "Details about introductory price offer phase." + }, + "ConvertRegionPricesRequest": { + "properties": { + "productTaxCategoryCode": { + "type": "string", + "description": "Optional. Product tax category code in context. Product tax category determines the transaction tax rates applied to the product that will be factored into the price calculation. If not set, tax rates for the default product tax category will be used. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information." + }, + "price": { + "$ref": "Money", + "description": "The intital price to convert other regions from. Tax exclusive." + } + }, + "id": "ConvertRegionPricesRequest", + "description": "Request message for ConvertRegionPrices.", + "type": "object" + }, + "RegionalPriceMigrationConfig": { + "id": "RegionalPriceMigrationConfig", + "type": "object", + "description": "Configuration for migration of a legacy price cohort.", + "properties": { + "regionCode": { + "type": "string", + "description": "Required. Region code this configuration applies to, as defined by ISO 3166-2, e.g. \"US\"." + }, + "oldestAllowedPriceVersionTime": { + "format": "google-datetime", + "type": "string", + "description": "Required. Subscribers in all legacy price cohorts before this time will be migrated to the current price. Subscribers in any newer price cohorts are unaffected. Affected subscribers will receive one or more notifications from Google Play about the price change. Price decreases occur at the subscriber's next billing date. Price increases occur at the subscriber's next billing date following a notification period that varies by region and price increase type." + }, + "priceIncreaseType": { + "description": "Optional. The requested type of price increase", + "type": "string", + "enum": [ + "PRICE_INCREASE_TYPE_UNSPECIFIED", + "PRICE_INCREASE_TYPE_OPT_IN", + "PRICE_INCREASE_TYPE_OPT_OUT" + ], + "enumDescriptions": [ + "Unspecified state.", + "Subscribers must accept the price increase or their subscription is canceled.", + "Subscribers are notified but do not have to accept the price increase. Opt-out price increases not meeting regional, frequency, and amount limits will proceed as opt-in price increase. The first opt-out price increase for each app must be initiated in the Google Play Console." + ] + } + } + }, + "OfferPhase": { + "id": "OfferPhase", + "description": "Offer phase details.", + "properties": { + "basePrice": { + "$ref": "BasePriceOfferPhase", + "description": "Set when the offer phase is a base plan pricing phase." + }, + "freeTrial": { + "description": "Set when the offer phase is a free trial.", + "$ref": "FreeTrialOfferPhase" + }, + "introductoryPrice": { + "$ref": "IntroductoryPriceOfferPhase", + "description": "Set when the offer phase is an introductory price offer phase." + }, + "prorationPeriod": { + "description": "Set when the offer phase is a proration period.", + "$ref": "ProrationPeriodOfferPhase" + } + }, + "type": "object" + }, + "CertificateHashes": { + "id": "CertificateHashes", + "properties": { + "certificateHashSha256": { + "type": "string", + "description": "Hex-encoded SHA256 hash of the certificate. example: `94:49:C7:F3:A9:3C:F0:C5:5A:67:5D:DF:1C:83:73:2D:87:D5:62:55:E7:0B:15:0D:9E:6F:3C:F8:63:BB:7F:C1`" + }, + "certificateHashSha1": { + "description": "Hex-encoded SHA1 hash of the certificate. example: `86:61:97:1A:D5:EF:E5:74:1E:A7:5B:84:7C:68:37:65:CD:94:16:DE`", + "type": "string" + }, + "certificateHashMd5": { + "description": "Hex-encoded MD5 hash of the certificate. example: `43:51:43:A1:B5:FC:8B:B7:0A:3A:A9:B1:0F:66:73:A8`", + "type": "string" + } + }, + "type": "object", + "description": "Hash digests of a certificate." + }, + "PolicyStringResponse": { + "description": "Any response best encoded as a string. Includes URLs and multiline text fields.", + "properties": { + "value": { + "type": "string", + "description": "Required. Provided string value." + } + }, + "type": "object", + "id": "PolicyStringResponse" + }, + "RevokeSubscriptionPurchaseResponse": { + "description": "Response for the purchases.subscriptionsv2.revoke API.", + "properties": {}, + "type": "object", + "id": "RevokeSubscriptionPurchaseResponse" + }, + "DeleteOneTimeProductOfferRequest": { + "id": "DeleteOneTimeProductOfferRequest", + "type": "object", + "properties": { + "purchaseOptionId": { + "description": "Required. The parent purchase option (ID) of the offer to delete.", + "type": "string" + }, + "offerId": { + "description": "Required. The unique offer ID of the offer to delete.", + "type": "string" + }, + "latencyTolerance": { + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "type": "string" + }, + "packageName": { + "description": "Required. The parent app (package name) of the offer to delete.", + "type": "string" + }, + "productId": { + "description": "Required. The parent one-time product (ID) of the offer to delete.", + "type": "string" + } + }, + "description": "Request message for deleting an one-time product offer." + }, + "SplitApkMetadata": { + "id": "SplitApkMetadata", + "type": "object", + "description": "Holds data specific to Split APKs.", + "properties": { + "isMasterSplit": { + "type": "boolean", + "description": "Indicates whether this APK is the main split of the module." + }, + "splitId": { + "description": "Id of the split.", + "type": "string" + } + } + }, + "OneTimeProductPreOrderOffer": { + "description": "Configuration specific to pre-order offers.", + "id": "OneTimeProductPreOrderOffer", + "properties": { + "startTime": { + "description": "Required. Time when the pre-order will start being available.", + "type": "string", + "format": "google-datetime" + }, + "releaseTime": { + "type": "string", + "description": "Required. Time on which the product associated with the pre-order will be released and the pre-order orders fulfilled.", + "format": "google-datetime" + }, + "endTime": { + "description": "Required. Time when the pre-order will stop being available.", + "format": "google-datetime", + "type": "string" + }, + "priceChangeBehavior": { + "enum": [ + "PRE_ORDER_PRICE_CHANGE_BEHAVIOR_UNSPECIFIED", + "PRE_ORDER_PRICE_CHANGE_BEHAVIOR_TWO_POINT_LOWEST", + "PRE_ORDER_PRICE_CHANGE_BEHAVIOR_NEW_ORDERS_ONLY" + ], + "type": "string", + "enumDescriptions": [ + "Unspecified price change behavior. Must not be used.", + "The buyer gets charged the minimum between the initial price at the time of pre-order and the final offer price on the release date.", + "The buyer gets the same price as the one they pre-ordered, regardless of any price changes that may have happened after the pre-order." + ], + "description": "Required. Immutable. Specifies how price changes affect pre-existing pre-orders." + } + }, + "type": "object" + }, + "Money": { + "properties": { + "nanos": { + "description": "Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.", + "type": "integer", + "format": "int32" + }, + "units": { + "description": "The whole units of the amount. For example if `currencyCode` is `\"USD\"`, then 1 unit is one US dollar.", + "format": "int64", + "type": "string" + }, + "currencyCode": { + "type": "string", + "description": "The three-letter currency code defined in ISO 4217." + } + }, + "id": "Money", + "type": "object", + "description": "Represents an amount of money with its currency type." + }, + "ApkBinary": { + "description": "Represents the binary payload of an APK.", + "id": "ApkBinary", + "type": "object", + "properties": { + "sha1": { + "description": "A sha1 hash of the APK payload, encoded as a hex string and matching the output of the sha1sum command.", + "type": "string" + }, + "sha256": { + "type": "string", + "description": "A sha256 hash of the APK payload, encoded as a hex string and matching the output of the sha256sum command." + } + } + }, + "OneTimePurchaseDetails": { + "id": "OneTimePurchaseDetails", + "type": "object", + "description": "Details of a one-time purchase.", + "properties": { + "quantity": { + "description": "The number of items purchased (for multi-quantity item purchases).", + "type": "integer", + "format": "int32" + }, + "rentalDetails": { + "$ref": "RentalDetails", + "description": "The details of a rent purchase. Only set if it is a rent purchase." + }, + "purchaseOptionId": { + "description": "ID of the purchase option. This field is set for both purchase options and variant offers. For purchase options, this ID identifies the purchase option itself. For variant offers, this ID refers to the associated purchase option, and in conjunction with offer_id it identifies the variant offer.", + "type": "string" + }, + "offerId": { + "description": "The offer ID of the one-time purchase offer.", + "type": "string" + }, + "preorderDetails": { + "$ref": "PreorderDetails", + "description": "The details of a pre-order purchase. Only set if it is a pre-order purchase. Note that this field will be set even after pre-order is fulfilled." + } + } + }, + "ListReleaseSummariesResponse": { + "description": "Response listing all releases for a given track that are either ready to be sent for review, in review, approved, not approved or available.", + "properties": { + "releases": { + "type": "array", + "items": { + "$ref": "ReleaseSummary" + }, + "description": "List of releases for this track. A maximum of 20 releases can be returned." + } + }, + "type": "object", + "id": "ListReleaseSummariesResponse" + }, + "ExternalTransactionAddress": { + "type": "object", + "description": "User's address for the external transaction.", + "properties": { + "administrativeArea": { + "type": "string", + "description": "Optional. Top-level administrative subdivision of the country/region. Only required for transactions in India. Valid values are \"ANDAMAN AND NICOBAR ISLANDS\", \"ANDHRA PRADESH\", \"ARUNACHAL PRADESH\", \"ASSAM\", \"BIHAR\", \"CHANDIGARH\", \"CHHATTISGARH\", \"DADRA AND NAGAR HAVELI\", \"DADRA AND NAGAR HAVELI AND DAMAN AND DIU\", \"DAMAN AND DIU\", \"DELHI\", \"GOA\", \"GUJARAT\", \"HARYANA\", \"HIMACHAL PRADESH\", \"JAMMU AND KASHMIR\", \"JHARKHAND\", \"KARNATAKA\", \"KERALA\", \"LADAKH\", \"LAKSHADWEEP\", \"MADHYA PRADESH\", \"MAHARASHTRA\", \"MANIPUR\", \"MEGHALAYA\", \"MIZORAM\", \"NAGALAND\", \"ODISHA\", \"PUDUCHERRY\", \"PUNJAB\", \"RAJASTHAN\", \"SIKKIM\", \"TAMIL NADU\", \"TELANGANA\", \"TRIPURA\", \"UTTAR PRADESH\", \"UTTARAKHAND\", and \"WEST BENGAL\"." + }, + "regionCode": { + "description": "Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes).", + "type": "string" + } + }, + "id": "ExternalTransactionAddress" + }, + "RefundExternalTransactionRequest": { + "properties": { + "partialRefund": { + "description": "A partial refund.", + "$ref": "PartialRefund" + }, + "fullRefund": { + "$ref": "FullRefund", + "description": "A full-amount refund." + }, + "refundTime": { + "type": "string", + "description": "Required. The time that the transaction was refunded.", + "format": "google-datetime" + } + }, + "type": "object", + "description": "A request to refund an existing external transaction.", + "id": "RefundExternalTransactionRequest" + }, + "RenewalDeclinedContext": { + "properties": { + "pendingOrderId": { + "description": "Required. The ID of the pending or failed order causing the state.", + "type": "string" + } + }, + "id": "RenewalDeclinedContext", + "description": "Context related to renewal declined scenario.", + "type": "object" + }, + "SubscriptionPurchasesAcknowledgeRequest": { + "type": "object", + "description": "Request for the purchases.subscriptions.acknowledge API.", + "properties": { + "developerPayload": { + "description": "Payload to attach to the purchase.", + "type": "string" + }, + "externalAccountIds": { + "description": "Optional. User account identifier in your app.", + "$ref": "ExternalAccountIds" + } + }, + "id": "SubscriptionPurchasesAcknowledgeRequest" + }, + "BatchUpdateOneTimeProductOfferStatesResponse": { + "properties": { + "oneTimeProductOffers": { + "description": "The updated one-time product offers list, in the same order as the request.", + "type": "array", + "items": { + "$ref": "OneTimeProductOffer" + } + } + }, + "description": "Response message for BatchUpdateOneTimeProductOfferStates.", + "id": "BatchUpdateOneTimeProductOfferStatesResponse", + "type": "object" + }, + "DeviceTier": { + "id": "DeviceTier", + "type": "object", + "properties": { + "level": { + "description": "The priority level of the tier. Tiers are evaluated in descending order of level: the highest level tier has the highest priority. The highest tier matching a given device is selected for that device. You should use a contiguous range of levels for your tiers in a tier set; tier levels in a tier set must be unique. For instance, if your tier set has 4 tiers (including the global fallback), you should define tiers 1, 2 and 3 in this configuration. Note: tier 0 is implicitly defined as a global fallback and selected for devices that don't match any of the tiers explicitly defined here. You mustn't define level 0 explicitly in this configuration.", + "type": "integer", + "format": "int32" + }, + "deviceGroupNames": { + "description": "Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this configuration.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "description": "A single device tier. Devices matching any of the device groups in device_group_names are considered to match the tier." + }, + "CompatibleScreen": { + "description": "Compatible screens as listed in the `compatible-screens` Manifest tag.", + "id": "CompatibleScreen", + "properties": { + "screenSize": { + "type": "string", + "enum": [ + "SCREEN_SIZE_UNSPECIFIED", + "SCREEN_SIZE_SMALL", + "SCREEN_SIZE_NORMAL", + "SCREEN_SIZE_LARGE", + "SCREEN_SIZE_EXTRA_LARGE" + ], + "enumDescriptions": [ + "Unspecified screen size.", + "Small screen size.", + "Normal screen size.", + "Large screen size.", + "Extra large screen size." + ], + "description": "The screen size." + }, + "density": { + "enumDescriptions": [ + "Unspecified density.", + "No density.", + "Low density.", + "Medium density.", + "TV density.", + "High density.", + "280 dpi.", + "Extra high density.", + "360 dpi.", + "400 dpi.", + "420 dpi.", + "Extra extra high density.", + "560 dpi.", + "Extra extra extra high density." + ], + "description": "Screen density.", + "type": "string", + "enum": [ + "DENSITY_UNSPECIFIED", + "DENSITY_NODPI", + "DENSITY_LDPI", + "DENSITY_MDPI", + "DENSITY_TVDPI", + "DENSITY_HDPI", + "DENSITY_280", + "DENSITY_XHDPI", + "DENSITY_360", + "DENSITY_400", + "DENSITY_420", + "DENSITY_XXHDPI", + "DENSITY_560", + "DENSITY_XXXHDPI" + ] + } + }, + "type": "object" + }, + "Grant": { + "type": "object", + "description": "An access grant resource.", + "id": "Grant", + "properties": { + "appLevelPermissions": { + "type": "array", + "items": { + "enumDescriptions": [ + "Unknown or unspecified permission.", + "View app information (read-only). Deprecated: Try defining a more granular capability. Otherwise, check AppLevelPermission.CAN_VIEW_NON_FINANCIAL_DATA.", + "View financial data.", + "Admin (all permissions).", + "Reply to reviews.", + "Release to production, exclude devices, and use app signing by Google Play.", + "Release to testing tracks.", + "Manage testing tracks and edit tester lists.", + "Manage store presence.", + "Edit and delete draft apps.", + "Manage orders and subscriptions.", + "Manage policy related pages.", + "View app information (read-only).", + "View app quality data such as Vitals, Crashes etc.", + "Manage the deep links setup of an app." + ], + "enum": [ + "APP_LEVEL_PERMISSION_UNSPECIFIED", + "CAN_ACCESS_APP", + "CAN_VIEW_FINANCIAL_DATA", + "CAN_MANAGE_PERMISSIONS", + "CAN_REPLY_TO_REVIEWS", + "CAN_MANAGE_PUBLIC_APKS", + "CAN_MANAGE_TRACK_APKS", + "CAN_MANAGE_TRACK_USERS", + "CAN_MANAGE_PUBLIC_LISTING", + "CAN_MANAGE_DRAFT_APPS", + "CAN_MANAGE_ORDERS", + "CAN_MANAGE_APP_CONTENT", + "CAN_VIEW_NON_FINANCIAL_DATA", + "CAN_VIEW_APP_QUALITY", + "CAN_MANAGE_DEEPLINKS" + ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "type": "string" + }, + "description": "The permissions granted to the user for this app." + }, + "packageName": { + "type": "string", + "description": "Immutable. The package name of the app. This will be empty for draft apps." + }, + "name": { + "description": "Required. Resource name for this grant, following the pattern \"developers/{developer}/users/{email}/grants/{package_name}\". If this grant is for a draft app, the app ID will be used in this resource name instead of the package name.", + "type": "string" + } + } + }, + "ApksListResponse": { + "type": "object", + "description": "Response listing all APKs.", + "id": "ApksListResponse", + "properties": { + "kind": { + "description": "The kind of this response (\"androidpublisher#apksListResponse\").", + "type": "string" + }, + "apks": { + "description": "All APKs.", + "items": { + "$ref": "Apk" + }, + "type": "array" + } + } + }, + "TestPurchaseContext": { + "description": "Context about a test purchase.", + "id": "TestPurchaseContext", + "type": "object", + "properties": { + "fopType": { + "enumDescriptions": [ + "Fop type unspecified. This value should never be set.", + "The purchase was made using a test card." + ], + "type": "string", + "description": "The fop type of the test purchase.", + "enum": [ + "FOP_TYPE_UNSPECIFIED", + "TEST" + ] + } + } + }, + "RegionalProductAgeRatingInfo": { + "properties": { + "regionCode": { + "description": "Region code this configuration applies to, as defined by ISO 3166-2, e.g. \"US\".", + "type": "string" + }, + "productAgeRatingTier": { + "type": "string", + "description": "The age rating tier of a product for the given region.", + "enumDescriptions": [ + "Unknown age rating tier.", + "Age rating tier for products that are appropriate for all ages.", + "Age rating tier for products that are appropriate for 13 years and above.", + "Age rating tier for products that are appropriate for 16 years and above.", + "Age rating tier for products that are appropriate for 18 years and above." + ], + "enum": [ + "PRODUCT_AGE_RATING_TIER_UNKNOWN", + "PRODUCT_AGE_RATING_TIER_EVERYONE", + "PRODUCT_AGE_RATING_TIER_THIRTEEN_AND_ABOVE", + "PRODUCT_AGE_RATING_TIER_SIXTEEN_AND_ABOVE", + "PRODUCT_AGE_RATING_TIER_EIGHTEEN_AND_ABOVE" + ] + } + }, + "description": "Details about the age rating for a specific geographic region.", + "type": "object", + "id": "RegionalProductAgeRatingInfo" + }, + "OtherRegionsSubscriptionOfferPhaseConfig": { + "description": "Configuration for any new locations Play may launch in for a single offer phase.", + "properties": { + "free": { + "$ref": "OtherRegionsSubscriptionOfferPhaseFreePriceOverride", + "description": "Set to specify this offer is free to obtain." + }, + "absoluteDiscounts": { + "description": "The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.", + "$ref": "OtherRegionsSubscriptionOfferPhasePrices" + }, + "relativeDiscount": { + "format": "double", + "description": "The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.", + "type": "number" + }, + "otherRegionsPrices": { + "$ref": "OtherRegionsSubscriptionOfferPhasePrices", + "description": "The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in." + } + }, + "type": "object", + "id": "OtherRegionsSubscriptionOfferPhaseConfig" + }, + "ListSubscriptionOffersResponse": { + "description": "Response message for ListSubscriptionOffers.", + "id": "ListSubscriptionOffersResponse", + "type": "object", + "properties": { + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages." + }, + "subscriptionOffers": { + "items": { + "$ref": "SubscriptionOffer" + }, + "type": "array", + "description": "The subscription offers from the specified subscription." + } + } + }, + "BatchGetOrdersResponse": { + "description": "Response for the orders.batchGet API.", + "properties": { + "orders": { + "description": "Details for the requested order IDs.", + "items": { + "$ref": "Order" + }, + "type": "array" + } + }, + "id": "BatchGetOrdersResponse", + "type": "object" + }, + "RemoteInAppUpdateData": { + "type": "object", + "properties": { + "remoteAppUpdateDataPerBundle": { + "items": { + "$ref": "RemoteInAppUpdateDataPerBundle" + }, + "type": "array", + "description": "Data related to the recovery action at bundle level." + } + }, + "description": "Data related to Remote In-App Update action such as recovered user count, affected user count etc.", + "id": "RemoteInAppUpdateData" + }, + "UploadAppStoreAppPolicyDeclarationFileRequest": { + "description": "Request to upload a policy declaration file.", + "properties": { + "fileType": { + "type": "string", + "enumDescriptions": [ + "Unspecified file type.", + "File type for PDF, JPEG, and PNG documents." + ], + "description": "Required. Type of the policy declaration file.", + "enum": [ + "DECLARATION_FILE_TYPE_UNSPECIFIED", + "DECLARATION_FILE_TYPE_DOCUMENT" + ] + } + }, + "type": "object", + "id": "UploadAppStoreAppPolicyDeclarationFileRequest" + }, + "TargetingRuleScopeThisSubscription": { + "id": "TargetingRuleScopeThisSubscription", + "description": "Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined.", + "type": "object", + "properties": {} + }, + "UserCountriesTargeting": { + "description": "Describes an inclusive/exclusive list of country codes that module targets.", + "properties": { + "countryCodes": { + "items": { + "type": "string" + }, + "description": "List of country codes in the two-letter CLDR territory format.", + "type": "array" + }, + "exclude": { + "description": "Indicates if the list above is exclusive.", + "type": "boolean" + } + }, + "type": "object", + "id": "UserCountriesTargeting" + }, + "Comment": { + "type": "object", + "id": "Comment", + "description": "An entry of conversation between user and developer.", + "properties": { + "developerComment": { + "$ref": "DeveloperComment", + "description": "A comment from a developer." + }, + "userComment": { + "$ref": "UserComment", + "description": "A comment from a user." + } + } + }, + "ExternalContentLinkDetails": { + "type": "object", + "id": "ExternalContentLinkDetails", + "properties": { + "installedAppPackage": { + "description": "Optional. The package name of the app downloaded through this transaction. Only required for app installs.", + "type": "string" + }, + "externalAppCategory": { + "enumDescriptions": [ + "Unspecified, do not use.", + "The app is classified under the app category.", + "The app is classified under the game category." + ], + "type": "string", + "description": "Optional. The category of the downlaoded app. This must match the category provided in Play Console during the external app verification process. Only required for app installs.", + "enum": [ + "EXTERNAL_CONTENT_APP_CATEGORY_UNSPECIFIED", + "APP", + "GAME" + ] + }, + "linkType": { + "description": "Required. The type content being reported by this transaction.", + "enum": [ + "EXTERNAL_CONTENT_LINK_TYPE_UNSPECIFIED", + "LINK_TO_DIGITAL_CONTENT_OFFER", + "LINK_TO_APP_DOWNLOAD" + ], + "enumDescriptions": [ + "Unspecified, do not use.", + "An offer to purchase digital content.", + "An app install." + ], + "type": "string" + } + }, + "description": "Reporting details unique to the external content link program." + }, + "CancelSubscriptionPurchaseResponse": { + "properties": {}, + "description": "Response for the purchases.subscriptionsv2.cancel API.", + "id": "CancelSubscriptionPurchaseResponse", + "type": "object" + }, + "CanceledStateContext": { + "description": "Information specific to a subscription in the SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED state.", + "properties": { + "developerInitiatedCancellation": { + "description": "Subscription was canceled by the developer.", + "$ref": "DeveloperInitiatedCancellation" + }, + "userInitiatedCancellation": { + "$ref": "UserInitiatedCancellation", + "description": "Subscription was canceled by user." + }, + "systemInitiatedCancellation": { + "$ref": "SystemInitiatedCancellation", + "description": "Subscription was canceled by the system, for example because of a billing problem." + }, + "replacementCancellation": { + "description": "Subscription was replaced by a new subscription.", + "$ref": "ReplacementCancellation" + } + }, + "id": "CanceledStateContext", + "type": "object" + }, + "IntroductoryPriceDetails": { + "properties": {}, + "description": "Details of an introductory price pricing phase.", + "type": "object", + "id": "IntroductoryPriceDetails" + }, + "BasePriceOfferPhase": { + "description": "Details about base price offer phase.", + "id": "BasePriceOfferPhase", + "type": "object", + "properties": {} + }, + "Date": { + "id": "Date", + "type": "object", + "properties": { + "year": { + "format": "int32", + "type": "integer", + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year." + }, + "month": { + "format": "int32", + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "type": "integer" + }, + "day": { + "type": "integer", + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32" + } + }, + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp" + }, + "AppVersionRange": { + "description": "Data format for a continuous range of app versions.", + "type": "object", + "id": "AppVersionRange", + "properties": { + "versionCodeEnd": { + "description": "Highest app version in the range, inclusive.", + "format": "int64", + "type": "string" + }, + "versionCodeStart": { + "type": "string", + "description": "Lowest app version in the range, inclusive.", + "format": "int64" + } + } + }, + "SubscriptionTaxAndComplianceSettings": { + "properties": { + "eeaWithdrawalRightType": { + "description": "Digital content or service classification for products distributed to users in the European Economic Area (EEA). The withdrawal regime under EEA consumer laws depends on this classification. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information.", + "enum": [ + "WITHDRAWAL_RIGHT_TYPE_UNSPECIFIED", + "WITHDRAWAL_RIGHT_DIGITAL_CONTENT", + "WITHDRAWAL_RIGHT_SERVICE" + ], + "type": "string", + "enumDescriptions": [ + "", + "", + "" + ] + }, + "productTaxCategoryCode": { + "type": "string", + "description": "Product tax category code to assign to the subscription. Product tax category determines the transaction tax rates applied to the subscription. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/16408159) for more information." + }, + "taxRateInfoByRegionCode": { + "type": "object", + "additionalProperties": { + "$ref": "RegionalTaxRateInfo" + }, + "description": "A mapping from region code to tax rate details. The keys are region codes as defined by Unicode's \"CLDR\"." + }, + "isTokenizedDigitalAsset": { + "description": "Whether this subscription is declared as a product representing a tokenized digital asset.", + "type": "boolean" + }, + "regionalProductAgeRatingInfos": { + "type": "array", + "items": { + "$ref": "RegionalProductAgeRatingInfo" + }, + "description": "Regional age rating information. Currently this field is only supported for region code `US`." + } + }, + "description": "Details about taxation, Google Play policy, and legal compliance for subscription products.", + "id": "SubscriptionTaxAndComplianceSettings", + "type": "object" + }, + "ItemReplacement": { + "id": "ItemReplacement", + "description": "Details about a subscription line item that is being replaced.", + "properties": { + "productId": { + "type": "string", + "description": "The product ID of the subscription line item being replaced." + }, + "offerId": { + "description": "The offer ID of the subscription line item being replaced, if applicable.", + "type": "string" + }, + "replacementMode": { + "description": "The replacement mode applied during the purchase.", + "enum": [ + "REPLACEMENT_MODE_UNSPECIFIED", + "WITH_TIME_PRORATION", + "CHARGE_PRORATED_PRICE", + "WITHOUT_PRORATION", + "CHARGE_FULL_PRICE", + "DEFERRED", + "KEEP_EXISTING" + ], + "enumDescriptions": [ + "Unspecified replacement mode.", + "The new plan will be prorated and credited from the old plan.", + "The user will be charged a prorated price for the new plan.", + "The new plan will replace the old one without prorating the time.", + "The user will be charged the full price for the new plan.", + "The old plan will be cancelled and the new plan will be effective after the old one expires.", + "The plan will remain unchanged with this replacement." + ], + "type": "string" + }, + "basePlanId": { + "description": "The base plan ID of the subscription line item being replaced.", + "type": "string" + } + }, + "type": "object" + }, + "ModuleTargeting": { + "properties": { + "sdkVersionTargeting": { + "$ref": "SdkVersionTargeting", + "description": "The sdk version that the variant targets" + }, + "userCountriesTargeting": { + "description": "Countries-level targeting", + "$ref": "UserCountriesTargeting" + }, + "deviceFeatureTargeting": { + "description": "Targeting for device features.", + "type": "array", + "items": { + "$ref": "DeviceFeatureTargeting" + } + } + }, + "description": "Targeting on the module level.", + "type": "object", + "id": "ModuleTargeting" + }, + "ExpansionFilesUploadResponse": { + "id": "ExpansionFilesUploadResponse", + "description": "Response for uploading an expansion file.", + "properties": { + "expansionFile": { + "$ref": "ExpansionFile", + "description": "The uploaded expansion file configuration." + } + }, + "type": "object" + }, + "AddTargetingResponse": { + "type": "object", + "id": "AddTargetingResponse", + "description": "Response message for AddTargeting.", + "properties": {} + }, + "Abi": { + "description": "Represents an Abi.", + "properties": { + "alias": { + "description": "Alias for an abi.", + "enumDescriptions": [ + "Unspecified abi.", + "ARMEABI abi.", + "ARMEABI_V7A abi.", + "ARM64_V8A abi.", + "X86 abi.", + "X86_64 abi.", + "RISCV64 abi." + ], + "enum": [ + "UNSPECIFIED_CPU_ARCHITECTURE", + "ARMEABI", + "ARMEABI_V7A", + "ARM64_V8A", + "X86", + "X86_64", + "RISCV64" + ], + "type": "string" + } + }, + "id": "Abi", + "type": "object" + }, + "InappproductsListResponse": { + "description": "Response listing all in-app products.", + "properties": { + "inappproduct": { + "description": "All in-app products.", + "type": "array", + "items": { + "$ref": "InAppProduct" + } + }, + "tokenPagination": { + "description": "Pagination token, to handle a number of products that is over one page.", + "$ref": "TokenPagination" + }, + "kind": { + "description": "The kind of this response (\"androidpublisher#inappproductsListResponse\").", + "type": "string" + }, + "pageInfo": { + "deprecated": true, + "description": "Deprecated and unset.", + "$ref": "PageInfo" + } + }, + "type": "object", + "id": "InappproductsListResponse" + }, + "DeletePurchaseOptionRequest": { + "id": "DeletePurchaseOptionRequest", + "properties": { + "force": { + "type": "boolean", + "description": "Optional. This field has no effect for purchase options with no offers under them. For purchase options with associated offers: * If `force` is set to false (default), an error will be returned. * If `force` is set to true, any associated offers under the purchase option will be deleted." + }, + "packageName": { + "description": "Required. The parent app (package name) of the purchase option to delete.", + "type": "string" + }, + "latencyTolerance": { + "enum": [ + "PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE", + "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT" + ], + "description": "Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.", + "enumDescriptions": [ + "Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.", + "The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.", + "The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods." + ], + "type": "string" + }, + "productId": { + "description": "Required. The parent one-time product (ID) of the purchase option to delete.", + "type": "string" + }, + "purchaseOptionId": { + "description": "Required. The purchase option ID of the purchase option to delete.", + "type": "string" + } + }, + "type": "object", + "description": "Request message for deleting a purchase option." + }, + "Price": { + "properties": { + "currency": { + "description": "3 letter Currency code, as defined by ISO 4217. See java/com/google/common/money/CurrencyCode.java", + "type": "string" + }, + "priceMicros": { + "description": "Price in 1/million of the currency base unit, represented as a string.", + "type": "string" + } + }, + "id": "Price", + "type": "object", + "description": "Definition of a price, i.e. currency and units." + }, + "BatchDeletePurchaseOptionsRequest": { + "description": "Request message for BatchDeletePurchaseOption.", + "type": "object", + "id": "BatchDeletePurchaseOptionsRequest", + "properties": { + "requests": { + "description": "Required. A list of delete requests of up to 100 elements. All requests must delete purchase options from different one-time products.", + "items": { + "$ref": "DeletePurchaseOptionRequest" + }, + "type": "array" + } + } + }, + "RevocationContextProratedRefund": { + "id": "RevocationContextProratedRefund", + "type": "object", + "description": "Used to determine if the refund type in the RevocationContext is a prorated refund.", + "properties": {} + } + }, + "batchPath": "batch", + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "title": "Google Play Android Developer API", + "revision": "20261008", + "id": "androidpublisher:v3", + "baseUrl": "https://androidpublisher.googleapis.com/", + "mtlsRootUrl": "https://androidpublisher.mtls.googleapis.com/", + "servicePath": "", + "version": "v3", + "protocol": "rest", + "discoveryVersion": "v1", + "name": "androidpublisher", + "documentationLink": "https://developers.google.com/android-publisher", + "kind": "discovery#restDescription" +} diff --git a/specs/app-store-connect.oas.json b/specs/app-store-connect.oas.json new file mode 100644 index 00000000..2afe0907 --- /dev/null +++ b/specs/app-store-connect.oas.json @@ -0,0 +1,258516 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "App Store Connect API", + "version": "4.5.1", + "x-platforms": { + "app_store_connect_api": "App Store Connect API" + } + }, + "servers": [ + { + "url": "https://api.appstoreconnect.apple.com/" + } + ], + "paths": { + "/v1/accessibilityDeclarations": { + "post": { + "tags": [ + "AccessibilityDeclarations" + ], + "operationId": "accessibilityDeclarations_createInstance", + "requestBody": { + "description": "AccessibilityDeclaration representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessibilityDeclarationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AccessibilityDeclaration", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessibilityDeclarationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/accessibilityDeclarations/{id}": { + "get": { + "tags": [ + "AccessibilityDeclarations" + ], + "operationId": "accessibilityDeclarations_getInstance", + "parameters": [ + { + "name": "fields[accessibilityDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type accessibilityDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "deviceFamily", + "state", + "supportsAudioDescriptions", + "supportsCaptions", + "supportsDarkInterface", + "supportsDifferentiateWithoutColorAlone", + "supportsLargerText", + "supportsReducedMotion", + "supportsSufficientContrast", + "supportsVoiceControl", + "supportsVoiceover" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AccessibilityDeclaration", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessibilityDeclarationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AccessibilityDeclarations" + ], + "operationId": "accessibilityDeclarations_updateInstance", + "requestBody": { + "description": "AccessibilityDeclaration representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessibilityDeclarationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AccessibilityDeclaration", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessibilityDeclarationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AccessibilityDeclarations" + ], + "operationId": "accessibilityDeclarations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/actors": { + "get": { + "tags": [ + "Actors" + ], + "operationId": "actors_getCollection", + "parameters": [ + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "fields[actors]", + "in": "query", + "description": "the fields to include for returned resources of type actors", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "actorType", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 Actors", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActorsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/actors/{id}": { + "get": { + "tags": [ + "Actors" + ], + "operationId": "actors_getInstance", + "parameters": [ + { + "name": "fields[actors]", + "in": "query", + "description": "the fields to include for returned resources of type actors", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "actorType", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Actor", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ageRatingDeclarations/{id}": { + "patch": { + "tags": [ + "AgeRatingDeclarations" + ], + "operationId": "ageRatingDeclarations_updateInstance", + "requestBody": { + "description": "AgeRatingDeclaration representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AgeRatingDeclarationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AgeRatingDeclaration", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AgeRatingDeclarationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionDomains": { + "get": { + "tags": [ + "AlternativeDistributionDomains" + ], + "operationId": "alternativeDistributionDomains_getCollection", + "parameters": [ + { + "name": "fields[alternativeDistributionDomains]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionDomains", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "domain", + "referenceName", + "createdDate" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 AlternativeDistributionDomains", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionDomainsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "AlternativeDistributionDomains" + ], + "operationId": "alternativeDistributionDomains_createInstance", + "requestBody": { + "description": "AlternativeDistributionDomain representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionDomainCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AlternativeDistributionDomain", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionDomainResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/alternativeDistributionDomains/{id}": { + "get": { + "tags": [ + "AlternativeDistributionDomains" + ], + "operationId": "alternativeDistributionDomains_getInstance", + "parameters": [ + { + "name": "fields[alternativeDistributionDomains]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionDomains", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "domain", + "referenceName", + "createdDate" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionDomain", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionDomainResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AlternativeDistributionDomains" + ], + "operationId": "alternativeDistributionDomains_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionKeys": { + "get": { + "tags": [ + "AlternativeDistributionKeys" + ], + "operationId": "alternativeDistributionKeys_getCollection", + "parameters": [ + { + "name": "exists[app]", + "in": "query", + "description": "filter by existence or non-existence of related 'app'", + "schema": { + "type": "boolean" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[alternativeDistributionKeys]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionKeys", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "publicKey" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 AlternativeDistributionKeys", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionKeysResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "AlternativeDistributionKeys" + ], + "operationId": "alternativeDistributionKeys_createInstance", + "requestBody": { + "description": "AlternativeDistributionKey representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionKeyCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AlternativeDistributionKey", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionKeyResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/alternativeDistributionKeys/{id}": { + "get": { + "tags": [ + "AlternativeDistributionKeys" + ], + "operationId": "alternativeDistributionKeys_getInstance", + "parameters": [ + { + "name": "fields[alternativeDistributionKeys]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionKeys", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "publicKey" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionKey", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionKeyResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AlternativeDistributionKeys" + ], + "operationId": "alternativeDistributionKeys_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackageDeltas/{id}": { + "get": { + "tags": [ + "AlternativeDistributionPackageDeltas" + ], + "operationId": "alternativeDistributionPackageDeltas_getInstance", + "parameters": [ + { + "name": "fields[alternativeDistributionPackageDeltas]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageDeltas", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "alternativeDistributionKeyBlob", + "fileChecksum" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionPackageDelta", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageDeltaResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackageVariants/{id}": { + "get": { + "tags": [ + "AlternativeDistributionPackageVariants" + ], + "operationId": "alternativeDistributionPackageVariants_getInstance", + "parameters": [ + { + "name": "fields[alternativeDistributionPackageVariants]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageVariants", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "alternativeDistributionKeyBlob", + "fileChecksum" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionPackageVariant", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVariantResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackageVersions/{id}": { + "get": { + "tags": [ + "AlternativeDistributionPackageVersions" + ], + "operationId": "alternativeDistributionPackageVersions_getInstance", + "parameters": [ + { + "name": "fields[alternativeDistributionPackageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "version", + "fileChecksum", + "state", + "variants", + "deltas", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[alternativeDistributionPackageVariants]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageVariants", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "alternativeDistributionKeyBlob", + "fileChecksum" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[alternativeDistributionPackageDeltas]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageDeltas", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "alternativeDistributionKeyBlob", + "fileChecksum" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "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": [ + "variants", + "deltas", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[deltas]", + "in": "query", + "description": "maximum number of related deltas returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[variants]", + "in": "query", + "description": "maximum number of related variants 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionPackageVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackages": { + "post": { + "tags": [ + "AlternativeDistributionPackages" + ], + "operationId": "alternativeDistributionPackages_createInstance", + "requestBody": { + "description": "AlternativeDistributionPackage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AlternativeDistributionPackage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/alternativeDistributionPackages/{id}": { + "get": { + "tags": [ + "AlternativeDistributionPackages" + ], + "operationId": "alternativeDistributionPackages_getInstance", + "parameters": [ + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[alternativeDistributionPackageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "version", + "fileChecksum", + "state", + "variants", + "deltas", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionPackage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReportInstances/{id}": { + "get": { + "tags": [ + "AnalyticsReportInstances" + ], + "operationId": "analyticsReportInstances_getInstance", + "parameters": [ + { + "name": "fields[analyticsReportInstances]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportInstances", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "granularity", + "processingDate", + "segments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AnalyticsReportInstance", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportInstanceResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReportRequests": { + "post": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests_createInstance", + "requestBody": { + "description": "AnalyticsReportRequest representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportRequestCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AnalyticsReportRequest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportRequestResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/analyticsReportRequests/{id}": { + "get": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests_getInstance", + "parameters": [ + { + "name": "fields[analyticsReportRequests]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessType", + "stoppedDueToInactivity", + "reports" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[analyticsReports]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReports", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "category", + "instances" + ] + } + }, + "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": [ + "reports" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[reports]", + "in": "query", + "description": "maximum number of related reports 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AnalyticsReportRequest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportRequestResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReportSegments/{id}": { + "get": { + "tags": [ + "AnalyticsReportSegments" + ], + "operationId": "analyticsReportSegments_getInstance", + "parameters": [ + { + "name": "fields[analyticsReportSegments]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportSegments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "checksum", + "sizeInBytes", + "url" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AnalyticsReportSegment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportSegmentResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReports/{id}": { + "get": { + "tags": [ + "AnalyticsReports" + ], + "operationId": "analyticsReports_getInstance", + "parameters": [ + { + "name": "fields[analyticsReports]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReports", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "category", + "instances" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AnalyticsReport", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/androidToIosAppMappingDetails": { + "post": { + "tags": [ + "AndroidToIosAppMappingDetails" + ], + "operationId": "androidToIosAppMappingDetails_createInstance", + "requestBody": { + "description": "AndroidToIosAppMappingDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AndroidToIosAppMappingDetailCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AndroidToIosAppMappingDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AndroidToIosAppMappingDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/androidToIosAppMappingDetails/{id}": { + "get": { + "tags": [ + "AndroidToIosAppMappingDetails" + ], + "operationId": "androidToIosAppMappingDetails_getInstance", + "parameters": [ + { + "name": "fields[androidToIosAppMappingDetails]", + "in": "query", + "description": "the fields to include for returned resources of type androidToIosAppMappingDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "packageName", + "appSigningKeyPublicCertificateSha256Fingerprints" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AndroidToIosAppMappingDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AndroidToIosAppMappingDetailResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AndroidToIosAppMappingDetails" + ], + "operationId": "androidToIosAppMappingDetails_updateInstance", + "requestBody": { + "description": "AndroidToIosAppMappingDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AndroidToIosAppMappingDetailUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AndroidToIosAppMappingDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AndroidToIosAppMappingDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AndroidToIosAppMappingDetails" + ], + "operationId": "androidToIosAppMappingDetails_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraries/{id}": { + "get": { + "tags": [ + "AppAssetLibraries" + ], + "operationId": "appAssetLibraries_getInstance", + "parameters": [ + { + "name": "fields[appAssetLibraries]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraries", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "images", + "videos" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibrary", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraryImages": { + "post": { + "tags": [ + "AppAssetLibraryImages" + ], + "operationId": "appAssetLibraryImages_createInstance", + "requestBody": { + "description": "AppAssetLibraryImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppAssetLibraryImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appAssetLibraryImages/{id}": { + "get": { + "tags": [ + "AppAssetLibraryImages" + ], + "operationId": "appAssetLibraryImages_getInstance", + "parameters": [ + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppAssetLibraryImages" + ], + "operationId": "appAssetLibraryImages_updateInstance", + "requestBody": { + "description": "AppAssetLibraryImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppAssetLibraryImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppAssetLibraryImages" + ], + "operationId": "appAssetLibraryImages_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraryPlacementOrderingRequests": { + "post": { + "tags": [ + "AppAssetLibraryPlacementOrderingRequests" + ], + "operationId": "appAssetLibraryPlacementOrderingRequests_createInstance", + "parameters": [ + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "orderedPlacements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[orderedPlacements]", + "in": "query", + "description": "maximum number of related orderedPlacements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "fields[appAssetLibraryPlacementOrderingRequests]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacementOrderingRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "orderedPlacements" + ] + } + }, + "style": "form", + "explode": false + } + ], + "requestBody": { + "description": "AppAssetLibraryPlacementOrderingRequest representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementOrderingRequestCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppAssetLibraryPlacementOrderingRequest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementOrderingRequestResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appAssetLibraryPlacements": { + "post": { + "tags": [ + "AppAssetLibraryPlacements" + ], + "operationId": "appAssetLibraryPlacements_createInstance", + "requestBody": { + "description": "AppAssetLibraryPlacement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppAssetLibraryPlacement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appAssetLibraryPlacements/{id}": { + "get": { + "tags": [ + "AppAssetLibraryPlacements" + ], + "operationId": "appAssetLibraryPlacements_getInstance", + "parameters": [ + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryPlacement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppAssetLibraryPlacements" + ], + "operationId": "appAssetLibraryPlacements_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraryRefData": { + "get": { + "tags": [ + "AppAssetLibraryRefData" + ], + "operationId": "appAssetLibraryRefData_getCollection", + "parameters": [ + { + "name": "filter[placementTypes]", + "in": "query", + "description": "filter by attribute 'placementTypes'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[placementProfileGroups]", + "in": "query", + "description": "filter by attribute 'placementProfileGroups'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[features]", + "in": "query", + "description": "filter by attribute 'features'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[specs]", + "in": "query", + "description": "filter by specs", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryRefData]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryRefData", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "features", + "placementProfileGroups", + "imageSpecs", + "videoSpecs", + "placementTypes", + "displayClasses" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 AppAssetLibraryRefData", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryRefDataResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appAssetLibraryRefData/{id}": { + "get": { + "tags": [ + "AppAssetLibraryRefData" + ], + "operationId": "appAssetLibraryRefData_getInstance", + "parameters": [ + { + "name": "fields[appAssetLibraryRefData]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryRefData", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "features", + "placementProfileGroups", + "imageSpecs", + "videoSpecs", + "placementTypes", + "displayClasses" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryRefDatum", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryRefDatumResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraryVideos": { + "post": { + "tags": [ + "AppAssetLibraryVideos" + ], + "operationId": "appAssetLibraryVideos_createInstance", + "requestBody": { + "description": "AppAssetLibraryVideo representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryVideoCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppAssetLibraryVideo", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryVideoResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appAssetLibraryVideos/{id}": { + "get": { + "tags": [ + "AppAssetLibraryVideos" + ], + "operationId": "appAssetLibraryVideos_getInstance", + "parameters": [ + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryVideo", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryVideoResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppAssetLibraryVideos" + ], + "operationId": "appAssetLibraryVideos_updateInstance", + "requestBody": { + "description": "AppAssetLibraryVideo representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryVideoUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppAssetLibraryVideo", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryVideoResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppAssetLibraryVideos" + ], + "operationId": "appAssetLibraryVideos_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/appAvailabilities": { + "post": { + "tags": [ + "AppAvailabilities" + ], + "operationId": "appAvailabilitiesV2_createInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/appAvailabilities/{id}": { + "get": { + "tags": [ + "AppAvailabilities" + ], + "operationId": "appAvailabilitiesV2_getInstance", + "parameters": [ + { + "name": "fields[appAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type appAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "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", + "releaseDate", + "preOrderEnabled", + "preOrderPublishDate", + "contentStatuses", + "territory" + ] + } + }, + "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": "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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": { + "get": { + "tags": [ + "AppCategories" + ], + "operationId": "appCategories_getCollection", + "parameters": [ + { + "name": "filter[platforms]", + "in": "query", + "description": "filter by attribute 'platforms'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "exists[parent]", + "in": "query", + "description": "filter by existence or non-existence of related 'parent'", + "schema": { + "type": "boolean" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "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": [ + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[subcategories]", + "in": "query", + "description": "maximum number of related subcategories 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 AppCategories", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCategoriesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appCategories/{id}": { + "get": { + "tags": [ + "AppCategories" + ], + "operationId": "appCategories_getInstance", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "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": [ + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[subcategories]", + "in": "query", + "description": "maximum number of related subcategories 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipAdvancedExperienceImages": { + "post": { + "tags": [ + "AppClipAdvancedExperienceImages" + ], + "operationId": "appClipAdvancedExperienceImages_createInstance", + "requestBody": { + "description": "AppClipAdvancedExperienceImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppClipAdvancedExperienceImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appClipAdvancedExperienceImages/{id}": { + "get": { + "tags": [ + "AppClipAdvancedExperienceImages" + ], + "operationId": "appClipAdvancedExperienceImages_getInstance", + "parameters": [ + { + "name": "fields[appClipAdvancedExperienceImages]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAdvancedExperienceImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipAdvancedExperienceImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppClipAdvancedExperienceImages" + ], + "operationId": "appClipAdvancedExperienceImages_updateInstance", + "requestBody": { + "description": "AppClipAdvancedExperienceImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppClipAdvancedExperienceImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipAdvancedExperiences": { + "post": { + "tags": [ + "AppClipAdvancedExperiences" + ], + "operationId": "appClipAdvancedExperiences_createInstance", + "requestBody": { + "description": "AppClipAdvancedExperience representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppClipAdvancedExperience", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appClipAdvancedExperiences/{id}": { + "get": { + "tags": [ + "AppClipAdvancedExperiences" + ], + "operationId": "appClipAdvancedExperiences_getInstance", + "parameters": [ + { + "name": "fields[appClipAdvancedExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAdvancedExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "link", + "version", + "status", + "action", + "isPoweredBy", + "place", + "placeStatus", + "businessCategory", + "defaultLanguage", + "appClip", + "headerImage", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClips]", + "in": "query", + "description": "the fields to include for returned resources of type appClips", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClipAdvancedExperienceImages]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAdvancedExperienceImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClipAdvancedExperienceLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAdvancedExperienceLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "language", + "title", + "subtitle" + ] + } + }, + "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": [ + "appClip", + "headerImage", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipAdvancedExperience", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppClipAdvancedExperiences" + ], + "operationId": "appClipAdvancedExperiences_updateInstance", + "requestBody": { + "description": "AppClipAdvancedExperience representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppClipAdvancedExperience", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipAppStoreReviewDetails": { + "post": { + "tags": [ + "AppClipAppStoreReviewDetails" + ], + "operationId": "appClipAppStoreReviewDetails_createInstance", + "requestBody": { + "description": "AppClipAppStoreReviewDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetailCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppClipAppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appClipAppStoreReviewDetails/{id}": { + "get": { + "tags": [ + "AppClipAppStoreReviewDetails" + ], + "operationId": "appClipAppStoreReviewDetails_getInstance", + "parameters": [ + { + "name": "fields[appClipAppStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "invocationUrls", + "appClipDefaultExperience" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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": [ + "appClipDefaultExperience" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipAppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetailResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppClipAppStoreReviewDetails" + ], + "operationId": "appClipAppStoreReviewDetails_updateInstance", + "requestBody": { + "description": "AppClipAppStoreReviewDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetailUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppClipAppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperienceLocalizations": { + "post": { + "tags": [ + "AppClipDefaultExperienceLocalizations" + ], + "operationId": "appClipDefaultExperienceLocalizations_createInstance", + "requestBody": { + "description": "AppClipDefaultExperienceLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppClipDefaultExperienceLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appClipDefaultExperienceLocalizations/{id}": { + "get": { + "tags": [ + "AppClipDefaultExperienceLocalizations" + ], + "operationId": "appClipDefaultExperienceLocalizations_getInstance", + "parameters": [ + { + "name": "fields[appClipDefaultExperienceLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "subtitle", + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClipHeaderImages]", + "in": "query", + "description": "the fields to include for returned resources of type appClipHeaderImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "appClipDefaultExperienceLocalization" + ] + } + }, + "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": [ + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipDefaultExperienceLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppClipDefaultExperienceLocalizations" + ], + "operationId": "appClipDefaultExperienceLocalizations_updateInstance", + "requestBody": { + "description": "AppClipDefaultExperienceLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppClipDefaultExperienceLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppClipDefaultExperienceLocalizations" + ], + "operationId": "appClipDefaultExperienceLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperiences": { + "post": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_createInstance", + "requestBody": { + "description": "AppClipDefaultExperience representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppClipDefaultExperience", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appClipDefaultExperiences/{id}": { + "get": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_getInstance", + "parameters": [ + { + "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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClips]", + "in": "query", + "description": "the fields to include for returned resources of type appClips", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClipDefaultExperienceLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "subtitle", + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClipAppStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "invocationUrls", + "appClipDefaultExperience" + ] + } + }, + "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": [ + "appClip", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appClipDefaultExperienceLocalizations]", + "in": "query", + "description": "maximum number of related appClipDefaultExperienceLocalizations 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_updateInstance", + "requestBody": { + "description": "AppClipDefaultExperience representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppClipDefaultExperience", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipHeaderImages": { + "post": { + "tags": [ + "AppClipHeaderImages" + ], + "operationId": "appClipHeaderImages_createInstance", + "requestBody": { + "description": "AppClipHeaderImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipHeaderImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppClipHeaderImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipHeaderImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appClipHeaderImages/{id}": { + "get": { + "tags": [ + "AppClipHeaderImages" + ], + "operationId": "appClipHeaderImages_getInstance", + "parameters": [ + { + "name": "fields[appClipHeaderImages]", + "in": "query", + "description": "the fields to include for returned resources of type appClipHeaderImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "appClipDefaultExperienceLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClipDefaultExperienceLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "subtitle", + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "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": [ + "appClipDefaultExperienceLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipHeaderImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipHeaderImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppClipHeaderImages" + ], + "operationId": "appClipHeaderImages_updateInstance", + "requestBody": { + "description": "AppClipHeaderImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipHeaderImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppClipHeaderImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipHeaderImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppClipHeaderImages" + ], + "operationId": "appClipHeaderImages_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClips/{id}": { + "get": { + "tags": [ + "AppClips" + ], + "operationId": "appClips_getInstance", + "parameters": [ + { + "name": "fields[appClips]", + "in": "query", + "description": "the fields to include for returned resources of type appClips", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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": [ + "app", + "appClipDefaultExperiences" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appClipDefaultExperiences]", + "in": "query", + "description": "maximum number of related appClipDefaultExperiences 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClip", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations": { + "post": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_createInstance", + "requestBody": { + "description": "AppCustomProductPageLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppCustomProductPageLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appCustomProductPageLocalizations/{id}": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_getInstance", + "parameters": [ + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCustomProductPageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "deepLink", + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appPreviewSets]", + "in": "query", + "description": "maximum number of related appPreviewSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appScreenshotSets]", + "in": "query", + "description": "maximum number of related appScreenshotSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[searchKeywords]", + "in": "query", + "description": "maximum number of related searchKeywords 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppCustomProductPageLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_updateInstance", + "requestBody": { + "description": "AppCustomProductPageLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppCustomProductPageLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageVersions": { + "post": { + "tags": [ + "AppCustomProductPageVersions" + ], + "operationId": "appCustomProductPageVersions_createInstance", + "requestBody": { + "description": "AppCustomProductPageVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppCustomProductPageVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appCustomProductPageVersions/{id}": { + "get": { + "tags": [ + "AppCustomProductPageVersions" + ], + "operationId": "appCustomProductPageVersions_getInstance", + "parameters": [ + { + "name": "fields[appCustomProductPageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "deepLink", + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCustomProductPages]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "url", + "visible", + "app", + "appCustomProductPageVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appCustomProductPageLocalizations]", + "in": "query", + "description": "maximum number of related appCustomProductPageLocalizations 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppCustomProductPageVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppCustomProductPageVersions" + ], + "operationId": "appCustomProductPageVersions_updateInstance", + "requestBody": { + "description": "AppCustomProductPageVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageVersionUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppCustomProductPageVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPages": { + "post": { + "tags": [ + "AppCustomProductPages" + ], + "operationId": "appCustomProductPages_createInstance", + "requestBody": { + "description": "AppCustomProductPage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppCustomProductPage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appCustomProductPages/{id}": { + "get": { + "tags": [ + "AppCustomProductPages" + ], + "operationId": "appCustomProductPages_getInstance", + "parameters": [ + { + "name": "fields[appCustomProductPages]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "url", + "visible", + "app", + "appCustomProductPageVersions" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCustomProductPageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "deepLink", + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "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": [ + "app", + "appCustomProductPageVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appCustomProductPageVersions]", + "in": "query", + "description": "maximum number of related appCustomProductPageVersions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppCustomProductPage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppCustomProductPages" + ], + "operationId": "appCustomProductPages_updateInstance", + "requestBody": { + "description": "AppCustomProductPage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppCustomProductPage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppCustomProductPages" + ], + "operationId": "appCustomProductPages_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEncryptionDeclarationDocuments": { + "post": { + "tags": [ + "AppEncryptionDeclarationDocuments" + ], + "operationId": "appEncryptionDeclarationDocuments_createInstance", + "requestBody": { + "description": "AppEncryptionDeclarationDocument representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocumentCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppEncryptionDeclarationDocument", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocumentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appEncryptionDeclarationDocuments/{id}": { + "get": { + "tags": [ + "AppEncryptionDeclarationDocuments" + ], + "operationId": "appEncryptionDeclarationDocuments_getInstance", + "parameters": [ + { + "name": "fields[appEncryptionDeclarationDocuments]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarationDocuments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "downloadUrl", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEncryptionDeclarationDocument", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocumentResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppEncryptionDeclarationDocuments" + ], + "operationId": "appEncryptionDeclarationDocuments_updateInstance", + "requestBody": { + "description": "AppEncryptionDeclarationDocument representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocumentUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppEncryptionDeclarationDocument", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocumentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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": { + "get": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations_getCollection", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "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": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[appEncryptionDeclarationDocuments]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarationDocuments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "downloadUrl", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 AppEncryptionDeclarations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations_createInstance", + "requestBody": { + "description": "AppEncryptionDeclaration representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppEncryptionDeclaration", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appEncryptionDeclarations/{id}": { + "get": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations_getInstance", + "parameters": [ + { + "name": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[appEncryptionDeclarationDocuments]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarationDocuments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "downloadUrl", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventLocalizations": { + "post": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_createInstance", + "requestBody": { + "description": "AppEventLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppEventLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appEventLocalizations/{id}": { + "get": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_getInstance", + "parameters": [ + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEventScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appEventScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "assetToken", + "uploadOperations", + "assetDeliveryState", + "appEventAssetType", + "appEventLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEventVideoClips]", + "in": "query", + "description": "the fields to include for returned resources of type appEventVideoClips", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "previewFrameTimeCode", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appEventAssetType", + "appEventLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appEventScreenshots]", + "in": "query", + "description": "maximum number of related appEventScreenshots returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appEventVideoClips]", + "in": "query", + "description": "maximum number of related appEventVideoClips returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEventLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_updateInstance", + "requestBody": { + "description": "AppEventLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppEventLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventScreenshots": { + "post": { + "tags": [ + "AppEventScreenshots" + ], + "operationId": "appEventScreenshots_createInstance", + "requestBody": { + "description": "AppEventScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventScreenshotCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppEventScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventScreenshotResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appEventScreenshots/{id}": { + "get": { + "tags": [ + "AppEventScreenshots" + ], + "operationId": "appEventScreenshots_getInstance", + "parameters": [ + { + "name": "fields[appEventScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appEventScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "assetToken", + "uploadOperations", + "assetDeliveryState", + "appEventAssetType", + "appEventLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "appEventLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEventScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventScreenshotResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppEventScreenshots" + ], + "operationId": "appEventScreenshots_updateInstance", + "requestBody": { + "description": "AppEventScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventScreenshotUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppEventScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventScreenshotResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppEventScreenshots" + ], + "operationId": "appEventScreenshots_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventVideoClips": { + "post": { + "tags": [ + "AppEventVideoClips" + ], + "operationId": "appEventVideoClips_createInstance", + "requestBody": { + "description": "AppEventVideoClip representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventVideoClipCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppEventVideoClip", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventVideoClipResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appEventVideoClips/{id}": { + "get": { + "tags": [ + "AppEventVideoClips" + ], + "operationId": "appEventVideoClips_getInstance", + "parameters": [ + { + "name": "fields[appEventVideoClips]", + "in": "query", + "description": "the fields to include for returned resources of type appEventVideoClips", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "previewFrameTimeCode", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appEventAssetType", + "appEventLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "appEventLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEventVideoClip", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventVideoClipResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppEventVideoClips" + ], + "operationId": "appEventVideoClips_updateInstance", + "requestBody": { + "description": "AppEventVideoClip representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventVideoClipUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppEventVideoClip", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventVideoClipResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppEventVideoClips" + ], + "operationId": "appEventVideoClips_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEvents": { + "post": { + "tags": [ + "AppEvents" + ], + "operationId": "appEvents_createInstance", + "requestBody": { + "description": "AppEvent representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppEvent", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appEvents/{id}": { + "get": { + "tags": [ + "AppEvents" + ], + "operationId": "appEvents_getInstance", + "parameters": [ + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEvent", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppEvents" + ], + "operationId": "appEvents_updateInstance", + "requestBody": { + "description": "AppEvent representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppEvent", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppEvents" + ], + "operationId": "appEvents_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfoLocalizations": { + "post": { + "tags": [ + "AppInfoLocalizations" + ], + "operationId": "appInfoLocalizations_createInstance", + "requestBody": { + "description": "AppInfoLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppInfoLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appInfoLocalizations/{id}": { + "get": { + "tags": [ + "AppInfoLocalizations" + ], + "operationId": "appInfoLocalizations_getInstance", + "parameters": [ + { + "name": "fields[appInfoLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appInfoLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "subtitle", + "privacyPolicyUrl", + "privacyChoicesUrl", + "privacyPolicyText", + "appInfo" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appInfos]", + "in": "query", + "description": "the fields to include for returned resources of type appInfos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreState", + "state", + "appStoreAgeRating", + "australiaAgeRating", + "brazilAgeRating", + "brazilAgeRatingV2", + "franceAgeRating", + "koreaAgeRating", + "app", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo", + "territoryAgeRatings" + ] + } + }, + "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": [ + "appInfo" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppInfoLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppInfoLocalizations" + ], + "operationId": "appInfoLocalizations_updateInstance", + "requestBody": { + "description": "AppInfoLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppInfoLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppInfoLocalizations" + ], + "operationId": "appInfoLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_getInstance", + "parameters": [ + { + "name": "fields[appInfos]", + "in": "query", + "description": "the fields to include for returned resources of type appInfos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreState", + "state", + "appStoreAgeRating", + "australiaAgeRating", + "brazilAgeRating", + "brazilAgeRatingV2", + "franceAgeRating", + "koreaAgeRating", + "app", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo", + "territoryAgeRatings" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ageRatingDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type ageRatingDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "advertising", + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingSimulated", + "gunsOrOtherWeapons", + "healthOrWellnessTopics", + "kidsAgeBand", + "lootBox", + "medicalOrTreatmentInformation", + "messagingAndChat", + "parentalControls", + "profanityOrCrudeHumor", + "ageAssurance", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "socialMedia", + "socialMediaAgeRestricted", + "horrorOrFearThemes", + "matureOrSuggestiveThemes", + "unrestrictedWebAccess", + "userGeneratedContent", + "violenceCartoonOrFantasy", + "violenceRealisticProlongedGraphicOrSadistic", + "violenceRealistic", + "ageRatingOverride", + "ageRatingOverrideV2", + "koreaAgeRatingOverride", + "gracRatingClassificationNumber", + "developerAgeRatingInfoUrl" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appInfoLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appInfoLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "subtitle", + "privacyPolicyUrl", + "privacyChoicesUrl", + "privacyPolicyText", + "appInfo" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "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": [ + "app", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appInfoLocalizations]", + "in": "query", + "description": "maximum number of related appInfoLocalizations 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppInfo", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_updateInstance", + "requestBody": { + "description": "AppInfo representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppInfo", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPreviewSets": { + "post": { + "tags": [ + "AppPreviewSets" + ], + "operationId": "appPreviewSets_createInstance", + "requestBody": { + "description": "AppPreviewSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppPreviewSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appPreviewSets/{id}": { + "get": { + "tags": [ + "AppPreviewSets" + ], + "operationId": "appPreviewSets_getInstance", + "parameters": [ + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appPreviews]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviews", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "previewFrameTimeCode", + "mimeType", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appPreviewSet" + ] + } + }, + "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": [ + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appPreviews]", + "in": "query", + "description": "maximum number of related appPreviews 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPreviewSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppPreviewSets" + ], + "operationId": "appPreviewSets_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPreviews": { + "post": { + "tags": [ + "AppPreviews" + ], + "operationId": "appPreviews_createInstance", + "requestBody": { + "description": "AppPreview representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppPreview", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appPreviews/{id}": { + "get": { + "tags": [ + "AppPreviews" + ], + "operationId": "appPreviews_getInstance", + "parameters": [ + { + "name": "fields[appPreviews]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviews", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "previewFrameTimeCode", + "mimeType", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appPreviewSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "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": [ + "appPreviewSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPreview", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppPreviews" + ], + "operationId": "appPreviews_updateInstance", + "requestBody": { + "description": "AppPreview representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppPreview", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppPreviews" + ], + "operationId": "appPreviews_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v3/appPricePoints/{id}": { + "get": { + "tags": [ + "AppPricePoints" + ], + "operationId": "appPricePointsV3_getInstance", + "parameters": [ + { + "name": "fields[appPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type appPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "app", + "equalizations", + "territory" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPricePoint", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPricePointV3Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPriceSchedules": { + "post": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules_createInstance", + "requestBody": { + "description": "AppPriceSchedule representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPriceScheduleCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppPriceSchedule", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPriceScheduleResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appPriceSchedules/{id}": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules_getInstance", + "parameters": [ + { + "name": "fields[appPriceSchedules]", + "in": "query", + "description": "the fields to include for returned resources of type appPriceSchedules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": "fields[appPrices]", + "in": "query", + "description": "the fields to include for returned resources of type appPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "manual", + "startDate", + "endDate", + "appPricePoint", + "territory" + ] + } + }, + "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": [ + "app", + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPriceSchedule", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPriceScheduleResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appScreenshotSets": { + "post": { + "tags": [ + "AppScreenshotSets" + ], + "operationId": "appScreenshotSets_createInstance", + "requestBody": { + "description": "AppScreenshotSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotSetCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppScreenshotSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotSetResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appScreenshotSets/{id}": { + "get": { + "tags": [ + "AppScreenshotSets" + ], + "operationId": "appScreenshotSets_getInstance", + "parameters": [ + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "appScreenshotSet" + ] + } + }, + "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": [ + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appScreenshots]", + "in": "query", + "description": "maximum number of related appScreenshots 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppScreenshotSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotSetResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppScreenshotSets" + ], + "operationId": "appScreenshotSets_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appScreenshots": { + "post": { + "tags": [ + "AppScreenshots" + ], + "operationId": "appScreenshots_createInstance", + "requestBody": { + "description": "AppScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appScreenshots/{id}": { + "get": { + "tags": [ + "AppScreenshots" + ], + "operationId": "appScreenshots_getInstance", + "parameters": [ + { + "name": "fields[appScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "appScreenshotSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "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": [ + "appScreenshotSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppScreenshots" + ], + "operationId": "appScreenshots_updateInstance", + "requestBody": { + "description": "AppScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppScreenshots" + ], + "operationId": "appScreenshots_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreReviewAttachments": { + "post": { + "tags": [ + "AppStoreReviewAttachments" + ], + "operationId": "appStoreReviewAttachments_createInstance", + "requestBody": { + "description": "AppStoreReviewAttachment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewAttachmentCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreReviewAttachment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewAttachmentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreReviewAttachments/{id}": { + "get": { + "tags": [ + "AppStoreReviewAttachments" + ], + "operationId": "appStoreReviewAttachments_getInstance", + "parameters": [ + { + "name": "fields[appStoreReviewAttachments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewAttachments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "appStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "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": [ + "appStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreReviewAttachment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewAttachmentResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreReviewAttachments" + ], + "operationId": "appStoreReviewAttachments_updateInstance", + "requestBody": { + "description": "AppStoreReviewAttachment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewAttachmentUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreReviewAttachment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewAttachmentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreReviewAttachments" + ], + "operationId": "appStoreReviewAttachments_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreReviewDetails": { + "post": { + "tags": [ + "AppStoreReviewDetails" + ], + "operationId": "appStoreReviewDetails_createInstance", + "requestBody": { + "description": "AppStoreReviewDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewDetailCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreReviewDetails/{id}": { + "get": { + "tags": [ + "AppStoreReviewDetails" + ], + "operationId": "appStoreReviewDetails_getInstance", + "parameters": [ + { + "name": "fields[appStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreReviewAttachments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewAttachments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "appStoreReviewDetail" + ] + } + }, + "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": [ + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appStoreReviewAttachments]", + "in": "query", + "description": "maximum number of related appStoreReviewAttachments 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewDetailResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreReviewDetails" + ], + "operationId": "appStoreReviewDetails_updateInstance", + "requestBody": { + "description": "AppStoreReviewDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewDetailUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatmentLocalizations": { + "post": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_createInstance", + "requestBody": { + "description": "AppStoreVersionExperimentTreatmentLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionExperimentTreatmentLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_getInstance", + "parameters": [ + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appPreviewSets]", + "in": "query", + "description": "maximum number of related appPreviewSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appScreenshotSets]", + "in": "query", + "description": "maximum number of related appScreenshotSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionExperimentTreatmentLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatments": { + "post": { + "tags": [ + "AppStoreVersionExperimentTreatments" + ], + "operationId": "appStoreVersionExperimentTreatments_createInstance", + "requestBody": { + "description": "AppStoreVersionExperimentTreatment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionExperimentTreatment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersionExperimentTreatments/{id}": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatments" + ], + "operationId": "appStoreVersionExperimentTreatments_getInstance", + "parameters": [ + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "style": "form", + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatmentLocalizations 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionExperimentTreatment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersionExperimentTreatments" + ], + "operationId": "appStoreVersionExperimentTreatments_updateInstance", + "requestBody": { + "description": "AppStoreVersionExperimentTreatment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersionExperimentTreatment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersionExperimentTreatments" + ], + "operationId": "appStoreVersionExperimentTreatments_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/appStoreVersionExperiments": { + "post": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperimentsV2_createInstance", + "requestBody": { + "description": "AppStoreVersionExperiment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionExperiment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/appStoreVersionExperiments/{id}": { + "get": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperimentsV2_getInstance", + "parameters": [ + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "platform", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "app", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "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": [ + "app", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[controlVersions]", + "in": "query", + "description": "maximum number of related controlVersions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionExperiment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperimentsV2_updateInstance", + "requestBody": { + "description": "AppStoreVersionExperiment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersionExperiment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperimentsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperiments": { + "post": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments_createInstance", + "deprecated": true, + "requestBody": { + "description": "AppStoreVersionExperiment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionExperiment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersionExperiments/{id}": { + "get": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments_getInstance", + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "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": [ + "appStoreVersion", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatments 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionExperiment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments_updateInstance", + "deprecated": true, + "requestBody": { + "description": "AppStoreVersionExperiment representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersionExperiment", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations": { + "post": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_createInstance", + "requestBody": { + "description": "AppStoreVersionLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersionLocalizations/{id}": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_getInstance", + "parameters": [ + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appPreviewSets]", + "in": "query", + "description": "maximum number of related appPreviewSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appScreenshotSets]", + "in": "query", + "description": "maximum number of related appScreenshotSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[searchKeywords]", + "in": "query", + "description": "maximum number of related searchKeywords 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_updateInstance", + "requestBody": { + "description": "AppStoreVersionLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionPhasedReleases": { + "post": { + "tags": [ + "AppStoreVersionPhasedReleases" + ], + "operationId": "appStoreVersionPhasedReleases_createInstance", + "requestBody": { + "description": "AppStoreVersionPhasedRelease representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionPhasedReleaseCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionPhasedRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionPhasedReleaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersionPhasedReleases/{id}": { + "patch": { + "tags": [ + "AppStoreVersionPhasedReleases" + ], + "operationId": "appStoreVersionPhasedReleases_updateInstance", + "requestBody": { + "description": "AppStoreVersionPhasedRelease representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionPhasedReleaseUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersionPhasedRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionPhasedReleaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersionPhasedReleases" + ], + "operationId": "appStoreVersionPhasedReleases_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionPromotions": { + "post": { + "tags": [ + "AppStoreVersionPromotions" + ], + "operationId": "appStoreVersionPromotions_createInstance", + "requestBody": { + "description": "AppStoreVersionPromotion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionPromotionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionPromotion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionPromotionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersionReleaseRequests": { + "post": { + "tags": [ + "AppStoreVersionReleaseRequests" + ], + "operationId": "appStoreVersionReleaseRequests_createInstance", + "requestBody": { + "description": "AppStoreVersionReleaseRequest representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionReleaseRequestCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersionReleaseRequest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionReleaseRequestResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersionSubmissions/{id}": { + "delete": { + "tags": [ + "AppStoreVersionSubmissions" + ], + "operationId": "appStoreVersionSubmissions_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions": { + "post": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_createInstance", + "requestBody": { + "description": "AppStoreVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppStoreVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/appStoreVersions/{id}": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_getInstance", + "parameters": [ + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersionPhasedReleases]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "phasedReleaseState", + "startDate", + "totalPauseDuration", + "currentDayNumber" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAppVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAppVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[routingAppCoverages]", + "in": "query", + "description": "the fields to include for returned resources of type routingAppCoverages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "style": "form", + "explode": false, + "required": 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, + "required": false, + "deprecated": true + }, + { + "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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "style": "form", + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "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": [ + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[appStoreVersionExperiments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperiments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "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", + "required": false + }, + { + "name": "limit[appStoreVersionLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionLocalizations 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_updateInstance", + "requestBody": { + "description": "AppStoreVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appTags/{id}": { + "patch": { + "tags": [ + "AppTags" + ], + "operationId": "appTags_updateInstance", + "requestBody": { + "description": "AppTag representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppTagUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppTag", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppTagResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_getCollection", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[bundleId]", + "in": "query", + "description": "filter by attribute 'bundleId'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[sku]", + "in": "query", + "description": "filter by attribute 'sku'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[appStoreVersions.appStoreState]", + "in": "query", + "description": "filter by attribute 'appStoreVersions.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", + "NOT_APPLICABLE" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "filter[appStoreVersions.platform]", + "in": "query", + "description": "filter by attribute 'appStoreVersions.platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[appStoreVersions.appVersionState]", + "in": "query", + "description": "filter by attribute 'appStoreVersions.appVersionState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ACCEPTED", + "DEVELOPER_REJECTED", + "IN_REVIEW", + "INVALID_BINARY", + "METADATA_REJECTED", + "PENDING_APPLE_RELEASE", + "PENDING_DEVELOPER_RELEASE", + "PREPARE_FOR_SUBMISSION", + "PROCESSING_FOR_DISTRIBUTION", + "READY_FOR_DISTRIBUTION", + "READY_FOR_REVIEW", + "REJECTED", + "REPLACED_WITH_NEW_VERSION", + "WAITING_FOR_EXPORT_COMPLIANCE", + "WAITING_FOR_REVIEW" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[reviewSubmissions.state]", + "in": "query", + "description": "filter by attribute 'reviewSubmissions.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[reviewSubmissions.platform]", + "in": "query", + "description": "filter by attribute 'reviewSubmissions.platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[appStoreVersions]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersions'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "exists[gameCenterEnabledVersions]", + "in": "query", + "description": "filter by existence or non-existence of related 'gameCenterEnabledVersions'", + "schema": { + "type": "boolean" + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "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", + "bundleId", + "-bundleId", + "sku", + "-sku" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "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": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildIcons]", + "in": "query", + "description": "the fields to include for returned resources of type buildIcons", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "iconAsset", + "iconType", + "masked", + "name" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[preReleaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type preReleaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaAppLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feedbackEmail", + "marketingUrl", + "privacyPolicyUrl", + "tvOsPrivacyPolicy", + "description", + "locale", + "app" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaLicenseAgreements]", + "in": "query", + "description": "the fields to include for returned resources of type betaLicenseAgreements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaAppReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appInfos]", + "in": "query", + "description": "the fields to include for returned resources of type appInfos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreState", + "state", + "appStoreAgeRating", + "australiaAgeRating", + "brazilAgeRating", + "brazilAgeRatingV2", + "franceAgeRating", + "koreaAgeRating", + "app", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo", + "territoryAgeRatings" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClips]", + "in": "query", + "description": "the fields to include for returned resources of type appClips", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "style": "form", + "explode": false, + "required": 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, + "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": [ + "referenceName", + "productId", + "inAppPurchaseType", + "state", + "apps", + "name", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroups]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterEnabledVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterEnabledVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "iconAsset", + "compatibleVersions", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[appCustomProductPages]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "url", + "visible", + "app", + "appCustomProductPageVersions" + ] + } + }, + "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": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[reviewSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type reviewSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "submittedDate", + "state", + "app", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGracePeriods]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGracePeriods", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "optIn", + "sandboxOptIn", + "duration", + "renewalType" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "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": [ + "name", + "platform", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "app", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[androidToIosAppMappingDetails]", + "in": "query", + "description": "the fields to include for returned resources of type androidToIosAppMappingDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "packageName", + "appSigningKeyPublicCertificateSha256Fingerprints" + ] + } + }, + "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": [ + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaGroups", + "appStoreVersions", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "endUserLicenseAgreement", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[androidToIosAppMappingDetails]", + "in": "query", + "description": "maximum number of related androidToIosAppMappingDetails returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appClips]", + "in": "query", + "description": "maximum number of related appClips returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appCustomProductPages]", + "in": "query", + "description": "maximum number of related appCustomProductPages returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "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", + "description": "maximum number of related appEvents returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appInfos]", + "in": "query", + "description": "maximum number of related appInfos returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appStoreVersions]", + "in": "query", + "description": "maximum number of related appStoreVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[betaAppLocalizations]", + "in": "query", + "description": "maximum number of related betaAppLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[betaGroups]", + "in": "query", + "description": "maximum number of related betaGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "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 + }, + { + "name": "limit[gameCenterEnabledVersions]", + "in": "query", + "description": "maximum number of related gameCenterEnabledVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[inAppPurchases]", + "in": "query", + "description": "maximum number of related inAppPurchases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[inAppPurchasesV2]", + "in": "query", + "description": "maximum number of related inAppPurchasesV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[preReleaseVersions]", + "in": "query", + "description": "maximum number of related preReleaseVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[promotedPurchases]", + "in": "query", + "description": "maximum number of related promotedPurchases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[reviewSubmissions]", + "in": "query", + "description": "maximum number of related reviewSubmissions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[subscriptionGroups]", + "in": "query", + "description": "maximum number of related subscriptionGroups 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 Apps", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/apps/{id}": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_getInstance", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "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": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildIcons]", + "in": "query", + "description": "the fields to include for returned resources of type buildIcons", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "iconAsset", + "iconType", + "masked", + "name" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[preReleaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type preReleaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaAppLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feedbackEmail", + "marketingUrl", + "privacyPolicyUrl", + "tvOsPrivacyPolicy", + "description", + "locale", + "app" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaLicenseAgreements]", + "in": "query", + "description": "the fields to include for returned resources of type betaLicenseAgreements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaAppReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appInfos]", + "in": "query", + "description": "the fields to include for returned resources of type appInfos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreState", + "state", + "appStoreAgeRating", + "australiaAgeRating", + "brazilAgeRating", + "brazilAgeRatingV2", + "franceAgeRating", + "koreaAgeRating", + "app", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo", + "territoryAgeRatings" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appClips]", + "in": "query", + "description": "the fields to include for returned resources of type appClips", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "style": "form", + "explode": false, + "required": 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, + "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": [ + "referenceName", + "productId", + "inAppPurchaseType", + "state", + "apps", + "name", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroups]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterEnabledVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterEnabledVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "iconAsset", + "compatibleVersions", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[appCustomProductPages]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "url", + "visible", + "app", + "appCustomProductPageVersions" + ] + } + }, + "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": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[reviewSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type reviewSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "submittedDate", + "state", + "app", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGracePeriods]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGracePeriods", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "optIn", + "sandboxOptIn", + "duration", + "renewalType" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "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": [ + "name", + "platform", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "app", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[androidToIosAppMappingDetails]", + "in": "query", + "description": "the fields to include for returned resources of type androidToIosAppMappingDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "packageName", + "appSigningKeyPublicCertificateSha256Fingerprints" + ] + } + }, + "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": [ + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaGroups", + "appStoreVersions", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "endUserLicenseAgreement", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[androidToIosAppMappingDetails]", + "in": "query", + "description": "maximum number of related androidToIosAppMappingDetails returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appClips]", + "in": "query", + "description": "maximum number of related appClips returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appCustomProductPages]", + "in": "query", + "description": "maximum number of related appCustomProductPages returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "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", + "description": "maximum number of related appEvents returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appInfos]", + "in": "query", + "description": "maximum number of related appInfos returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[appStoreVersions]", + "in": "query", + "description": "maximum number of related appStoreVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[betaAppLocalizations]", + "in": "query", + "description": "maximum number of related betaAppLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[betaGroups]", + "in": "query", + "description": "maximum number of related betaGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "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 + }, + { + "name": "limit[gameCenterEnabledVersions]", + "in": "query", + "description": "maximum number of related gameCenterEnabledVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[inAppPurchases]", + "in": "query", + "description": "maximum number of related inAppPurchases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[inAppPurchasesV2]", + "in": "query", + "description": "maximum number of related inAppPurchasesV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[preReleaseVersions]", + "in": "query", + "description": "maximum number of related preReleaseVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[promotedPurchases]", + "in": "query", + "description": "maximum number of related promotedPurchases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[reviewSubmissions]", + "in": "query", + "description": "maximum number of related reviewSubmissions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[subscriptionGroups]", + "in": "query", + "description": "maximum number of related subscriptionGroups 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Apps" + ], + "operationId": "apps_updateInstance", + "requestBody": { + "description": "App representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single App", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssetUploadFiles": { + "post": { + "tags": [ + "BackgroundAssetUploadFiles" + ], + "operationId": "backgroundAssetUploadFiles_createInstance", + "requestBody": { + "description": "BackgroundAssetUploadFile representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetUploadFileCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BackgroundAssetUploadFile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetUploadFileResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/backgroundAssetUploadFiles/{id}": { + "get": { + "tags": [ + "BackgroundAssetUploadFiles" + ], + "operationId": "backgroundAssetUploadFiles_getInstance", + "parameters": [ + { + "name": "fields[backgroundAssetUploadFiles]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetUploadFiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "sourceFileChecksum", + "sourceFileChecksums", + "uploadOperations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAssetUploadFile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetUploadFileResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BackgroundAssetUploadFiles" + ], + "operationId": "backgroundAssetUploadFiles_updateInstance", + "requestBody": { + "description": "BackgroundAssetUploadFile representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetUploadFileUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BackgroundAssetUploadFile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetUploadFileResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssetVersionAppStoreReleases/{id}": { + "get": { + "tags": [ + "BackgroundAssetVersionAppStoreReleases" + ], + "operationId": "backgroundAssetVersionAppStoreReleases_getInstance", + "parameters": [ + { + "name": "fields[backgroundAssetVersionAppStoreReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionAppStoreReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "platforms", + "state", + "stateDetails", + "version", + "locale", + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile", + "backgroundAssetUploadFiles" + ] + } + }, + "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": [ + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAssetVersionAppStoreRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetVersionAppStoreReleaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssetVersionExternalBetaReleases/{id}": { + "get": { + "tags": [ + "BackgroundAssetVersionExternalBetaReleases" + ], + "operationId": "backgroundAssetVersionExternalBetaReleases_getInstance", + "parameters": [ + { + "name": "fields[backgroundAssetVersionExternalBetaReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionExternalBetaReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "platforms", + "state", + "stateDetails", + "version", + "locale", + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile", + "backgroundAssetUploadFiles" + ] + } + }, + "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": [ + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAssetVersionExternalBetaRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetVersionExternalBetaReleaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssetVersionInternalBetaReleases/{id}": { + "get": { + "tags": [ + "BackgroundAssetVersionInternalBetaReleases" + ], + "operationId": "backgroundAssetVersionInternalBetaReleases_getInstance", + "parameters": [ + { + "name": "fields[backgroundAssetVersionInternalBetaReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionInternalBetaReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "platforms", + "state", + "stateDetails", + "version", + "locale", + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile", + "backgroundAssetUploadFiles" + ] + } + }, + "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": [ + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAssetVersionInternalBetaRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetVersionInternalBetaReleaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssetVersions": { + "post": { + "tags": [ + "BackgroundAssetVersions" + ], + "operationId": "backgroundAssetVersions_createInstance", + "requestBody": { + "description": "BackgroundAssetVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BackgroundAssetVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/backgroundAssetVersions/{id}": { + "get": { + "tags": [ + "BackgroundAssetVersions" + ], + "operationId": "backgroundAssetVersions_getInstance", + "parameters": [ + { + "name": "fields[backgroundAssetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "platforms", + "state", + "stateDetails", + "version", + "locale", + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile", + "backgroundAssetUploadFiles" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssets]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "assetPackIdentifier", + "createdDate", + "usedBytes", + "app", + "versions", + "appStoreVersion", + "internalBetaVersion", + "externalBetaVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssetVersionInternalBetaReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionInternalBetaReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssetVersionExternalBetaReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionExternalBetaReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssetVersionAppStoreReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionAppStoreReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssetUploadFiles]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetUploadFiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "sourceFileChecksum", + "sourceFileChecksums", + "uploadOperations" + ] + } + }, + "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": [ + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAssetVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssets": { + "post": { + "tags": [ + "BackgroundAssets" + ], + "operationId": "backgroundAssets_createInstance", + "requestBody": { + "description": "BackgroundAsset representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BackgroundAsset", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/backgroundAssets/{id}": { + "get": { + "tags": [ + "BackgroundAssets" + ], + "operationId": "backgroundAssets_getInstance", + "parameters": [ + { + "name": "fields[backgroundAssets]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "assetPackIdentifier", + "createdDate", + "usedBytes", + "app", + "versions", + "appStoreVersion", + "internalBetaVersion", + "externalBetaVersion" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[backgroundAssetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "platforms", + "state", + "stateDetails", + "version", + "locale", + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile", + "backgroundAssetUploadFiles" + ] + } + }, + "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": [ + "app", + "appStoreVersion", + "internalBetaVersion", + "externalBetaVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAsset", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BackgroundAssets" + ], + "operationId": "backgroundAssets_updateInstance", + "requestBody": { + "description": "BackgroundAsset representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BackgroundAsset", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppClipInvocationLocalizations": { + "post": { + "tags": [ + "BetaAppClipInvocationLocalizations" + ], + "operationId": "betaAppClipInvocationLocalizations_createInstance", + "requestBody": { + "description": "BetaAppClipInvocationLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaAppClipInvocationLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaAppClipInvocationLocalizations/{id}": { + "patch": { + "tags": [ + "BetaAppClipInvocationLocalizations" + ], + "operationId": "betaAppClipInvocationLocalizations_updateInstance", + "requestBody": { + "description": "BetaAppClipInvocationLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BetaAppClipInvocationLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaAppClipInvocationLocalizations" + ], + "operationId": "betaAppClipInvocationLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppClipInvocations": { + "post": { + "tags": [ + "BetaAppClipInvocations" + ], + "operationId": "betaAppClipInvocations_createInstance", + "requestBody": { + "description": "BetaAppClipInvocation representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaAppClipInvocation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaAppClipInvocations/{id}": { + "get": { + "tags": [ + "BetaAppClipInvocations" + ], + "operationId": "betaAppClipInvocations_getInstance", + "parameters": [ + { + "name": "fields[betaAppClipInvocations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppClipInvocations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "betaAppClipInvocationLocalizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaAppClipInvocationLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppClipInvocationLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "title", + "locale" + ] + } + }, + "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": [ + "betaAppClipInvocationLocalizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[betaAppClipInvocationLocalizations]", + "in": "query", + "description": "maximum number of related betaAppClipInvocationLocalizations 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaAppClipInvocation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BetaAppClipInvocations" + ], + "operationId": "betaAppClipInvocations_updateInstance", + "requestBody": { + "description": "BetaAppClipInvocation representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BetaAppClipInvocation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaAppClipInvocations" + ], + "operationId": "betaAppClipInvocations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppLocalizations": { + "get": { + "tags": [ + "BetaAppLocalizations" + ], + "operationId": "betaAppLocalizations_getCollection", + "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "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": "fields[betaAppLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feedbackEmail", + "marketingUrl", + "privacyPolicyUrl", + "tvOsPrivacyPolicy", + "description", + "locale", + "app" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BetaAppLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaAppLocalizations" + ], + "operationId": "betaAppLocalizations_createInstance", + "requestBody": { + "description": "BetaAppLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaAppLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaAppLocalizations/{id}": { + "get": { + "tags": [ + "BetaAppLocalizations" + ], + "operationId": "betaAppLocalizations_getInstance", + "parameters": [ + { + "name": "fields[betaAppLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feedbackEmail", + "marketingUrl", + "privacyPolicyUrl", + "tvOsPrivacyPolicy", + "description", + "locale", + "app" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaAppLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BetaAppLocalizations" + ], + "operationId": "betaAppLocalizations_updateInstance", + "requestBody": { + "description": "BetaAppLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BetaAppLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaAppLocalizations" + ], + "operationId": "betaAppLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppReviewDetails": { + "get": { + "tags": [ + "BetaAppReviewDetails" + ], + "operationId": "betaAppReviewDetails_getCollection", + "parameters": [ + { + "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[betaAppReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "app" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BetaAppReviewDetails", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewDetailsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaAppReviewDetails/{id}": { + "get": { + "tags": [ + "BetaAppReviewDetails" + ], + "operationId": "betaAppReviewDetails_getInstance", + "parameters": [ + { + "name": "fields[betaAppReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "app" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaAppReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewDetailResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BetaAppReviewDetails" + ], + "operationId": "betaAppReviewDetails_updateInstance", + "requestBody": { + "description": "BetaAppReviewDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewDetailUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BetaAppReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppReviewSubmissions": { + "get": { + "tags": [ + "BetaAppReviewSubmissions" + ], + "operationId": "betaAppReviewSubmissions_getCollection", + "parameters": [ + { + "name": "filter[betaReviewState]", + "in": "query", + "description": "filter by attribute 'betaReviewState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "APPROVED" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[build]", + "in": "query", + "description": "filter by id(s) of related 'build'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "fields[betaAppReviewSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaReviewState", + "submittedDate", + "build" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "build" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BetaAppReviewSubmissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewSubmissionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaAppReviewSubmissions" + ], + "operationId": "betaAppReviewSubmissions_createInstance", + "requestBody": { + "description": "BetaAppReviewSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewSubmissionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaAppReviewSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewSubmissionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaAppReviewSubmissions/{id}": { + "get": { + "tags": [ + "BetaAppReviewSubmissions" + ], + "operationId": "betaAppReviewSubmissions_getInstance", + "parameters": [ + { + "name": "fields[betaAppReviewSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaReviewState", + "submittedDate", + "build" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "build" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaAppReviewSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewSubmissionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaBuildLocalizations": { + "get": { + "tags": [ + "BetaBuildLocalizations" + ], + "operationId": "betaBuildLocalizations_getCollection", + "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[build]", + "in": "query", + "description": "filter by id(s) of related 'build'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaBuildLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaBuildLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "whatsNew", + "locale", + "build" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "build" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BetaBuildLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaBuildLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaBuildLocalizations" + ], + "operationId": "betaBuildLocalizations_createInstance", + "requestBody": { + "description": "BetaBuildLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaBuildLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaBuildLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaBuildLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaBuildLocalizations/{id}": { + "get": { + "tags": [ + "BetaBuildLocalizations" + ], + "operationId": "betaBuildLocalizations_getInstance", + "parameters": [ + { + "name": "fields[betaBuildLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaBuildLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "whatsNew", + "locale", + "build" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "build" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaBuildLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaBuildLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BetaBuildLocalizations" + ], + "operationId": "betaBuildLocalizations_updateInstance", + "requestBody": { + "description": "BetaBuildLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaBuildLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BetaBuildLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaBuildLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaBuildLocalizations" + ], + "operationId": "betaBuildLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaCrashLogs/{id}": { + "get": { + "tags": [ + "BetaCrashLogs" + ], + "operationId": "betaCrashLogs_getInstance", + "parameters": [ + { + "name": "fields[betaCrashLogs]", + "in": "query", + "description": "the fields to include for returned resources of type betaCrashLogs", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "logText" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaCrashLog", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaCrashLogResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaFeedbackCrashSubmissions/{id}": { + "get": { + "tags": [ + "BetaFeedbackCrashSubmissions" + ], + "operationId": "betaFeedbackCrashSubmissions_getInstance", + "parameters": [ + { + "name": "fields[betaFeedbackCrashSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type betaFeedbackCrashSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "comment", + "email", + "deviceModel", + "osVersion", + "locale", + "timeZone", + "architecture", + "connectionType", + "pairedAppleWatch", + "appUptimeInMilliseconds", + "diskBytesAvailable", + "diskBytesTotal", + "batteryPercentage", + "screenWidthInPoints", + "screenHeightInPoints", + "appPlatform", + "devicePlatform", + "deviceFamily", + "buildBundleId", + "crashLog", + "build", + "tester" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "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": [ + "build", + "tester" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaFeedbackCrashSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaFeedbackCrashSubmissionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaFeedbackCrashSubmissions" + ], + "operationId": "betaFeedbackCrashSubmissions_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaFeedbackScreenshotSubmissions/{id}": { + "get": { + "tags": [ + "BetaFeedbackScreenshotSubmissions" + ], + "operationId": "betaFeedbackScreenshotSubmissions_getInstance", + "parameters": [ + { + "name": "fields[betaFeedbackScreenshotSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type betaFeedbackScreenshotSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "comment", + "email", + "deviceModel", + "osVersion", + "locale", + "timeZone", + "architecture", + "connectionType", + "pairedAppleWatch", + "appUptimeInMilliseconds", + "diskBytesAvailable", + "diskBytesTotal", + "batteryPercentage", + "screenWidthInPoints", + "screenHeightInPoints", + "appPlatform", + "devicePlatform", + "deviceFamily", + "buildBundleId", + "screenshots", + "build", + "tester" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "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": [ + "build", + "tester" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaFeedbackScreenshotSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaFeedbackScreenshotSubmissionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaFeedbackScreenshotSubmissions" + ], + "operationId": "betaFeedbackScreenshotSubmissions_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_getCollection", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[isInternalGroup]", + "in": "query", + "description": "filter by attribute 'isInternalGroup'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[publicLinkEnabled]", + "in": "query", + "description": "filter by attribute 'publicLinkEnabled'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[publicLinkLimitEnabled]", + "in": "query", + "description": "filter by attribute 'publicLinkLimitEnabled'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[publicLink]", + "in": "query", + "description": "filter by attribute 'publicLink'", + "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": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "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": [ + "name", + "-name", + "createdDate", + "-createdDate", + "publicLinkEnabled", + "-publicLinkEnabled", + "publicLinkLimit", + "-publicLinkLimit" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaRecruitmentCriteria]", + "in": "query", + "description": "the fields to include for returned resources of type betaRecruitmentCriteria", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lastModifiedDate", + "deviceFamilyOsVersionFilters" + ] + } + }, + "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", + "builds", + "betaTesters", + "betaRecruitmentCriteria" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[betaTesters]", + "in": "query", + "description": "maximum number of related betaTesters returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 1000 + }, + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BetaGroups", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_createInstance", + "requestBody": { + "description": "BetaGroup representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaGroup", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaGroups/{id}": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_getInstance", + "parameters": [ + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaRecruitmentCriteria]", + "in": "query", + "description": "the fields to include for returned resources of type betaRecruitmentCriteria", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lastModifiedDate", + "deviceFamilyOsVersionFilters" + ] + } + }, + "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": [ + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[betaTesters]", + "in": "query", + "description": "maximum number of related betaTesters returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 1000 + }, + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaGroup", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_updateInstance", + "requestBody": { + "description": "BetaGroup representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BetaGroup", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaLicenseAgreements": { + "get": { + "tags": [ + "BetaLicenseAgreements" + ], + "operationId": "betaLicenseAgreements_getCollection", + "parameters": [ + { + "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": "fields[betaLicenseAgreements]", + "in": "query", + "description": "the fields to include for returned resources of type betaLicenseAgreements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BetaLicenseAgreements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaLicenseAgreementsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaLicenseAgreements/{id}": { + "get": { + "tags": [ + "BetaLicenseAgreements" + ], + "operationId": "betaLicenseAgreements_getInstance", + "parameters": [ + { + "name": "fields[betaLicenseAgreements]", + "in": "query", + "description": "the fields to include for returned resources of type betaLicenseAgreements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaLicenseAgreement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaLicenseAgreementResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BetaLicenseAgreements" + ], + "operationId": "betaLicenseAgreements_updateInstance", + "requestBody": { + "description": "BetaLicenseAgreement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaLicenseAgreementUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BetaLicenseAgreement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaLicenseAgreementResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaRecruitmentCriteria": { + "post": { + "tags": [ + "BetaRecruitmentCriteria" + ], + "operationId": "betaRecruitmentCriteria_createInstance", + "requestBody": { + "description": "BetaRecruitmentCriterion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaRecruitmentCriterion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaRecruitmentCriteria/{id}": { + "patch": { + "tags": [ + "BetaRecruitmentCriteria" + ], + "operationId": "betaRecruitmentCriteria_updateInstance", + "requestBody": { + "description": "BetaRecruitmentCriterion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BetaRecruitmentCriterion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaRecruitmentCriteria" + ], + "operationId": "betaRecruitmentCriteria_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaRecruitmentCriterionOptions": { + "get": { + "tags": [ + "BetaRecruitmentCriterionOptions" + ], + "operationId": "betaRecruitmentCriterionOptions_getCollection", + "parameters": [ + { + "name": "fields[betaRecruitmentCriterionOptions]", + "in": "query", + "description": "the fields to include for returned resources of type betaRecruitmentCriterionOptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "deviceFamilyOsVersions" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BetaRecruitmentCriterionOptions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionOptionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaTesterInvitations": { + "post": { + "tags": [ + "BetaTesterInvitations" + ], + "operationId": "betaTesterInvitations_createInstance", + "requestBody": { + "description": "BetaTesterInvitation representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterInvitationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaTesterInvitation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterInvitationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaTesters": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_getCollection", + "parameters": [ + { + "name": "filter[firstName]", + "in": "query", + "description": "filter by attribute 'firstName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[lastName]", + "in": "query", + "description": "filter by attribute 'lastName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[email]", + "in": "query", + "description": "filter by attribute 'email'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[inviteType]", + "in": "query", + "description": "filter by attribute 'inviteType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "EMAIL", + "PUBLIC_LINK" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[apps]", + "in": "query", + "description": "filter by id(s) of related 'apps'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[betaGroups]", + "in": "query", + "description": "filter by id(s) of related 'betaGroups'", + "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": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "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": [ + "firstName", + "-firstName", + "lastName", + "-lastName", + "email", + "-email", + "inviteType", + "-inviteType", + "state", + "-state" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "apps", + "betaGroups", + "builds" + ] + } + }, + "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 + }, + { + "name": "limit[betaGroups]", + "in": "query", + "description": "maximum number of related betaGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BetaTesters", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTestersResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_createInstance", + "requestBody": { + "description": "BetaTester representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BetaTester", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/betaTesters/{id}": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_getInstance", + "parameters": [ + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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", + "betaGroups", + "builds" + ] + } + }, + "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 + }, + { + "name": "limit[betaGroups]", + "in": "query", + "description": "maximum number of related betaGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaTester", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "202": { + "description": "Accepted for future completion" + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBetaDetails": { + "get": { + "tags": [ + "BuildBetaDetails" + ], + "operationId": "buildBetaDetails_getCollection", + "parameters": [ + { + "name": "filter[build]", + "in": "query", + "description": "filter by id(s) of related 'build'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": 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", + "internalBuildState", + "externalBuildState", + "build" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "build" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BuildBetaDetails", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaDetailsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/buildBetaDetails/{id}": { + "get": { + "tags": [ + "BuildBetaDetails" + ], + "operationId": "buildBetaDetails_getInstance", + "parameters": [ + { + "name": "fields[buildBetaDetails]", + "in": "query", + "description": "the fields to include for returned resources of type buildBetaDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "autoNotifyEnabled", + "internalBuildState", + "externalBuildState", + "build" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "build" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BuildBetaDetails" + ], + "operationId": "buildBetaDetails_updateInstance", + "requestBody": { + "description": "BuildBetaDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaDetailUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BuildBetaDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBetaNotifications": { + "post": { + "tags": [ + "BuildBetaNotifications" + ], + "operationId": "buildBetaNotifications_createInstance", + "requestBody": { + "description": "BuildBetaNotification representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaNotificationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BuildBetaNotification", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaNotificationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/buildUploadFiles": { + "post": { + "tags": [ + "BuildUploadFiles" + ], + "operationId": "buildUploadFiles_createInstance", + "requestBody": { + "description": "BuildUploadFile representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadFileCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BuildUploadFile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadFileResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/buildUploadFiles/{id}": { + "get": { + "tags": [ + "BuildUploadFiles" + ], + "operationId": "buildUploadFiles_getInstance", + "parameters": [ + { + "name": "fields[buildUploadFiles]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploadFiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "sourceFileChecksums", + "uploadOperations", + "uti" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BuildUploadFile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadFileResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BuildUploadFiles" + ], + "operationId": "buildUploadFiles_updateInstance", + "requestBody": { + "description": "BuildUploadFile representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadFileUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BuildUploadFile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadFileResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildUploads": { + "post": { + "tags": [ + "BuildUploads" + ], + "operationId": "buildUploads_createInstance", + "requestBody": { + "description": "BuildUpload representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BuildUpload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/buildUploads/{id}": { + "get": { + "tags": [ + "BuildUploads" + ], + "operationId": "buildUploads_getInstance", + "parameters": [ + { + "name": "fields[buildUploads]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploads", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "cfBundleShortVersionString", + "cfBundleVersion", + "createdDate", + "state", + "platform", + "uploadedDate", + "build", + "assetFile", + "assetDescriptionFile", + "assetSpiFile", + "buildUploadFiles" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildUploadFiles]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploadFiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "sourceFileChecksums", + "uploadOperations", + "uti" + ] + } + }, + "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": [ + "build", + "assetFile", + "assetDescriptionFile", + "assetSpiFile" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BuildUpload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BuildUploads" + ], + "operationId": "buildUploads_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_getCollection", + "parameters": [ + { + "name": "filter[version]", + "in": "query", + "description": "filter by attribute 'version'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[expired]", + "in": "query", + "description": "filter by attribute 'expired'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[processingState]", + "in": "query", + "description": "filter by attribute 'processingState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "PROCESSING", + "FAILED", + "INVALID", + "VALID" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[betaAppReviewSubmission.betaReviewState]", + "in": "query", + "description": "filter by attribute 'betaAppReviewSubmission.betaReviewState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "APPROVED" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[usesNonExemptEncryption]", + "in": "query", + "description": "filter by attribute 'usesNonExemptEncryption'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[preReleaseVersion.version]", + "in": "query", + "description": "filter by attribute 'preReleaseVersion.version'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[preReleaseVersion.platform]", + "in": "query", + "description": "filter by attribute 'preReleaseVersion.platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[buildAudienceType]", + "in": "query", + "description": "filter by attribute 'buildAudienceType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "INTERNAL_ONLY", + "APP_STORE_ELIGIBLE" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[preReleaseVersion]", + "in": "query", + "description": "filter by id(s) of related 'preReleaseVersion'", + "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[betaGroups]", + "in": "query", + "description": "filter by id(s) of related 'betaGroups'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[appStoreVersion]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersion'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "exists[usesNonExemptEncryption]", + "in": "query", + "description": "filter by attribute 'usesNonExemptEncryption'", + "schema": { + "type": "boolean" + }, + "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": [ + "version", + "-version", + "uploadedDate", + "-uploadedDate", + "preReleaseVersion", + "-preReleaseVersion" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[preReleaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type preReleaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaBuildLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaBuildLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "whatsNew", + "locale", + "build" + ] + } + }, + "style": "form", + "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": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "submittedDate", + "build" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "internalBuildState", + "externalBuildState", + "build" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildIcons]", + "in": "query", + "description": "the fields to include for returned resources of type buildIcons", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "iconAsset", + "iconType", + "masked", + "name" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildBundles]", + "in": "query", + "description": "the fields to include for returned resources of type buildBundles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "bundleType", + "sdkBuild", + "platformBuild", + "fileName", + "hasSirikit", + "hasOnDemandResources", + "hasPrerenderedIcon", + "usesLocationServices", + "isIosBuildMacAppStoreCompatible", + "includesSymbols", + "dSYMUrl", + "supportedArchitectures", + "requiredCapabilities", + "deviceProtocols", + "locales", + "entitlements", + "baDownloadAllowance", + "baMaxInstallSize", + "minimumOsVersion", + "appClipDomainCacheStatus", + "appClipDomainDebugStatus", + "betaAppClipInvocations", + "buildBundleFileSizes" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildUploads]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploads", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "cfBundleShortVersionString", + "cfBundleVersion", + "createdDate", + "state", + "platform", + "uploadedDate", + "build", + "assetFile", + "assetDescriptionFile", + "assetSpiFile", + "buildUploadFiles" + ] + } + }, + "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": [ + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[betaBuildLocalizations]", + "in": "query", + "description": "maximum number of related betaBuildLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[betaGroups]", + "in": "query", + "description": "maximum number of related betaGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[buildBundles]", + "in": "query", + "description": "maximum number of related buildBundles returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[icons]", + "in": "query", + "description": "maximum number of related icons returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[individualTesters]", + "in": "query", + "description": "maximum number of related individualTesters 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 Builds", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/builds/{id}": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_getInstance", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[preReleaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type preReleaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[betaBuildLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaBuildLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "whatsNew", + "locale", + "build" + ] + } + }, + "style": "form", + "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": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "submittedDate", + "build" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "internalBuildState", + "externalBuildState", + "build" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildIcons]", + "in": "query", + "description": "the fields to include for returned resources of type buildIcons", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "iconAsset", + "iconType", + "masked", + "name" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildBundles]", + "in": "query", + "description": "the fields to include for returned resources of type buildBundles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "bundleType", + "sdkBuild", + "platformBuild", + "fileName", + "hasSirikit", + "hasOnDemandResources", + "hasPrerenderedIcon", + "usesLocationServices", + "isIosBuildMacAppStoreCompatible", + "includesSymbols", + "dSYMUrl", + "supportedArchitectures", + "requiredCapabilities", + "deviceProtocols", + "locales", + "entitlements", + "baDownloadAllowance", + "baMaxInstallSize", + "minimumOsVersion", + "appClipDomainCacheStatus", + "appClipDomainDebugStatus", + "betaAppClipInvocations", + "buildBundleFileSizes" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[buildUploads]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploads", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "cfBundleShortVersionString", + "cfBundleVersion", + "createdDate", + "state", + "platform", + "uploadedDate", + "build", + "assetFile", + "assetDescriptionFile", + "assetSpiFile", + "buildUploadFiles" + ] + } + }, + "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": [ + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[betaBuildLocalizations]", + "in": "query", + "description": "maximum number of related betaBuildLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[betaGroups]", + "in": "query", + "description": "maximum number of related betaGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[buildBundles]", + "in": "query", + "description": "maximum number of related buildBundles returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[icons]", + "in": "query", + "description": "maximum number of related icons returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[individualTesters]", + "in": "query", + "description": "maximum number of related individualTesters 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Build", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Builds" + ], + "operationId": "builds_updateInstance", + "requestBody": { + "description": "Build representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Build", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/bundleIdCapabilities": { + "post": { + "tags": [ + "BundleIdCapabilities" + ], + "operationId": "bundleIdCapabilities_createInstance", + "requestBody": { + "description": "BundleIdCapability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdCapabilityCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BundleIdCapability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdCapabilityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/bundleIdCapabilities/{id}": { + "patch": { + "tags": [ + "BundleIdCapabilities" + ], + "operationId": "bundleIdCapabilities_updateInstance", + "requestBody": { + "description": "BundleIdCapability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdCapabilityUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BundleIdCapability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdCapabilityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BundleIdCapabilities" + ], + "operationId": "bundleIdCapabilities_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/bundleIds": { + "get": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_getCollection", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "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": [ + "IOS", + "MAC_OS", + "UNIVERSAL" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[identifier]", + "in": "query", + "description": "filter by attribute 'identifier'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[seedId]", + "in": "query", + "description": "filter by attribute 'seedId'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "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": [ + "name", + "-name", + "platform", + "-platform", + "identifier", + "-identifier", + "seedId", + "-seedId", + "id", + "-id" + ] + } + }, + "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": [ + "name", + "platform", + "identifier", + "seedId", + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "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": [ + "name", + "platform", + "profileType", + "profileState", + "profileContent", + "uuid", + "createdDate", + "expirationDate", + "bundleId", + "devices", + "certificates" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[bundleIdCapabilities]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIdCapabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "capabilityType", + "settings" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[bundleIdCapabilities]", + "in": "query", + "description": "maximum number of related bundleIdCapabilities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[profiles]", + "in": "query", + "description": "maximum number of related profiles 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 BundleIds", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_createInstance", + "requestBody": { + "description": "BundleId representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single BundleId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/bundleIds/{id}": { + "get": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_getInstance", + "parameters": [ + { + "name": "fields[bundleIds]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "platform", + "identifier", + "seedId", + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "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": [ + "name", + "platform", + "profileType", + "profileState", + "profileContent", + "uuid", + "createdDate", + "expirationDate", + "bundleId", + "devices", + "certificates" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[bundleIdCapabilities]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIdCapabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "capabilityType", + "settings" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[bundleIdCapabilities]", + "in": "query", + "description": "maximum number of related bundleIdCapabilities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[profiles]", + "in": "query", + "description": "maximum number of related profiles 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_updateInstance", + "requestBody": { + "description": "BundleId representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BundleId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/certificates": { + "get": { + "tags": [ + "Certificates" + ], + "operationId": "certificates_getCollection", + "parameters": [ + { + "name": "filter[displayName]", + "in": "query", + "description": "filter by attribute 'displayName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[certificateType]", + "in": "query", + "description": "filter by attribute 'certificateType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APPLE_PAY", + "APPLE_PAY_MERCHANT_IDENTITY", + "APPLE_PAY_PSP_IDENTITY", + "APPLE_PAY_RSA", + "DEVELOPER_ID_KEXT", + "DEVELOPER_ID_KEXT_G2", + "DEVELOPER_ID_APPLICATION", + "DEVELOPER_ID_APPLICATION_G2", + "DEVELOPMENT", + "DISTRIBUTION", + "IDENTITY_ACCESS", + "IOS_DEVELOPMENT", + "IOS_DISTRIBUTION", + "MAC_APP_DISTRIBUTION", + "MAC_INSTALLER_DISTRIBUTION", + "MAC_APP_DEVELOPMENT", + "PASS_TYPE_ID", + "PASS_TYPE_ID_WITH_NFC" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[serialNumber]", + "in": "query", + "description": "filter by attribute 'serialNumber'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "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": [ + "displayName", + "-displayName", + "certificateType", + "-certificateType", + "serialNumber", + "-serialNumber", + "id", + "-id" + ] + } + }, + "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": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[passTypeIds]", + "in": "query", + "description": "the fields to include for returned resources of type passTypeIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "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": [ + "passTypeId" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 Certificates", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificatesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "Certificates" + ], + "operationId": "certificates_createInstance", + "requestBody": { + "description": "Certificate representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single Certificate", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/certificates/{id}": { + "get": { + "tags": [ + "Certificates" + ], + "operationId": "certificates_getInstance", + "parameters": [ + { + "name": "fields[certificates]", + "in": "query", + "description": "the fields to include for returned resources of type certificates", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[passTypeIds]", + "in": "query", + "description": "the fields to include for returned resources of type passTypeIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "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": [ + "passTypeId" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Certificate", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Certificates" + ], + "operationId": "certificates_updateInstance", + "requestBody": { + "description": "Certificate representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Certificate", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificateResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Certificates" + ], + "operationId": "certificates_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciArtifacts/{id}": { + "get": { + "tags": [ + "CiArtifacts" + ], + "operationId": "ciArtifacts_getInstance", + "parameters": [ + { + "name": "fields[ciArtifacts]", + "in": "query", + "description": "the fields to include for returned resources of type ciArtifacts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileType", + "fileName", + "fileSize", + "downloadUrl" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiArtifact", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiArtifactResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_getInstance", + "parameters": [ + { + "name": "fields[ciBuildActions]", + "in": "query", + "description": "the fields to include for returned resources of type ciBuildActions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "actionType", + "startedDate", + "finishedDate", + "issueCounts", + "executionProgress", + "completionStatus", + "isRequiredToPass", + "buildRun", + "artifacts", + "issues", + "testResults" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciBuildRuns]", + "in": "query", + "description": "the fields to include for returned resources of type ciBuildRuns", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "number", + "createdDate", + "startedDate", + "finishedDate", + "sourceCommit", + "destinationCommit", + "isPullRequestBuild", + "issueCounts", + "executionProgress", + "completionStatus", + "startReason", + "cancelReason", + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "actions", + "pullRequest" + ] + } + }, + "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": [ + "buildRun" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiBuildAction", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiBuildActionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildRuns": { + "post": { + "tags": [ + "CiBuildRuns" + ], + "operationId": "ciBuildRuns_createInstance", + "requestBody": { + "description": "CiBuildRun representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiBuildRunCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single CiBuildRun", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiBuildRunResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/ciBuildRuns/{id}": { + "get": { + "tags": [ + "CiBuildRuns" + ], + "operationId": "ciBuildRuns_getInstance", + "parameters": [ + { + "name": "fields[ciBuildRuns]", + "in": "query", + "description": "the fields to include for returned resources of type ciBuildRuns", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "number", + "createdDate", + "startedDate", + "finishedDate", + "sourceCommit", + "destinationCommit", + "isPullRequestBuild", + "issueCounts", + "executionProgress", + "completionStatus", + "startReason", + "cancelReason", + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "actions", + "pullRequest" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciWorkflows]", + "in": "query", + "description": "the fields to include for returned resources of type ciWorkflows", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "description", + "branchStartCondition", + "tagStartCondition", + "pullRequestStartCondition", + "scheduledStartCondition", + "manualBranchStartCondition", + "manualTagStartCondition", + "manualPullRequestStartCondition", + "actions", + "isEnabled", + "isLockedForEditing", + "clean", + "containerFilePath", + "lastModifiedDate", + "product", + "repository", + "xcodeVersion", + "macOsVersion", + "buildRuns" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[scmPullRequests]", + "in": "query", + "description": "the fields to include for returned resources of type scmPullRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "title", + "number", + "webUrl", + "sourceRepositoryOwner", + "sourceRepositoryName", + "sourceBranchName", + "destinationRepositoryOwner", + "destinationRepositoryName", + "destinationBranchName", + "isClosed", + "isCrossRepository", + "repository" + ] + } + }, + "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": [ + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "pullRequest" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiBuildRun", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiBuildRunResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciIssues/{id}": { + "get": { + "tags": [ + "CiIssues" + ], + "operationId": "ciIssues_getInstance", + "parameters": [ + { + "name": "fields[ciIssues]", + "in": "query", + "description": "the fields to include for returned resources of type ciIssues", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "issueType", + "message", + "fileSource", + "category" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiIssue", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiIssueResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciMacOsVersions": { + "get": { + "tags": [ + "CiMacOsVersions" + ], + "operationId": "ciMacOsVersions_getCollection", + "parameters": [ + { + "name": "fields[ciMacOsVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciMacOsVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "xcodeVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciXcodeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciXcodeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "testDestinations", + "macOsVersions" + ] + } + }, + "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": [ + "xcodeVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[xcodeVersions]", + "in": "query", + "description": "maximum number of related xcodeVersions 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 CiMacOsVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiMacOsVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/ciMacOsVersions/{id}": { + "get": { + "tags": [ + "CiMacOsVersions" + ], + "operationId": "ciMacOsVersions_getInstance", + "parameters": [ + { + "name": "fields[ciMacOsVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciMacOsVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "xcodeVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciXcodeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciXcodeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "testDestinations", + "macOsVersions" + ] + } + }, + "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": [ + "xcodeVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[xcodeVersions]", + "in": "query", + "description": "maximum number of related xcodeVersions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiMacOsVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiMacOsVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_getCollection", + "parameters": [ + { + "name": "filter[productType]", + "in": "query", + "description": "filter by attribute 'productType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP", + "FRAMEWORK" + ] + } + }, + "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": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "name", + "platform", + "identifier", + "seedId", + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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", + "bundleId", + "primaryRepositories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[primaryRepositories]", + "in": "query", + "description": "maximum number of related primaryRepositories 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 CiProducts", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiProductsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/ciProducts/{id}": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_getInstance", + "parameters": [ + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "name", + "platform", + "identifier", + "seedId", + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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": [ + "app", + "bundleId", + "primaryRepositories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[primaryRepositories]", + "in": "query", + "description": "maximum number of related primaryRepositories 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiProduct", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiProductResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciTestResults/{id}": { + "get": { + "tags": [ + "CiTestResults" + ], + "operationId": "ciTestResults_getInstance", + "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", + "name", + "status", + "fileSource", + "message", + "destinationTestResults" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiTestResult", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiTestResultResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciWorkflows": { + "post": { + "tags": [ + "CiWorkflows" + ], + "operationId": "ciWorkflows_createInstance", + "requestBody": { + "description": "CiWorkflow representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiWorkflowCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single CiWorkflow", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiWorkflowResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/ciWorkflows/{id}": { + "get": { + "tags": [ + "CiWorkflows" + ], + "operationId": "ciWorkflows_getInstance", + "parameters": [ + { + "name": "fields[ciWorkflows]", + "in": "query", + "description": "the fields to include for returned resources of type ciWorkflows", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "description", + "branchStartCondition", + "tagStartCondition", + "pullRequestStartCondition", + "scheduledStartCondition", + "manualBranchStartCondition", + "manualTagStartCondition", + "manualPullRequestStartCondition", + "actions", + "isEnabled", + "isLockedForEditing", + "clean", + "containerFilePath", + "lastModifiedDate", + "product", + "repository", + "xcodeVersion", + "macOsVersion", + "buildRuns" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciXcodeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciXcodeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "testDestinations", + "macOsVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciMacOsVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciMacOsVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "xcodeVersions" + ] + } + }, + "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": [ + "product", + "repository", + "xcodeVersion", + "macOsVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiWorkflow", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiWorkflowResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "CiWorkflows" + ], + "operationId": "ciWorkflows_updateInstance", + "requestBody": { + "description": "CiWorkflow representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiWorkflowUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single CiWorkflow", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiWorkflowResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "CiWorkflows" + ], + "operationId": "ciWorkflows_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciXcodeVersions": { + "get": { + "tags": [ + "CiXcodeVersions" + ], + "operationId": "ciXcodeVersions_getCollection", + "parameters": [ + { + "name": "fields[ciXcodeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciXcodeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "testDestinations", + "macOsVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciMacOsVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciMacOsVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "xcodeVersions" + ] + } + }, + "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": [ + "macOsVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[macOsVersions]", + "in": "query", + "description": "maximum number of related macOsVersions 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 CiXcodeVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiXcodeVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/ciXcodeVersions/{id}": { + "get": { + "tags": [ + "CiXcodeVersions" + ], + "operationId": "ciXcodeVersions_getInstance", + "parameters": [ + { + "name": "fields[ciXcodeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciXcodeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "testDestinations", + "macOsVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[ciMacOsVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciMacOsVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "xcodeVersions" + ] + } + }, + "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": [ + "macOsVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[macOsVersions]", + "in": "query", + "description": "maximum number of related macOsVersions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiXcodeVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiXcodeVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/customerReviewResponses": { + "post": { + "tags": [ + "CustomerReviewResponses" + ], + "operationId": "customerReviewResponses_createInstance", + "requestBody": { + "description": "CustomerReviewResponse representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewResponseV1CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single CustomerReviewResponse", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewResponseV1Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/customerReviewResponses/{id}": { + "get": { + "tags": [ + "CustomerReviewResponses" + ], + "operationId": "customerReviewResponses_getInstance", + "parameters": [ + { + "name": "fields[customerReviewResponses]", + "in": "query", + "description": "the fields to include for returned resources of type customerReviewResponses", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "responseBody", + "lastModifiedDate", + "state", + "review" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[customerReviews]", + "in": "query", + "description": "the fields to include for returned resources of type customerReviews", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "rating", + "title", + "body", + "reviewerNickname", + "createdDate", + "territory", + "response", + "reviewTerritory" + ] + } + }, + "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": [ + "review" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CustomerReviewResponse", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewResponseV1Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "CustomerReviewResponses" + ], + "operationId": "customerReviewResponses_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/customerReviews/{id}": { + "get": { + "tags": [ + "CustomerReviews" + ], + "operationId": "customerReviews_getInstance", + "parameters": [ + { + "name": "fields[customerReviews]", + "in": "query", + "description": "the fields to include for returned resources of type customerReviews", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "rating", + "title", + "body", + "reviewerNickname", + "createdDate", + "territory", + "response", + "reviewTerritory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[customerReviewResponses]", + "in": "query", + "description": "the fields to include for returned resources of type customerReviewResponses", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "responseBody", + "lastModifiedDate", + "state", + "review" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "response", + "reviewTerritory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CustomerReview", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/devices": { + "get": { + "tags": [ + "Devices" + ], + "operationId": "devices_getCollection", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "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": [ + "IOS", + "MAC_OS", + "UNIVERSAL" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[udid]", + "in": "query", + "description": "filter by attribute 'udid'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[status]", + "in": "query", + "description": "filter by attribute 'status'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "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": [ + "name", + "-name", + "platform", + "-platform", + "udid", + "-udid", + "status", + "-status", + "id", + "-id" + ] + } + }, + "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": [ + "name", + "platform", + "udid", + "deviceClass", + "status", + "model", + "addedDate" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 Devices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DevicesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "Devices" + ], + "operationId": "devices_createInstance", + "requestBody": { + "description": "Device representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeviceCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single Device", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeviceResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/devices/{id}": { + "get": { + "tags": [ + "Devices" + ], + "operationId": "devices_getInstance", + "parameters": [ + { + "name": "fields[devices]", + "in": "query", + "description": "the fields to include for returned resources of type devices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "platform", + "udid", + "deviceClass", + "status", + "model", + "addedDate" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Device", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeviceResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Devices" + ], + "operationId": "devices_updateInstance", + "requestBody": { + "description": "Device representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeviceUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Device", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeviceResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/endAppAvailabilityPreOrders": { + "post": { + "tags": [ + "EndAppAvailabilityPreOrders" + ], + "operationId": "endAppAvailabilityPreOrders_createInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/endUserLicenseAgreements": { + "post": { + "tags": [ + "EndUserLicenseAgreements" + ], + "operationId": "endUserLicenseAgreements_createInstance", + "requestBody": { + "description": "EndUserLicenseAgreement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EndUserLicenseAgreementCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single EndUserLicenseAgreement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EndUserLicenseAgreementResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/endUserLicenseAgreements/{id}": { + "get": { + "tags": [ + "EndUserLicenseAgreements" + ], + "operationId": "endUserLicenseAgreements_getInstance", + "parameters": [ + { + "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, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "territories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[territories]", + "in": "query", + "description": "maximum number of related territories 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "EndUserLicenseAgreements" + ], + "operationId": "endUserLicenseAgreements_updateInstance", + "requestBody": { + "description": "EndUserLicenseAgreement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EndUserLicenseAgreementUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single EndUserLicenseAgreement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EndUserLicenseAgreementResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "EndUserLicenseAgreements" + ], + "operationId": "endUserLicenseAgreements_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/financeReports": { + "get": { + "tags": [ + "FinanceReports" + ], + "operationId": "financeReports_getCollection", + "parameters": [ + { + "name": "filter[vendorNumber]", + "in": "query", + "description": "filter by attribute 'vendorNumber'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[reportType]", + "in": "query", + "description": "filter by attribute 'reportType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "FINANCIAL", + "FINANCE_DETAIL" + ] + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[regionCode]", + "in": "query", + "description": "filter by attribute 'regionCode'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[reportDate]", + "in": "query", + "description": "filter by attribute 'reportDate'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 FinanceReports", + "content": { + "application/a-gzip": { + "schema": { + "$ref": "#/components/schemas/gzip" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterAchievementImages": { + "post": { + "tags": [ + "GameCenterAchievementImages" + ], + "operationId": "gameCenterAchievementImages_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterAchievementImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterAchievementImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterAchievementImages/{id}": { + "get": { + "tags": [ + "GameCenterAchievementImages" + ], + "operationId": "gameCenterAchievementImages_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterAchievementLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAchievementImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterAchievementImages" + ], + "operationId": "gameCenterAchievementImages_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterAchievementImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAchievementImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterAchievementImages" + ], + "operationId": "gameCenterAchievementImages_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievementImages": { + "post": { + "tags": [ + "GameCenterAchievementImages" + ], + "operationId": "gameCenterAchievementImagesV2_createInstance", + "requestBody": { + "description": "GameCenterAchievementImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterAchievementImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterAchievementImages/{id}": { + "get": { + "tags": [ + "GameCenterAchievementImages" + ], + "operationId": "gameCenterAchievementImagesV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "version", + "image" + ] + } + }, + "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": [ + "localization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAchievementImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterAchievementImages" + ], + "operationId": "gameCenterAchievementImagesV2_updateInstance", + "requestBody": { + "description": "GameCenterAchievementImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAchievementImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterAchievementImages" + ], + "operationId": "gameCenterAchievementImagesV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievementLocalizations": { + "post": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizationsV2_createInstance", + "requestBody": { + "description": "GameCenterAchievementLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterAchievementLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterAchievementLocalizations/{id}": { + "get": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizationsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievementVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "achievement", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementLocalizationV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizationsV2_updateInstance", + "requestBody": { + "description": "GameCenterAchievementLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAchievementLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizationsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievementLocalizations": { + "post": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizations_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterAchievementLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterAchievementLocalizations/{id}": { + "get": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizations_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterAchievementLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "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, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizations_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterAchievementLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizations_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievementReleases": { + "post": { + "tags": [ + "GameCenterAchievementReleases" + ], + "operationId": "gameCenterAchievementReleases_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterAchievementRelease representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementReleaseCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterAchievementRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementReleaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterAchievementReleases/{id}": { + "get": { + "tags": [ + "GameCenterAchievementReleases" + ], + "operationId": "gameCenterAchievementReleases_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAchievementRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementReleaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterAchievementReleases" + ], + "operationId": "gameCenterAchievementReleases_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievementVersions": { + "post": { + "tags": [ + "GameCenterAchievementVersions" + ], + "operationId": "gameCenterAchievementVersionsV2_createInstance", + "requestBody": { + "description": "GameCenterAchievementVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterAchievementVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterAchievementVersions/{id}": { + "get": { + "tags": [ + "GameCenterAchievementVersions" + ], + "operationId": "gameCenterAchievementVersionsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterAchievementVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "achievement", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "version", + "image" + ] + } + }, + "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": [ + "achievement", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAchievementVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievements": { + "post": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievementsV2_createInstance", + "requestBody": { + "description": "GameCenterAchievement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterAchievement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterAchievements/{id}": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievementsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "activity", + "versions" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievementVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "achievement", + "localizations" + ] + } + }, + "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": [ + "gameCenterDetail", + "gameCenterGroup", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievementsV2_updateInstance", + "requestBody": { + "description": "GameCenterAchievement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAchievement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievementsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievements": { + "post": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterAchievement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterAchievement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterAchievements/{id}": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "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": [ + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "style": "form", + "explode": false, + "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, + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterAchievement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAchievement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivities": { + "post": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_createInstance", + "requestBody": { + "description": "GameCenterActivity representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterActivity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterActivities/{id}": { + "get": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_getInstance", + "parameters": [ + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "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": [ + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[achievements]", + "in": "query", + "description": "maximum number of related achievements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[achievementsV2]", + "in": "query", + "description": "maximum number of related achievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[leaderboards]", + "in": "query", + "description": "maximum number of related leaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[leaderboardsV2]", + "in": "query", + "description": "maximum number of related leaderboardsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_updateInstance", + "requestBody": { + "description": "GameCenterActivity representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterActivity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityImages": { + "post": { + "tags": [ + "GameCenterActivityImages" + ], + "operationId": "gameCenterActivityImages_createInstance", + "requestBody": { + "description": "GameCenterActivityImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterActivityImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterActivityImages/{id}": { + "get": { + "tags": [ + "GameCenterActivityImages" + ], + "operationId": "gameCenterActivityImages_getInstance", + "parameters": [ + { + "name": "fields[gameCenterActivityImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterActivityImages" + ], + "operationId": "gameCenterActivityImages_updateInstance", + "requestBody": { + "description": "GameCenterActivityImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterActivityImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterActivityImages" + ], + "operationId": "gameCenterActivityImages_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityLocalizations": { + "post": { + "tags": [ + "GameCenterActivityLocalizations" + ], + "operationId": "gameCenterActivityLocalizations_createInstance", + "requestBody": { + "description": "GameCenterActivityLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterActivityLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterActivityLocalizations/{id}": { + "get": { + "tags": [ + "GameCenterActivityLocalizations" + ], + "operationId": "gameCenterActivityLocalizations_getInstance", + "parameters": [ + { + "name": "fields[gameCenterActivityLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivityImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterActivityLocalizations" + ], + "operationId": "gameCenterActivityLocalizations_updateInstance", + "requestBody": { + "description": "GameCenterActivityLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterActivityLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterActivityLocalizations" + ], + "operationId": "gameCenterActivityLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityVersionReleases": { + "post": { + "tags": [ + "GameCenterActivityVersionReleases" + ], + "operationId": "gameCenterActivityVersionReleases_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterActivityVersionRelease representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionReleaseCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterActivityVersionRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionReleaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterActivityVersionReleases/{id}": { + "get": { + "tags": [ + "GameCenterActivityVersionReleases" + ], + "operationId": "gameCenterActivityVersionReleases_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterActivityVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityVersionRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionReleaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterActivityVersionReleases" + ], + "operationId": "gameCenterActivityVersionReleases_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityVersions": { + "post": { + "tags": [ + "GameCenterActivityVersions" + ], + "operationId": "gameCenterActivityVersions_createInstance", + "requestBody": { + "description": "GameCenterActivityVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterActivityVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterActivityVersions/{id}": { + "get": { + "tags": [ + "GameCenterActivityVersions" + ], + "operationId": "gameCenterActivityVersions_getInstance", + "parameters": [ + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivityLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivityImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivityVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "style": "form", + "explode": false, + "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 + }, + "style": "form", + "required": false, + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterActivityVersions" + ], + "operationId": "gameCenterActivityVersions_updateInstance", + "requestBody": { + "description": "GameCenterActivityVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterActivityVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAppVersions": { + "post": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_createInstance", + "requestBody": { + "description": "GameCenterAppVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterAppVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterAppVersions/{id}": { + "get": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_getInstance", + "parameters": [ + { + "name": "fields[gameCenterAppVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAppVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[compatibilityVersions]", + "in": "query", + "description": "maximum number of related compatibilityVersions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAppVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_updateInstance", + "requestBody": { + "description": "GameCenterAppVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAppVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeImages": { + "post": { + "tags": [ + "GameCenterChallengeImages" + ], + "operationId": "gameCenterChallengeImages_createInstance", + "requestBody": { + "description": "GameCenterChallengeImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterChallengeImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterChallengeImages/{id}": { + "get": { + "tags": [ + "GameCenterChallengeImages" + ], + "operationId": "gameCenterChallengeImages_getInstance", + "parameters": [ + { + "name": "fields[gameCenterChallengeImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterChallengeImages" + ], + "operationId": "gameCenterChallengeImages_updateInstance", + "requestBody": { + "description": "GameCenterChallengeImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterChallengeImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterChallengeImages" + ], + "operationId": "gameCenterChallengeImages_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeLocalizations": { + "post": { + "tags": [ + "GameCenterChallengeLocalizations" + ], + "operationId": "gameCenterChallengeLocalizations_createInstance", + "requestBody": { + "description": "GameCenterChallengeLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterChallengeLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterChallengeLocalizations/{id}": { + "get": { + "tags": [ + "GameCenterChallengeLocalizations" + ], + "operationId": "gameCenterChallengeLocalizations_getInstance", + "parameters": [ + { + "name": "fields[gameCenterChallengeLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallengeImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterChallengeLocalizations" + ], + "operationId": "gameCenterChallengeLocalizations_updateInstance", + "requestBody": { + "description": "GameCenterChallengeLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterChallengeLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterChallengeLocalizations" + ], + "operationId": "gameCenterChallengeLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeVersionReleases": { + "post": { + "tags": [ + "GameCenterChallengeVersionReleases" + ], + "operationId": "gameCenterChallengeVersionReleases_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterChallengeVersionRelease representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeVersionReleaseCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterChallengeVersionRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeVersionReleaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterChallengeVersionReleases/{id}": { + "get": { + "tags": [ + "GameCenterChallengeVersionReleases" + ], + "operationId": "gameCenterChallengeVersionReleases_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterChallengeVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeVersionRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeVersionReleaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterChallengeVersionReleases" + ], + "operationId": "gameCenterChallengeVersionReleases_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeVersions": { + "post": { + "tags": [ + "GameCenterChallengeVersions" + ], + "operationId": "gameCenterChallengeVersions_createInstance", + "requestBody": { + "description": "GameCenterChallengeVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterChallengeVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterChallengeVersions/{id}": { + "get": { + "tags": [ + "GameCenterChallengeVersions" + ], + "operationId": "gameCenterChallengeVersions_getInstance", + "parameters": [ + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallengeLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallengeVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterChallengeImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "style": "form", + "explode": false, + "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 + }, + "style": "form", + "required": false, + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallenges": { + "post": { + "tags": [ + "GameCenterChallenges" + ], + "operationId": "gameCenterChallenges_createInstance", + "requestBody": { + "description": "GameCenterChallenge representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterChallenge", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterChallenges/{id}": { + "get": { + "tags": [ + "GameCenterChallenges" + ], + "operationId": "gameCenterChallenges_getInstance", + "parameters": [ + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "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": [ + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallenge", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterChallenges" + ], + "operationId": "gameCenterChallenges_updateInstance", + "requestBody": { + "description": "GameCenterChallenge representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterChallenge", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterChallenges" + ], + "operationId": "gameCenterChallenges_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetailPlayers/{id}": { + "patch": { + "tags": [ + "GameCenterDetailPlayers" + ], + "operationId": "gameCenterDetailPlayers_updateInstance", + "requestBody": { + "description": "GameCenterDetailPlayer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailPlayerUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterDetailPlayer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailPlayerResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails": { + "post": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_createInstance", + "requestBody": { + "description": "GameCenterDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterDetails/{id}": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_getInstance", + "parameters": [ + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAppVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAppVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterActivityVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterChallengeVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[achievementReleases]", + "in": "query", + "description": "maximum number of related achievementReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[activityReleases]", + "in": "query", + "description": "maximum number of related activityReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[challengeReleases]", + "in": "query", + "description": "maximum number of related challengeReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[challengesMinimumPlatformVersions]", + "in": "query", + "description": "maximum number of related challengesMinimumPlatformVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterAchievements]", + "in": "query", + "description": "maximum number of related gameCenterAchievements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[gameCenterAchievementsV2]", + "in": "query", + "description": "maximum number of related gameCenterAchievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterActivities]", + "in": "query", + "description": "maximum number of related gameCenterActivities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterAppVersions]", + "in": "query", + "description": "maximum number of related gameCenterAppVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterChallenges]", + "in": "query", + "description": "maximum number of related gameCenterChallenges 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, + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardSetsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSetsV2 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 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[leaderboardReleases]", + "in": "query", + "description": "maximum number of related leaderboardReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[leaderboardSetReleases]", + "in": "query", + "description": "maximum number of related leaderboardSetReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_updateInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_getCollection", + "parameters": [ + { + "name": "filter[gameCenterDetails]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterDetails'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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": [ + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[gameCenterAchievementsV2]", + "in": "query", + "description": "maximum number of related gameCenterAchievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterActivities]", + "in": "query", + "description": "maximum number of related gameCenterActivities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterChallenges]", + "in": "query", + "description": "maximum number of related gameCenterChallenges returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterDetails]", + "in": "query", + "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, + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardSetsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSetsV2 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 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardsV2 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 GameCenterGroups", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_createInstance", + "requestBody": { + "description": "GameCenterGroup representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterGroups/{id}": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_getInstance", + "parameters": [ + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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": [ + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[gameCenterAchievementsV2]", + "in": "query", + "description": "maximum number of related gameCenterAchievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterActivities]", + "in": "query", + "description": "maximum number of related gameCenterActivities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterChallenges]", + "in": "query", + "description": "maximum number of related gameCenterChallenges returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterDetails]", + "in": "query", + "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, + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardSetsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSetsV2 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 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardsV2 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_updateInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardEntrySubmissions": { + "post": { + "tags": [ + "GameCenterLeaderboardEntrySubmissions" + ], + "operationId": "gameCenterLeaderboardEntrySubmissions_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardEntrySubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardEntrySubmissionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardEntrySubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardEntrySubmissionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardImages": { + "post": { + "tags": [ + "GameCenterLeaderboardImages" + ], + "operationId": "gameCenterLeaderboardImages_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardImages/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardImages" + ], + "operationId": "gameCenterLeaderboardImages_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterLeaderboardLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardImages" + ], + "operationId": "gameCenterLeaderboardImages_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardImages" + ], + "operationId": "gameCenterLeaderboardImages_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardImages": { + "post": { + "tags": [ + "GameCenterLeaderboardImages" + ], + "operationId": "gameCenterLeaderboardImagesV2_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterLeaderboardImages/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardImages" + ], + "operationId": "gameCenterLeaderboardImagesV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "version", + "image" + ] + } + }, + "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": [ + "localization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardImages" + ], + "operationId": "gameCenterLeaderboardImagesV2_updateInstance", + "requestBody": { + "description": "GameCenterLeaderboardImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardImages" + ], + "operationId": "gameCenterLeaderboardImagesV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardLocalizations": { + "post": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizations_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardLocalizations/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizations_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterLeaderboardLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "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, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizations_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizations_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardLocalizations": { + "post": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizationsV2_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterLeaderboardLocalizations/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizationsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardLocalizationV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizationsV2_updateInstance", + "requestBody": { + "description": "GameCenterLeaderboardLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizationsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardReleases": { + "post": { + "tags": [ + "GameCenterLeaderboardReleases" + ], + "operationId": "gameCenterLeaderboardReleases_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardRelease representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardReleaseCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardReleaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardReleases/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardReleases" + ], + "operationId": "gameCenterLeaderboardReleases_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": 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)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterLeaderboardRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardReleaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardReleases" + ], + "operationId": "gameCenterLeaderboardReleases_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetImages": { + "post": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImages_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardSetImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSetImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardSetImages/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImages_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterLeaderboardSetLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImages_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardSetImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSetImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImages_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSetImages": { + "post": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImagesV2_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardSetImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSetImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterLeaderboardSetImages/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImagesV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "version", + "image" + ] + } + }, + "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": [ + "localization" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImagesV2_updateInstance", + "requestBody": { + "description": "GameCenterLeaderboardSetImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSetImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImagesV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetLocalizations": { + "post": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizations_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardSetLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSetLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardSetLocalizations/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizations_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardSetImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterLeaderboardSetLocalization" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "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, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterLeaderboardSetLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizations_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardSetLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSetLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizations_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSetLocalizations": { + "post": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizationsV2_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardSetLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSetLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterLeaderboardSetLocalizations/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizationsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboardSet", + "localizations" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterLeaderboardSetLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizationsV2_updateInstance", + "requestBody": { + "description": "GameCenterLeaderboardSetLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSetLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizationsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetMemberLocalizations": { + "get": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations_getCollection", + "parameters": [ + { + "name": "filter[gameCenterLeaderboardSet]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterLeaderboardSet'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true, + "deprecated": true + }, + { + "name": "filter[gameCenterLeaderboard]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterLeaderboard'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardSetMemberLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetMemberLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "gameCenterLeaderboardSet", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "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", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 GameCenterLeaderboardSetMemberLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardSetMemberLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSetMemberLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardSetMemberLocalizations/{id}": { + "patch": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations_updateInstance", + "requestBody": { + "description": "GameCenterLeaderboardSetMemberLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSetMemberLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetReleases": { + "post": { + "tags": [ + "GameCenterLeaderboardSetReleases" + ], + "operationId": "gameCenterLeaderboardSetReleases_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardSetRelease representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetReleaseCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSetRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetReleaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardSetReleases/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardSetReleases" + ], + "operationId": "gameCenterLeaderboardSetReleases_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "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, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterLeaderboardSetRelease", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetReleaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSetReleases" + ], + "operationId": "gameCenterLeaderboardSetReleases_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSetVersions": { + "post": { + "tags": [ + "GameCenterLeaderboardSetVersions" + ], + "operationId": "gameCenterLeaderboardSetVersionsV2_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardSetVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSetVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterLeaderboardSetVersions/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardSetVersions" + ], + "operationId": "gameCenterLeaderboardSetVersionsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboardSet", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "version", + "image" + ] + } + }, + "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": [ + "leaderboardSet", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterLeaderboardSetVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSets": { + "post": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterLeaderboardSets/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboardSet", + "localizations" + ] + } + }, + "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": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_updateInstance", + "requestBody": { + "description": "GameCenterLeaderboardSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets": { + "post": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboardSets/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + }, + { + "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, + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboardSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardVersions": { + "post": { + "tags": [ + "GameCenterLeaderboardVersions" + ], + "operationId": "gameCenterLeaderboardVersionsV2_createInstance", + "requestBody": { + "description": "GameCenterLeaderboardVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboardVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterLeaderboardVersions/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboardVersions" + ], + "operationId": "gameCenterLeaderboardVersionsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "version", + "image" + ] + } + }, + "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": [ + "leaderboard", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterLeaderboardVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards": { + "post": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_createInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboard representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboard", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterLeaderboards/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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": [ + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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, + "deprecated": true + }, + { + "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, + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false, + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_updateInstance", + "deprecated": true, + "requestBody": { + "description": "GameCenterLeaderboard representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboard", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboards": { + "post": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_createInstance", + "requestBody": { + "description": "GameCenterLeaderboard representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterLeaderboard", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/gameCenterLeaderboards/{id}": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_getInstance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "style": "form", + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "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": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "activity", + "challenge", + "versions" + ] + } + }, + "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[versions]", + "in": "query", + "description": "maximum number of related versions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_updateInstance", + "requestBody": { + "description": "GameCenterLeaderboard representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboard", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingQueues": { + "get": { + "tags": [ + "GameCenterMatchmakingQueues" + ], + "operationId": "gameCenterMatchmakingQueues_getCollection", + "parameters": [ + { + "name": "fields[gameCenterMatchmakingQueues]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingQueues", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "classicMatchmakingBundleIds", + "ruleSet", + "experimentRuleSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterMatchmakingRuleSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingRuleSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "ruleLanguageVersion", + "minPlayers", + "maxPlayers", + "teams", + "rules", + "matchmakingQueues" + ] + } + }, + "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": [ + "ruleSet", + "experimentRuleSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 GameCenterMatchmakingQueues", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueuesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterMatchmakingQueues" + ], + "operationId": "gameCenterMatchmakingQueues_createInstance", + "requestBody": { + "description": "GameCenterMatchmakingQueue representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterMatchmakingQueue", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterMatchmakingQueues/{id}": { + "get": { + "tags": [ + "GameCenterMatchmakingQueues" + ], + "operationId": "gameCenterMatchmakingQueues_getInstance", + "parameters": [ + { + "name": "fields[gameCenterMatchmakingQueues]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingQueues", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "classicMatchmakingBundleIds", + "ruleSet", + "experimentRuleSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterMatchmakingRuleSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingRuleSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "ruleLanguageVersion", + "minPlayers", + "maxPlayers", + "teams", + "rules", + "matchmakingQueues" + ] + } + }, + "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": [ + "ruleSet", + "experimentRuleSet" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterMatchmakingQueue", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterMatchmakingQueues" + ], + "operationId": "gameCenterMatchmakingQueues_updateInstance", + "requestBody": { + "description": "GameCenterMatchmakingQueue representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterMatchmakingQueue", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterMatchmakingQueues" + ], + "operationId": "gameCenterMatchmakingQueues_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRuleSetTests": { + "post": { + "tags": [ + "GameCenterMatchmakingRuleSetTests" + ], + "operationId": "gameCenterMatchmakingRuleSetTests_createInstance", + "requestBody": { + "description": "GameCenterMatchmakingRuleSetTest representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetTestCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterMatchmakingRuleSetTest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetTestResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterMatchmakingRuleSets": { + "get": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_getCollection", + "parameters": [ + { + "name": "fields[gameCenterMatchmakingRuleSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingRuleSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "ruleLanguageVersion", + "minPlayers", + "maxPlayers", + "teams", + "rules", + "matchmakingQueues" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterMatchmakingTeams]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingTeams", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "minPlayers", + "maxPlayers" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterMatchmakingRules]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingRules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "description", + "type", + "expression", + "weight" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterMatchmakingQueues]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingQueues", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "classicMatchmakingBundleIds", + "ruleSet", + "experimentRuleSet" + ] + } + }, + "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": [ + "teams", + "rules", + "matchmakingQueues" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[matchmakingQueues]", + "in": "query", + "description": "maximum number of related matchmakingQueues returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[rules]", + "in": "query", + "description": "maximum number of related rules returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[teams]", + "in": "query", + "description": "maximum number of related teams 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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 GameCenterMatchmakingRuleSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_createInstance", + "requestBody": { + "description": "GameCenterMatchmakingRuleSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterMatchmakingRuleSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterMatchmakingRuleSets/{id}": { + "get": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_getInstance", + "parameters": [ + { + "name": "fields[gameCenterMatchmakingRuleSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingRuleSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "ruleLanguageVersion", + "minPlayers", + "maxPlayers", + "teams", + "rules", + "matchmakingQueues" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterMatchmakingTeams]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingTeams", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "minPlayers", + "maxPlayers" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterMatchmakingRules]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingRules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "description", + "type", + "expression", + "weight" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterMatchmakingQueues]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingQueues", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "classicMatchmakingBundleIds", + "ruleSet", + "experimentRuleSet" + ] + } + }, + "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": [ + "teams", + "rules", + "matchmakingQueues" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[matchmakingQueues]", + "in": "query", + "description": "maximum number of related matchmakingQueues returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[rules]", + "in": "query", + "description": "maximum number of related rules returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[teams]", + "in": "query", + "description": "maximum number of related teams 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterMatchmakingRuleSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_updateInstance", + "requestBody": { + "description": "GameCenterMatchmakingRuleSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterMatchmakingRuleSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRules": { + "post": { + "tags": [ + "GameCenterMatchmakingRules" + ], + "operationId": "gameCenterMatchmakingRules_createInstance", + "requestBody": { + "description": "GameCenterMatchmakingRule representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterMatchmakingRule", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterMatchmakingRules/{id}": { + "patch": { + "tags": [ + "GameCenterMatchmakingRules" + ], + "operationId": "gameCenterMatchmakingRules_updateInstance", + "requestBody": { + "description": "GameCenterMatchmakingRule representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterMatchmakingRule", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterMatchmakingRules" + ], + "operationId": "gameCenterMatchmakingRules_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingTeams": { + "post": { + "tags": [ + "GameCenterMatchmakingTeams" + ], + "operationId": "gameCenterMatchmakingTeams_createInstance", + "requestBody": { + "description": "GameCenterMatchmakingTeam representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingTeamCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterMatchmakingTeam", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingTeamResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterMatchmakingTeams/{id}": { + "patch": { + "tags": [ + "GameCenterMatchmakingTeams" + ], + "operationId": "gameCenterMatchmakingTeams_updateInstance", + "requestBody": { + "description": "GameCenterMatchmakingTeam representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingTeamUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterMatchmakingTeam", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingTeamResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterMatchmakingTeams" + ], + "operationId": "gameCenterMatchmakingTeams_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterPlayerAchievementSubmissions": { + "post": { + "tags": [ + "GameCenterPlayerAchievementSubmissions" + ], + "operationId": "gameCenterPlayerAchievementSubmissions_createInstance", + "requestBody": { + "description": "GameCenterPlayerAchievementSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterPlayerAchievementSubmissionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single GameCenterPlayerAchievementSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterPlayerAchievementSubmissionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/gameCenterScoreModerations/{id}": { + "patch": { + "tags": [ + "GameCenterScoreModerations" + ], + "operationId": "gameCenterScoreModerations_updateInstance", + "requestBody": { + "description": "GameCenterScoreModeration representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterScoreModerationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterScoreModeration", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterScoreModerationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseAppStoreReviewScreenshots": { + "post": { + "tags": [ + "InAppPurchaseAppStoreReviewScreenshots" + ], + "operationId": "inAppPurchaseAppStoreReviewScreenshots_createInstance", + "requestBody": { + "description": "InAppPurchaseAppStoreReviewScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseAppStoreReviewScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseAppStoreReviewScreenshots/{id}": { + "get": { + "tags": [ + "InAppPurchaseAppStoreReviewScreenshots" + ], + "operationId": "inAppPurchaseAppStoreReviewScreenshots_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchaseAppStoreReviewScreenshots" + ], + "operationId": "inAppPurchaseAppStoreReviewScreenshots_updateInstance", + "requestBody": { + "description": "InAppPurchaseAppStoreReviewScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseAppStoreReviewScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "InAppPurchaseAppStoreReviewScreenshots" + ], + "operationId": "inAppPurchaseAppStoreReviewScreenshots_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseAvailabilities": { + "post": { + "tags": [ + "InAppPurchaseAvailabilities" + ], + "operationId": "inAppPurchaseAvailabilities_createInstance", + "requestBody": { + "description": "InAppPurchaseAvailability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseAvailabilityCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseAvailabilityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseAvailabilities/{id}": { + "get": { + "tags": [ + "InAppPurchaseAvailabilities" + ], + "operationId": "inAppPurchaseAvailabilities_getInstance", + "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" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableTerritories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[availableTerritories]", + "in": "query", + "description": "maximum number of related availableTerritories 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseContents/{id}": { + "get": { + "tags": [ + "InAppPurchaseContents" + ], + "operationId": "inAppPurchaseContents_getInstance", + "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", + "url", + "lastModifiedDate", + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseImages": { + "post": { + "tags": [ + "InAppPurchaseImages" + ], + "operationId": "inAppPurchaseImages_createInstance", + "requestBody": { + "description": "InAppPurchaseImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseImages/{id}": { + "get": { + "tags": [ + "InAppPurchaseImages" + ], + "operationId": "inAppPurchaseImages_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "assetToken", + "imageAsset", + "uploadOperations", + "state", + "inAppPurchase" + ] + } + }, + "style": "form", + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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": [ + "inAppPurchase" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchaseImages" + ], + "operationId": "inAppPurchaseImages_updateInstance", + "requestBody": { + "description": "InAppPurchaseImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "InAppPurchaseImages" + ], + "operationId": "inAppPurchaseImages_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchaseImages": { + "post": { + "tags": [ + "InAppPurchaseImages" + ], + "operationId": "inAppPurchaseImagesV2_createInstance", + "requestBody": { + "description": "InAppPurchaseImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/inAppPurchaseImages/{id}": { + "get": { + "tags": [ + "InAppPurchaseImages" + ], + "operationId": "inAppPurchaseImagesV2_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchaseImages" + ], + "operationId": "inAppPurchaseImagesV2_updateInstance", + "requestBody": { + "description": "InAppPurchaseImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "InAppPurchaseImages" + ], + "operationId": "inAppPurchaseImagesV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseLocalizations": { + "post": { + "tags": [ + "InAppPurchaseLocalizations" + ], + "operationId": "inAppPurchaseLocalizations_createInstance", + "requestBody": { + "description": "InAppPurchaseLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseLocalizations/{id}": { + "get": { + "tags": [ + "InAppPurchaseLocalizations" + ], + "operationId": "inAppPurchaseLocalizations_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "state", + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchaseLocalizations" + ], + "operationId": "inAppPurchaseLocalizations_updateInstance", + "requestBody": { + "description": "InAppPurchaseLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "InAppPurchaseLocalizations" + ], + "operationId": "inAppPurchaseLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchaseLocalizations": { + "post": { + "tags": [ + "InAppPurchaseLocalizations" + ], + "operationId": "inAppPurchaseLocalizationsV2_createInstance", + "requestBody": { + "description": "InAppPurchaseLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/inAppPurchaseLocalizations/{id}": { + "get": { + "tags": [ + "InAppPurchaseLocalizations" + ], + "operationId": "inAppPurchaseLocalizationsV2_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchaseLocalizations" + ], + "operationId": "inAppPurchaseLocalizationsV2_updateInstance", + "requestBody": { + "description": "InAppPurchaseLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "InAppPurchaseLocalizations" + ], + "operationId": "inAppPurchaseLocalizationsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodeCustomCodes": { + "post": { + "tags": [ + "InAppPurchaseOfferCodeCustomCodes" + ], + "operationId": "inAppPurchaseOfferCodeCustomCodes_createInstance", + "requestBody": { + "description": "InAppPurchaseOfferCodeCustomCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCodeCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseOfferCodeCustomCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseOfferCodeCustomCodes/{id}": { + "get": { + "tags": [ + "InAppPurchaseOfferCodeCustomCodes" + ], + "operationId": "inAppPurchaseOfferCodeCustomCodes_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCode", + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "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": [ + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseOfferCodeCustomCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCodeResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchaseOfferCodeCustomCodes" + ], + "operationId": "inAppPurchaseOfferCodeCustomCodes_updateInstance", + "requestBody": { + "description": "InAppPurchaseOfferCodeCustomCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCodeUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseOfferCodeCustomCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodeOneTimeUseCodes": { + "post": { + "tags": [ + "InAppPurchaseOfferCodeOneTimeUseCodes" + ], + "operationId": "inAppPurchaseOfferCodeOneTimeUseCodes_createInstance", + "requestBody": { + "description": "InAppPurchaseOfferCodeOneTimeUseCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCodeCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseOfferCodeOneTimeUseCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseOfferCodeOneTimeUseCodes/{id}": { + "get": { + "tags": [ + "InAppPurchaseOfferCodeOneTimeUseCodes" + ], + "operationId": "inAppPurchaseOfferCodeOneTimeUseCodes_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "environment", + "values", + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "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": [ + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseOfferCodeOneTimeUseCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCodeResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchaseOfferCodeOneTimeUseCodes" + ], + "operationId": "inAppPurchaseOfferCodeOneTimeUseCodes_updateInstance", + "requestBody": { + "description": "InAppPurchaseOfferCodeOneTimeUseCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCodeUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseOfferCodeOneTimeUseCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodes": { + "post": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_createInstance", + "requestBody": { + "description": "InAppPurchaseOfferCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseOfferCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseOfferCodes/{id}": { + "get": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customerEligibilities", + "productionCodeCount", + "sandboxCodeCount", + "active", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "environment", + "values", + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCode", + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "pricePoint" + ] + } + }, + "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": [ + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseOfferCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_updateInstance", + "requestBody": { + "description": "InAppPurchaseOfferCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseOfferCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePriceSchedules": { + "post": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules_createInstance", + "requestBody": { + "description": "InAppPurchasePriceSchedule representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasePriceScheduleCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchasePriceSchedule", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchasePriceSchedules/{id}": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchasePriceSchedules]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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": "fields[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "startDate", + "endDate", + "manual", + "inAppPurchasePricePoint", + "territory" + ] + } + }, + "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": [ + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseSubmissions": { + "post": { + "tags": [ + "InAppPurchaseSubmissions" + ], + "operationId": "inAppPurchaseSubmissions_createInstance", + "requestBody": { + "description": "InAppPurchaseSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseSubmissionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseSubmissionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseVersions": { + "post": { + "tags": [ + "InAppPurchaseVersions" + ], + "operationId": "inAppPurchaseVersions_createInstance", + "requestBody": { + "description": "InAppPurchaseVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchaseVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/inAppPurchaseVersions/{id}": { + "get": { + "tags": [ + "InAppPurchaseVersions" + ], + "operationId": "inAppPurchaseVersions_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "style": "form", + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "name", + "locale", + "description", + "version" + ] + } + }, + "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": [ + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[images]", + "in": "query", + "description": "maximum number of related images 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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchases/{id}": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchases_getInstance", + "deprecated": true, + "parameters": [ + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "productId", + "inAppPurchaseType", + "state", + "apps" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases": { + "post": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_createInstance", + "requestBody": { + "description": "InAppPurchase representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single InAppPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/inAppPurchases/{id}": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_getInstance", + "parameters": [ + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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": [ + "name", + "locale", + "description", + "state", + "inAppPurchaseV2" + ] + } + }, + "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", + "proceeds", + "territory", + "equalizations" + ] + } + }, + "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", + "url", + "lastModifiedDate", + "inAppPurchaseV2" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "inAppPurchaseV2" + ] + } + }, + "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": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "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": [ + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "assetToken", + "imageAsset", + "uploadOperations", + "state", + "inAppPurchase" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customerEligibilities", + "productionCodeCount", + "sandboxCodeCount", + "active", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[images]", + "in": "query", + "description": "maximum number of related images returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "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[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[pricePoints]", + "in": "query", + "description": "maximum number of related pricePoints returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form", + "required": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_updateInstance", + "requestBody": { + "description": "InAppPurchase representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/marketplaceSearchDetails": { + "post": { + "tags": [ + "MarketplaceSearchDetails" + ], + "operationId": "marketplaceSearchDetails_createInstance", + "requestBody": { + "description": "MarketplaceSearchDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceSearchDetailCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single MarketplaceSearchDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceSearchDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/marketplaceSearchDetails/{id}": { + "patch": { + "tags": [ + "MarketplaceSearchDetails" + ], + "operationId": "marketplaceSearchDetails_updateInstance", + "requestBody": { + "description": "MarketplaceSearchDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceSearchDetailUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single MarketplaceSearchDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceSearchDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "MarketplaceSearchDetails" + ], + "operationId": "marketplaceSearchDetails_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/marketplaceWebhooks": { + "get": { + "tags": [ + "MarketplaceWebhooks" + ], + "operationId": "marketplaceWebhooks_getCollection", + "deprecated": true, + "parameters": [ + { + "name": "fields[marketplaceWebhooks]", + "in": "query", + "description": "the fields to include for returned resources of type marketplaceWebhooks", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "endpointUrl" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 MarketplaceWebhooks", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceWebhooksResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "MarketplaceWebhooks" + ], + "operationId": "marketplaceWebhooks_createInstance", + "deprecated": true, + "requestBody": { + "description": "MarketplaceWebhook representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceWebhookCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single MarketplaceWebhook", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceWebhookResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/marketplaceWebhooks/{id}": { + "patch": { + "tags": [ + "MarketplaceWebhooks" + ], + "operationId": "marketplaceWebhooks_updateInstance", + "deprecated": true, + "requestBody": { + "description": "MarketplaceWebhook representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceWebhookUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single MarketplaceWebhook", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceWebhookResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "MarketplaceWebhooks" + ], + "operationId": "marketplaceWebhooks_deleteInstance", + "deprecated": true, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/merchantIds": { + "get": { + "tags": [ + "MerchantIds" + ], + "operationId": "merchantIds_getCollection", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[identifier]", + "in": "query", + "description": "filter by attribute 'identifier'", + "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": [ + "name", + "-name", + "identifier", + "-identifier" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[merchantIds]", + "in": "query", + "description": "the fields to include for returned resources of type merchantIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "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": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "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": [ + "certificates" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 MerchantIds", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MerchantIdsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "MerchantIds" + ], + "operationId": "merchantIds_createInstance", + "requestBody": { + "description": "MerchantId representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MerchantIdCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single MerchantId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MerchantIdResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/merchantIds/{id}": { + "get": { + "tags": [ + "MerchantIds" + ], + "operationId": "merchantIds_getInstance", + "parameters": [ + { + "name": "fields[merchantIds]", + "in": "query", + "description": "the fields to include for returned resources of type merchantIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "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": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "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": [ + "certificates" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 MerchantId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MerchantIdResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "MerchantIds" + ], + "operationId": "merchantIds_updateInstance", + "requestBody": { + "description": "MerchantId representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MerchantIdUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single MerchantId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MerchantIdResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "MerchantIds" + ], + "operationId": "merchantIds_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/nominations": { + "get": { + "tags": [ + "Nominations" + ], + "operationId": "nominations_getCollection", + "parameters": [ + { + "name": "filter[type]", + "in": "query", + "description": "filter by attribute 'type'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_LAUNCH", + "APP_ENHANCEMENTS", + "NEW_CONTENT" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[state]", + "in": "query", + "description": "filter by attribute 'state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DRAFT", + "SUBMITTED", + "ARCHIVED" + ] + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[hasInAppEvents]", + "in": "query", + "description": "filter by attribute 'hasInAppEvents'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[relatedApps]", + "in": "query", + "description": "filter by id(s) of related 'relatedApps'", + "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": [ + "lastModifiedDate", + "-lastModifiedDate", + "publishStartDate", + "-publishStartDate", + "publishEndDate", + "-publishEndDate", + "name", + "-name", + "type", + "-type" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[nominations]", + "in": "query", + "description": "the fields to include for returned resources of type nominations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "type", + "description", + "createdDate", + "lastModifiedDate", + "submittedDate", + "state", + "publishStartDate", + "publishEndDate", + "deviceFamilies", + "locales", + "supplementalMaterialsUris", + "hasInAppEvents", + "launchInSelectMarketsFirst", + "notes", + "preOrderEnabled", + "relatedApps", + "createdByActor", + "lastModifiedByActor", + "submittedByActor", + "inAppEvents", + "supportedTerritories" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "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", + "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": [ + "relatedApps", + "createdByActor", + "lastModifiedByActor", + "submittedByActor", + "inAppEvents", + "supportedTerritories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[inAppEvents]", + "in": "query", + "description": "maximum number of related inAppEvents returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[relatedApps]", + "in": "query", + "description": "maximum number of related relatedApps returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[supportedTerritories]", + "in": "query", + "description": "maximum number of related supportedTerritories returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 Nominations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NominationsResponse" + } + }, + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "Nominations" + ], + "operationId": "nominations_createInstance", + "requestBody": { + "description": "Nomination representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NominationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single Nomination", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NominationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/nominations/{id}": { + "get": { + "tags": [ + "Nominations" + ], + "operationId": "nominations_getInstance", + "parameters": [ + { + "name": "fields[nominations]", + "in": "query", + "description": "the fields to include for returned resources of type nominations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "type", + "description", + "createdDate", + "lastModifiedDate", + "submittedDate", + "state", + "publishStartDate", + "publishEndDate", + "deviceFamilies", + "locales", + "supplementalMaterialsUris", + "hasInAppEvents", + "launchInSelectMarketsFirst", + "notes", + "preOrderEnabled", + "relatedApps", + "createdByActor", + "lastModifiedByActor", + "submittedByActor", + "inAppEvents", + "supportedTerritories" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "relatedApps", + "createdByActor", + "lastModifiedByActor", + "submittedByActor", + "inAppEvents", + "supportedTerritories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[inAppEvents]", + "in": "query", + "description": "maximum number of related inAppEvents returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[relatedApps]", + "in": "query", + "description": "maximum number of related relatedApps returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[supportedTerritories]", + "in": "query", + "description": "maximum number of related supportedTerritories returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Nomination", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NominationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Nominations" + ], + "operationId": "nominations_updateInstance", + "requestBody": { + "description": "Nomination representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NominationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Nomination", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NominationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Nominations" + ], + "operationId": "nominations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/passTypeIds": { + "get": { + "tags": [ + "PassTypeIds" + ], + "operationId": "passTypeIds_getCollection", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[identifier]", + "in": "query", + "description": "filter by attribute 'identifier'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "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": [ + "name", + "-name", + "identifier", + "-identifier", + "id", + "-id" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[passTypeIds]", + "in": "query", + "description": "the fields to include for returned resources of type passTypeIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "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": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "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": [ + "certificates" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 PassTypeIds", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PassTypeIdsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "PassTypeIds" + ], + "operationId": "passTypeIds_createInstance", + "requestBody": { + "description": "PassTypeId representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PassTypeIdCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single PassTypeId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PassTypeIdResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/passTypeIds/{id}": { + "get": { + "tags": [ + "PassTypeIds" + ], + "operationId": "passTypeIds_getInstance", + "parameters": [ + { + "name": "fields[passTypeIds]", + "in": "query", + "description": "the fields to include for returned resources of type passTypeIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "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": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "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": [ + "certificates" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PassTypeId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PassTypeIdResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "PassTypeIds" + ], + "operationId": "passTypeIds_updateInstance", + "requestBody": { + "description": "PassTypeId representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PassTypeIdUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single PassTypeId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PassTypeIdResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "PassTypeIds" + ], + "operationId": "passTypeIds_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/preReleaseVersions": { + "get": { + "tags": [ + "PreReleaseVersions" + ], + "operationId": "preReleaseVersions_getCollection", + "parameters": [ + { + "name": "filter[builds.buildAudienceType]", + "in": "query", + "description": "filter by attribute 'builds.buildAudienceType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "INTERNAL_ONLY", + "APP_STORE_ELIGIBLE" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[builds.expired]", + "in": "query", + "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": [ + "PROCESSING", + "FAILED", + "INVALID", + "VALID" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[builds.version]", + "in": "query", + "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": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[version]", + "in": "query", + "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": [ + "version", + "-version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[preReleaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type preReleaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "builds", + "app" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/preReleaseVersions/{id}": { + "get": { + "tags": [ + "PreReleaseVersions" + ], + "operationId": "preReleaseVersions_getInstance", + "parameters": [ + { + "name": "fields[preReleaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type preReleaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "builds", + "app" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PrereleaseVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PrereleaseVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/profiles": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_getCollection", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "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 + }, + { + "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 + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "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": [ + "name", + "-name", + "profileType", + "-profileType", + "profileState", + "-profileState", + "id", + "-id" + ] + } + }, + "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": [ + "name", + "platform", + "profileType", + "profileState", + "profileContent", + "uuid", + "createdDate", + "expirationDate", + "bundleId", + "devices", + "certificates" + ] + } + }, + "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": [ + "name", + "platform", + "identifier", + "seedId", + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "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": [ + "name", + "platform", + "udid", + "deviceClass", + "status", + "model", + "addedDate" + ] + } + }, + "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": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "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", + "devices", + "certificates" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 Profiles", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProfilesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_createInstance", + "requestBody": { + "description": "Profile representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProfileCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single Profile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProfileResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/profiles/{id}": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_getInstance", + "parameters": [ + { + "name": "fields[profiles]", + "in": "query", + "description": "the fields to include for returned resources of type profiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "platform", + "profileType", + "profileState", + "profileContent", + "uuid", + "createdDate", + "expirationDate", + "bundleId", + "devices", + "certificates" + ] + } + }, + "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": [ + "name", + "platform", + "identifier", + "seedId", + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "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": [ + "name", + "platform", + "udid", + "deviceClass", + "status", + "model", + "addedDate" + ] + } + }, + "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": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "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": [ + "bundleId", + "devices", + "certificates" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Profile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProfileResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/promotedPurchases": { + "post": { + "tags": [ + "PromotedPurchases" + ], + "operationId": "promotedPurchases_createInstance", + "requestBody": { + "description": "PromotedPurchase representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchaseCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single PromotedPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/promotedPurchases/{id}": { + "get": { + "tags": [ + "PromotedPurchases" + ], + "operationId": "promotedPurchases_getInstance", + "parameters": [ + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "style": "form", + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "PromotedPurchases" + ], + "operationId": "promotedPurchases_updateInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single PromotedPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "PromotedPurchases" + ], + "operationId": "promotedPurchases_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/reviewSubmissionItems": { + "post": { + "tags": [ + "ReviewSubmissionItems" + ], + "operationId": "reviewSubmissionItems_createInstance", + "requestBody": { + "description": "ReviewSubmissionItem representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionItemCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/reviewSubmissionItems/{id}": { + "patch": { + "tags": [ + "ReviewSubmissionItems" + ], + "operationId": "reviewSubmissionItems_updateInstance", + "requestBody": { + "description": "ReviewSubmissionItem representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionItemUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "ReviewSubmissionItems" + ], + "operationId": "reviewSubmissionItems_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/reviewSubmissions": { + "get": { + "tags": [ + "ReviewSubmissions" + ], + "operationId": "reviewSubmissions_getCollection", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_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": [ + "platform", + "submittedDate", + "state", + "app", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "state", + "appStoreVersion", + "appCustomProductPageVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appEvent", + "appAssetLibraryImage", + "appAssetLibraryVideo", + "backgroundAssetVersion", + "gameCenterAchievementVersion", + "gameCenterActivityVersion", + "gameCenterChallengeVersion", + "gameCenterLeaderboardSetVersion", + "gameCenterLeaderboardVersion", + "inAppPurchaseVersion", + "subscriptionVersion", + "subscriptionGroupVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "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", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "ReviewSubmissions" + ], + "operationId": "reviewSubmissions_createInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/reviewSubmissions/{id}": { + "get": { + "tags": [ + "ReviewSubmissions" + ], + "operationId": "reviewSubmissions_getInstance", + "parameters": [ + { + "name": "fields[reviewSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type reviewSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "submittedDate", + "state", + "app", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "state", + "appStoreVersion", + "appCustomProductPageVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appEvent", + "appAssetLibraryImage", + "appAssetLibraryVideo", + "backgroundAssetVersion", + "gameCenterAchievementVersion", + "gameCenterActivityVersion", + "gameCenterChallengeVersion", + "gameCenterLeaderboardSetVersion", + "gameCenterLeaderboardVersion", + "inAppPurchaseVersion", + "subscriptionVersion", + "subscriptionGroupVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false, + "required": 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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "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": [ + "app", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 ReviewSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "ReviewSubmissions" + ], + "operationId": "reviewSubmissions_updateInstance", + "requestBody": { + "description": "ReviewSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/routingAppCoverages": { + "post": { + "tags": [ + "RoutingAppCoverages" + ], + "operationId": "routingAppCoverages_createInstance", + "requestBody": { + "description": "RoutingAppCoverage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single RoutingAppCoverage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/routingAppCoverages/{id}": { + "get": { + "tags": [ + "RoutingAppCoverages" + ], + "operationId": "routingAppCoverages_getInstance", + "parameters": [ + { + "name": "fields[routingAppCoverages]", + "in": "query", + "description": "the fields to include for returned resources of type routingAppCoverages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 RoutingAppCoverage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "RoutingAppCoverages" + ], + "operationId": "routingAppCoverages_updateInstance", + "requestBody": { + "description": "RoutingAppCoverage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single RoutingAppCoverage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "RoutingAppCoverages" + ], + "operationId": "routingAppCoverages_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/salesReports": { + "get": { + "tags": [ + "SalesReports" + ], + "operationId": "salesReports_getCollection", + "parameters": [ + { + "name": "filter[vendorNumber]", + "in": "query", + "description": "filter by attribute 'vendorNumber'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[reportType]", + "in": "query", + "description": "filter by attribute 'reportType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "SALES", + "PRE_ORDER", + "NEWSSTAND", + "SUBSCRIPTION", + "SUBSCRIPTION_EVENT", + "SUBSCRIBER", + "SUBSCRIPTION_OFFER_CODE_REDEMPTION", + "INSTALLS", + "FIRST_ANNUAL", + "WIN_BACK_ELIGIBILITY" + ] + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[reportSubType]", + "in": "query", + "description": "filter by attribute 'reportSubType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "SUMMARY", + "DETAILED", + "SUMMARY_INSTALL_TYPE", + "SUMMARY_TERRITORY", + "SUMMARY_CHANNEL" + ] + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[frequency]", + "in": "query", + "description": "filter by attribute 'frequency'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DAILY", + "WEEKLY", + "MONTHLY", + "YEARLY" + ] + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[reportDate]", + "in": "query", + "description": "filter by attribute 'reportDate'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/sandboxTesters": { + "get": { + "tags": [ + "SandboxTesters" + ], + "operationId": "sandboxTestersV2_getCollection", + "parameters": [ + { + "name": "fields[sandboxTesters]", + "in": "query", + "description": "the fields to include for returned resources of type sandboxTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "acAccountName", + "territory", + "applePayCompatible", + "interruptPurchases", + "subscriptionRenewalRate" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/sandboxTesters/{id}": { + "patch": { + "tags": [ + "SandboxTesters" + ], + "operationId": "sandboxTestersV2_updateInstance", + "requestBody": { + "description": "SandboxTester representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SandboxTesterV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SandboxTester", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SandboxTesterV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/sandboxTestersClearPurchaseHistoryRequest": { + "post": { + "tags": [ + "SandboxTestersClearPurchaseHistoryRequest" + ], + "operationId": "sandboxTestersClearPurchaseHistoryRequestV2_createInstance", + "requestBody": { + "description": "SandboxTestersClearPurchaseHistoryRequest representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SandboxTestersClearPurchaseHistoryRequestV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/scmGitReferences/{id}": { + "get": { + "tags": [ + "ScmGitReferences" + ], + "operationId": "scmGitReferences_getInstance", + "parameters": [ + { + "name": "fields[scmGitReferences]", + "in": "query", + "description": "the fields to include for returned resources of type scmGitReferences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 ScmGitReference", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmGitReferenceResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmProviders": { + "get": { + "tags": [ + "ScmProviders" + ], + "operationId": "scmProviders_getCollection", + "parameters": [ + { + "name": "fields[scmProviders]", + "in": "query", + "description": "the fields to include for returned resources of type scmProviders", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "scmProviderType", + "url", + "repositories" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/scmProviders/{id}": { + "get": { + "tags": [ + "ScmProviders" + ], + "operationId": "scmProviders_getInstance", + "parameters": [ + { + "name": "fields[scmProviders]", + "in": "query", + "description": "the fields to include for returned resources of type scmProviders", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "scmProviderType", + "url", + "repositories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 ScmProvider", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmProviderResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmPullRequests/{id}": { + "get": { + "tags": [ + "ScmPullRequests" + ], + "operationId": "scmPullRequests_getInstance", + "parameters": [ + { + "name": "fields[scmPullRequests]", + "in": "query", + "description": "the fields to include for returned resources of type scmPullRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "title", + "number", + "webUrl", + "sourceRepositoryOwner", + "sourceRepositoryName", + "sourceBranchName", + "destinationRepositoryOwner", + "destinationRepositoryName", + "destinationBranchName", + "isClosed", + "isCrossRepository", + "repository" + ] + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 ScmPullRequest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmPullRequestResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmRepositories": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories_getCollection", + "parameters": [ + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[scmProviders]", + "in": "query", + "description": "the fields to include for returned resources of type scmProviders", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "scmProviderType", + "url", + "repositories" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "scmProvider", + "defaultBranch" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/scmRepositories/{id}": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories_getInstance", + "parameters": [ + { + "name": "fields[scmRepositories]", + "in": "query", + "description": "the fields to include for returned resources of type scmRepositories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[scmProviders]", + "in": "query", + "description": "the fields to include for returned resources of type scmProviders", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "scmProviderType", + "url", + "repositories" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "scmProvider", + "defaultBranch" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionAppStoreReviewScreenshots": { + "post": { + "tags": [ + "SubscriptionAppStoreReviewScreenshots" + ], + "operationId": "subscriptionAppStoreReviewScreenshots_createInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionAppStoreReviewScreenshots/{id}": { + "get": { + "tags": [ + "SubscriptionAppStoreReviewScreenshots" + ], + "operationId": "subscriptionAppStoreReviewScreenshots_getInstance", + "parameters": [ + { + "name": "fields[subscriptionAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "subscription" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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": [ + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionAppStoreReviewScreenshots" + ], + "operationId": "subscriptionAppStoreReviewScreenshots_updateInstance", + "requestBody": { + "description": "SubscriptionAppStoreReviewScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionAppStoreReviewScreenshots" + ], + "operationId": "subscriptionAppStoreReviewScreenshots_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionAvailabilities": { + "post": { + "tags": [ + "SubscriptionAvailabilities" + ], + "operationId": "subscriptionAvailabilities_createInstance", + "deprecated": true, + "requestBody": { + "description": "SubscriptionAvailability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAvailabilityCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAvailabilityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionAvailabilities/{id}": { + "get": { + "tags": [ + "SubscriptionAvailabilities" + ], + "operationId": "subscriptionAvailabilities_getInstance", + "deprecated": true, + "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" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableTerritories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[availableTerritories]", + "in": "query", + "description": "maximum number of related availableTerritories 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGracePeriods/{id}": { + "get": { + "tags": [ + "SubscriptionGracePeriods" + ], + "operationId": "subscriptionGracePeriods_getInstance", + "parameters": [ + { + "name": "fields[subscriptionGracePeriods]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGracePeriods", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "optIn", + "sandboxOptIn", + "duration", + "renewalType" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionGracePeriod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionGracePeriods" + ], + "operationId": "subscriptionGracePeriods_updateInstance", + "requestBody": { + "description": "SubscriptionGracePeriod representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGracePeriodUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionGracePeriod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/subscriptionGroupLocalizations": { + "post": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizationsV2_createInstance", + "requestBody": { + "description": "SubscriptionGroupLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionGroupLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/subscriptionGroupLocalizations/{id}": { + "get": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizationsV2_getInstance", + "parameters": [ + { + "name": "fields[subscriptionGroupLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customAppName", + "locale", + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroupVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscriptionGroup", + "localizations" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionGroupLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizationsV2_updateInstance", + "requestBody": { + "description": "SubscriptionGroupLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionGroupLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizationsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroupLocalizations": { + "post": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizations_createInstance", + "requestBody": { + "description": "SubscriptionGroupLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionGroupLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionGroupLocalizations/{id}": { + "get": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizations_getInstance", + "parameters": [ + { + "name": "fields[subscriptionGroupLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customAppName", + "locale", + "state", + "subscriptionGroup" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroups]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "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": [ + "subscriptionGroup" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionGroupLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizations_updateInstance", + "requestBody": { + "description": "SubscriptionGroupLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionGroupLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroupSubmissions": { + "post": { + "tags": [ + "SubscriptionGroupSubmissions" + ], + "operationId": "subscriptionGroupSubmissions_createInstance", + "requestBody": { + "description": "SubscriptionGroupSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupSubmissionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionGroupVersions": { + "post": { + "tags": [ + "SubscriptionGroupVersions" + ], + "operationId": "subscriptionGroupVersions_createInstance", + "requestBody": { + "description": "SubscriptionGroupVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionGroupVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionGroupVersions/{id}": { + "get": { + "tags": [ + "SubscriptionGroupVersions" + ], + "operationId": "subscriptionGroupVersions_getInstance", + "parameters": [ + { + "name": "fields[subscriptionGroupVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscriptionGroup", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroups]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroupLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customAppName", + "locale", + "version" + ] + } + }, + "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": [ + "subscriptionGroup", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionGroupVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroups": { + "post": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_createInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionGroups/{id}": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_getInstance", + "parameters": [ + { + "name": "fields[subscriptionGroups]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroupLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customAppName", + "locale", + "state", + "subscriptionGroup" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroupVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscriptionGroup", + "localizations" + ] + } + }, + "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": [ + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "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]", + "in": "query", + "description": "maximum number of related subscriptions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionGroup", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_updateInstance", + "requestBody": { + "description": "SubscriptionGroup representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionImages": { + "post": { + "tags": [ + "SubscriptionImages" + ], + "operationId": "subscriptionImages_createInstance", + "requestBody": { + "description": "SubscriptionImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionImages/{id}": { + "get": { + "tags": [ + "SubscriptionImages" + ], + "operationId": "subscriptionImages_getInstance", + "parameters": [ + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "assetToken", + "imageAsset", + "uploadOperations", + "state", + "subscription" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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": [ + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionImages" + ], + "operationId": "subscriptionImages_updateInstance", + "requestBody": { + "description": "SubscriptionImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionImages" + ], + "operationId": "subscriptionImages_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/subscriptionImages": { + "post": { + "tags": [ + "SubscriptionImages" + ], + "operationId": "subscriptionImagesV2_createInstance", + "requestBody": { + "description": "SubscriptionImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/subscriptionImages/{id}": { + "get": { + "tags": [ + "SubscriptionImages" + ], + "operationId": "subscriptionImagesV2_getInstance", + "parameters": [ + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionImages" + ], + "operationId": "subscriptionImagesV2_updateInstance", + "requestBody": { + "description": "SubscriptionImage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionImages" + ], + "operationId": "subscriptionImagesV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionIntroductoryOffers": { + "post": { + "tags": [ + "SubscriptionIntroductoryOffers" + ], + "operationId": "subscriptionIntroductoryOffers_createInstance", + "requestBody": { + "description": "SubscriptionIntroductoryOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOfferCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionIntroductoryOffers/{id}": { + "patch": { + "tags": [ + "SubscriptionIntroductoryOffers" + ], + "operationId": "subscriptionIntroductoryOffers_updateInstance", + "requestBody": { + "description": "SubscriptionIntroductoryOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOfferUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionIntroductoryOffers" + ], + "operationId": "subscriptionIntroductoryOffers_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/subscriptionLocalizations": { + "post": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizationsV2_createInstance", + "requestBody": { + "description": "SubscriptionLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/subscriptionLocalizations/{id}": { + "get": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizationsV2_getInstance", + "parameters": [ + { + "name": "fields[subscriptionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscription", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizationsV2_updateInstance", + "requestBody": { + "description": "SubscriptionLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationV2UpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizationsV2_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionLocalizations": { + "post": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizations_createInstance", + "requestBody": { + "description": "SubscriptionLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionLocalizations/{id}": { + "get": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizations_getInstance", + "parameters": [ + { + "name": "fields[subscriptionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "state", + "subscription" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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": [ + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizations_updateInstance", + "requestBody": { + "description": "SubscriptionLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodeCustomCodes": { + "post": { + "tags": [ + "SubscriptionOfferCodeCustomCodes" + ], + "operationId": "subscriptionOfferCodeCustomCodes_createInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionOfferCodeCustomCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionOfferCodeCustomCodes/{id}": { + "get": { + "tags": [ + "SubscriptionOfferCodeCustomCodes" + ], + "operationId": "subscriptionOfferCodeCustomCodes_getInstance", + "parameters": [ + { + "name": "fields[subscriptionOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCode", + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "offerCode" + ] + } + }, + "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": [ + "name", + "customerEligibilities", + "offerEligibility", + "duration", + "offerMode", + "numberOfPeriods", + "totalNumberOfCodes", + "productionCodeCount", + "sandboxCodeCount", + "active", + "autoRenewEnabled", + "targetSubscriptionPlanType", + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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": [ + "offerCode" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionOfferCodeCustomCodes" + ], + "operationId": "subscriptionOfferCodeCustomCodes_updateInstance", + "requestBody": { + "description": "SubscriptionOfferCodeCustomCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionOfferCodeCustomCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodeOneTimeUseCodes": { + "post": { + "tags": [ + "SubscriptionOfferCodeOneTimeUseCodes" + ], + "operationId": "subscriptionOfferCodeOneTimeUseCodes_createInstance", + "requestBody": { + "description": "SubscriptionOfferCodeOneTimeUseCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionOfferCodeOneTimeUseCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionOfferCodeOneTimeUseCodes/{id}": { + "get": { + "tags": [ + "SubscriptionOfferCodeOneTimeUseCodes" + ], + "operationId": "subscriptionOfferCodeOneTimeUseCodes_getInstance", + "parameters": [ + { + "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "environment", + "offerCode", + "values" + ] + } + }, + "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": [ + "name", + "customerEligibilities", + "offerEligibility", + "duration", + "offerMode", + "numberOfPeriods", + "totalNumberOfCodes", + "productionCodeCount", + "sandboxCodeCount", + "active", + "autoRenewEnabled", + "targetSubscriptionPlanType", + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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": [ + "offerCode" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionOfferCodeOneTimeUseCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionOfferCodeOneTimeUseCodes" + ], + "operationId": "subscriptionOfferCodeOneTimeUseCodes_updateInstance", + "requestBody": { + "description": "SubscriptionOfferCodeOneTimeUseCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionOfferCodeOneTimeUseCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodes": { + "post": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_createInstance", + "requestBody": { + "description": "SubscriptionOfferCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionOfferCodes/{id}": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_getInstance", + "parameters": [ + { + "name": "fields[subscriptionOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customerEligibilities", + "offerEligibility", + "duration", + "offerMode", + "numberOfPeriods", + "totalNumberOfCodes", + "productionCodeCount", + "sandboxCodeCount", + "active", + "autoRenewEnabled", + "targetSubscriptionPlanType", + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "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": [ + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "environment", + "offerCode", + "values" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCode", + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "offerCode" + ] + } + }, + "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": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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": [ + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_updateInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPlanAvailabilities": { + "post": { + "tags": [ + "SubscriptionPlanAvailabilities" + ], + "operationId": "subscriptionPlanAvailabilities_createInstance", + "requestBody": { + "description": "SubscriptionPlanAvailability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPlanAvailabilityCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionPlanAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPlanAvailabilityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionPlanAvailabilities/{id}": { + "get": { + "tags": [ + "SubscriptionPlanAvailabilities" + ], + "operationId": "subscriptionPlanAvailabilities_getInstance", + "parameters": [ + { + "name": "fields[subscriptionPlanAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPlanAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "planType", + "availableTerritories" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableTerritories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[availableTerritories]", + "in": "query", + "description": "maximum number of related availableTerritories 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionPlanAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPlanAvailabilityResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionPlanAvailabilities" + ], + "operationId": "subscriptionPlanAvailabilities_updateInstance", + "requestBody": { + "description": "SubscriptionPlanAvailability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPlanAvailabilityUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionPlanAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPlanAvailabilityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPricePoints/{id}": { + "get": { + "tags": [ + "SubscriptionPricePoints" + ], + "operationId": "subscriptionPricePoints_getInstance", + "parameters": [ + { + "name": "fields[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionPricePoint", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPricePointResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPrices": { + "post": { + "tags": [ + "SubscriptionPrices" + ], + "operationId": "subscriptionPrices_createInstance", + "requestBody": { + "description": "SubscriptionPrice representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPriceCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionPrice", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPriceResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionPrices/{id}": { + "delete": { + "tags": [ + "SubscriptionPrices" + ], + "operationId": "subscriptionPrices_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPromotionalOffers": { + "post": { + "tags": [ + "SubscriptionPromotionalOffers" + ], + "operationId": "subscriptionPromotionalOffers_createInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionPromotionalOffers/{id}": { + "get": { + "tags": [ + "SubscriptionPromotionalOffers" + ], + "operationId": "subscriptionPromotionalOffers_getInstance", + "parameters": [ + { + "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", + "targetSubscriptionPlanType", + "subscription", + "prices" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionPromotionalOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPromotionalOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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": [ + "subscription", + "prices" + ] + } + }, + "style": "form", + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionPromotionalOffer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionPromotionalOffers" + ], + "operationId": "subscriptionPromotionalOffers_updateInstance", + "requestBody": { + "description": "SubscriptionPromotionalOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "SubscriptionPromotionalOffers" + ], + "operationId": "subscriptionPromotionalOffers_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionSubmissions": { + "post": { + "tags": [ + "SubscriptionSubmissions" + ], + "operationId": "subscriptionSubmissions_createInstance", + "requestBody": { + "description": "SubscriptionSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionSubmissionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionSubmissionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionVersions": { + "post": { + "tags": [ + "SubscriptionVersions" + ], + "operationId": "subscriptionVersions_createInstance", + "requestBody": { + "description": "SubscriptionVersion representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionVersionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionVersionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionVersions/{id}": { + "get": { + "tags": [ + "SubscriptionVersions" + ], + "operationId": "subscriptionVersions_getInstance", + "parameters": [ + { + "name": "fields[subscriptionVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscription", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "name", + "locale", + "description", + "version" + ] + } + }, + "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": [ + "subscription", + "image", + "images", + "localizations" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[images]", + "in": "query", + "description": "maximum number of related images 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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_createInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptions/{id}": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_getInstance", + "parameters": [ + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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": [ + "name", + "locale", + "description", + "state", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionGroups]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "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": [ + "startDate", + "endDate", + "duration", + "offerMode", + "numberOfPeriods", + "targetSubscriptionPlanType", + "subscription", + "territory", + "subscriptionPricePoint" + ] + } + }, + "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", + "targetSubscriptionPlanType", + "subscription", + "prices" + ] + } + }, + "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": [ + "name", + "customerEligibilities", + "offerEligibility", + "duration", + "offerMode", + "numberOfPeriods", + "totalNumberOfCodes", + "productionCodeCount", + "sandboxCodeCount", + "active", + "autoRenewEnabled", + "targetSubscriptionPlanType", + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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": [ + "startDate", + "preserved", + "planType", + "territory", + "subscriptionPricePoint" + ] + } + }, + "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": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "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" + ] + } + }, + "style": "form", + "explode": false, + "required": false, + "deprecated": true + }, + { + "name": "fields[winBackOffers]", + "in": "query", + "description": "the fields to include for returned resources of type winBackOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "offerId", + "duration", + "offerMode", + "periodCount", + "customerEligibilityPaidSubscriptionDurationInMonths", + "customerEligibilityTimeSinceLastSubscribedInMonths", + "customerEligibilityWaitBetweenOffersInMonths", + "startDate", + "endDate", + "priority", + "promotionIntent", + "targetSubscriptionPlanType", + "prices" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "assetToken", + "imageAsset", + "uploadOperations", + "state", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionPlanAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPlanAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "planType", + "availableTerritories" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscription", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[images]", + "in": "query", + "description": "maximum number of related images returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "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[planAvailabilities]", + "in": "query", + "description": "maximum number of related planAvailabilities 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 + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[winBackOffers]", + "in": "query", + "description": "maximum number of related winBackOffers 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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Subscription", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_updateInstance", + "requestBody": { + "description": "Subscription representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/territories": { + "get": { + "tags": [ + "Territories" + ], + "operationId": "territories_getCollection", + "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, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized 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 Territories", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoriesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/territoryAvailabilities/{id}": { + "patch": { + "tags": [ + "TerritoryAvailabilities" + ], + "operationId": "territoryAvailabilities_updateInstance", + "requestBody": { + "description": "TerritoryAvailability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryAvailabilityUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single TerritoryAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryAvailabilityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/userInvitations": { + "get": { + "tags": [ + "UserInvitations" + ], + "operationId": "userInvitations_getCollection", + "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]", + "in": "query", + "description": "filter by attribute 'roles'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ADMIN", + "FINANCE", + "ACCOUNT_HOLDER", + "SALES", + "MARKETING", + "APP_MANAGER", + "DEVELOPER", + "ACCESS_TO_REPORTS", + "CUSTOMER_SUPPORT", + "CREATE_APPS", + "CLOUD_MANAGED_DEVELOPER_ID", + "CLOUD_MANAGED_APP_DISTRIBUTION", + "GENERATE_INDIVIDUAL_KEYS" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[visibleApps]", + "in": "query", + "description": "filter by id(s) of related 'visibleApps'", + "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": [ + "email", + "-email", + "lastName", + "-lastName" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[userInvitations]", + "in": "query", + "description": "the fields to include for returned resources of type userInvitations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "email", + "firstName", + "lastName", + "expirationDate", + "roles", + "allAppsVisible", + "provisioningAllowed", + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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 UserInvitations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserInvitationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "UserInvitations" + ], + "operationId": "userInvitations_createInstance", + "requestBody": { + "description": "UserInvitation representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserInvitationCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single UserInvitation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserInvitationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/userInvitations/{id}": { + "get": { + "tags": [ + "UserInvitations" + ], + "operationId": "userInvitations_getInstance", + "parameters": [ + { + "name": "fields[userInvitations]", + "in": "query", + "description": "the fields to include for returned resources of type userInvitations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "email", + "firstName", + "lastName", + "expirationDate", + "roles", + "allAppsVisible", + "provisioningAllowed", + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 UserInvitation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserInvitationResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "UserInvitations" + ], + "operationId": "userInvitations_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/users": { + "get": { + "tags": [ + "Users" + ], + "operationId": "users_getCollection", + "parameters": [ + { + "name": "filter[username]", + "in": "query", + "description": "filter by attribute 'username'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[roles]", + "in": "query", + "description": "filter by attribute 'roles'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ADMIN", + "FINANCE", + "ACCOUNT_HOLDER", + "SALES", + "MARKETING", + "APP_MANAGER", + "DEVELOPER", + "ACCESS_TO_REPORTS", + "CUSTOMER_SUPPORT", + "CREATE_APPS", + "CLOUD_MANAGED_DEVELOPER_ID", + "CLOUD_MANAGED_APP_DISTRIBUTION", + "GENERATE_INDIVIDUAL_KEYS" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[visibleApps]", + "in": "query", + "description": "filter by id(s) of related 'visibleApps'", + "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": [ + "username", + "-username", + "lastName", + "-lastName" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[users]", + "in": "query", + "description": "the fields to include for returned resources of type users", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "username", + "firstName", + "lastName", + "roles", + "allAppsVisible", + "provisioningAllowed", + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/users/{id}": { + "get": { + "tags": [ + "Users" + ], + "operationId": "users_getInstance", + "parameters": [ + { + "name": "fields[users]", + "in": "query", + "description": "the fields to include for returned resources of type users", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "username", + "firstName", + "lastName", + "roles", + "allAppsVisible", + "provisioningAllowed", + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Users" + ], + "operationId": "users_updateInstance", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Users" + ], + "operationId": "users_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/webhookDeliveries": { + "post": { + "tags": [ + "WebhookDeliveries" + ], + "operationId": "webhookDeliveries_createInstance", + "requestBody": { + "description": "WebhookDelivery representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookDeliveryCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single WebhookDelivery", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookDeliveryResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/webhookPings": { + "post": { + "tags": [ + "WebhookPings" + ], + "operationId": "webhookPings_createInstance", + "requestBody": { + "description": "WebhookPing representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookPingCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single WebhookPing", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookPingResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/webhooks": { + "post": { + "tags": [ + "Webhooks" + ], + "operationId": "webhooks_createInstance", + "requestBody": { + "description": "Webhook representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single Webhook", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/webhooks/{id}": { + "get": { + "tags": [ + "Webhooks" + ], + "operationId": "webhooks_getInstance", + "parameters": [ + { + "name": "fields[webhooks]", + "in": "query", + "description": "the fields to include for returned resources of type webhooks", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "enabled", + "eventTypes", + "name", + "url", + "app", + "deliveries" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "app" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Webhook", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Webhooks" + ], + "operationId": "webhooks_updateInstance", + "requestBody": { + "description": "Webhook representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Webhook", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Webhooks" + ], + "operationId": "webhooks_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/winBackOffers": { + "post": { + "tags": [ + "WinBackOffers" + ], + "operationId": "winBackOffers_createInstance", + "requestBody": { + "description": "WinBackOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WinBackOfferCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single WinBackOffer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WinBackOfferResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/winBackOffers/{id}": { + "get": { + "tags": [ + "WinBackOffers" + ], + "operationId": "winBackOffers_getInstance", + "parameters": [ + { + "name": "fields[winBackOffers]", + "in": "query", + "description": "the fields to include for returned resources of type winBackOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "offerId", + "duration", + "offerMode", + "periodCount", + "customerEligibilityPaidSubscriptionDurationInMonths", + "customerEligibilityTimeSinceLastSubscribedInMonths", + "customerEligibilityWaitBetweenOffersInMonths", + "startDate", + "endDate", + "priority", + "promotionIntent", + "targetSubscriptionPlanType", + "prices" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[winBackOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type winBackOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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": [ + "prices" + ] + } + }, + "style": "form", + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 WinBackOffer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WinBackOfferResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "WinBackOffers" + ], + "operationId": "winBackOffers_updateInstance", + "requestBody": { + "description": "WinBackOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WinBackOfferUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single WinBackOffer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WinBackOfferResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "WinBackOffers" + ], + "operationId": "winBackOffers_deleteInstance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackageVersions/{id}/relationships/deltas": { + "get": { + "tags": [ + "AlternativeDistributionPackageVersions" + ], + "operationId": "alternativeDistributionPackageVersions_deltas_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AlternativeDistributionPackageVersionDeltasLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackageVersions/{id}/deltas": { + "get": { + "tags": [ + "AlternativeDistributionPackageVersions" + ], + "operationId": "alternativeDistributionPackageVersions_deltas_getToManyRelated", + "parameters": [ + { + "name": "fields[alternativeDistributionPackageDeltas]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageDeltas", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "alternativeDistributionKeyBlob", + "fileChecksum" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionPackageDeltas", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageDeltasResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackageVersions/{id}/relationships/variants": { + "get": { + "tags": [ + "AlternativeDistributionPackageVersions" + ], + "operationId": "alternativeDistributionPackageVersions_variants_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AlternativeDistributionPackageVersionVariantsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackageVersions/{id}/variants": { + "get": { + "tags": [ + "AlternativeDistributionPackageVersions" + ], + "operationId": "alternativeDistributionPackageVersions_variants_getToManyRelated", + "parameters": [ + { + "name": "fields[alternativeDistributionPackageVariants]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageVariants", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "alternativeDistributionKeyBlob", + "fileChecksum" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionPackageVariants", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVariantsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackages/{id}/relationships/versions": { + "get": { + "tags": [ + "AlternativeDistributionPackages" + ], + "operationId": "alternativeDistributionPackages_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AlternativeDistributionPackageVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/alternativeDistributionPackages/{id}/versions": { + "get": { + "tags": [ + "AlternativeDistributionPackages" + ], + "operationId": "alternativeDistributionPackages_versions_getToManyRelated", + "parameters": [ + { + "name": "filter[state]", + "in": "query", + "description": "filter by attribute 'state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "COMPLETED", + "REPLACED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "version", + "fileChecksum", + "state", + "variants", + "deltas", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackageVariants]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageVariants", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "alternativeDistributionKeyBlob", + "fileChecksum" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackageDeltas]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageDeltas", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "alternativeDistributionKeyBlob", + "fileChecksum" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "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": [ + "variants", + "deltas", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[variants]", + "in": "query", + "description": "maximum number of related variants returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[deltas]", + "in": "query", + "description": "maximum number of related deltas returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionPackageVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReportInstances/{id}/relationships/segments": { + "get": { + "tags": [ + "AnalyticsReportInstances" + ], + "operationId": "analyticsReportInstances_segments_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AnalyticsReportInstanceSegmentsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReportInstances/{id}/segments": { + "get": { + "tags": [ + "AnalyticsReportInstances" + ], + "operationId": "analyticsReportInstances_segments_getToManyRelated", + "parameters": [ + { + "name": "fields[analyticsReportSegments]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportSegments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "checksum", + "sizeInBytes", + "url" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AnalyticsReportSegments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportSegmentsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReportRequests/{id}/relationships/reports": { + "get": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests_reports_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AnalyticsReportRequestReportsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReportRequests/{id}/reports": { + "get": { + "tags": [ + "AnalyticsReportRequests" + ], + "operationId": "analyticsReportRequests_reports_getToManyRelated", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[category]", + "in": "query", + "description": "filter by attribute 'category'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_USAGE", + "APP_STORE_ENGAGEMENT", + "COMMERCE", + "FRAMEWORK_USAGE", + "PERFORMANCE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[analyticsReports]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReports", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "category", + "instances" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AnalyticsReports", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReports/{id}/relationships/instances": { + "get": { + "tags": [ + "AnalyticsReports" + ], + "operationId": "analyticsReports_instances_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AnalyticsReportInstancesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/analyticsReports/{id}/instances": { + "get": { + "tags": [ + "AnalyticsReports" + ], + "operationId": "analyticsReports_instances_getToManyRelated", + "parameters": [ + { + "name": "filter[granularity]", + "in": "query", + "description": "filter by attribute 'granularity'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DAILY", + "WEEKLY", + "MONTHLY" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[processingDate]", + "in": "query", + "description": "filter by attribute 'processingDate'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[analyticsReportInstances]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportInstances", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "granularity", + "processingDate", + "segments" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AnalyticsReportInstances", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportInstancesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraries/{id}/relationships/images": { + "get": { + "tags": [ + "AppAssetLibraries" + ], + "operationId": "appAssetLibraries_images_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAssetLibraryImagesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraries/{id}/images": { + "get": { + "tags": [ + "AppAssetLibraries" + ], + "operationId": "appAssetLibraries_images_getToManyRelated", + "parameters": [ + { + "name": "filter[category]", + "in": "query", + "description": "filter by attribute 'category'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "CREATIVE_ASSETS", + "APP_SCREENSHOTS_AND_PREVIEWS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[state]", + "in": "query", + "description": "filter by attribute 'state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "UPLOAD_COMPLETE", + "FAILED", + "COMPLETE", + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "ARCHIVED" + ] + } + }, + "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[specId]", + "in": "query", + "description": "filter by attribute 'specId'", + "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": [ + "createdDate", + "-createdDate", + "lastModifiedDate", + "-lastModifiedDate", + "referenceName", + "-referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryImages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryImagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraries/{id}/relationships/videos": { + "get": { + "tags": [ + "AppAssetLibraries" + ], + "operationId": "appAssetLibraries_videos_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAssetLibraryVideosLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraries/{id}/videos": { + "get": { + "tags": [ + "AppAssetLibraries" + ], + "operationId": "appAssetLibraries_videos_getToManyRelated", + "parameters": [ + { + "name": "filter[category]", + "in": "query", + "description": "filter by attribute 'category'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "CREATIVE_ASSETS", + "APP_SCREENSHOTS_AND_PREVIEWS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[state]", + "in": "query", + "description": "filter by attribute 'state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "UPLOAD_COMPLETE", + "FAILED", + "COMPLETE", + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "ARCHIVED" + ] + } + }, + "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[specId]", + "in": "query", + "description": "filter by attribute 'specId'", + "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": [ + "createdDate", + "-createdDate", + "lastModifiedDate", + "-lastModifiedDate", + "referenceName", + "-referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryVideos", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryVideosResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraryImages/{id}/relationships/placements": { + "get": { + "tags": [ + "AppAssetLibraryImages" + ], + "operationId": "appAssetLibraryImages_placements_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAssetLibraryImagePlacementsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraryImages/{id}/placements": { + "get": { + "tags": [ + "AppAssetLibraryImages" + ], + "operationId": "appAssetLibraryImages_placements_getToManyRelated", + "parameters": [ + { + "name": "filter[placementType]", + "in": "query", + "description": "filter by attribute 'placementType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_SCREENSHOT", + "IMESSAGE_APP_SCREENSHOT", + "APP_PREVIEW", + "PRODUCT_PAGE_HEADER_ASSET", + "APP_STORE_SEARCH_RESULTS_ASSET", + "SEARCH_RESULTS_ADS_ASSET", + "TODAY_TAB_ADS_ASSET", + "EVENT_CARD_ASSET", + "EVENT_DETAILS_PAGE_ASSET", + "RETENTION_MESSAGE_ASSET" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[placementGroup]", + "in": "query", + "description": "filter by attribute 'placementGroup'", + "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": [ + "ASSET_PROCESSING", + "FAILED", + "PARENT_PREPARE_FOR_SUBMISSION", + "PARENT_READY_FOR_REVIEW", + "PARENT_WAITING_FOR_REVIEW", + "PARENT_IN_REVIEW", + "PARENT_APPROVED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[video]", + "in": "query", + "description": "filter by id(s) of related 'video'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appEventLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appEventLocalization'", + "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": "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": "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": [ + "createdDate", + "-createdDate", + "lastModifiedDate", + "-lastModifiedDate", + "placementGroupPosition", + "-placementGroupPosition" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryPlacements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraryVideos/{id}/relationships/placements": { + "get": { + "tags": [ + "AppAssetLibraryVideos" + ], + "operationId": "appAssetLibraryVideos_placements_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAssetLibraryVideoPlacementsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appAssetLibraryVideos/{id}/placements": { + "get": { + "tags": [ + "AppAssetLibraryVideos" + ], + "operationId": "appAssetLibraryVideos_placements_getToManyRelated", + "parameters": [ + { + "name": "filter[placementType]", + "in": "query", + "description": "filter by attribute 'placementType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_SCREENSHOT", + "IMESSAGE_APP_SCREENSHOT", + "APP_PREVIEW", + "PRODUCT_PAGE_HEADER_ASSET", + "APP_STORE_SEARCH_RESULTS_ASSET", + "SEARCH_RESULTS_ADS_ASSET", + "TODAY_TAB_ADS_ASSET", + "EVENT_CARD_ASSET", + "EVENT_DETAILS_PAGE_ASSET", + "RETENTION_MESSAGE_ASSET" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[placementGroup]", + "in": "query", + "description": "filter by attribute 'placementGroup'", + "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": [ + "ASSET_PROCESSING", + "FAILED", + "PARENT_PREPARE_FOR_SUBMISSION", + "PARENT_READY_FOR_REVIEW", + "PARENT_WAITING_FOR_REVIEW", + "PARENT_IN_REVIEW", + "PARENT_APPROVED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[image]", + "in": "query", + "description": "filter by id(s) of related 'image'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appEventLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appEventLocalization'", + "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": "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": "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": [ + "createdDate", + "-createdDate", + "lastModifiedDate", + "-lastModifiedDate", + "placementGroupPosition", + "-placementGroupPosition" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryPlacements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/appAvailabilities/{id}/relationships/territoryAvailabilities": { + "get": { + "tags": [ + "AppAvailabilities" + ], + "operationId": "appAvailabilitiesV2_territoryAvailabilities_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAvailabilityV2TerritoryAvailabilitiesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/appAvailabilities/{id}/territoryAvailabilities": { + "get": { + "tags": [ + "AppAvailabilities" + ], + "operationId": "appAvailabilitiesV2_territoryAvailabilities_getToManyRelated", + "parameters": [ + { + "name": "fields[territoryAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type territoryAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "available", + "releaseDate", + "preOrderEnabled", + "preOrderPublishDate", + "contentStatuses", + "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": [ + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 TerritoryAvailabilities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryAvailabilitiesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/parent": { + "get": { + "tags": [ + "AppCategories" + ], + "operationId": "appCategories_parent_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCategoryParentLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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}/parent": { + "get": { + "tags": [ + "AppCategories" + ], + "operationId": "appCategories_parent_getToOneRelated", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCategoryWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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": { + "get": { + "tags": [ + "AppCategories" + ], + "operationId": "appCategories_subcategories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCategorySubcategoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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}/subcategories": { + "get": { + "tags": [ + "AppCategories" + ], + "operationId": "appCategories_subcategories_getToManyRelated", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppCategories with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCategoriesWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperienceLocalizations/{id}/relationships/appClipHeaderImage": { + "get": { + "tags": [ + "AppClipDefaultExperienceLocalizations" + ], + "operationId": "appClipDefaultExperienceLocalizations_appClipHeaderImage_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppClipDefaultExperienceLocalizationAppClipHeaderImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperienceLocalizations/{id}/appClipHeaderImage": { + "get": { + "tags": [ + "AppClipDefaultExperienceLocalizations" + ], + "operationId": "appClipDefaultExperienceLocalizations_appClipHeaderImage_getToOneRelated", + "parameters": [ + { + "name": "fields[appClipHeaderImages]", + "in": "query", + "description": "the fields to include for returned resources of type appClipHeaderImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "appClipDefaultExperienceLocalization" + ] + } + }, + "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": [ + "locale", + "subtitle", + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appClipDefaultExperienceLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipHeaderImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipHeaderImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperiences/{id}/relationships/appClipAppStoreReviewDetail": { + "get": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_appClipAppStoreReviewDetail_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppClipDefaultExperienceAppClipAppStoreReviewDetailLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperiences/{id}/appClipAppStoreReviewDetail": { + "get": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_appClipAppStoreReviewDetail_getToOneRelated", + "parameters": [ + { + "name": "fields[appClipAppStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "invocationUrls", + "appClipDefaultExperience" + ] + } + }, + "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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appClipDefaultExperience" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipAppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetailResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperiences/{id}/relationships/appClipDefaultExperienceLocalizations": { + "get": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_appClipDefaultExperienceLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppClipDefaultExperienceAppClipDefaultExperienceLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperiences/{id}/appClipDefaultExperienceLocalizations": { + "get": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_appClipDefaultExperienceLocalizations_getToManyRelated", + "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "locale", + "subtitle", + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClipHeaderImages]", + "in": "query", + "description": "the fields to include for returned resources of type appClipHeaderImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "appClipDefaultExperienceLocalization" + ] + } + }, + "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": [ + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipDefaultExperienceLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperiences/{id}/relationships/releaseWithAppStoreVersion": { + "get": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_releaseWithAppStoreVersion_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_releaseWithAppStoreVersion_updateToOneRelationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClipDefaultExperiences/{id}/releaseWithAppStoreVersion": { + "get": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences_releaseWithAppStoreVersion_getToOneRelated", + "parameters": [ + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "phasedReleaseState", + "startDate", + "totalPauseDuration", + "currentDayNumber" + ] + } + }, + "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": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "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": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "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[appClipDefaultExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "alternativeDistributionPackage" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClips/{id}/relationships/appClipAdvancedExperiences": { + "get": { + "tags": [ + "AppClips" + ], + "operationId": "appClips_appClipAdvancedExperiences_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppClipAppClipAdvancedExperiencesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClips/{id}/appClipAdvancedExperiences": { + "get": { + "tags": [ + "AppClips" + ], + "operationId": "appClips_appClipAdvancedExperiences_getToManyRelated", + "parameters": [ + { + "name": "filter[status]", + "in": "query", + "description": "filter by attribute 'status'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "RECEIVED", + "DEACTIVATED", + "APP_TRANSFER_IN_PROGRESS" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[action]", + "in": "query", + "description": "filter by attribute 'action'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "OPEN", + "VIEW", + "PLAY" + ] + } + }, + "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": [ + "link", + "version", + "status", + "action", + "isPoweredBy", + "place", + "placeStatus", + "businessCategory", + "defaultLanguage", + "appClip", + "headerImage", + "localizations" + ] + } + }, + "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": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClipAdvancedExperienceImages]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAdvancedExperienceImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClipAdvancedExperienceLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAdvancedExperienceLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "language", + "title", + "subtitle" + ] + } + }, + "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": [ + "appClip", + "headerImage", + "localizations" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipAdvancedExperiences", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipAdvancedExperiencesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClips/{id}/relationships/appClipDefaultExperiences": { + "get": { + "tags": [ + "AppClips" + ], + "operationId": "appClips_appClipDefaultExperiences_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppClipAppClipDefaultExperiencesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appClips/{id}/appClipDefaultExperiences": { + "get": { + "tags": [ + "AppClips" + ], + "operationId": "appClips_appClipDefaultExperiences_getToManyRelated", + "parameters": [ + { + "name": "exists[releaseWithAppStoreVersion]", + "in": "query", + "description": "filter by existence or non-existence of related 'releaseWithAppStoreVersion'", + "schema": { + "type": "boolean" + }, + "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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "locale", + "subtitle", + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClipAppStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "invocationUrls", + "appClipDefaultExperience" + ] + } + }, + "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": [ + "appClip", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "style": "form", + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClipDefaultExperiences", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperiencesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations/{id}/relationships/appPreviewSets": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_appPreviewSets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCustomProductPageLocalizationAppPreviewSetsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations/{id}/appPreviewSets": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_appPreviewSets_getToManyRelated", + "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", + "APPLE_VISION_PRO" + ] + } + }, + "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": "filter[appStoreVersionExperimentTreatmentLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "previewFrameTimeCode", + "mimeType", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appPreviewSet" + ] + } + }, + "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": [ + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appPreviews]", + "in": "query", + "description": "maximum number of related appPreviews returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPreviewSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations/{id}/relationships/appScreenshotSets": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_appScreenshotSets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCustomProductPageLocalizationAppScreenshotSetsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations/{id}/appScreenshotSets": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_appScreenshotSets_getToManyRelated", + "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_10", + "APP_WATCH_SERIES_7", + "APP_WATCH_SERIES_4", + "APP_WATCH_SERIES_3", + "APP_APPLE_TV", + "APP_APPLE_VISION_PRO", + "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[appStoreVersionLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionLocalization'", + "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]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "appScreenshotSet" + ] + } + }, + "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": [ + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appScreenshots]", + "in": "query", + "description": "maximum number of related appScreenshots returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppScreenshotSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotSetsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations/{id}/relationships/placements": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_placements_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCustomProductPageLocalizationPlacementsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations/{id}/placements": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_placements_getToManyRelated", + "parameters": [ + { + "name": "filter[placementType]", + "in": "query", + "description": "filter by attribute 'placementType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_SCREENSHOT", + "IMESSAGE_APP_SCREENSHOT", + "APP_PREVIEW", + "PRODUCT_PAGE_HEADER_ASSET", + "APP_STORE_SEARCH_RESULTS_ASSET", + "SEARCH_RESULTS_ADS_ASSET", + "TODAY_TAB_ADS_ASSET", + "EVENT_CARD_ASSET", + "EVENT_DETAILS_PAGE_ASSET", + "RETENTION_MESSAGE_ASSET" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[placementGroup]", + "in": "query", + "description": "filter by attribute 'placementGroup'", + "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": [ + "ASSET_PROCESSING", + "FAILED", + "PARENT_PREPARE_FOR_SUBMISSION", + "PARENT_READY_FOR_REVIEW", + "PARENT_WAITING_FOR_REVIEW", + "PARENT_IN_REVIEW", + "PARENT_APPROVED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[image]", + "in": "query", + "description": "filter by id(s) of related 'image'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[video]", + "in": "query", + "description": "filter by id(s) of related 'video'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appEventLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appEventLocalization'", + "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": "filter[appStoreVersionExperimentTreatmentLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "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": [ + "createdDate", + "-createdDate", + "lastModifiedDate", + "-lastModifiedDate", + "placementGroupPosition", + "-placementGroupPosition" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryPlacements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations/{id}/relationships/searchKeywords": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_searchKeywords_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCustomProductPageLocalizationSearchKeywordsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_searchKeywords_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationSearchKeywordsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_searchKeywords_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationSearchKeywordsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageLocalizations/{id}/searchKeywords": { + "get": { + "tags": [ + "AppCustomProductPageLocalizations" + ], + "operationId": "appCustomProductPageLocalizations_searchKeywords_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by platform", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[locale]", + "in": "query", + "description": "filter by locale", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appKeywords]", + "in": "query", + "description": "the fields to include for returned resources of type appKeywords", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppKeywords", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppKeywordsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageVersions/{id}/relationships/appCustomProductPageLocalizations": { + "get": { + "tags": [ + "AppCustomProductPageVersions" + ], + "operationId": "appCustomProductPageVersions_appCustomProductPageLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCustomProductPageVersionAppCustomProductPageLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPageVersions/{id}/appCustomProductPageLocalizations": { + "get": { + "tags": [ + "AppCustomProductPageVersions" + ], + "operationId": "appCustomProductPageVersions_appCustomProductPageLocalizations_getToManyRelated", + "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "version", + "state", + "deepLink", + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "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": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "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": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appKeywords]", + "in": "query", + "description": "the fields to include for returned resources of type appKeywords", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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": "limit[searchKeywords]", + "in": "query", + "description": "maximum number of related searchKeywords returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppCustomProductPageLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPages/{id}/relationships/appCustomProductPageVersions": { + "get": { + "tags": [ + "AppCustomProductPages" + ], + "operationId": "appCustomProductPages_appCustomProductPageVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCustomProductPageAppCustomProductPageVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appCustomProductPages/{id}/appCustomProductPageVersions": { + "get": { + "tags": [ + "AppCustomProductPages" + ], + "operationId": "appCustomProductPages_appCustomProductPageVersions_getToManyRelated", + "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" + ] + } + }, + "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": [ + "version", + "state", + "deepLink", + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "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": [ + "name", + "url", + "visible", + "app", + "appCustomProductPageVersions" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appCustomProductPageLocalizations]", + "in": "query", + "description": "maximum number of related appCustomProductPageLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppCustomProductPageVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPageVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/app": { + "get": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations_app_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppEncryptionDeclarationAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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}/app": { + "get": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations_app_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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": { + "get": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations_appEncryptionDeclarationDocument_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppEncryptionDeclarationAppEncryptionDeclarationDocumentLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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}/appEncryptionDeclarationDocument": { + "get": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations_appEncryptionDeclarationDocument_getToOneRelated", + "parameters": [ + { + "name": "fields[appEncryptionDeclarationDocuments]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarationDocuments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "downloadUrl", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEncryptionDeclarationDocument", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocumentResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds": { + "post": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations_builds_createToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationBuildsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventLocalizations/{id}/relationships/appEventScreenshots": { + "get": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_appEventScreenshots_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppEventLocalizationAppEventScreenshotsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventLocalizations/{id}/appEventScreenshots": { + "get": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_appEventScreenshots_getToManyRelated", + "parameters": [ + { + "name": "fields[appEventScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appEventScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "assetToken", + "uploadOperations", + "assetDeliveryState", + "appEventAssetType", + "appEventLocalization" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEventScreenshots", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventScreenshotsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventLocalizations/{id}/relationships/appEventVideoClips": { + "get": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_appEventVideoClips_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppEventLocalizationAppEventVideoClipsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventLocalizations/{id}/appEventVideoClips": { + "get": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_appEventVideoClips_getToManyRelated", + "parameters": [ + { + "name": "fields[appEventVideoClips]", + "in": "query", + "description": "the fields to include for returned resources of type appEventVideoClips", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "previewFrameTimeCode", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appEventAssetType", + "appEventLocalization" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEventVideoClips", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventVideoClipsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventLocalizations/{id}/relationships/placements": { + "get": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_placements_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppEventLocalizationPlacementsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEventLocalizations/{id}/placements": { + "get": { + "tags": [ + "AppEventLocalizations" + ], + "operationId": "appEventLocalizations_placements_getToManyRelated", + "parameters": [ + { + "name": "filter[placementType]", + "in": "query", + "description": "filter by attribute 'placementType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_SCREENSHOT", + "IMESSAGE_APP_SCREENSHOT", + "APP_PREVIEW", + "PRODUCT_PAGE_HEADER_ASSET", + "APP_STORE_SEARCH_RESULTS_ASSET", + "SEARCH_RESULTS_ADS_ASSET", + "TODAY_TAB_ADS_ASSET", + "EVENT_CARD_ASSET", + "EVENT_DETAILS_PAGE_ASSET", + "RETENTION_MESSAGE_ASSET" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[placementGroup]", + "in": "query", + "description": "filter by attribute 'placementGroup'", + "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": [ + "ASSET_PROCESSING", + "FAILED", + "PARENT_PREPARE_FOR_SUBMISSION", + "PARENT_READY_FOR_REVIEW", + "PARENT_WAITING_FOR_REVIEW", + "PARENT_IN_REVIEW", + "PARENT_APPROVED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[image]", + "in": "query", + "description": "filter by id(s) of related 'image'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[video]", + "in": "query", + "description": "filter by id(s) of related 'video'", + "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": "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": "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": [ + "createdDate", + "-createdDate", + "lastModifiedDate", + "-lastModifiedDate", + "placementGroupPosition", + "-placementGroupPosition" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryPlacements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEvents/{id}/relationships/localizations": { + "get": { + "tags": [ + "AppEvents" + ], + "operationId": "appEvents_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppEventLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appEvents/{id}/localizations": { + "get": { + "tags": [ + "AppEvents" + ], + "operationId": "appEvents_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEventScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appEventScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "assetToken", + "uploadOperations", + "assetDeliveryState", + "appEventAssetType", + "appEventLocalization" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "previewFrameTimeCode", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appEventAssetType", + "appEventLocalization" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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": "limit[placements]", + "in": "query", + "description": "maximum number of related placements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEventLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/ageRatingDeclaration": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_ageRatingDeclaration_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoAgeRatingDeclarationLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/ageRatingDeclaration": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_ageRatingDeclaration_getToOneRelated", + "parameters": [ + { + "name": "fields[ageRatingDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type ageRatingDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "advertising", + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingSimulated", + "gunsOrOtherWeapons", + "healthOrWellnessTopics", + "kidsAgeBand", + "lootBox", + "medicalOrTreatmentInformation", + "messagingAndChat", + "parentalControls", + "profanityOrCrudeHumor", + "ageAssurance", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "socialMedia", + "socialMediaAgeRestricted", + "horrorOrFearThemes", + "matureOrSuggestiveThemes", + "unrestrictedWebAccess", + "userGeneratedContent", + "violenceCartoonOrFantasy", + "violenceRealisticProlongedGraphicOrSadistic", + "violenceRealistic", + "ageRatingOverride", + "ageRatingOverrideV2", + "koreaAgeRatingOverride", + "gracRatingClassificationNumber", + "developerAgeRatingInfoUrl" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/appInfoLocalizations": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_appInfoLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoAppInfoLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/appInfoLocalizations": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_appInfoLocalizations_getToManyRelated", + "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "locale", + "name", + "subtitle", + "privacyPolicyUrl", + "privacyChoicesUrl", + "privacyPolicyText", + "appInfo" + ] + } + }, + "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": [ + "appStoreState", + "state", + "appStoreAgeRating", + "australiaAgeRating", + "brazilAgeRating", + "brazilAgeRatingV2", + "franceAgeRating", + "koreaAgeRating", + "app", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo", + "territoryAgeRatings" + ] + } + }, + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppInfoLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfoLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/primaryCategory": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_primaryCategory_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoPrimaryCategoryLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/primaryCategory": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_primaryCategory_getToOneRelated", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subcategories", + "parent" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/primarySubcategoryOne": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_primarySubcategoryOne_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoPrimarySubcategoryOneLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/primarySubcategoryOne": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_primarySubcategoryOne_getToOneRelated", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subcategories", + "parent" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/primarySubcategoryTwo": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_primarySubcategoryTwo_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoPrimarySubcategoryTwoLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/primarySubcategoryTwo": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_primarySubcategoryTwo_getToOneRelated", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subcategories", + "parent" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/secondaryCategory": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_secondaryCategory_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoSecondaryCategoryLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/secondaryCategory": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_secondaryCategory_getToOneRelated", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subcategories", + "parent" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/secondarySubcategoryOne": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_secondarySubcategoryOne_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoSecondarySubcategoryOneLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/secondarySubcategoryOne": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_secondarySubcategoryOne_getToOneRelated", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subcategories", + "parent" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/secondarySubcategoryTwo": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_secondarySubcategoryTwo_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoSecondarySubcategoryTwoLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/secondarySubcategoryTwo": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_secondarySubcategoryTwo_getToOneRelated", + "parameters": [ + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subcategories", + "parent" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/relationships/territoryAgeRatings": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_territoryAgeRatings_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInfoTerritoryAgeRatingsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appInfos/{id}/territoryAgeRatings": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos_territoryAgeRatings_getToManyRelated", + "parameters": [ + { + "name": "fields[territoryAgeRatings]", + "in": "query", + "description": "the fields to include for returned resources of type territoryAgeRatings", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreAgeRating", + "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": [ + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 TerritoryAgeRatings", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryAgeRatingsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPreviewSets/{id}/relationships/appPreviews": { + "get": { + "tags": [ + "AppPreviewSets" + ], + "operationId": "appPreviewSets_appPreviews_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppPreviewSets" + ], + "operationId": "appPreviewSets_appPreviews_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetAppPreviewsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPreviewSets/{id}/appPreviews": { + "get": { + "tags": [ + "AppPreviewSets" + ], + "operationId": "appPreviewSets_appPreviews_getToManyRelated", + "parameters": [ + { + "name": "fields[appPreviews]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviews", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "previewFrameTimeCode", + "mimeType", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appPreviewSet" + ] + } + }, + "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": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v3/appPricePoints/{id}/relationships/equalizations": { + "get": { + "tags": [ + "AppPricePoints" + ], + "operationId": "appPricePointsV3_equalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppPricePointV3EqualizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v3/appPricePoints/{id}/equalizations": { + "get": { + "tags": [ + "AppPricePoints" + ], + "operationId": "appPricePointsV3_equalizations_getToManyRelated", + "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": [ + "customerPrice", + "proceeds", + "app", + "equalizations", + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "app", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPricePoints", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPricePointsV3Response" + } + }, + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPriceSchedules/{id}/relationships/automaticPrices": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules_automaticPrices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppPriceScheduleAutomaticPricesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPriceSchedules/{id}/automaticPrices": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules_automaticPrices_getToManyRelated", + "parameters": [ + { + "name": "filter[startDate]", + "in": "query", + "description": "filter by attribute 'startDate'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[endDate]", + "in": "query", + "description": "filter by attribute 'endDate'", + "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": [ + "manual", + "startDate", + "endDate", + "appPricePoint", + "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": [ + "customerPrice", + "proceeds", + "app", + "equalizations", + "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": [ + "appPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPricesV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPriceSchedules/{id}/relationships/baseTerritory": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules_baseTerritory_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppPriceScheduleBaseTerritoryLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPriceSchedules/{id}/baseTerritory": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules_baseTerritory_getToOneRelated", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPriceSchedules/{id}/relationships/manualPrices": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules_manualPrices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppPriceScheduleManualPricesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appPriceSchedules/{id}/manualPrices": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules_manualPrices_getToManyRelated", + "parameters": [ + { + "name": "filter[startDate]", + "in": "query", + "description": "filter by attribute 'startDate'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[endDate]", + "in": "query", + "description": "filter by attribute 'endDate'", + "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": [ + "manual", + "startDate", + "endDate", + "appPricePoint", + "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": [ + "customerPrice", + "proceeds", + "app", + "equalizations", + "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": [ + "appPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPricesV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appScreenshotSets/{id}/relationships/appScreenshots": { + "get": { + "tags": [ + "AppScreenshotSets" + ], + "operationId": "appScreenshotSets_appScreenshots_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppScreenshotSetAppScreenshotsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppScreenshotSets" + ], + "operationId": "appScreenshotSets_appScreenshots_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotSetAppScreenshotsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appScreenshotSets/{id}/appScreenshots": { + "get": { + "tags": [ + "AppScreenshotSets" + ], + "operationId": "appScreenshotSets_appScreenshots_getToManyRelated", + "parameters": [ + { + "name": "fields[appScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "appScreenshotSet" + ] + } + }, + "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": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "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": [ + "appScreenshotSet" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppScreenshots", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreReviewDetails/{id}/relationships/appStoreReviewAttachments": { + "get": { + "tags": [ + "AppStoreReviewDetails" + ], + "operationId": "appStoreReviewDetails_appStoreReviewAttachments_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreReviewDetailAppStoreReviewAttachmentsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreReviewDetails/{id}/appStoreReviewAttachments": { + "get": { + "tags": [ + "AppStoreReviewDetails" + ], + "operationId": "appStoreReviewDetails_appStoreReviewAttachments_getToManyRelated", + "parameters": [ + { + "name": "fields[appStoreReviewAttachments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewAttachments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "appStoreReviewDetail" + ] + } + }, + "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": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreReviewAttachments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewAttachmentsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appPreviewSets": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_appPreviewSets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionExperimentTreatmentLocalizationAppPreviewSetsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatmentLocalizations/{id}/appPreviewSets": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_appPreviewSets_getToManyRelated", + "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", + "APPLE_VISION_PRO" + ] + } + }, + "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": "filter[appCustomProductPageLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appCustomProductPageLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "previewFrameTimeCode", + "mimeType", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appPreviewSet" + ] + } + }, + "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": [ + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appPreviews]", + "in": "query", + "description": "maximum number of related appPreviews returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPreviewSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appScreenshotSets": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_appScreenshotSets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionExperimentTreatmentLocalizationAppScreenshotSetsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatmentLocalizations/{id}/appScreenshotSets": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_appScreenshotSets_getToManyRelated", + "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_10", + "APP_WATCH_SERIES_7", + "APP_WATCH_SERIES_4", + "APP_WATCH_SERIES_3", + "APP_APPLE_TV", + "APP_APPLE_VISION_PRO", + "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[appStoreVersionLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "appScreenshotSet" + ] + } + }, + "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": [ + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appScreenshots]", + "in": "query", + "description": "maximum number of related appScreenshots returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppScreenshotSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotSetsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/placements": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_placements_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionExperimentTreatmentLocalizationPlacementsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatmentLocalizations/{id}/placements": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatmentLocalizations" + ], + "operationId": "appStoreVersionExperimentTreatmentLocalizations_placements_getToManyRelated", + "parameters": [ + { + "name": "filter[placementType]", + "in": "query", + "description": "filter by attribute 'placementType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_SCREENSHOT", + "IMESSAGE_APP_SCREENSHOT", + "APP_PREVIEW", + "PRODUCT_PAGE_HEADER_ASSET", + "APP_STORE_SEARCH_RESULTS_ASSET", + "SEARCH_RESULTS_ADS_ASSET", + "TODAY_TAB_ADS_ASSET", + "EVENT_CARD_ASSET", + "EVENT_DETAILS_PAGE_ASSET", + "RETENTION_MESSAGE_ASSET" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[placementGroup]", + "in": "query", + "description": "filter by attribute 'placementGroup'", + "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": [ + "ASSET_PROCESSING", + "FAILED", + "PARENT_PREPARE_FOR_SUBMISSION", + "PARENT_READY_FOR_REVIEW", + "PARENT_WAITING_FOR_REVIEW", + "PARENT_IN_REVIEW", + "PARENT_APPROVED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[image]", + "in": "query", + "description": "filter by id(s) of related 'image'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[video]", + "in": "query", + "description": "filter by id(s) of related 'video'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appEventLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appEventLocalization'", + "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": "filter[appCustomProductPageLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appCustomProductPageLocalization'", + "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": [ + "createdDate", + "-createdDate", + "lastModifiedDate", + "-lastModifiedDate", + "placementGroupPosition", + "-placementGroupPosition" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryPlacements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatments/{id}/relationships/appStoreVersionExperimentTreatmentLocalizations": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatments" + ], + "operationId": "appStoreVersionExperimentTreatments_appStoreVersionExperimentTreatmentLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionExperimentTreatmentAppStoreVersionExperimentTreatmentLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperimentTreatments/{id}/appStoreVersionExperimentTreatmentLocalizations": { + "get": { + "tags": [ + "AppStoreVersionExperimentTreatments" + ], + "operationId": "appStoreVersionExperimentTreatments_appStoreVersionExperimentTreatmentLocalizations_getToManyRelated", + "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "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": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "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": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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": "limit[placements]", + "in": "query", + "description": "maximum number of related placements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionExperimentTreatmentLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { + "get": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperimentsV2_appStoreVersionExperimentTreatments_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionExperimentV2AppStoreVersionExperimentTreatmentsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { + "get": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperimentsV2_appStoreVersionExperimentTreatments_getToManyRelated", + "parameters": [ + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { + "get": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments_appStoreVersionExperimentTreatments_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionExperimentAppStoreVersionExperimentTreatmentsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { + "get": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments_appStoreVersionExperimentTreatments_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations/{id}/relationships/appPreviewSets": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_appPreviewSets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionLocalizationAppPreviewSetsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations/{id}/appPreviewSets": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_appPreviewSets_getToManyRelated", + "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", + "APPLE_VISION_PRO" + ] + } + }, + "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]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "previewFrameTimeCode", + "mimeType", + "videoUrl", + "previewFrameImage", + "previewImage", + "uploadOperations", + "assetDeliveryState", + "videoDeliveryState", + "appPreviewSet" + ] + } + }, + "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": [ + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appPreviews]", + "in": "query", + "description": "maximum number of related appPreviews returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPreviewSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations/{id}/relationships/appScreenshotSets": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_appScreenshotSets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionLocalizationAppScreenshotSetsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations/{id}/appScreenshotSets": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_appScreenshotSets_getToManyRelated", + "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_10", + "APP_WATCH_SERIES_7", + "APP_WATCH_SERIES_4", + "APP_WATCH_SERIES_3", + "APP_APPLE_TV", + "APP_APPLE_VISION_PRO", + "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[appStoreVersionExperimentTreatmentLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "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": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "appScreenshotSet" + ] + } + }, + "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": [ + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appScreenshots]", + "in": "query", + "description": "maximum number of related appScreenshots returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppScreenshotSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotSetsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations/{id}/relationships/placements": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_placements_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionLocalizationPlacementsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations/{id}/placements": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_placements_getToManyRelated", + "parameters": [ + { + "name": "filter[placementType]", + "in": "query", + "description": "filter by attribute 'placementType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_SCREENSHOT", + "IMESSAGE_APP_SCREENSHOT", + "APP_PREVIEW", + "PRODUCT_PAGE_HEADER_ASSET", + "APP_STORE_SEARCH_RESULTS_ASSET", + "SEARCH_RESULTS_ADS_ASSET", + "TODAY_TAB_ADS_ASSET", + "EVENT_CARD_ASSET", + "EVENT_DETAILS_PAGE_ASSET", + "RETENTION_MESSAGE_ASSET" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[placementGroup]", + "in": "query", + "description": "filter by attribute 'placementGroup'", + "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": [ + "ASSET_PROCESSING", + "FAILED", + "PARENT_PREPARE_FOR_SUBMISSION", + "PARENT_READY_FOR_REVIEW", + "PARENT_WAITING_FOR_REVIEW", + "PARENT_IN_REVIEW", + "PARENT_APPROVED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[image]", + "in": "query", + "description": "filter by id(s) of related 'image'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[video]", + "in": "query", + "description": "filter by id(s) of related 'video'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appEventLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appEventLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "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": [ + "createdDate", + "-createdDate", + "lastModifiedDate", + "-lastModifiedDate", + "placementGroupPosition", + "-placementGroupPosition" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "promotionalText", + "appCustomProductPageVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "locale", + "appStoreVersionExperimentTreatment", + "appScreenshotSets", + "appPreviewSets", + "placements" + ] + } + }, + "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": [ + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibraryPlacements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations/{id}/relationships/searchKeywords": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_searchKeywords_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionLocalizationSearchKeywordsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_searchKeywords_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationSearchKeywordsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_searchKeywords_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationSearchKeywordsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersionLocalizations/{id}/searchKeywords": { + "get": { + "tags": [ + "AppStoreVersionLocalizations" + ], + "operationId": "appStoreVersionLocalizations_searchKeywords_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by platform", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[locale]", + "in": "query", + "description": "filter by locale", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appKeywords]", + "in": "query", + "description": "the fields to include for returned resources of type appKeywords", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppKeywords", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppKeywordsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/alternativeDistributionPackage": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_alternativeDistributionPackage_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionAlternativeDistributionPackageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/alternativeDistributionPackage": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_alternativeDistributionPackage_getToOneRelated", + "parameters": [ + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "urlExpirationDate", + "version", + "fileChecksum", + "state", + "variants", + "deltas", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionPackage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionPackageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/appClipDefaultExperience": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appClipDefaultExperience_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appClipDefaultExperience_updateToOneRelationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionAppClipDefaultExperienceLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/appClipDefaultExperience": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appClipDefaultExperience_getToOneRelated", + "parameters": [ + { + "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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "locale", + "subtitle", + "appClipDefaultExperience", + "appClipHeaderImage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClipAppStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "invocationUrls", + "appClipDefaultExperience" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appClip", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "style": "form", + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/appStoreReviewDetail": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreReviewDetail_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionAppStoreReviewDetailLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/appStoreReviewDetail": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreReviewDetail_getToOneRelated", + "parameters": [ + { + "name": "fields[appStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "appStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appStoreReviewAttachments]", + "in": "query", + "description": "maximum number of related appStoreReviewAttachments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewDetailResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/appStoreVersionExperiments": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionExperiments_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionAppStoreVersionExperimentsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/appStoreVersionExperiments": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionExperiments_getToManyRelated", + "deprecated": true, + "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", + "REJECTED", + "COMPLETED", + "STOPPED" + ] + } + }, + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "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": [ + "appStoreVersion", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionExperiments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/appStoreVersionExperimentsV2": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionExperimentsV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionAppStoreVersionExperimentsV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/appStoreVersionExperimentsV2": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionExperimentsV2_getToManyRelated", + "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", + "REJECTED", + "COMPLETED", + "STOPPED" + ] + } + }, + "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": [ + "name", + "platform", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "app", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "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", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionExperiments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/appStoreVersionLocalizations": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionAppStoreVersionLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/appStoreVersionLocalizations": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionLocalizations_getToManyRelated", + "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "screenshotDisplayType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appScreenshots" + ] + } + }, + "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": [ + "previewType", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization", + "appPreviews" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appKeywords]", + "in": "query", + "description": "the fields to include for returned resources of type appKeywords", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryPlacements]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryPlacements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "mediaType", + "placementType", + "placementGroup", + "createdDate", + "lastModifiedDate", + "state", + "stateDetails", + "image", + "video", + "appEventLocalization", + "appStoreVersionLocalization", + "appCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "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": [ + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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": "limit[searchKeywords]", + "in": "query", + "description": "maximum number of related searchKeywords returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[placements]", + "in": "query", + "description": "maximum number of related placements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/appStoreVersionPhasedRelease": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionPhasedRelease_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionAppStoreVersionPhasedReleaseLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/appStoreVersionPhasedRelease": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionPhasedRelease_getToOneRelated", + "parameters": [ + { + "name": "fields[appStoreVersionPhasedReleases]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "phasedReleaseState", + "startDate", + "totalPauseDuration", + "currentDayNumber" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionPhasedRelease with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionPhasedReleaseWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/appStoreVersionSubmission": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionSubmission_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionAppStoreVersionSubmissionLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/appStoreVersionSubmission": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_appStoreVersionSubmission_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "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[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionSubmissionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/build": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_build_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_build_updateToOneRelationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionBuildLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/build": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_build_getToOneRelated", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Build with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/customerReviews": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_customerReviews_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionCustomerReviewsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/customerReviews": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_customerReviews_getToManyRelated", + "parameters": [ + { + "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", + "XKS", + "YEM", + "ZAF", + "ZMB", + "ZWE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[rating]", + "in": "query", + "description": "filter by attribute 'rating'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[reviewTerritory]", + "in": "query", + "description": "filter by id(s) of related 'reviewTerritory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "rating", + "-rating", + "createdDate", + "-createdDate" + ] + } + }, + "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": [ + "rating", + "title", + "body", + "reviewerNickname", + "createdDate", + "territory", + "response", + "reviewTerritory" + ] + } + }, + "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": [ + "responseBody", + "lastModifiedDate", + "state", + "review" + ] + } + }, + "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": [ + "response", + "reviewTerritory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CustomerReviews", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/gameCenterAppVersion": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_gameCenterAppVersion_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionGameCenterAppVersionLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/gameCenterAppVersion": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_gameCenterAppVersion_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterAppVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAppVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[compatibilityVersions]", + "in": "query", + "description": "maximum number of related compatibilityVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAppVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/relationships/routingAppCoverage": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_routingAppCoverage_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppStoreVersionRoutingAppCoverageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appStoreVersions/{id}/routingAppCoverage": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions_routingAppCoverage_getToOneRelated", + "parameters": [ + { + "name": "fields[routingAppCoverages]", + "in": "query", + "description": "the fields to include for returned resources of type routingAppCoverages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "appStoreVersion" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 RoutingAppCoverage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appTags/{id}/relationships/territories": { + "get": { + "tags": [ + "AppTags" + ], + "operationId": "appTags_territories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppTagTerritoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/appTags/{id}/territories": { + "get": { + "tags": [ + "AppTags" + ], + "operationId": "appTags_territories_getToManyRelated", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/accessibilityDeclarations": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_accessibilityDeclarations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAccessibilityDeclarationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/accessibilityDeclarations": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_accessibilityDeclarations_getToManyRelated", + "parameters": [ + { + "name": "filter[deviceFamily]", + "in": "query", + "description": "filter by attribute 'deviceFamily'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPHONE", + "IPAD", + "APPLE_TV", + "APPLE_WATCH", + "MAC", + "VISION" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[state]", + "in": "query", + "description": "filter by attribute 'state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DRAFT", + "PUBLISHED", + "REPLACED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[accessibilityDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type accessibilityDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "deviceFamily", + "state", + "supportsAudioDescriptions", + "supportsCaptions", + "supportsDarkInterface", + "supportsDifferentiateWithoutColorAlone", + "supportsLargerText", + "supportsReducedMotion", + "supportsSufficientContrast", + "supportsVoiceControl", + "supportsVoiceover" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AccessibilityDeclarations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessibilityDeclarationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/alternativeDistributionKey": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_alternativeDistributionKey_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAlternativeDistributionKeyLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/alternativeDistributionKey": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_alternativeDistributionKey_getToOneRelated", + "parameters": [ + { + "name": "fields[alternativeDistributionKeys]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionKeys", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "publicKey" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AlternativeDistributionKey", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlternativeDistributionKeyResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/analyticsReportRequests": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_analyticsReportRequests_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAnalyticsReportRequestsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/analyticsReportRequests": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_analyticsReportRequests_getToManyRelated", + "parameters": [ + { + "name": "filter[accessType]", + "in": "query", + "description": "filter by attribute 'accessType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ONE_TIME_SNAPSHOT", + "ONGOING" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[analyticsReportRequests]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReportRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessType", + "stoppedDueToInactivity", + "reports" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[analyticsReports]", + "in": "query", + "description": "the fields to include for returned resources of type analyticsReports", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "category", + "instances" + ] + } + }, + "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": [ + "reports" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[reports]", + "in": "query", + "description": "maximum number of related reports returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AnalyticsReportRequests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AnalyticsReportRequestsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/androidToIosAppMappingDetails": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_androidToIosAppMappingDetails_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAndroidToIosAppMappingDetailsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/androidToIosAppMappingDetails": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_androidToIosAppMappingDetails_getToManyRelated", + "parameters": [ + { + "name": "fields[androidToIosAppMappingDetails]", + "in": "query", + "description": "the fields to include for returned resources of type androidToIosAppMappingDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "packageName", + "appSigningKeyPublicCertificateSha256Fingerprints" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AndroidToIosAppMappingDetails", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AndroidToIosAppMappingDetailsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appAvailabilityV2": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appAvailabilityV2_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppAvailabilityV2LinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appAvailabilityV2": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appAvailabilityV2_getToOneRelated", + "parameters": [ + { + "name": "fields[appAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type appAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "territoryAvailabilities" + ] + } + }, + "style": "form", + "explode": 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", + "releaseDate", + "preOrderEnabled", + "preOrderPublishDate", + "contentStatuses", + "territory" + ] + } + }, + "style": "form", + "explode": 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 + }, + { + "name": "limit[territoryAvailabilities]", + "in": "query", + "description": "maximum number of related territoryAvailabilities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appClips": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appClips_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppClipsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appClips": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appClips_getToManyRelated", + "parameters": [ + { + "name": "filter[bundleId]", + "in": "query", + "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": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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", + "appClipDefaultExperiences" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appClipDefaultExperiences]", + "in": "query", + "description": "maximum number of related appClipDefaultExperiences returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppClips", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appCustomProductPages": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appCustomProductPages_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppCustomProductPagesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appCustomProductPages": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appCustomProductPages_getToManyRelated", + "parameters": [ + { + "name": "filter[visible]", + "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": [ + "name", + "url", + "visible", + "app", + "appCustomProductPageVersions" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "version", + "state", + "deepLink", + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "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", + "appCustomProductPageVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appCustomProductPageVersions]", + "in": "query", + "description": "maximum number of related appCustomProductPageVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppCustomProductPages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCustomProductPagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appEncryptionDeclarations": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appEncryptionDeclarations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppEncryptionDeclarationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appEncryptionDeclarations": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appEncryptionDeclarations_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false, + "deprecated": true + }, + { + "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": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "assetToken", + "downloadUrl", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEncryptionDeclarations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appEvents": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appEvents_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppEventsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appEvents": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appEvents_getToManyRelated", + "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[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "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": [ + "locale", + "name", + "shortDescription", + "longDescription", + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "placements" + ] + } + }, + "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": [ + "localizations" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppEvents", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEventsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appInfos": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appInfos_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppInfosLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appInfos": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appInfos_getToManyRelated", + "parameters": [ + { + "name": "fields[appInfos]", + "in": "query", + "description": "the fields to include for returned resources of type appInfos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreState", + "state", + "appStoreAgeRating", + "australiaAgeRating", + "brazilAgeRating", + "brazilAgeRatingV2", + "franceAgeRating", + "koreaAgeRating", + "app", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo", + "territoryAgeRatings" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "advertising", + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingSimulated", + "gunsOrOtherWeapons", + "healthOrWellnessTopics", + "kidsAgeBand", + "lootBox", + "medicalOrTreatmentInformation", + "messagingAndChat", + "parentalControls", + "profanityOrCrudeHumor", + "ageAssurance", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "socialMedia", + "socialMediaAgeRestricted", + "horrorOrFearThemes", + "matureOrSuggestiveThemes", + "unrestrictedWebAccess", + "userGeneratedContent", + "violenceCartoonOrFantasy", + "violenceRealisticProlongedGraphicOrSadistic", + "violenceRealistic", + "ageRatingOverride", + "ageRatingOverrideV2", + "koreaAgeRatingOverride", + "gracRatingClassificationNumber", + "developerAgeRatingInfoUrl" + ] + } + }, + "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": [ + "locale", + "name", + "subtitle", + "privacyPolicyUrl", + "privacyChoicesUrl", + "privacyPolicyText", + "appInfo" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platforms", + "subcategories", + "parent" + ] + } + }, + "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", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appInfoLocalizations]", + "in": "query", + "description": "maximum number of related appInfoLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppInfos", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppInfosResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appPricePoints": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appPricePoints_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppPricePointsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appPricePoints": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appPricePoints_getToManyRelated", + "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": [ + "customerPrice", + "proceeds", + "app", + "equalizations", + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "app", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPricePoints", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPricePointsV3Response" + } + }, + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appPriceSchedule": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appPriceSchedule_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppPriceScheduleLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appPriceSchedule": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appPriceSchedule_getToOneRelated", + "parameters": [ + { + "name": "fields[appPriceSchedules]", + "in": "query", + "description": "the fields to include for returned resources of type appPriceSchedules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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[appPrices]", + "in": "query", + "description": "the fields to include for returned resources of type appPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "manual", + "startDate", + "endDate", + "appPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppPriceSchedule", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPriceScheduleResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appStoreVersionExperimentsV2": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appStoreVersionExperimentsV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppStoreVersionExperimentsV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appStoreVersionExperimentsV2": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appStoreVersionExperimentsV2_getToManyRelated", + "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", + "REJECTED", + "COMPLETED", + "STOPPED" + ] + } + }, + "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": [ + "name", + "platform", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "app", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "name", + "appIcon", + "appIconName", + "promotedDate", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appStoreVersionExperimentTreatmentLocalizations" + ] + } + }, + "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", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersionExperiments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appStoreVersions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appStoreVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppStoreVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appStoreVersions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appStoreVersions_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_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[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", + "NOT_APPLICABLE" + ] + } + }, + "style": "form", + "explode": false, + "deprecated": true + }, + { + "name": "filter[appVersionState]", + "in": "query", + "description": "filter by attribute 'appVersionState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ACCEPTED", + "DEVELOPER_REJECTED", + "IN_REVIEW", + "INVALID_BINARY", + "METADATA_REJECTED", + "PENDING_APPLE_RELEASE", + "PENDING_DEVELOPER_RELEASE", + "PREPARE_FOR_SUBMISSION", + "PROCESSING_FOR_DISTRIBUTION", + "READY_FOR_DISTRIBUTION", + "READY_FOR_REVIEW", + "REJECTED", + "REPLACED_WITH_NEW_VERSION", + "WAITING_FOR_EXPORT_COMPLIANCE", + "WAITING_FOR_REVIEW" + ] + } + }, + "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[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "phasedReleaseState", + "startDate", + "totalPauseDuration", + "currentDayNumber" + ] + } + }, + "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": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "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": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "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[appClipDefaultExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "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", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "alternativeDistributionPackage" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppStoreVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/appTags": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appTags_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAppTagsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/appTags": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_appTags_getToManyRelated", + "parameters": [ + { + "name": "filter[visibleInAppStore]", + "in": "query", + "description": "filter by attribute 'visibleInAppStore'", + "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": [ + "name", + "-name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appTags]", + "in": "query", + "description": "the fields to include for returned resources of type appTags", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "visibleInAppStore", + "territories" + ] + } + }, + "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": [ + "territories" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[territories]", + "in": "query", + "description": "maximum number of related territories returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppTags", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppTagsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/assetLibrary": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_assetLibrary_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppAssetLibraryLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/assetLibrary": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_assetLibrary_getToOneRelated", + "parameters": [ + { + "name": "fields[appAssetLibraries]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraries", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "images", + "videos" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppAssetLibrary", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAssetLibraryResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/backgroundAssets": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_backgroundAssets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBackgroundAssetsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/backgroundAssets": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_backgroundAssets_getToManyRelated", + "parameters": [ + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[assetPackIdentifier]", + "in": "query", + "description": "filter by attribute 'assetPackIdentifier'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[versions.locale]", + "in": "query", + "description": "filter by attribute 'versions.locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[versions.platforms]", + "in": "query", + "description": "filter by attribute 'versions.platforms'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "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": [ + "assetPackIdentifier", + "-assetPackIdentifier", + "createdDate", + "-createdDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssets]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "assetPackIdentifier", + "createdDate", + "usedBytes", + "app", + "versions", + "appStoreVersion", + "internalBetaVersion", + "externalBetaVersion" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "platforms", + "state", + "stateDetails", + "version", + "locale", + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile", + "backgroundAssetUploadFiles" + ] + } + }, + "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", + "appStoreVersion", + "internalBetaVersion", + "externalBetaVersion" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAssets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/betaAppLocalizations": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaAppLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBetaAppLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/betaAppLocalizations": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaAppLocalizations_getToManyRelated", + "parameters": [ + { + "name": "fields[betaAppLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "feedbackEmail", + "marketingUrl", + "privacyPolicyUrl", + "tvOsPrivacyPolicy", + "description", + "locale", + "app" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaAppLocalizations with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppLocalizationsWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/betaAppReviewDetail": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaAppReviewDetail_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBetaAppReviewDetailLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/betaAppReviewDetail": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaAppReviewDetail_getToOneRelated", + "parameters": [ + { + "name": "fields[betaAppReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "app" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaAppReviewDetail with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewDetailWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/betaFeedbackCrashSubmissions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaFeedbackCrashSubmissions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBetaFeedbackCrashSubmissionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/betaFeedbackCrashSubmissions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaFeedbackCrashSubmissions_getToManyRelated", + "parameters": [ + { + "name": "filter[deviceModel]", + "in": "query", + "description": "filter by attribute 'deviceModel'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[osVersion]", + "in": "query", + "description": "filter by attribute 'osVersion'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appPlatform]", + "in": "query", + "description": "filter by attribute 'appPlatform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[devicePlatform]", + "in": "query", + "description": "filter by attribute 'devicePlatform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[build]", + "in": "query", + "description": "filter by id(s) of related 'build'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[build.preReleaseVersion]", + "in": "query", + "description": "filter by id(s) of related 'build.preReleaseVersion'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[tester]", + "in": "query", + "description": "filter by id(s) of related 'tester'", + "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": [ + "createdDate", + "-createdDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaFeedbackCrashSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type betaFeedbackCrashSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "comment", + "email", + "deviceModel", + "osVersion", + "locale", + "timeZone", + "architecture", + "connectionType", + "pairedAppleWatch", + "appUptimeInMilliseconds", + "diskBytesAvailable", + "diskBytesTotal", + "batteryPercentage", + "screenWidthInPoints", + "screenHeightInPoints", + "appPlatform", + "devicePlatform", + "deviceFamily", + "buildBundleId", + "crashLog", + "build", + "tester" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "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": [ + "build", + "tester" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaFeedbackCrashSubmissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaFeedbackCrashSubmissionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/betaFeedbackScreenshotSubmissions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaFeedbackScreenshotSubmissions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBetaFeedbackScreenshotSubmissionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/betaFeedbackScreenshotSubmissions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaFeedbackScreenshotSubmissions_getToManyRelated", + "parameters": [ + { + "name": "filter[deviceModel]", + "in": "query", + "description": "filter by attribute 'deviceModel'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[osVersion]", + "in": "query", + "description": "filter by attribute 'osVersion'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appPlatform]", + "in": "query", + "description": "filter by attribute 'appPlatform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[devicePlatform]", + "in": "query", + "description": "filter by attribute 'devicePlatform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[build]", + "in": "query", + "description": "filter by id(s) of related 'build'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[build.preReleaseVersion]", + "in": "query", + "description": "filter by id(s) of related 'build.preReleaseVersion'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[tester]", + "in": "query", + "description": "filter by id(s) of related 'tester'", + "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": [ + "createdDate", + "-createdDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaFeedbackScreenshotSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type betaFeedbackScreenshotSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "comment", + "email", + "deviceModel", + "osVersion", + "locale", + "timeZone", + "architecture", + "connectionType", + "pairedAppleWatch", + "appUptimeInMilliseconds", + "diskBytesAvailable", + "diskBytesTotal", + "batteryPercentage", + "screenWidthInPoints", + "screenHeightInPoints", + "appPlatform", + "devicePlatform", + "deviceFamily", + "buildBundleId", + "screenshots", + "build", + "tester" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "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": [ + "build", + "tester" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaFeedbackScreenshotSubmissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaFeedbackScreenshotSubmissionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/betaGroups": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaGroups_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBetaGroupsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/betaGroups": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaGroups_getToManyRelated", + "parameters": [ + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaGroups with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupsWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/betaLicenseAgreement": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaLicenseAgreement_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBetaLicenseAgreementLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/betaLicenseAgreement": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaLicenseAgreement_getToOneRelated", + "parameters": [ + { + "name": "fields[betaLicenseAgreements]", + "in": "query", + "description": "the fields to include for returned resources of type betaLicenseAgreements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaLicenseAgreement with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaLicenseAgreementWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/betaTesters": { + "delete": { + "tags": [ + "Apps" + ], + "operationId": "apps_betaTesters_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppBetaTestersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/buildUploads": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_buildUploads_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBuildUploadsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/buildUploads": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_buildUploads_getToManyRelated", + "parameters": [ + { + "name": "filter[cfBundleShortVersionString]", + "in": "query", + "description": "filter by attribute 'cfBundleShortVersionString'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[cfBundleVersion]", + "in": "query", + "description": "filter by attribute 'cfBundleVersion'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[state]", + "in": "query", + "description": "filter by state", + "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": [ + "cfBundleVersion", + "-cfBundleVersion", + "uploadedDate", + "-uploadedDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildUploads]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploads", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "cfBundleShortVersionString", + "cfBundleVersion", + "createdDate", + "state", + "platform", + "uploadedDate", + "build", + "assetFile", + "assetDescriptionFile", + "assetSpiFile", + "buildUploadFiles" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildUploadFiles]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploadFiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "sourceFileChecksums", + "uploadOperations", + "uti" + ] + } + }, + "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": [ + "build", + "assetFile", + "assetDescriptionFile", + "assetSpiFile" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BuildUploads", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/builds": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_builds_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppBuildsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/builds": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_builds_getToManyRelated", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/ciProduct": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_ciProduct_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCiProductLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/ciProduct": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_ciProduct_getToOneRelated", + "parameters": [ + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[bundleIds]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "platform", + "identifier", + "seedId", + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "bundleId", + "primaryRepositories" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[primaryRepositories]", + "in": "query", + "description": "maximum number of related primaryRepositories returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiProduct", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiProductResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/customerReviewSummarizations": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_customerReviewSummarizations_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false, + "required": 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[customerReviewSummarizations]", + "in": "query", + "description": "the fields to include for returned resources of type customerReviewSummarizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "locale", + "platform", + "text", + "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": [ + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CustomerReviewSummarizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewSummarizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/customerReviews": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_customerReviews_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppCustomerReviewsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/customerReviews": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_customerReviews_getToManyRelated", + "parameters": [ + { + "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", + "XKS", + "YEM", + "ZAF", + "ZMB", + "ZWE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[rating]", + "in": "query", + "description": "filter by attribute 'rating'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[reviewTerritory]", + "in": "query", + "description": "filter by id(s) of related 'reviewTerritory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "rating", + "-rating", + "createdDate", + "-createdDate" + ] + } + }, + "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": [ + "rating", + "title", + "body", + "reviewerNickname", + "createdDate", + "territory", + "response", + "reviewTerritory" + ] + } + }, + "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": [ + "responseBody", + "lastModifiedDate", + "state", + "review" + ] + } + }, + "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": [ + "response", + "reviewTerritory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CustomerReviews", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/endUserLicenseAgreement": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_endUserLicenseAgreement_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppEndUserLicenseAgreementLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/endUserLicenseAgreement": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_endUserLicenseAgreement_getToOneRelated", + "parameters": [ + { + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EndUserLicenseAgreementWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/gameCenterDetail": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_gameCenterDetail_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppGameCenterDetailLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/gameCenterDetail": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_gameCenterDetail_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases", + "versions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardsV2 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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardSetsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSetsV2 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", + "deprecated": true + }, + { + "name": "limit[gameCenterAchievementsV2]", + "in": "query", + "description": "maximum number of related gameCenterAchievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterActivities]", + "in": "query", + "description": "maximum number of related gameCenterActivities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterChallenges]", + "in": "query", + "description": "maximum number of related gameCenterChallenges 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", + "deprecated": true + }, + { + "name": "limit[activityReleases]", + "in": "query", + "description": "maximum number of related activityReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[challengeReleases]", + "in": "query", + "description": "maximum number of related challengeReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[leaderboardReleases]", + "in": "query", + "description": "maximum number of related leaderboardReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[leaderboardSetReleases]", + "in": "query", + "description": "maximum number of related leaderboardSetReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[challengesMinimumPlatformVersions]", + "in": "query", + "description": "maximum number of related challengesMinimumPlatformVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/gameCenterEnabledVersions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_gameCenterEnabledVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppGameCenterEnabledVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/gameCenterEnabledVersions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_gameCenterEnabledVersions_getToManyRelated", + "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", + "VISION_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": [ + "platform", + "versionString", + "iconAsset", + "compatibleVersions", + "app" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "compatibleVersions", + "app" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/inAppPurchases": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_inAppPurchases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInAppPurchasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/inAppPurchases": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_inAppPurchases_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "filter[inAppPurchaseType]", + "in": "query", + "description": "filter by attribute 'inAppPurchaseType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "AUTOMATICALLY_RENEWABLE_SUBSCRIPTION", + "NON_CONSUMABLE", + "CONSUMABLE", + "NON_RENEWING_SUBSCRIPTION", + "FREE_SUBSCRIPTION" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[canBeSubmitted]", + "in": "query", + "description": "filter by canBeSubmitted", + "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": [ + "referenceName", + "-referenceName", + "productId", + "-productId", + "inAppPurchaseType", + "-inAppPurchaseType" + ] + } + }, + "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": [ + "referenceName", + "productId", + "inAppPurchaseType", + "state", + "apps" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "apps" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[apps]", + "in": "query", + "description": "maximum number of related apps returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/inAppPurchasesV2": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_inAppPurchasesV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppInAppPurchasesV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/inAppPurchasesV2": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_inAppPurchasesV2_getToManyRelated", + "parameters": [ + { + "name": "filter[productId]", + "in": "query", + "description": "filter by attribute 'productId'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "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", + "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 + }, + { + "name": "filter[inAppPurchaseType]", + "in": "query", + "description": "filter by attribute 'inAppPurchaseType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "CONSUMABLE", + "NON_CONSUMABLE", + "NON_RENEWING_SUBSCRIPTION" + ] + } + }, + "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", + "inAppPurchaseType", + "-inAppPurchaseType" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "state", + "inAppPurchaseV2" + ] + } + }, + "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", + "url", + "lastModifiedDate", + "inAppPurchaseV2" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "inAppPurchaseV2" + ] + } + }, + "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": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "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": [ + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "assetToken", + "imageAsset", + "uploadOperations", + "state", + "inAppPurchase" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customerEligibilities", + "productionCodeCount", + "sandboxCodeCount", + "active", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "inAppPurchaseLocalizations", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[inAppPurchaseLocalizations]", + "in": "query", + "description": "maximum number of related inAppPurchaseLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[images]", + "in": "query", + "description": "maximum number of related images 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[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasesV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/marketplaceSearchDetail": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_marketplaceSearchDetail_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppMarketplaceSearchDetailLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/marketplaceSearchDetail": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_marketplaceSearchDetail_getToOneRelated", + "parameters": [ + { + "name": "fields[marketplaceSearchDetails]", + "in": "query", + "description": "the fields to include for returned resources of type marketplaceSearchDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "catalogUrl" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 MarketplaceSearchDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MarketplaceSearchDetailResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/perfPowerMetrics": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_perfPowerMetrics_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[metricType]", + "in": "query", + "description": "filter by attribute 'metricType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DISK", + "HANG", + "BATTERY", + "LAUNCH", + "MEMORY", + "ANIMATION", + "TERMINATION", + "STORAGE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[deviceType]", + "in": "query", + "description": "filter by attribute 'deviceType'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PerfPowerMetrics", + "content": { + "application/vnd.apple.xcode-metrics+json": { + "schema": { + "$ref": "#/components/schemas/xcodeMetrics" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/performanceOverviews": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_performanceOverviews_getToManyRelated", + "parameters": [ + { + "name": "filter[deviceType]", + "in": "query", + "description": "filter by attribute 'deviceType'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PerformanceOverviews", + "content": { + "application/vnd.apple.xcode-overview+json": { + "schema": { + "$ref": "#/components/schemas/xcodeOverview" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/preReleaseVersions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_preReleaseVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppPreReleaseVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/preReleaseVersions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_preReleaseVersions_getToManyRelated", + "parameters": [ + { + "name": "fields[preReleaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type preReleaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PreReleaseVersions with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PreReleaseVersionsWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/promotedPurchases": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_promotedPurchases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppPromotedPurchasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Apps" + ], + "operationId": "apps_promotedPurchases_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPromotedPurchasesLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/promotedPurchases": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_promotedPurchases_getToManyRelated", + "parameters": [ + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PromotedPurchases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchasesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/reviewSubmissions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_reviewSubmissions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppReviewSubmissionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/reviewSubmissions": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_reviewSubmissions_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": 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 + }, + { + "name": "fields[reviewSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type reviewSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "submittedDate", + "state", + "app", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "state", + "appStoreVersion", + "appCustomProductPageVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appEvent", + "appAssetLibraryImage", + "appAssetLibraryVideo", + "backgroundAssetVersion", + "gameCenterAchievementVersion", + "gameCenterActivityVersion", + "gameCenterChallengeVersion", + "gameCenterLeaderboardSetVersion", + "gameCenterLeaderboardVersion", + "inAppPurchaseVersion", + "subscriptionVersion", + "subscriptionGroupVersion" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "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", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[items]", + "in": "query", + "description": "maximum number of related items returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 ReviewSubmissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/searchKeywords": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_searchKeywords_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppSearchKeywordsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/searchKeywords": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_searchKeywords_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by platform", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[locale]", + "in": "query", + "description": "filter by locale", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appKeywords]", + "in": "query", + "description": "the fields to include for returned resources of type appKeywords", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 AppKeywords", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppKeywordsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/subscriptionGracePeriod": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_subscriptionGracePeriod_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppSubscriptionGracePeriodLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/subscriptionGracePeriod": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_subscriptionGracePeriod_getToOneRelated", + "parameters": [ + { + "name": "fields[subscriptionGracePeriods]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGracePeriods", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "optIn", + "sandboxOptIn", + "duration", + "renewalType" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionGracePeriod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/subscriptionGroups": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_subscriptionGroups_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppSubscriptionGroupsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/subscriptionGroups": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_subscriptionGroups_getToManyRelated", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[subscriptions.state]", + "in": "query", + "description": "filter by attribute 'subscriptions.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": [ + "referenceName", + "-referenceName" + ] + } + }, + "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": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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": [ + "name", + "customAppName", + "locale", + "state", + "subscriptionGroup" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionGroupVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscriptionGroup", + "localizations" + ] + } + }, + "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": [ + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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]", + "in": "query", + "description": "maximum number of related subscriptionGroupLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionGroups", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/relationships/webhooks": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_webhooks_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/AppWebhooksLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/webhooks": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps_webhooks_getToManyRelated", + "parameters": [ + { + "name": "fields[webhooks]", + "in": "query", + "description": "the fields to include for returned resources of type webhooks", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "enabled", + "eventTypes", + "name", + "url", + "app", + "deliveries" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Webhooks", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhooksResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssetVersions/{id}/relationships/backgroundAssetUploadFiles": { + "get": { + "tags": [ + "BackgroundAssetVersions" + ], + "operationId": "backgroundAssetVersions_backgroundAssetUploadFiles_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BackgroundAssetVersionBackgroundAssetUploadFilesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssetVersions/{id}/backgroundAssetUploadFiles": { + "get": { + "tags": [ + "BackgroundAssetVersions" + ], + "operationId": "backgroundAssetVersions_backgroundAssetUploadFiles_getToManyRelated", + "parameters": [ + { + "name": "fields[backgroundAssetUploadFiles]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetUploadFiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "sourceFileChecksum", + "sourceFileChecksums", + "uploadOperations" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAssetUploadFiles", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetUploadFilesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssets/{id}/relationships/versions": { + "get": { + "tags": [ + "BackgroundAssets" + ], + "operationId": "backgroundAssets_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BackgroundAssetVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/backgroundAssets/{id}/versions": { + "get": { + "tags": [ + "BackgroundAssets" + ], + "operationId": "backgroundAssets_versions_getToManyRelated", + "parameters": [ + { + "name": "filter[locale]", + "in": "query", + "description": "filter by attribute 'locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[platforms]", + "in": "query", + "description": "filter by attribute 'platforms'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[state]", + "in": "query", + "description": "filter by attribute 'state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "PROCESSING", + "FAILED", + "COMPLETE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[version]", + "in": "query", + "description": "filter by attribute 'version'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[internalBetaRelease.state]", + "in": "query", + "description": "filter by attribute 'internalBetaRelease.state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "READY_FOR_TESTING", + "SUPERSEDED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[externalBetaRelease.state]", + "in": "query", + "description": "filter by attribute 'externalBetaRelease.state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "READY_FOR_BETA_SUBMISSION", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "PROCESSING_FOR_TESTING", + "READY_FOR_TESTING", + "SUPERSEDED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appStoreRelease.state]", + "in": "query", + "description": "filter by attribute 'appStoreRelease.state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "REJECTED", + "PROCESSING_FOR_DISTRIBUTION", + "READY_FOR_DISTRIBUTION", + "SUPERSEDED" + ] + } + }, + "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": [ + "version", + "-version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "platforms", + "state", + "stateDetails", + "version", + "locale", + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile", + "backgroundAssetUploadFiles" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssets]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "assetPackIdentifier", + "createdDate", + "usedBytes", + "app", + "versions", + "appStoreVersion", + "internalBetaVersion", + "externalBetaVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssetVersionInternalBetaReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionInternalBetaReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssetVersionExternalBetaReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionExternalBetaReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssetVersionAppStoreReleases]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersionAppStoreReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "backgroundAssetVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssetUploadFiles]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetUploadFiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "sourceFileChecksum", + "sourceFileChecksums", + "uploadOperations" + ] + } + }, + "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": [ + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BackgroundAssetVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackgroundAssetVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppLocalizations/{id}/relationships/app": { + "get": { + "tags": [ + "BetaAppLocalizations" + ], + "operationId": "betaAppLocalizations_app_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaAppLocalizationAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppLocalizations/{id}/app": { + "get": { + "tags": [ + "BetaAppLocalizations" + ], + "operationId": "betaAppLocalizations_app_getToOneRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppReviewDetails/{id}/relationships/app": { + "get": { + "tags": [ + "BetaAppReviewDetails" + ], + "operationId": "betaAppReviewDetails_app_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaAppReviewDetailAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppReviewDetails/{id}/app": { + "get": { + "tags": [ + "BetaAppReviewDetails" + ], + "operationId": "betaAppReviewDetails_app_getToOneRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppReviewSubmissions/{id}/relationships/build": { + "get": { + "tags": [ + "BetaAppReviewSubmissions" + ], + "operationId": "betaAppReviewSubmissions_build_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaAppReviewSubmissionBuildLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaAppReviewSubmissions/{id}/build": { + "get": { + "tags": [ + "BetaAppReviewSubmissions" + ], + "operationId": "betaAppReviewSubmissions_build_getToOneRelated", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Build with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaBuildLocalizations/{id}/relationships/build": { + "get": { + "tags": [ + "BetaBuildLocalizations" + ], + "operationId": "betaBuildLocalizations_build_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaBuildLocalizationBuildLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaBuildLocalizations/{id}/build": { + "get": { + "tags": [ + "BetaBuildLocalizations" + ], + "operationId": "betaBuildLocalizations_build_getToOneRelated", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Build with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaFeedbackCrashSubmissions/{id}/relationships/crashLog": { + "get": { + "tags": [ + "BetaFeedbackCrashSubmissions" + ], + "operationId": "betaFeedbackCrashSubmissions_crashLog_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaFeedbackCrashSubmissionCrashLogLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaFeedbackCrashSubmissions/{id}/crashLog": { + "get": { + "tags": [ + "BetaFeedbackCrashSubmissions" + ], + "operationId": "betaFeedbackCrashSubmissions_crashLog_getToOneRelated", + "parameters": [ + { + "name": "fields[betaCrashLogs]", + "in": "query", + "description": "the fields to include for returned resources of type betaCrashLogs", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "logText" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaCrashLog", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaCrashLogResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/relationships/app": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_app_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaGroupAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/app": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_app_getToOneRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/relationships/betaRecruitmentCriteria": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_betaRecruitmentCriteria_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaGroupBetaRecruitmentCriteriaLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/betaRecruitmentCriteria": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_betaRecruitmentCriteria_getToOneRelated", + "parameters": [ + { + "name": "fields[betaRecruitmentCriteria]", + "in": "query", + "description": "the fields to include for returned resources of type betaRecruitmentCriteria", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lastModifiedDate", + "deviceFamilyOsVersionFilters" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaRecruitmentCriterion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/relationships/betaRecruitmentCriterionCompatibleBuildCheck": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_betaRecruitmentCriterionCompatibleBuildCheck_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaGroupBetaRecruitmentCriterionCompatibleBuildCheckLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/betaRecruitmentCriterionCompatibleBuildCheck": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_betaRecruitmentCriterionCompatibleBuildCheck_getToOneRelated", + "parameters": [ + { + "name": "fields[betaRecruitmentCriterionCompatibleBuildChecks]", + "in": "query", + "description": "the fields to include for returned resources of type betaRecruitmentCriterionCompatibleBuildChecks", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "hasCompatibleBuild" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaRecruitmentCriterionCompatibleBuildCheck", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionCompatibleBuildCheckResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/relationships/betaTesters": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_betaTesters_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_betaTesters_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBetaTestersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_betaTesters_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBetaTestersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/betaTesters": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_betaTesters_getToManyRelated", + "parameters": [ + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/relationships/builds": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_builds_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_builds_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBuildsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_builds_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBuildsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/builds": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups_builds_getToManyRelated", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaLicenseAgreements/{id}/relationships/app": { + "get": { + "tags": [ + "BetaLicenseAgreements" + ], + "operationId": "betaLicenseAgreements_app_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaLicenseAgreementAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaLicenseAgreements/{id}/app": { + "get": { + "tags": [ + "BetaLicenseAgreements" + ], + "operationId": "betaLicenseAgreements_app_getToOneRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaTesters/{id}/relationships/apps": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_apps_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaTesterAppsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_apps_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterAppsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaTesters/{id}/apps": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_apps_getToManyRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaTesters/{id}/relationships/betaGroups": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_betaGroups_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaTesterBetaGroupsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_betaGroups_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBetaGroupsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_betaGroups_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBetaGroupsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaTesters/{id}/betaGroups": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_betaGroups_getToManyRelated", + "parameters": [ + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaGroups with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupsWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaTesters/{id}/relationships/builds": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_builds_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BetaTesterBuildsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_builds_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBuildsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_builds_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBuildsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaTesters/{id}/builds": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters_builds_getToManyRelated", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBetaDetails/{id}/relationships/build": { + "get": { + "tags": [ + "BuildBetaDetails" + ], + "operationId": "buildBetaDetails_build_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildBetaDetailBuildLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBetaDetails/{id}/build": { + "get": { + "tags": [ + "BuildBetaDetails" + ], + "operationId": "buildBetaDetails_build_getToOneRelated", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "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": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "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": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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": [ + "whatsNew", + "locale", + "build" + ] + } + }, + "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": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "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", + "submittedDate", + "build" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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", + "internalBuildState", + "externalBuildState", + "build" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildIcons]", + "in": "query", + "description": "the fields to include for returned resources of type buildIcons", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "iconAsset", + "iconType", + "masked", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildBundles]", + "in": "query", + "description": "the fields to include for returned resources of type buildBundles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "bundleType", + "sdkBuild", + "platformBuild", + "fileName", + "hasSirikit", + "hasOnDemandResources", + "hasPrerenderedIcon", + "usesLocationServices", + "isIosBuildMacAppStoreCompatible", + "includesSymbols", + "dSYMUrl", + "supportedArchitectures", + "requiredCapabilities", + "deviceProtocols", + "locales", + "entitlements", + "baDownloadAllowance", + "baMaxInstallSize", + "minimumOsVersion", + "appClipDomainCacheStatus", + "appClipDomainDebugStatus", + "betaAppClipInvocations", + "buildBundleFileSizes" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildUploads]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploads", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "cfBundleShortVersionString", + "cfBundleVersion", + "createdDate", + "state", + "platform", + "uploadedDate", + "build", + "assetFile", + "assetDescriptionFile", + "assetSpiFile", + "buildUploadFiles" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 Build", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBundles/{id}/relationships/appClipDomainCacheStatus": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles_appClipDomainCacheStatus_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildBundleAppClipDomainCacheStatusLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBundles/{id}/appClipDomainCacheStatus": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles_appClipDomainCacheStatus_getToOneRelated", + "parameters": [ + { + "name": "fields[appClipDomainStatuses]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDomainStatuses", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "domains", + "lastUpdatedDate" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBundles/{id}/relationships/appClipDomainDebugStatus": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles_appClipDomainDebugStatus_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildBundleAppClipDomainDebugStatusLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBundles/{id}/appClipDomainDebugStatus": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles_appClipDomainDebugStatus_getToOneRelated", + "parameters": [ + { + "name": "fields[appClipDomainStatuses]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDomainStatuses", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "domains", + "lastUpdatedDate" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBundles/{id}/relationships/betaAppClipInvocations": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles_betaAppClipInvocations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildBundleBetaAppClipInvocationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBundles/{id}/betaAppClipInvocations": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles_betaAppClipInvocations_getToManyRelated", + "parameters": [ + { + "name": "fields[betaAppClipInvocations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppClipInvocations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "url", + "betaAppClipInvocationLocalizations" + ] + } + }, + "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": [ + "title", + "locale" + ] + } + }, + "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": [ + "betaAppClipInvocationLocalizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[betaAppClipInvocationLocalizations]", + "in": "query", + "description": "maximum number of related betaAppClipInvocationLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaAppClipInvocations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppClipInvocationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBundles/{id}/relationships/buildBundleFileSizes": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles_buildBundleFileSizes_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildBundleBuildBundleFileSizesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildBundles/{id}/buildBundleFileSizes": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles_buildBundleFileSizes_getToManyRelated", + "parameters": [ + { + "name": "fields[buildBundleFileSizes]", + "in": "query", + "description": "the fields to include for returned resources of type buildBundleFileSizes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "deviceModel", + "osVersion", + "downloadBytes", + "installBytes" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BuildBundleFileSizes", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBundleFileSizesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildUploads/{id}/relationships/buildUploadFiles": { + "get": { + "tags": [ + "BuildUploads" + ], + "operationId": "buildUploads_buildUploadFiles_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildUploadBuildUploadFilesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/buildUploads/{id}/buildUploadFiles": { + "get": { + "tags": [ + "BuildUploads" + ], + "operationId": "buildUploads_buildUploadFiles_getToManyRelated", + "parameters": [ + { + "name": "fields[buildUploadFiles]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploadFiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "sourceFileChecksums", + "uploadOperations", + "uti" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BuildUploadFiles", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildUploadFilesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/app": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_app_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/app": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_app_getToOneRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/appEncryptionDeclaration": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_appEncryptionDeclaration_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Builds" + ], + "operationId": "builds_appEncryptionDeclaration_updateToOneRelationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildAppEncryptionDeclarationLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/appEncryptionDeclaration": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_appEncryptionDeclaration_getToOneRelated", + "parameters": [ + { + "name": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/appStoreVersion": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_appStoreVersion_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildAppStoreVersionLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/appStoreVersion": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_appStoreVersion_getToOneRelated", + "parameters": [ + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "phasedReleaseState", + "startDate", + "totalPauseDuration", + "currentDayNumber" + ] + } + }, + "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": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "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": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "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[appClipDefaultExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "alternativeDistributionPackage" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/betaAppReviewSubmission": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_betaAppReviewSubmission_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildBetaAppReviewSubmissionLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/betaAppReviewSubmission": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_betaAppReviewSubmission_getToOneRelated", + "parameters": [ + { + "name": "fields[betaAppReviewSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaReviewState", + "submittedDate", + "build" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BetaAppReviewSubmission with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaAppReviewSubmissionWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/betaBuildLocalizations": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_betaBuildLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildBetaBuildLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/betaBuildLocalizations": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_betaBuildLocalizations_getToManyRelated", + "parameters": [ + { + "name": "fields[betaBuildLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaBuildLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "whatsNew", + "locale", + "build" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaBuildLocalizationsWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/betaGroups": { + "post": { + "tags": [ + "Builds" + ], + "operationId": "builds_betaGroups_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaGroupsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Builds" + ], + "operationId": "builds_betaGroups_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaGroupsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/buildBetaDetail": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_buildBetaDetail_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildBuildBetaDetailLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/buildBetaDetail": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_buildBetaDetail_getToOneRelated", + "parameters": [ + { + "name": "fields[buildBetaDetails]", + "in": "query", + "description": "the fields to include for returned resources of type buildBetaDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "autoNotifyEnabled", + "internalBuildState", + "externalBuildState", + "build" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "build" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/diagnosticSignatures": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_diagnosticSignatures_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildDiagnosticSignaturesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/diagnosticSignatures": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_diagnosticSignatures_getToManyRelated", + "parameters": [ + { + "name": "filter[diagnosticType]", + "in": "query", + "description": "filter by attribute 'diagnosticType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DISK_WRITES", + "HANGS", + "LAUNCHES" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[diagnosticSignatures]", + "in": "query", + "description": "the fields to include for returned resources of type diagnosticSignatures", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "diagnosticType", + "signature", + "weight", + "insight", + "logs" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 DiagnosticSignatures", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DiagnosticSignaturesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/icons": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_icons_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildIconsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/icons": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_icons_getToManyRelated", + "parameters": [ + { + "name": "fields[buildIcons]", + "in": "query", + "description": "the fields to include for returned resources of type buildIcons", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "iconAsset", + "iconType", + "masked", + "name" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 BuildIcons with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildIconsWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/individualTesters": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_individualTesters_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "Builds" + ], + "operationId": "builds_individualTesters_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildIndividualTestersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Builds" + ], + "operationId": "builds_individualTesters_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildIndividualTestersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/individualTesters": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_individualTesters_getToManyRelated", + "parameters": [ + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/perfPowerMetrics": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_perfPowerMetrics_getToManyRelated", + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[metricType]", + "in": "query", + "description": "filter by attribute 'metricType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DISK", + "HANG", + "BATTERY", + "LAUNCH", + "MEMORY", + "ANIMATION", + "TERMINATION", + "STORAGE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[deviceType]", + "in": "query", + "description": "filter by attribute 'deviceType'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PerfPowerMetrics", + "content": { + "application/vnd.apple.xcode-metrics+json": { + "schema": { + "$ref": "#/components/schemas/xcodeMetrics" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/relationships/preReleaseVersion": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_preReleaseVersion_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BuildPreReleaseVersionLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/preReleaseVersion": { + "get": { + "tags": [ + "Builds" + ], + "operationId": "builds_preReleaseVersion_getToOneRelated", + "parameters": [ + { + "name": "fields[preReleaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type preReleaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PrereleaseVersion with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PrereleaseVersionWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/bundleIds/{id}/relationships/app": { + "get": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_app_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BundleIdAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/bundleIds/{id}/app": { + "get": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_app_getToOneRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/bundleIds/{id}/relationships/bundleIdCapabilities": { + "get": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_bundleIdCapabilities_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BundleIdBundleIdCapabilitiesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/bundleIds/{id}/bundleIdCapabilities": { + "get": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_bundleIdCapabilities_getToManyRelated", + "parameters": [ + { + "name": "fields[bundleIdCapabilities]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIdCapabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "capabilityType", + "settings" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/bundleIds/{id}/relationships/profiles": { + "get": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_profiles_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/BundleIdProfilesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/bundleIds/{id}/profiles": { + "get": { + "tags": [ + "BundleIds" + ], + "operationId": "bundleIds_profiles_getToManyRelated", + "parameters": [ + { + "name": "fields[profiles]", + "in": "query", + "description": "the fields to include for returned resources of type profiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "platform", + "profileType", + "profileState", + "profileContent", + "uuid", + "createdDate", + "expirationDate", + "bundleId", + "devices", + "certificates" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProfilesWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/certificates/{id}/relationships/passTypeId": { + "get": { + "tags": [ + "Certificates" + ], + "operationId": "certificates_passTypeId_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CertificatePassTypeIdLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/certificates/{id}/passTypeId": { + "get": { + "tags": [ + "Certificates" + ], + "operationId": "certificates_passTypeId_getToOneRelated", + "parameters": [ + { + "name": "fields[passTypeIds]", + "in": "query", + "description": "the fields to include for returned resources of type passTypeIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[certificates]", + "in": "query", + "description": "the fields to include for returned resources of type certificates", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "certificates" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[certificates]", + "in": "query", + "description": "maximum number of related certificates returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 PassTypeId", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PassTypeIdResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}/relationships/artifacts": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_artifacts_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiBuildActionArtifactsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}/artifacts": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_artifacts_getToManyRelated", + "parameters": [ + { + "name": "fields[ciArtifacts]", + "in": "query", + "description": "the fields to include for returned resources of type ciArtifacts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileType", + "fileName", + "fileSize", + "downloadUrl" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiArtifacts", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiArtifactsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}/relationships/buildRun": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_buildRun_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiBuildActionBuildRunLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}/buildRun": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_buildRun_getToOneRelated", + "parameters": [ + { + "name": "fields[ciBuildRuns]", + "in": "query", + "description": "the fields to include for returned resources of type ciBuildRuns", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "number", + "createdDate", + "startedDate", + "finishedDate", + "sourceCommit", + "destinationCommit", + "isPullRequestBuild", + "issueCounts", + "executionProgress", + "completionStatus", + "startReason", + "cancelReason", + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "actions", + "pullRequest" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "name", + "description", + "branchStartCondition", + "tagStartCondition", + "pullRequestStartCondition", + "scheduledStartCondition", + "manualBranchStartCondition", + "manualTagStartCondition", + "manualPullRequestStartCondition", + "actions", + "isEnabled", + "isLockedForEditing", + "clean", + "containerFilePath", + "lastModifiedDate", + "product", + "repository", + "xcodeVersion", + "macOsVersion", + "buildRuns" + ] + } + }, + "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": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "title", + "number", + "webUrl", + "sourceRepositoryOwner", + "sourceRepositoryName", + "sourceBranchName", + "destinationRepositoryOwner", + "destinationRepositoryName", + "destinationBranchName", + "isClosed", + "isCrossRepository", + "repository" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "pullRequest" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiBuildRun", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiBuildRunResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}/relationships/issues": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_issues_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiBuildActionIssuesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}/issues": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_issues_getToManyRelated", + "parameters": [ + { + "name": "fields[ciIssues]", + "in": "query", + "description": "the fields to include for returned resources of type ciIssues", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "issueType", + "message", + "fileSource", + "category" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiIssues", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiIssuesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}/relationships/testResults": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_testResults_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiBuildActionTestResultsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildActions/{id}/testResults": { + "get": { + "tags": [ + "CiBuildActions" + ], + "operationId": "ciBuildActions_testResults_getToManyRelated", + "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", + "name", + "status", + "fileSource", + "message", + "destinationTestResults" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiTestResults", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiTestResultsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildRuns/{id}/relationships/actions": { + "get": { + "tags": [ + "CiBuildRuns" + ], + "operationId": "ciBuildRuns_actions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiBuildRunActionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildRuns/{id}/actions": { + "get": { + "tags": [ + "CiBuildRuns" + ], + "operationId": "ciBuildRuns_actions_getToManyRelated", + "parameters": [ + { + "name": "fields[ciBuildActions]", + "in": "query", + "description": "the fields to include for returned resources of type ciBuildActions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "actionType", + "startedDate", + "finishedDate", + "issueCounts", + "executionProgress", + "completionStatus", + "isRequiredToPass", + "buildRun", + "artifacts", + "issues", + "testResults" + ] + } + }, + "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": [ + "number", + "createdDate", + "startedDate", + "finishedDate", + "sourceCommit", + "destinationCommit", + "isPullRequestBuild", + "issueCounts", + "executionProgress", + "completionStatus", + "startReason", + "cancelReason", + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "actions", + "pullRequest" + ] + } + }, + "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": [ + "buildRun" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiBuildActions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiBuildActionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildRuns/{id}/relationships/builds": { + "get": { + "tags": [ + "CiBuildRuns" + ], + "operationId": "ciBuildRuns_builds_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiBuildRunBuildsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciBuildRuns/{id}/builds": { + "get": { + "tags": [ + "CiBuildRuns" + ], + "operationId": "ciBuildRuns_builds_getToManyRelated", + "parameters": [ + { + "name": "filter[version]", + "in": "query", + "description": "filter by attribute 'version'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[expired]", + "in": "query", + "description": "filter by attribute 'expired'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[processingState]", + "in": "query", + "description": "filter by attribute 'processingState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "PROCESSING", + "FAILED", + "INVALID", + "VALID" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[betaAppReviewSubmission.betaReviewState]", + "in": "query", + "description": "filter by attribute 'betaAppReviewSubmission.betaReviewState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "APPROVED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[usesNonExemptEncryption]", + "in": "query", + "description": "filter by attribute 'usesNonExemptEncryption'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[preReleaseVersion.version]", + "in": "query", + "description": "filter by attribute 'preReleaseVersion.version'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[preReleaseVersion.platform]", + "in": "query", + "description": "filter by attribute 'preReleaseVersion.platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[buildAudienceType]", + "in": "query", + "description": "filter by attribute 'buildAudienceType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "INTERNAL_ONLY", + "APP_STORE_ELIGIBLE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[preReleaseVersion]", + "in": "query", + "description": "filter by id(s) of related 'preReleaseVersion'", + "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[betaGroups]", + "in": "query", + "description": "filter by id(s) of related 'betaGroups'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appStoreVersion]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersion'", + "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": "exists[usesNonExemptEncryption]", + "in": "query", + "description": "filter by attribute 'usesNonExemptEncryption'", + "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": [ + "version", + "-version", + "uploadedDate", + "-uploadedDate", + "preReleaseVersion", + "-preReleaseVersion" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "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": [ + "firstName", + "lastName", + "email", + "inviteType", + "state", + "appDevices", + "apps", + "betaGroups", + "builds" + ] + } + }, + "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": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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": [ + "whatsNew", + "locale", + "build" + ] + } + }, + "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": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "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", + "submittedDate", + "build" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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", + "internalBuildState", + "externalBuildState", + "build" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildIcons]", + "in": "query", + "description": "the fields to include for returned resources of type buildIcons", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "iconAsset", + "iconType", + "masked", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildBundles]", + "in": "query", + "description": "the fields to include for returned resources of type buildBundles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "bundleType", + "sdkBuild", + "platformBuild", + "fileName", + "hasSirikit", + "hasOnDemandResources", + "hasPrerenderedIcon", + "usesLocationServices", + "isIosBuildMacAppStoreCompatible", + "includesSymbols", + "dSYMUrl", + "supportedArchitectures", + "requiredCapabilities", + "deviceProtocols", + "locales", + "entitlements", + "baDownloadAllowance", + "baMaxInstallSize", + "minimumOsVersion", + "appClipDomainCacheStatus", + "appClipDomainDebugStatus", + "betaAppClipInvocations", + "buildBundleFileSizes" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildUploads]", + "in": "query", + "description": "the fields to include for returned resources of type buildUploads", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "cfBundleShortVersionString", + "cfBundleVersion", + "createdDate", + "state", + "platform", + "uploadedDate", + "build", + "assetFile", + "assetDescriptionFile", + "assetSpiFile", + "buildUploadFiles" + ] + } + }, + "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": [ + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciMacOsVersions/{id}/relationships/xcodeVersions": { + "get": { + "tags": [ + "CiMacOsVersions" + ], + "operationId": "ciMacOsVersions_xcodeVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiMacOsVersionXcodeVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciMacOsVersions/{id}/xcodeVersions": { + "get": { + "tags": [ + "CiMacOsVersions" + ], + "operationId": "ciMacOsVersions_xcodeVersions_getToManyRelated", + "parameters": [ + { + "name": "fields[ciXcodeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciXcodeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "testDestinations", + "macOsVersions" + ] + } + }, + "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": [ + "version", + "name", + "xcodeVersions" + ] + } + }, + "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": [ + "macOsVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[macOsVersions]", + "in": "query", + "description": "maximum number of related macOsVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiXcodeVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiXcodeVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/relationships/additionalRepositories": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_additionalRepositories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiProductAdditionalRepositoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/additionalRepositories": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_additionalRepositories_getToManyRelated", + "parameters": [ + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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": [ + "scmProviderType", + "url", + "repositories" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "scmProvider", + "defaultBranch" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/relationships/app": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_app_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiProductAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/app": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_app_getToOneRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "appDescription", + "createdDate", + "usesEncryption", + "exempt", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "availableOnFrenchStore", + "platform", + "uploadedDate", + "documentUrl", + "documentName", + "documentType", + "appEncryptionDeclarationState", + "codeValue", + "app", + "builds", + "appEncryptionDeclarationDocument" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[buildIcons]", + "in": "query", + "description": "the fields to include for returned resources of type buildIcons", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "iconAsset", + "iconType", + "masked", + "name" + ] + } + }, + "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": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "name", + "createdDate", + "isInternalGroup", + "hasAccessToAllBuilds", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimitEnabled", + "publicLinkLimit", + "publicLink", + "feedbackEnabled", + "iosBuildsAvailableForAppleSiliconMac", + "iosBuildsAvailableForAppleVision", + "app", + "builds", + "betaTesters", + "betaRecruitmentCriteria", + "betaRecruitmentCriterionCompatibleBuildCheck" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "version", + "platform", + "builds", + "app" + ] + } + }, + "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": [ + "feedbackEmail", + "marketingUrl", + "privacyPolicyUrl", + "tvOsPrivacyPolicy", + "description", + "locale", + "app" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaLicenseAgreements]", + "in": "query", + "description": "the fields to include for returned resources of type betaLicenseAgreements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaAppReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "app" + ] + } + }, + "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": [ + "appStoreState", + "state", + "appStoreAgeRating", + "australiaAgeRating", + "brazilAgeRating", + "brazilAgeRatingV2", + "franceAgeRating", + "koreaAgeRating", + "app", + "ageRatingDeclaration", + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo", + "territoryAgeRatings" + ] + } + }, + "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": [ + "bundleId", + "app", + "appClipDefaultExperiences", + "appClipAdvancedExperiences" + ] + } + }, + "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[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "productId", + "inAppPurchaseType", + "state", + "apps", + "name", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "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": [ + "platform", + "versionString", + "iconAsset", + "compatibleVersions", + "app" + ] + } + }, + "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": [ + "name", + "url", + "visible", + "app", + "appCustomProductPageVersions" + ] + } + }, + "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": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "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": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "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": [ + "platform", + "submittedDate", + "state", + "app", + "items", + "appStoreVersionForReview", + "submittedByActor", + "lastUpdatedByActor" + ] + } + }, + "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": [ + "optIn", + "sandboxOptIn", + "duration", + "renewalType" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "name", + "platform", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "app", + "latestControlVersion", + "controlVersions", + "appStoreVersionExperimentTreatments" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[androidToIosAppMappingDetails]", + "in": "query", + "description": "the fields to include for returned resources of type androidToIosAppMappingDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "packageName", + "appSigningKeyPublicCertificateSha256Fingerprints" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaGroups", + "appStoreVersions", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "endUserLicenseAgreement", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appEncryptionDeclarations]", + "in": "query", + "description": "maximum number of related appEncryptionDeclarations 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[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[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" + }, + { + "name": "limit[androidToIosAppMappingDetails]", + "in": "query", + "description": "maximum number of related androidToIosAppMappingDetails returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/relationships/buildRuns": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_buildRuns_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiProductBuildRunsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/buildRuns": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_buildRuns_getToManyRelated", + "parameters": [ + { + "name": "filter[builds]", + "in": "query", + "description": "filter by id(s) of related 'builds'", + "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": [ + "number", + "-number" + ] + } + }, + "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": [ + "number", + "createdDate", + "startedDate", + "finishedDate", + "sourceCommit", + "destinationCommit", + "isPullRequestBuild", + "issueCounts", + "executionProgress", + "completionStatus", + "startReason", + "cancelReason", + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "actions", + "pullRequest" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "name", + "description", + "branchStartCondition", + "tagStartCondition", + "pullRequestStartCondition", + "scheduledStartCondition", + "manualBranchStartCondition", + "manualTagStartCondition", + "manualPullRequestStartCondition", + "actions", + "isEnabled", + "isLockedForEditing", + "clean", + "containerFilePath", + "lastModifiedDate", + "product", + "repository", + "xcodeVersion", + "macOsVersion", + "buildRuns" + ] + } + }, + "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": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "title", + "number", + "webUrl", + "sourceRepositoryOwner", + "sourceRepositoryName", + "sourceBranchName", + "destinationRepositoryOwner", + "destinationRepositoryName", + "destinationBranchName", + "isClosed", + "isCrossRepository", + "repository" + ] + } + }, + "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": [ + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "pullRequest" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiBuildRuns", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiBuildRunsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/relationships/primaryRepositories": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_primaryRepositories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiProductPrimaryRepositoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/primaryRepositories": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_primaryRepositories_getToManyRelated", + "parameters": [ + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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": [ + "scmProviderType", + "url", + "repositories" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "scmProvider", + "defaultBranch" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/relationships/workflows": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_workflows_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiProductWorkflowsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciProducts/{id}/workflows": { + "get": { + "tags": [ + "CiProducts" + ], + "operationId": "ciProducts_workflows_getToManyRelated", + "parameters": [ + { + "name": "fields[ciWorkflows]", + "in": "query", + "description": "the fields to include for returned resources of type ciWorkflows", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "description", + "branchStartCondition", + "tagStartCondition", + "pullRequestStartCondition", + "scheduledStartCondition", + "manualBranchStartCondition", + "manualTagStartCondition", + "manualPullRequestStartCondition", + "actions", + "isEnabled", + "isLockedForEditing", + "clean", + "containerFilePath", + "lastModifiedDate", + "product", + "repository", + "xcodeVersion", + "macOsVersion", + "buildRuns" + ] + } + }, + "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": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[ciXcodeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciXcodeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "testDestinations", + "macOsVersions" + ] + } + }, + "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": [ + "version", + "name", + "xcodeVersions" + ] + } + }, + "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": [ + "product", + "repository", + "xcodeVersion", + "macOsVersion" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiWorkflows", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiWorkflowsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciWorkflows/{id}/relationships/buildRuns": { + "get": { + "tags": [ + "CiWorkflows" + ], + "operationId": "ciWorkflows_buildRuns_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiWorkflowBuildRunsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciWorkflows/{id}/buildRuns": { + "get": { + "tags": [ + "CiWorkflows" + ], + "operationId": "ciWorkflows_buildRuns_getToManyRelated", + "parameters": [ + { + "name": "filter[builds]", + "in": "query", + "description": "filter by id(s) of related 'builds'", + "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": [ + "number", + "-number" + ] + } + }, + "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": [ + "number", + "createdDate", + "startedDate", + "finishedDate", + "sourceCommit", + "destinationCommit", + "isPullRequestBuild", + "issueCounts", + "executionProgress", + "completionStatus", + "startReason", + "cancelReason", + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "actions", + "pullRequest" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "name", + "description", + "branchStartCondition", + "tagStartCondition", + "pullRequestStartCondition", + "scheduledStartCondition", + "manualBranchStartCondition", + "manualTagStartCondition", + "manualPullRequestStartCondition", + "actions", + "isEnabled", + "isLockedForEditing", + "clean", + "containerFilePath", + "lastModifiedDate", + "product", + "repository", + "xcodeVersion", + "macOsVersion", + "buildRuns" + ] + } + }, + "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": [ + "name", + "createdDate", + "productType", + "app", + "bundleId", + "workflows", + "primaryRepositories", + "additionalRepositories", + "buildRuns" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "title", + "number", + "webUrl", + "sourceRepositoryOwner", + "sourceRepositoryName", + "sourceBranchName", + "destinationRepositoryOwner", + "destinationRepositoryName", + "destinationBranchName", + "isClosed", + "isCrossRepository", + "repository" + ] + } + }, + "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": [ + "builds", + "workflow", + "product", + "sourceBranchOrTag", + "destinationBranch", + "pullRequest" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiBuildRuns", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiBuildRunsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciWorkflows/{id}/relationships/repository": { + "get": { + "tags": [ + "CiWorkflows" + ], + "operationId": "ciWorkflows_repository_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiWorkflowRepositoryLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciWorkflows/{id}/repository": { + "get": { + "tags": [ + "CiWorkflows" + ], + "operationId": "ciWorkflows_repository_getToOneRelated", + "parameters": [ + { + "name": "fields[scmRepositories]", + "in": "query", + "description": "the fields to include for returned resources of type scmRepositories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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": [ + "scmProviderType", + "url", + "repositories" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "scmProvider", + "defaultBranch" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciXcodeVersions/{id}/relationships/macOsVersions": { + "get": { + "tags": [ + "CiXcodeVersions" + ], + "operationId": "ciXcodeVersions_macOsVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CiXcodeVersionMacOsVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/ciXcodeVersions/{id}/macOsVersions": { + "get": { + "tags": [ + "CiXcodeVersions" + ], + "operationId": "ciXcodeVersions_macOsVersions_getToManyRelated", + "parameters": [ + { + "name": "fields[ciMacOsVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciMacOsVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "xcodeVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[ciXcodeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type ciXcodeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "name", + "testDestinations", + "macOsVersions" + ] + } + }, + "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": [ + "xcodeVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[xcodeVersions]", + "in": "query", + "description": "maximum number of related xcodeVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CiMacOsVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiMacOsVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/customerReviews/{id}/relationships/response": { + "get": { + "tags": [ + "CustomerReviews" + ], + "operationId": "customerReviews_response_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/CustomerReviewResponseLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/customerReviews/{id}/response": { + "get": { + "tags": [ + "CustomerReviews" + ], + "operationId": "customerReviews_response_getToOneRelated", + "parameters": [ + { + "name": "fields[customerReviewResponses]", + "in": "query", + "description": "the fields to include for returned resources of type customerReviewResponses", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "responseBody", + "lastModifiedDate", + "state", + "review" + ] + } + }, + "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": [ + "rating", + "title", + "body", + "reviewerNickname", + "createdDate", + "territory", + "response", + "reviewTerritory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "review" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 CustomerReviewResponse", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewResponseV1Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/diagnosticSignatures/{id}/logs": { + "get": { + "tags": [ + "DiagnosticSignatures" + ], + "operationId": "diagnosticSignatures_logs_getToManyRelated", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 DiagnosticLogs", + "content": { + "application/vnd.apple.diagnostic-logs+json": { + "schema": { + "$ref": "#/components/schemas/diagnosticLogs" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/endUserLicenseAgreements/{id}/relationships/territories": { + "get": { + "tags": [ + "EndUserLicenseAgreements" + ], + "operationId": "endUserLicenseAgreements_territories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/EndUserLicenseAgreementTerritoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/endUserLicenseAgreements/{id}/territories": { + "get": { + "tags": [ + "EndUserLicenseAgreements" + ], + "operationId": "endUserLicenseAgreements_territories_getToManyRelated", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoriesWithoutIncludesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievementLocalizations/{id}/relationships/image": { + "get": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizationsV2_image_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementLocalizationV2ImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievementLocalizations/{id}/image": { + "get": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizationsV2_image_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "localization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAchievementImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievement": { + "get": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizations_gameCenterAchievement_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementLocalizationGameCenterAchievementLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievementLocalizations/{id}/gameCenterAchievement": { + "get": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizations_gameCenterAchievement_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievementImage": { + "get": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizations_gameCenterAchievementImage_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementLocalizationGameCenterAchievementImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievementLocalizations/{id}/gameCenterAchievementImage": { + "get": { + "tags": [ + "GameCenterAchievementLocalizations" + ], + "operationId": "gameCenterAchievementLocalizations_gameCenterAchievementImage_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterAchievementLocalization" + ] + } + }, + "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": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "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": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAchievementImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievementVersions/{id}/relationships/localizations": { + "get": { + "tags": [ + "GameCenterAchievementVersions" + ], + "operationId": "gameCenterAchievementVersionsV2_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementVersionV2LocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievementVersions/{id}/localizations": { + "get": { + "tags": [ + "GameCenterAchievementVersions" + ], + "operationId": "gameCenterAchievementVersionsV2_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "achievement", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementLocalizationsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievements/{id}/relationships/activity": { + "patch": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievementsV2_activity_updateToOneRelationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementV2ActivityLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievements/{id}/relationships/versions": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievementsV2_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementV2VersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterAchievements/{id}/versions": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievementsV2_versions_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterAchievementVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "achievement", + "localizations" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "activity", + "versions" + ] + } + }, + "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": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "version", + "image" + ] + } + }, + "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": [ + "achievement", + "localizations" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterAchievementVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementVersionsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievements/{id}/relationships/activity": { + "patch": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_activity_updateToOneRelationship", + "deprecated": true, + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementActivityLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievements/{id}/relationships/groupAchievement": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_groupAchievement_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementGroupAchievementLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_groupAchievement_updateToOneRelationship", + "deprecated": true, + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementGroupAchievementLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievements/{id}/groupAchievement": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_groupAchievement_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievements/{id}/relationships/localizations": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievements/{id}/localizations": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_localizations_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterAchievementLocalization" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievements/{id}/relationships/releases": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_releases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementReleasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAchievements/{id}/releases": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements_releases_getToManyRelated", + "deprecated": true, + "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": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivities/{id}/relationships/achievements": { + "post": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_achievements_createToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityAchievementsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_achievements_deleteToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityAchievementsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivities/{id}/relationships/achievementsV2": { + "post": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_achievementsV2_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityAchievementsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_achievementsV2_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityAchievementsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivities/{id}/relationships/leaderboards": { + "post": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_leaderboards_createToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_leaderboards_deleteToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivities/{id}/relationships/leaderboardsV2": { + "post": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_leaderboardsV2_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLeaderboardsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_leaderboardsV2_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLeaderboardsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivities/{id}/relationships/versions": { + "get": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterActivityVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivities/{id}/versions": { + "get": { + "tags": [ + "GameCenterActivities" + ], + "operationId": "gameCenterActivities_versions_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "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": [ + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "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", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityLocalizations/{id}/relationships/image": { + "get": { + "tags": [ + "GameCenterActivityLocalizations" + ], + "operationId": "gameCenterActivityLocalizations_image_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterActivityLocalizationImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityLocalizations/{id}/image": { + "get": { + "tags": [ + "GameCenterActivityLocalizations" + ], + "operationId": "gameCenterActivityLocalizations_image_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterActivityImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityVersions/{id}/relationships/defaultImage": { + "get": { + "tags": [ + "GameCenterActivityVersions" + ], + "operationId": "gameCenterActivityVersions_defaultImage_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterActivityVersionDefaultImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityVersions/{id}/defaultImage": { + "get": { + "tags": [ + "GameCenterActivityVersions" + ], + "operationId": "gameCenterActivityVersions_defaultImage_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterActivityImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityVersions/{id}/relationships/localizations": { + "get": { + "tags": [ + "GameCenterActivityVersions" + ], + "operationId": "gameCenterActivityVersions_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterActivityVersionLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterActivityVersions/{id}/localizations": { + "get": { + "tags": [ + "GameCenterActivityVersions" + ], + "operationId": "gameCenterActivityVersions_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterActivityLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAppVersions/{id}/relationships/appStoreVersion": { + "get": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_appStoreVersion_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAppVersionAppStoreVersionLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAppVersions/{id}/appStoreVersion": { + "get": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_appStoreVersion_getToOneRelated", + "parameters": [ + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "description", + "locale", + "keywords", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew", + "appStoreVersion", + "appScreenshotSets", + "appPreviewSets", + "searchKeywords", + "placements" + ] + } + }, + "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": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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": [ + "phasedReleaseState", + "startDate", + "totalPauseDuration", + "currentDayNumber" + ] + } + }, + "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": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "uploadOperations", + "assetDeliveryState", + "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": [ + "contactFirstName", + "contactLastName", + "contactPhone", + "contactEmail", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes", + "appStoreVersion", + "appStoreReviewAttachments" + ] + } + }, + "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[appClipDefaultExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "releaseWithAppStoreVersion", + "appClipDefaultExperienceLocalizations", + "appClipAppStoreReviewDetail" + ] + } + }, + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[alternativeDistributionPackages]", + "in": "query", + "description": "the fields to include for returned resources of type alternativeDistributionPackages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "sourceFileChecksum", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "alternativeDistributionPackage" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAppVersions/{id}/relationships/compatibilityVersions": { + "get": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_compatibilityVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_compatibilityVersions_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionCompatibilityVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_compatibilityVersions_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionCompatibilityVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterAppVersions/{id}/compatibilityVersions": { + "get": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions_compatibilityVersions_getToManyRelated", + "parameters": [ + { + "name": "filter[enabled]", + "in": "query", + "description": "filter by attribute 'enabled'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[compatibilityVersions]", + "in": "query", + "description": "maximum number of related compatibilityVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeLocalizations/{id}/relationships/image": { + "get": { + "tags": [ + "GameCenterChallengeLocalizations" + ], + "operationId": "gameCenterChallengeLocalizations_image_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterChallengeLocalizationImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeLocalizations/{id}/image": { + "get": { + "tags": [ + "GameCenterChallengeLocalizations" + ], + "operationId": "gameCenterChallengeLocalizations_image_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterChallengeImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeVersions/{id}/relationships/defaultImage": { + "get": { + "tags": [ + "GameCenterChallengeVersions" + ], + "operationId": "gameCenterChallengeVersions_defaultImage_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterChallengeVersionDefaultImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeVersions/{id}/defaultImage": { + "get": { + "tags": [ + "GameCenterChallengeVersions" + ], + "operationId": "gameCenterChallengeVersions_defaultImage_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterChallengeImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeImageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeVersions/{id}/relationships/localizations": { + "get": { + "tags": [ + "GameCenterChallengeVersions" + ], + "operationId": "gameCenterChallengeVersions_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterChallengeVersionLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallengeVersions/{id}/localizations": { + "get": { + "tags": [ + "GameCenterChallengeVersions" + ], + "operationId": "gameCenterChallengeVersions_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterChallengeLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeLocalizationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallenges/{id}/relationships/leaderboard": { + "patch": { + "tags": [ + "GameCenterChallenges" + ], + "operationId": "gameCenterChallenges_leaderboard_updateToOneRelationship", + "deprecated": true, + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeLeaderboardLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallenges/{id}/relationships/leaderboardV2": { + "patch": { + "tags": [ + "GameCenterChallenges" + ], + "operationId": "gameCenterChallenges_leaderboardV2_updateToOneRelationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeLeaderboardV2LinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallenges/{id}/relationships/versions": { + "get": { + "tags": [ + "GameCenterChallenges" + ], + "operationId": "gameCenterChallenges_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterChallengeVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterChallenges/{id}/versions": { + "get": { + "tags": [ + "GameCenterChallenges" + ], + "operationId": "gameCenterChallenges_versions_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "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", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/achievementReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_achievementReleases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailAchievementReleasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/achievementReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_achievementReleases_getToManyRelated", + "deprecated": true, + "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, + "deprecated": true + }, + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/activityReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_activityReleases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailActivityReleasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/activityReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_activityReleases_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterActivityVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivityVersionReleases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivityVersionReleasesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/blockedPlayers": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_blockedPlayers_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailBlockedPlayersLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/blockedPlayers": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_blockedPlayers_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterDetailPlayers]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetailPlayers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "nickname", + "blocked", + "bundleId" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterDetailPlayers", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailPlayersResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/challengeReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_challengeReleases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailChallengeReleasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/challengeReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_challengeReleases_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterChallengeVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallengeVersionReleases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengeVersionReleasesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/challengesMinimumPlatformVersions": { + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_challengesMinimumPlatformVersions_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailChallengesMinimumPlatformVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterAchievements": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterAchievements_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterAchievements_replaceToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterAchievementsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterAchievements": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterAchievements_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "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", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterAchievementsV2": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterAchievementsV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailGameCenterAchievementsV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterAchievementsV2_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterAchievementsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterAchievementsV2": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterAchievementsV2_getToManyRelated", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "activity", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "achievement", + "localizations" + ] + } + }, + "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", + "gameCenterGroup", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterActivities": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterActivities_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailGameCenterActivitiesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterActivities": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterActivities_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "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", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[achievements]", + "in": "query", + "description": "maximum number of related achievements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[achievementsV2]", + "in": "query", + "description": "maximum number of related achievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[leaderboards]", + "in": "query", + "description": "maximum number of related leaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[leaderboardsV2]", + "in": "query", + "description": "maximum number of related leaderboardsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivitiesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterAppVersions": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterAppVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailGameCenterAppVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterAppVersions": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterAppVersions_getToManyRelated", + "parameters": [ + { + "name": "filter[enabled]", + "in": "query", + "description": "filter by attribute 'enabled'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[compatibilityVersions]", + "in": "query", + "description": "maximum number of related compatibilityVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterChallenges": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterChallenges_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailGameCenterChallengesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterChallenges": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterChallenges_getToManyRelated", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "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", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallenges", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterGroup": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterGroup_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailGameCenterGroupLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterGroup": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterGroup_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases", + "versions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardsV2 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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardSetsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSetsV2 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", + "deprecated": true + }, + { + "name": "limit[gameCenterAchievementsV2]", + "in": "query", + "description": "maximum number of related gameCenterAchievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterActivities]", + "in": "query", + "description": "maximum number of related gameCenterActivities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterChallenges]", + "in": "query", + "description": "maximum number of related gameCenterChallenges returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSets": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardSets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardSets_replaceToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterLeaderboardSets": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardSets_getToManyRelated", + "deprecated": true, + "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[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "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", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSetsV2": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardSetsV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailGameCenterLeaderboardSetsV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardSetsV2_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterLeaderboardSetsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterLeaderboardSetsV2": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardSetsV2_getToManyRelated", + "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[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboardSet", + "localizations" + ] + } + }, + "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", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboards_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboards_replaceToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboards_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/gameCenterLeaderboardsV2": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardsV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailGameCenterLeaderboardsV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardsV2_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterLeaderboardsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/gameCenterLeaderboardsV2": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_gameCenterLeaderboardsV2_getToManyRelated", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "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", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "activity", + "challenge", + "versions" + ] + } + }, + "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[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/leaderboardReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_leaderboardReleases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailLeaderboardReleasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/leaderboardReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_leaderboardReleases_getToManyRelated", + "deprecated": true, + "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, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/relationships/leaderboardSetReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_leaderboardSetReleases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterDetailLeaderboardSetReleasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/leaderboardSetReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails_leaderboardSetReleases_getToManyRelated", + "deprecated": true, + "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, + "deprecated": true + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterEnabledVersions/{id}/relationships/compatibleVersions": { + "get": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions_compatibleVersions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions_compatibleVersions_createToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions_compatibleVersions_replaceToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions_compatibleVersions_deleteToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterEnabledVersions/{id}/compatibleVersions": { + "get": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions_compatibleVersions_getToManyRelated", + "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", + "VISION_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": [ + "platform", + "versionString", + "iconAsset", + "compatibleVersions", + "app" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "compatibleVersions", + "app" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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 + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterAchievements": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterAchievements_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterAchievements_replaceToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterAchievementsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterAchievements": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterAchievements_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "locale", + "name", + "beforeEarnedDescription", + "afterEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "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", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterAchievementsV2": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterAchievementsV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterGroupGameCenterAchievementsV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterAchievementsV2_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterAchievementsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterAchievementsV2": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterAchievementsV2_getToManyRelated", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "activity", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "achievement", + "localizations" + ] + } + }, + "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", + "gameCenterGroup", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterAchievementsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterActivities": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterActivities_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterGroupGameCenterActivitiesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterActivities": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterActivities_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "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", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[achievements]", + "in": "query", + "description": "maximum number of related achievements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[achievementsV2]", + "in": "query", + "description": "maximum number of related achievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[leaderboards]", + "in": "query", + "description": "maximum number of related leaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[leaderboardsV2]", + "in": "query", + "description": "maximum number of related leaderboardsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterActivities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterActivitiesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterChallenges": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterChallenges_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterGroupGameCenterChallengesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterChallenges": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterChallenges_getToManyRelated", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "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", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterChallenges", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterChallengesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterDetails": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterDetails_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterGroupGameCenterDetailsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterDetails": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterDetails_getToManyRelated", + "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[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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": [ + "enabled", + "compatibilityVersions", + "appStoreVersion" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge", + "gameCenterScoreModerations", + "versions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases", + "versions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "points", + "showBeforeEarned", + "repeatable", + "archived", + "activityProperties", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases", + "activity", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeVersionReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersionReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "challengesMinimumPlatformVersions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardsV2 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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboardSetsV2]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSetsV2 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", + "deprecated": true + }, + { + "name": "limit[gameCenterAchievementsV2]", + "in": "query", + "description": "maximum number of related gameCenterAchievementsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterActivities]", + "in": "query", + "description": "maximum number of related gameCenterActivities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterChallenges]", + "in": "query", + "description": "maximum number of related gameCenterChallenges 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", + "deprecated": true + }, + { + "name": "limit[activityReleases]", + "in": "query", + "description": "maximum number of related activityReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[challengeReleases]", + "in": "query", + "description": "maximum number of related challengeReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[leaderboardReleases]", + "in": "query", + "description": "maximum number of related leaderboardReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[leaderboardSetReleases]", + "in": "query", + "description": "maximum number of related leaderboardSetReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[challengesMinimumPlatformVersions]", + "in": "query", + "description": "maximum number of related challengesMinimumPlatformVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSets": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardSets_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardSets_replaceToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterLeaderboardSets": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardSets_getToManyRelated", + "deprecated": true, + "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[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "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", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSetsV2": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardSetsV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterGroupGameCenterLeaderboardSetsV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardSetsV2_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterLeaderboardSetsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterLeaderboardSetsV2": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardSetsV2_getToManyRelated", + "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[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboardSet", + "localizations" + ] + } + }, + "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", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboards_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboards_replaceToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboards_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/relationships/gameCenterLeaderboardsV2": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardsV2_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterGroupGameCenterLeaderboardsV2LinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardsV2_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterLeaderboardsV2LinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterGroups/{id}/gameCenterLeaderboardsV2": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups_gameCenterLeaderboardsV2_getToManyRelated", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "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", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "activity", + "challenge", + "versions" + ] + } + }, + "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[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardLocalizations/{id}/relationships/gameCenterLeaderboardImage": { + "get": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizations_gameCenterLeaderboardImage_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardLocalizationGameCenterLeaderboardImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardLocalizations/{id}/gameCenterLeaderboardImage": { + "get": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizations_gameCenterLeaderboardImage_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterLeaderboardLocalization" + ] + } + }, + "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": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardLocalizations/{id}/relationships/image": { + "get": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizationsV2_image_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardLocalizationV2ImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardLocalizations/{id}/image": { + "get": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizationsV2_image_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "localization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetLocalizations/{id}/relationships/gameCenterLeaderboardSetImage": { + "get": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizations_gameCenterLeaderboardSetImage_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetLocalizationGameCenterLeaderboardSetImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetLocalizations/{id}/gameCenterLeaderboardSetImage": { + "get": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizations_gameCenterLeaderboardSetImage_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterLeaderboardSetLocalization" + ] + } + }, + "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": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSetLocalizations/{id}/relationships/image": { + "get": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizationsV2_image_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetLocalizationV2ImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSetLocalizations/{id}/image": { + "get": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizationsV2_image_getToOneRelated", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "locale", + "name", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "localization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboard": { + "get": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboard_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetMemberLocalizationGameCenterLeaderboardLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboard": { + "get": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboard_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboardSet": { + "get": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboardSet_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetMemberLocalizationGameCenterLeaderboardSetLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboardSet": { + "get": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations_gameCenterLeaderboardSet_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSetVersions/{id}/relationships/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboardSetVersions" + ], + "operationId": "gameCenterLeaderboardSetVersionsV2_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetVersionV2LocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSetVersions/{id}/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboardSetVersions" + ], + "operationId": "gameCenterLeaderboardSetVersionsV2_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboardSet", + "localizations" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetLocalizationsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_gameCenterLeaderboards_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetV2GameCenterLeaderboardsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_gameCenterLeaderboards_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2GameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_gameCenterLeaderboards_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2GameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_gameCenterLeaderboards_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2GameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSets/{id}/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_gameCenterLeaderboards_getToManyRelated", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "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", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "activity", + "challenge", + "versions" + ] + } + }, + "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[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSets/{id}/relationships/versions": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetV2VersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardSets/{id}/versions": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSetsV2_versions_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboardSet", + "localizations" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "versions" + ] + } + }, + "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": [ + "locale", + "name", + "version", + "image" + ] + } + }, + "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": [ + "leaderboardSet", + "localizations" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterLeaderboardSetVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_gameCenterLeaderboards_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_gameCenterLeaderboards_createToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_gameCenterLeaderboards_replaceToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_gameCenterLeaderboards_deleteToManyRelationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets/{id}/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_gameCenterLeaderboards_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "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[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "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", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_groupLeaderboardSet_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_groupLeaderboardSet_updateToOneRelationship", + "deprecated": true, + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets/{id}/groupLeaderboardSet": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_groupLeaderboardSet_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets/{id}/relationships/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets/{id}/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_localizations_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterLeaderboardSetLocalization" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets/{id}/relationships/releases": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_releases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardSetReleasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboardSets/{id}/releases": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets_releases_getToManyRelated", + "deprecated": true, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardVersions/{id}/relationships/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboardVersions" + ], + "operationId": "gameCenterLeaderboardVersionsV2_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardVersionV2LocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboardVersions/{id}/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboardVersions" + ], + "operationId": "gameCenterLeaderboardVersionsV2_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "localization" + ] + } + }, + "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": [ + "version", + "image" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardLocalizationsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards/{id}/relationships/activity": { + "patch": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_activity_updateToOneRelationship", + "deprecated": true, + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardActivityLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards/{id}/relationships/challenge": { + "patch": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_challenge_updateToOneRelationship", + "deprecated": true, + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardChallengeLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards/{id}/relationships/groupLeaderboard": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_groupLeaderboard_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_groupLeaderboard_updateToOneRelationship", + "deprecated": true, + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardGroupLeaderboardLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards/{id}/groupLeaderboard": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_groupLeaderboard_getToOneRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "referenceName", + "gameCenterDetails", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges" + ] + } + }, + "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": [ + "referenceName", + "vendorIdentifier", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboardSet", + "localizations", + "gameCenterLeaderboards", + "releases" + ] + } + }, + "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": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "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": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivities]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "playStyle", + "minimumPlayersCount", + "maximumPlayersCount", + "supportsPartyCode", + "archived", + "properties", + "gameCenterDetail", + "gameCenterGroup", + "achievements", + "achievementsV2", + "leaderboards", + "leaderboardsV2", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallenges]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallenges", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "vendorIdentifier", + "archived", + "challengeType", + "repeatable", + "gameCenterDetail", + "gameCenterGroup", + "versions", + "leaderboard", + "leaderboardV2" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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", + "deprecated": true + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards/{id}/relationships/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards/{id}/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_localizations_getToManyRelated", + "deprecated": true, + "parameters": [ + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "imageAsset", + "uploadOperations", + "assetDeliveryState", + "gameCenterLeaderboardLocalization" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards/{id}/relationships/releases": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_releases_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardReleasesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterLeaderboards/{id}/releases": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards_releases_getToManyRelated", + "deprecated": true, + "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[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "live", + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "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": [ + "arcadeEnabled", + "challengeEnabled", + "app", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboards", + "gameCenterLeaderboardsV2", + "gameCenterLeaderboardSets", + "gameCenterLeaderboardSetsV2", + "gameCenterAchievements", + "gameCenterAchievementsV2", + "gameCenterActivities", + "gameCenterChallenges", + "defaultLeaderboard", + "defaultLeaderboardV2", + "defaultGroupLeaderboard", + "defaultGroupLeaderboardV2", + "achievementReleases", + "activityReleases", + "challengeReleases", + "leaderboardReleases", + "leaderboardSetReleases", + "blockedPlayers", + "challengesMinimumPlatformVersions" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "groupLeaderboard", + "gameCenterLeaderboardSets", + "localizations", + "releases", + "activity", + "challenge" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboards/{id}/relationships/activity": { + "patch": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_activity_updateToOneRelationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardV2ActivityLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboards/{id}/relationships/challenge": { + "patch": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_challenge_updateToOneRelationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardV2ChallengeLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboards/{id}/relationships/gameCenterScoreModerations": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_gameCenterScoreModerations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardV2GameCenterScoreModerationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboards/{id}/gameCenterScoreModerations": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_gameCenterScoreModerations_getToManyRelated", + "parameters": [ + { + "name": "exists[blocked]", + "in": "query", + "description": "filter by attribute 'blocked'", + "schema": { + "type": "boolean" + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterScoreModerations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterScoreModerations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "rank", + "score", + "submittedDate", + "blocked", + "preReleased", + "context", + "challengeIds", + "player" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetailPlayers]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetailPlayers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "nickname", + "blocked", + "bundleId" + ] + } + }, + "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": [ + "player" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterScoreModerations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterScoreModerationsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboards/{id}/relationships/versions": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterLeaderboardV2VersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/gameCenterLeaderboards/{id}/versions": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboardsV2_versions_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "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": [ + "defaultFormatter", + "referenceName", + "vendorIdentifier", + "submissionType", + "scoreSortType", + "scoreRangeStart", + "scoreRangeEnd", + "recurrenceStartDate", + "recurrenceDuration", + "recurrenceRule", + "archived", + "activityProperties", + "visibility", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterScoreModerations", + "activity", + "challenge", + "versions" + ] + } + }, + "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": [ + "locale", + "name", + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "description", + "version", + "image" + ] + } + }, + "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": [ + "leaderboard", + "localizations" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterLeaderboardVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRuleSets/{id}/relationships/matchmakingQueues": { + "get": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_matchmakingQueues_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterMatchmakingRuleSetMatchmakingQueuesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRuleSets/{id}/matchmakingQueues": { + "get": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_matchmakingQueues_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterMatchmakingQueues]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingQueues", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "classicMatchmakingBundleIds", + "ruleSet", + "experimentRuleSet" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterMatchmakingRuleSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingRuleSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "ruleLanguageVersion", + "minPlayers", + "maxPlayers", + "teams", + "rules", + "matchmakingQueues" + ] + } + }, + "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": [ + "ruleSet", + "experimentRuleSet" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterMatchmakingQueues", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueuesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRuleSets/{id}/relationships/rules": { + "get": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_rules_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterMatchmakingRuleSetRulesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRuleSets/{id}/rules": { + "get": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_rules_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterMatchmakingRules]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingRules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "description", + "type", + "expression", + "weight" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterMatchmakingRules", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRulesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRuleSets/{id}/relationships/teams": { + "get": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_teams_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/GameCenterMatchmakingRuleSetTeamsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRuleSets/{id}/teams": { + "get": { + "tags": [ + "GameCenterMatchmakingRuleSets" + ], + "operationId": "gameCenterMatchmakingRuleSets_teams_getToManyRelated", + "parameters": [ + { + "name": "fields[gameCenterMatchmakingTeams]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterMatchmakingTeams", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "minPlayers", + "maxPlayers" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 GameCenterMatchmakingTeams", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingTeamsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseAvailabilities/{id}/relationships/availableTerritories": { + "get": { + "tags": [ + "InAppPurchaseAvailabilities" + ], + "operationId": "inAppPurchaseAvailabilities_availableTerritories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseAvailabilityAvailableTerritoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseAvailabilities/{id}/availableTerritories": { + "get": { + "tags": [ + "InAppPurchaseAvailabilities" + ], + "operationId": "inAppPurchaseAvailabilities_availableTerritories_getToManyRelated", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodeOneTimeUseCodes/{id}/values": { + "get": { + "tags": [ + "InAppPurchaseOfferCodeOneTimeUseCodes" + ], + "operationId": "inAppPurchaseOfferCodeOneTimeUseCodes_values_getToOneRelated", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseOfferCodeOneTimeUseCodeValue", + "content": { + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodes/{id}/relationships/customCodes": { + "get": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_customCodes_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseOfferCodeCustomCodesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodes/{id}/customCodes": { + "get": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_customCodes_getToManyRelated", + "parameters": [ + { + "name": "fields[inAppPurchaseOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCode", + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "createdByActor", + "deactivatedByActor" + ] + } + }, + "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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "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": [ + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseOfferCodeCustomCodes", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCodesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodes/{id}/relationships/oneTimeUseCodes": { + "get": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_oneTimeUseCodes_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseOfferCodeOneTimeUseCodesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodes/{id}/oneTimeUseCodes": { + "get": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_oneTimeUseCodes_getToManyRelated", + "parameters": [ + { + "name": "fields[inAppPurchaseOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "environment", + "values", + "createdByActor", + "deactivatedByActor" + ] + } + }, + "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", + "userFirstName", + "userLastName", + "userEmail", + "apiKeyId" + ] + } + }, + "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": [ + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseOfferCodeOneTimeUseCodes", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCodesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodes/{id}/relationships/prices": { + "get": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_prices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseOfferCodePricesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseOfferCodes/{id}/prices": { + "get": { + "tags": [ + "InAppPurchaseOfferCodes" + ], + "operationId": "inAppPurchaseOfferCodes_prices_getToManyRelated", + "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[inAppPurchaseOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "pricePoint" + ] + } + }, + "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[inAppPurchasePricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "territory", + "equalizations" + ] + } + }, + "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": [ + "territory", + "pricePoint" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseOfferPrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferPricesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePricePoints/{id}/relationships/equalizations": { + "get": { + "tags": [ + "InAppPurchasePricePoints" + ], + "operationId": "inAppPurchasePricePoints_equalizations_getToManyRelationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchasePricePointEqualizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePricePoints/{id}/equalizations": { + "get": { + "tags": [ + "InAppPurchasePricePoints" + ], + "operationId": "inAppPurchasePricePoints_equalizations_getToManyRelated", + "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": "filter[inAppPurchaseV2]", + "in": "query", + "description": "filter by id(s) of related 'inAppPurchaseV2'", + "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", + "proceeds", + "territory", + "equalizations" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePriceSchedules/{id}/relationships/automaticPrices": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules_automaticPrices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchasePriceScheduleAutomaticPricesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePriceSchedules/{id}/automaticPrices": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules_automaticPrices_getToManyRelated", + "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[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "startDate", + "endDate", + "manual", + "inAppPurchasePricePoint", + "territory" + ] + } + }, + "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", + "proceeds", + "territory", + "equalizations" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePriceSchedules/{id}/relationships/baseTerritory": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules_baseTerritory_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchasePriceScheduleBaseTerritoryLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePriceSchedules/{id}/baseTerritory": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules_baseTerritory_getToOneRelated", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePriceSchedules/{id}/relationships/manualPrices": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules_manualPrices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchasePriceScheduleManualPricesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchasePriceSchedules/{id}/manualPrices": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules_manualPrices_getToManyRelated", + "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[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "startDate", + "endDate", + "manual", + "inAppPurchasePricePoint", + "territory" + ] + } + }, + "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", + "proceeds", + "territory", + "equalizations" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseVersions/{id}/relationships/image": { + "get": { + "tags": [ + "InAppPurchaseVersions" + ], + "operationId": "inAppPurchaseVersions_image_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseVersionImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseVersions/{id}/image": { + "get": { + "tags": [ + "InAppPurchaseVersions" + ], + "operationId": "inAppPurchaseVersions_image_getToOneRelated", + "parameters": [ + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseVersions/{id}/relationships/images": { + "get": { + "tags": [ + "InAppPurchaseVersions" + ], + "operationId": "inAppPurchaseVersions_images_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseVersionImagesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseVersions/{id}/images": { + "get": { + "tags": [ + "InAppPurchaseVersions" + ], + "operationId": "inAppPurchaseVersions_images_getToManyRelated", + "parameters": [ + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseImages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImagesV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseVersions/{id}/relationships/localizations": { + "get": { + "tags": [ + "InAppPurchaseVersions" + ], + "operationId": "inAppPurchaseVersions_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseVersionLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/inAppPurchaseVersions/{id}/localizations": { + "get": { + "tags": [ + "InAppPurchaseVersions" + ], + "operationId": "inAppPurchaseVersions_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseLocalizationsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/appStoreReviewScreenshot": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_appStoreReviewScreenshot_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2AppStoreReviewScreenshotLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/appStoreReviewScreenshot": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_appStoreReviewScreenshot_getToOneRelated", + "parameters": [ + { + "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "inAppPurchaseV2" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/content": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_content_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2ContentLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/content": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_content_getToOneRelated", + "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", + "url", + "lastModifiedDate", + "inAppPurchaseV2" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/iapPriceSchedule": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_iapPriceSchedule_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2IapPriceScheduleLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/iapPriceSchedule": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_iapPriceSchedule_getToOneRelated", + "parameters": [ + { + "name": "fields[inAppPurchasePriceSchedules]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "startDate", + "endDate", + "manual", + "inAppPurchasePricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "baseTerritory", + "manualPrices", + "automaticPrices" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/images": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_images_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2ImagesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/images": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_images_getToManyRelated", + "parameters": [ + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "assetToken", + "imageAsset", + "uploadOperations", + "state", + "inAppPurchase" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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": [ + "inAppPurchase" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseImages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseImagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/inAppPurchaseAvailability": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_inAppPurchaseAvailability_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2InAppPurchaseAvailabilityLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/inAppPurchaseAvailability": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_inAppPurchaseAvailability_getToOneRelated", + "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" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableTerritories" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/inAppPurchaseLocalizations": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_inAppPurchaseLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2InAppPurchaseLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/inAppPurchaseLocalizations": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_inAppPurchaseLocalizations_getToManyRelated", + "parameters": [ + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "state", + "inAppPurchaseV2" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/offerCodes": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_offerCodes_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2OfferCodesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/offerCodes": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_offerCodes_getToManyRelated", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by territory", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customerEligibilities", + "productionCodeCount", + "sandboxCodeCount", + "active", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "environment", + "values", + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCode", + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "createdByActor", + "deactivatedByActor" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "pricePoint" + ] + } + }, + "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": [ + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseOfferCodes", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/pricePoints": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_pricePoints_getToManyRelationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2PricePointsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/pricePoints": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_pricePoints_getToManyRelated", + "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", + "proceeds", + "territory", + "equalizations" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/promotedPurchase": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_promotedPurchase_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2PromotedPurchaseLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/promotedPurchase": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_promotedPurchase_getToOneRelated", + "parameters": [ + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/versions": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/InAppPurchaseV2VersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + }, + "/v2/inAppPurchases/{id}/versions": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2_versions_getToManyRelated", + "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", + "DEVELOPER_REJECTED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "version" + ] + } + }, + "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": [ + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[images]", + "in": "query", + "description": "maximum number of related images 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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 InAppPurchaseVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/merchantIds/{id}/relationships/certificates": { + "get": { + "tags": [ + "MerchantIds" + ], + "operationId": "merchantIds_certificates_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/MerchantIdCertificatesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/merchantIds/{id}/certificates": { + "get": { + "tags": [ + "MerchantIds" + ], + "operationId": "merchantIds_certificates_getToManyRelated", + "parameters": [ + { + "name": "filter[displayName]", + "in": "query", + "description": "filter by attribute 'displayName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[certificateType]", + "in": "query", + "description": "filter by attribute 'certificateType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APPLE_PAY", + "APPLE_PAY_MERCHANT_IDENTITY", + "APPLE_PAY_PSP_IDENTITY", + "APPLE_PAY_RSA", + "DEVELOPER_ID_KEXT", + "DEVELOPER_ID_KEXT_G2", + "DEVELOPER_ID_APPLICATION", + "DEVELOPER_ID_APPLICATION_G2", + "DEVELOPMENT", + "DISTRIBUTION", + "IDENTITY_ACCESS", + "IOS_DEVELOPMENT", + "IOS_DISTRIBUTION", + "MAC_APP_DISTRIBUTION", + "MAC_INSTALLER_DISTRIBUTION", + "MAC_APP_DEVELOPMENT", + "PASS_TYPE_ID", + "PASS_TYPE_ID_WITH_NFC" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[serialNumber]", + "in": "query", + "description": "filter by attribute 'serialNumber'", + "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": [ + "displayName", + "-displayName", + "certificateType", + "-certificateType", + "serialNumber", + "-serialNumber", + "id", + "-id" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[certificates]", + "in": "query", + "description": "the fields to include for returned resources of type certificates", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[passTypeIds]", + "in": "query", + "description": "the fields to include for returned resources of type passTypeIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "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": [ + "passTypeId" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificatesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/passTypeIds/{id}/relationships/certificates": { + "get": { + "tags": [ + "PassTypeIds" + ], + "operationId": "passTypeIds_certificates_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/PassTypeIdCertificatesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/passTypeIds/{id}/certificates": { + "get": { + "tags": [ + "PassTypeIds" + ], + "operationId": "passTypeIds_certificates_getToManyRelated", + "parameters": [ + { + "name": "filter[displayName]", + "in": "query", + "description": "filter by attribute 'displayName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[certificateType]", + "in": "query", + "description": "filter by attribute 'certificateType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APPLE_PAY", + "APPLE_PAY_MERCHANT_IDENTITY", + "APPLE_PAY_PSP_IDENTITY", + "APPLE_PAY_RSA", + "DEVELOPER_ID_KEXT", + "DEVELOPER_ID_KEXT_G2", + "DEVELOPER_ID_APPLICATION", + "DEVELOPER_ID_APPLICATION_G2", + "DEVELOPMENT", + "DISTRIBUTION", + "IDENTITY_ACCESS", + "IOS_DEVELOPMENT", + "IOS_DISTRIBUTION", + "MAC_APP_DISTRIBUTION", + "MAC_INSTALLER_DISTRIBUTION", + "MAC_APP_DEVELOPMENT", + "PASS_TYPE_ID", + "PASS_TYPE_ID_WITH_NFC" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[serialNumber]", + "in": "query", + "description": "filter by attribute 'serialNumber'", + "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": [ + "displayName", + "-displayName", + "certificateType", + "-certificateType", + "serialNumber", + "-serialNumber", + "id", + "-id" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[certificates]", + "in": "query", + "description": "the fields to include for returned resources of type certificates", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[passTypeIds]", + "in": "query", + "description": "the fields to include for returned resources of type passTypeIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "identifier", + "certificates" + ] + } + }, + "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": [ + "passTypeId" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificatesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/preReleaseVersions/{id}/relationships/app": { + "get": { + "tags": [ + "PreReleaseVersions" + ], + "operationId": "preReleaseVersions_app_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/PrereleaseVersionAppLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/preReleaseVersions/{id}/app": { + "get": { + "tags": [ + "PreReleaseVersions" + ], + "operationId": "preReleaseVersions_app_getToOneRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/preReleaseVersions/{id}/relationships/builds": { + "get": { + "tags": [ + "PreReleaseVersions" + ], + "operationId": "preReleaseVersions_builds_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/PrereleaseVersionBuildsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/preReleaseVersions/{id}/builds": { + "get": { + "tags": [ + "PreReleaseVersions" + ], + "operationId": "preReleaseVersions_builds_getToManyRelated", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "uploadedDate", + "expirationDate", + "expired", + "minOsVersion", + "lsMinimumSystemVersion", + "computedMinMacOsVersion", + "computedMinVisionOsVersion", + "iconAssetToken", + "processingState", + "buildAudienceType", + "usesNonExemptEncryption", + "preReleaseVersion", + "individualTesters", + "betaGroups", + "betaBuildLocalizations", + "appEncryptionDeclaration", + "betaAppReviewSubmission", + "app", + "buildBetaDetail", + "appStoreVersion", + "icons", + "buildBundles", + "buildUpload", + "perfPowerMetrics", + "diagnosticSignatures" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/profiles/{id}/relationships/bundleId": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_bundleId_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/ProfileBundleIdLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/profiles/{id}/bundleId": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_bundleId_getToOneRelated", + "parameters": [ + { + "name": "fields[bundleIds]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "platform", + "identifier", + "seedId", + "profiles", + "bundleIdCapabilities", + "app" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/profiles/{id}/relationships/certificates": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_certificates_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/ProfileCertificatesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/profiles/{id}/certificates": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_certificates_getToManyRelated", + "parameters": [ + { + "name": "fields[certificates]", + "in": "query", + "description": "the fields to include for returned resources of type certificates", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "certificateType", + "displayName", + "serialNumber", + "platform", + "expirationDate", + "certificateContent", + "activated", + "passTypeId" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/profiles/{id}/relationships/devices": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_devices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/ProfileDevicesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/profiles/{id}/devices": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles_devices_getToManyRelated", + "parameters": [ + { + "name": "fields[devices]", + "in": "query", + "description": "the fields to include for returned resources of type devices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "platform", + "udid", + "deviceClass", + "status", + "model", + "addedDate" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/reviewSubmissions/{id}/relationships/items": { + "get": { + "tags": [ + "ReviewSubmissions" + ], + "operationId": "reviewSubmissions_items_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/ReviewSubmissionItemsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/reviewSubmissions/{id}/items": { + "get": { + "tags": [ + "ReviewSubmissions" + ], + "operationId": "reviewSubmissions_items_getToManyRelated", + "parameters": [ + { + "name": "fields[reviewSubmissionItems]", + "in": "query", + "description": "the fields to include for returned resources of type reviewSubmissionItems", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "state", + "appStoreVersion", + "appCustomProductPageVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appEvent", + "appAssetLibraryImage", + "appAssetLibraryVideo", + "backgroundAssetVersion", + "gameCenterAchievementVersion", + "gameCenterActivityVersion", + "gameCenterChallengeVersion", + "gameCenterLeaderboardSetVersion", + "gameCenterLeaderboardVersion", + "inAppPurchaseVersion", + "subscriptionVersion", + "subscriptionGroupVersion" + ] + } + }, + "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": [ + "platform", + "versionString", + "appStoreState", + "appVersionState", + "copyright", + "reviewType", + "releaseType", + "earliestReleaseDate", + "usesIdfa", + "downloadable", + "createdDate", + "app", + "appStoreVersionLocalizations", + "build", + "appStoreVersionPhasedRelease", + "gameCenterAppVersion", + "routingAppCoverage", + "appStoreReviewDetail", + "appStoreVersionSubmission", + "appClipDefaultExperience", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "customerReviews", + "alternativeDistributionPackage" + ] + } + }, + "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": [ + "version", + "state", + "deepLink", + "appCustomProductPage", + "appCustomProductPageLocalizations" + ] + } + }, + "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": [ + "name", + "trafficProportion", + "state", + "reviewRequired", + "startDate", + "endDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "platform", + "app", + "latestControlVersion", + "controlVersions" + ] + } + }, + "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": [ + "referenceName", + "badge", + "eventState", + "deepLink", + "purchaseRequirement", + "primaryLocale", + "priority", + "purpose", + "territorySchedules", + "archivedTerritorySchedules", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryImages]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "imageAsset", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appAssetLibraryVideos]", + "in": "query", + "description": "the fields to include for returned resources of type appAssetLibraryVideos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "category", + "createdDate", + "lastModifiedDate", + "fileName", + "fileSize", + "previewFrameImage", + "previewFrameTimeCode", + "referenceName", + "specId", + "state", + "stateDetails", + "uploadOperations", + "videoAsset", + "placements" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[backgroundAssetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type backgroundAssetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "platforms", + "state", + "stateDetails", + "version", + "locale", + "backgroundAsset", + "internalBetaRelease", + "externalBetaRelease", + "appStoreRelease", + "assetFile", + "manifestFile", + "backgroundAssetUploadFiles" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "achievement", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterActivityVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterActivityVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "fallbackUrl", + "activity", + "localizations", + "defaultImage", + "releases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterChallengeVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterChallengeVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "challenge", + "localizations", + "releases", + "defaultImage" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboardSet", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "leaderboard", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseVersions]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "inAppPurchase", + "image", + "images", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscription", + "image", + "images", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionGroupVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscriptionGroup", + "localizations" + ] + } + }, + "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": [ + "appStoreVersion", + "appCustomProductPageVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "appEvent", + "appAssetLibraryImage", + "appAssetLibraryVideo", + "backgroundAssetVersion", + "gameCenterAchievementVersion", + "gameCenterActivityVersion", + "gameCenterChallengeVersion", + "gameCenterLeaderboardSetVersion", + "gameCenterLeaderboardVersion", + "inAppPurchaseVersion", + "subscriptionVersion", + "subscriptionGroupVersion" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmProviders/{id}/relationships/repositories": { + "get": { + "tags": [ + "ScmProviders" + ], + "operationId": "scmProviders_repositories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/ScmProviderRepositoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmProviders/{id}/repositories": { + "get": { + "tags": [ + "ScmProviders" + ], + "operationId": "scmProviders_repositories_getToManyRelated", + "parameters": [ + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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": [ + "scmProviderType", + "url", + "repositories" + ] + } + }, + "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": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "repository" + ] + } + }, + "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": [ + "scmProvider", + "defaultBranch" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmRepositories/{id}/relationships/gitReferences": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories_gitReferences_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/ScmRepositoryGitReferencesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmRepositories/{id}/gitReferences": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories_gitReferences_getToManyRelated", + "parameters": [ + { + "name": "fields[scmGitReferences]", + "in": "query", + "description": "the fields to include for returned resources of type scmGitReferences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "canonicalName", + "isDeleted", + "kind", + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmRepositories/{id}/relationships/pullRequests": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories_pullRequests_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/ScmRepositoryPullRequestsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/scmRepositories/{id}/pullRequests": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories_pullRequests_getToManyRelated", + "parameters": [ + { + "name": "fields[scmPullRequests]", + "in": "query", + "description": "the fields to include for returned resources of type scmPullRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "title", + "number", + "webUrl", + "sourceRepositoryOwner", + "sourceRepositoryName", + "sourceBranchName", + "destinationRepositoryOwner", + "destinationRepositoryName", + "destinationBranchName", + "isClosed", + "isCrossRepository", + "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": [ + "lastAccessedDate", + "httpCloneUrl", + "sshCloneUrl", + "ownerName", + "repositoryName", + "scmProvider", + "defaultBranch", + "gitReferences", + "pullRequests" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionAvailabilities/{id}/relationships/availableTerritories": { + "get": { + "tags": [ + "SubscriptionAvailabilities" + ], + "operationId": "subscriptionAvailabilities_availableTerritories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionAvailabilityAvailableTerritoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionAvailabilities/{id}/availableTerritories": { + "get": { + "tags": [ + "SubscriptionAvailabilities" + ], + "operationId": "subscriptionAvailabilities_availableTerritories_getToManyRelated", + "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" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroupVersions/{id}/relationships/localizations": { + "get": { + "tags": [ + "SubscriptionGroupVersions" + ], + "operationId": "subscriptionGroupVersions_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionGroupVersionLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroupVersions/{id}/localizations": { + "get": { + "tags": [ + "SubscriptionGroupVersions" + ], + "operationId": "subscriptionGroupVersions_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionGroupLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customAppName", + "locale", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionGroupVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscriptionGroup", + "localizations" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionGroupLocalizationsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroups/{id}/relationships/subscriptionGroupLocalizations": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_subscriptionGroupLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionGroupSubscriptionGroupLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroups/{id}/subscriptionGroupLocalizations": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_subscriptionGroupLocalizations_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionGroupLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "customAppName", + "locale", + "state", + "subscriptionGroup" + ] + } + }, + "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": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroups/{id}/relationships/subscriptions": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_subscriptions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionGroupSubscriptionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroups/{id}/subscriptions": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_subscriptions_getToManyRelated", + "parameters": [ + { + "name": "filter[productId]", + "in": "query", + "description": "filter by attribute 'productId'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "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[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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": [ + "name", + "locale", + "description", + "state", + "subscription" + ] + } + }, + "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": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "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": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "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": [ + "startDate", + "endDate", + "duration", + "offerMode", + "numberOfPeriods", + "targetSubscriptionPlanType", + "subscription", + "territory", + "subscriptionPricePoint" + ] + } + }, + "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", + "targetSubscriptionPlanType", + "subscription", + "prices" + ] + } + }, + "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": [ + "name", + "customerEligibilities", + "offerEligibility", + "duration", + "offerMode", + "numberOfPeriods", + "totalNumberOfCodes", + "productionCodeCount", + "sandboxCodeCount", + "active", + "autoRenewEnabled", + "targetSubscriptionPlanType", + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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": [ + "startDate", + "preserved", + "planType", + "territory", + "subscriptionPricePoint" + ] + } + }, + "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": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "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" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[winBackOffers]", + "in": "query", + "description": "the fields to include for returned resources of type winBackOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "offerId", + "duration", + "offerMode", + "periodCount", + "customerEligibilityPaidSubscriptionDurationInMonths", + "customerEligibilityTimeSinceLastSubscribedInMonths", + "customerEligibilityWaitBetweenOffersInMonths", + "startDate", + "endDate", + "priority", + "promotionIntent", + "targetSubscriptionPlanType", + "prices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "assetToken", + "imageAsset", + "uploadOperations", + "state", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPlanAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPlanAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "planType", + "availableTerritories" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscription", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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": "limit[winBackOffers]", + "in": "query", + "description": "maximum number of related winBackOffers returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[images]", + "in": "query", + "description": "maximum number of related images returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[planAvailabilities]", + "in": "query", + "description": "maximum number of related planAvailabilities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[versions]", + "in": "query", + "description": "maximum number of related versions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroups/{id}/relationships/versions": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionGroupVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionGroups/{id}/versions": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups_versions_getToManyRelated", + "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", + "DEVELOPER_REJECTED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionGroupVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscriptionGroup", + "localizations" + ] + } + }, + "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": [ + "referenceName", + "subscriptions", + "subscriptionGroupLocalizations", + "versions" + ] + } + }, + "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": [ + "name", + "customAppName", + "locale", + "version" + ] + } + }, + "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", + "localizations" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionGroupVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodeOneTimeUseCodes/{id}/values": { + "get": { + "tags": [ + "SubscriptionOfferCodeOneTimeUseCodes" + ], + "operationId": "subscriptionOfferCodeOneTimeUseCodes_values_getToOneRelated", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodes/{id}/relationships/customCodes": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_customCodes_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionOfferCodeCustomCodesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodes/{id}/customCodes": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_customCodes_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCode", + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "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": [ + "name", + "customerEligibilities", + "offerEligibility", + "duration", + "offerMode", + "numberOfPeriods", + "totalNumberOfCodes", + "productionCodeCount", + "sandboxCodeCount", + "active", + "autoRenewEnabled", + "targetSubscriptionPlanType", + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodes/{id}/relationships/oneTimeUseCodes": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_oneTimeUseCodes_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionOfferCodeOneTimeUseCodesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodes/{id}/oneTimeUseCodes": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_oneTimeUseCodes_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "environment", + "offerCode", + "values" + ] + } + }, + "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": [ + "name", + "customerEligibilities", + "offerEligibility", + "duration", + "offerMode", + "numberOfPeriods", + "totalNumberOfCodes", + "productionCodeCount", + "sandboxCodeCount", + "active", + "autoRenewEnabled", + "targetSubscriptionPlanType", + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodes/{id}/relationships/prices": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_prices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionOfferCodePricesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionOfferCodes/{id}/prices": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes_prices_getToManyRelated", + "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[subscriptionOfferCodePrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPlanAvailabilities/{id}/relationships/availableTerritories": { + "get": { + "tags": [ + "SubscriptionPlanAvailabilities" + ], + "operationId": "subscriptionPlanAvailabilities_availableTerritories_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionPlanAvailabilities" + ], + "operationId": "subscriptionPlanAvailabilities_availableTerritories_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPlanAvailabilities/{id}/availableTerritories": { + "get": { + "tags": [ + "SubscriptionPlanAvailabilities" + ], + "operationId": "subscriptionPlanAvailabilities_availableTerritories_getToManyRelated", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPricePoints/{id}/adjustedEqualizations": { + "get": { + "tags": [ + "SubscriptionPricePoints" + ], + "operationId": "subscriptionPricePoints_adjustedEqualizations_getToManyRelated", + "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": "filter[subscription]", + "in": "query", + "description": "filter by id(s) of related 'subscription'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[upfrontPricePointId]", + "in": "query", + "description": "filter by upfrontPricePointId", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[planType]", + "in": "query", + "description": "filter by planType", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "fields[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPricePoints/{id}/relationships/equalizations": { + "get": { + "tags": [ + "SubscriptionPricePoints" + ], + "operationId": "subscriptionPricePoints_equalizations_getToManyRelationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionPricePointEqualizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPricePoints/{id}/equalizations": { + "get": { + "tags": [ + "SubscriptionPricePoints" + ], + "operationId": "subscriptionPricePoints_equalizations_getToManyRelated", + "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": "filter[subscription]", + "in": "query", + "description": "filter by id(s) of related 'subscription'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[upfrontPricePointId]", + "in": "query", + "description": "filter by upfrontPricePointId", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[planType]", + "in": "query", + "description": "filter by planType", + "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", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPromotionalOffers/{id}/relationships/prices": { + "get": { + "tags": [ + "SubscriptionPromotionalOffers" + ], + "operationId": "subscriptionPromotionalOffers_prices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionPromotionalOfferPricesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionPromotionalOffers/{id}/prices": { + "get": { + "tags": [ + "SubscriptionPromotionalOffers" + ], + "operationId": "subscriptionPromotionalOffers_prices_getToManyRelated", + "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[subscriptionPromotionalOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPromotionalOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionVersions/{id}/relationships/image": { + "get": { + "tags": [ + "SubscriptionVersions" + ], + "operationId": "subscriptionVersions_image_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionVersionImageLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionVersions/{id}/image": { + "get": { + "tags": [ + "SubscriptionVersions" + ], + "operationId": "subscriptionVersions_image_getToOneRelated", + "parameters": [ + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImageV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionVersions/{id}/relationships/images": { + "get": { + "tags": [ + "SubscriptionVersions" + ], + "operationId": "subscriptionVersions_images_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionVersionImagesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionVersions/{id}/images": { + "get": { + "tags": [ + "SubscriptionVersions" + ], + "operationId": "subscriptionVersions_images_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionImages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImagesV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionVersions/{id}/relationships/localizations": { + "get": { + "tags": [ + "SubscriptionVersions" + ], + "operationId": "subscriptionVersions_localizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionVersionLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptionVersions/{id}/localizations": { + "get": { + "tags": [ + "SubscriptionVersions" + ], + "operationId": "subscriptionVersions_localizations_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscription", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "version" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionLocalizationsV2Response" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/appStoreReviewScreenshot": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_appStoreReviewScreenshot_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionAppStoreReviewScreenshotLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/appStoreReviewScreenshot": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_appStoreReviewScreenshot_getToOneRelated", + "parameters": [ + { + "name": "fields[subscriptionAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "imageAsset", + "assetToken", + "assetType", + "uploadOperations", + "assetDeliveryState", + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/images": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_images_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionImagesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/images": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_images_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "sourceFileChecksum", + "assetToken", + "imageAsset", + "uploadOperations", + "state", + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionImages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionImagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/introductoryOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_introductoryOffers_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_introductoryOffers_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/introductoryOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_introductoryOffers_getToManyRelated", + "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[subscriptionIntroductoryOffers]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionIntroductoryOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "startDate", + "endDate", + "duration", + "offerMode", + "numberOfPeriods", + "targetSubscriptionPlanType", + "subscription", + "territory", + "subscriptionPricePoint" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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", + "territory", + "subscriptionPricePoint" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/offerCodes": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_offerCodes_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionOfferCodesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/offerCodes": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_offerCodes_getToManyRelated", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by territory", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "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": [ + "name", + "customerEligibilities", + "offerEligibility", + "duration", + "offerMode", + "numberOfPeriods", + "totalNumberOfCodes", + "productionCodeCount", + "sandboxCodeCount", + "active", + "autoRenewEnabled", + "targetSubscriptionPlanType", + "subscription", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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": [ + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "environment", + "offerCode", + "values" + ] + } + }, + "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": [ + "customCode", + "numberOfCodes", + "createdDate", + "expirationDate", + "active", + "offerCode" + ] + } + }, + "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": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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", + "oneTimeUseCodes", + "customCodes", + "prices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/planAvailabilities": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_planAvailabilities_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionPlanAvailabilitiesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/planAvailabilities": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_planAvailabilities_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionPlanAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPlanAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "planType", + "availableTerritories" + ] + } + }, + "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": [ + "availableTerritories" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionPlanAvailabilities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPlanAvailabilitiesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/pricePoints": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_pricePoints_getToManyRelationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionPricePointsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/pricePoints": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_pricePoints_getToManyRelated", + "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": "filter[upfrontPricePointId]", + "in": "query", + "description": "filter by upfrontPricePointId", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[planType]", + "in": "query", + "description": "filter by planType", + "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", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/prices": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_prices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_prices_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPricesLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/prices": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_prices_getToManyRelated", + "parameters": [ + { + "name": "filter[planType]", + "in": "query", + "description": "filter by attribute 'planType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "MONTHLY", + "UPFRONT" + ] + } + }, + "style": "form", + "explode": false + }, + { + "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[subscriptionPrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "startDate", + "preserved", + "planType", + "territory", + "subscriptionPricePoint" + ] + } + }, + "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[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/promotedPurchase": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_promotedPurchase_getToOneRelationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionPromotedPurchaseLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/promotedPurchase": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_promotedPurchase_getToOneRelated", + "parameters": [ + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "visibleForAllUsers", + "enabled", + "state", + "inAppPurchaseV2", + "subscription" + ] + } + }, + "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": [ + "name", + "productId", + "inAppPurchaseType", + "state", + "reviewNote", + "familySharable", + "contentHosting", + "inAppPurchaseLocalizations", + "pricePoints", + "content", + "appStoreReviewScreenshot", + "promotedPurchase", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "images", + "offerCodes", + "versions" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/promotionalOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_promotionalOffers_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionPromotionalOffersLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/promotionalOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_promotionalOffers_getToManyRelated", + "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", + "targetSubscriptionPlanType", + "subscription", + "prices" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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", + "prices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/subscriptionAvailability": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_subscriptionAvailability_getToOneRelationship", + "deprecated": true, + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionSubscriptionAvailabilityLinkageResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/subscriptionAvailability": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_subscriptionAvailability_getToOneRelated", + "deprecated": true, + "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" + ] + } + }, + "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": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableTerritories" + ] + } + }, + "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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/subscriptionLocalizations": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_subscriptionLocalizations_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionSubscriptionLocalizationsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/subscriptionLocalizations": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_subscriptionLocalizations_getToManyRelated", + "parameters": [ + { + "name": "fields[subscriptionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "locale", + "description", + "state", + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/versions": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_versions_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionVersionsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/versions": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_versions_getToManyRelated", + "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", + "DEVELOPER_REJECTED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionVersions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "version", + "state", + "subscription", + "image", + "images", + "localizations" + ] + } + }, + "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": [ + "name", + "productId", + "familySharable", + "state", + "subscriptionPeriod", + "reviewNote", + "groupLevel", + "multiSeatStatus", + "marketSettings", + "subscriptionLocalizations", + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "promotionalOffers", + "offerCodes", + "prices", + "pricePoints", + "promotedPurchase", + "subscriptionAvailability", + "winBackOffers", + "images", + "planAvailabilities", + "versions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionImages]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileSize", + "fileName", + "assetToken", + "imageAsset", + "uploadOperations", + "assetDeliveryState" + ] + } + }, + "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": [ + "name", + "locale", + "description", + "version" + ] + } + }, + "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", + "image", + "images", + "localizations" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[images]", + "in": "query", + "description": "maximum number of related images 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" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 SubscriptionVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionVersionsResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/relationships/winBackOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_winBackOffers_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/SubscriptionWinBackOffersLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/subscriptions/{id}/winBackOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions_winBackOffers_getToManyRelated", + "parameters": [ + { + "name": "fields[winBackOffers]", + "in": "query", + "description": "the fields to include for returned resources of type winBackOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "referenceName", + "offerId", + "duration", + "offerMode", + "periodCount", + "customerEligibilityPaidSubscriptionDurationInMonths", + "customerEligibilityTimeSinceLastSubscribedInMonths", + "customerEligibilityWaitBetweenOffersInMonths", + "startDate", + "endDate", + "priority", + "promotionIntent", + "targetSubscriptionPlanType", + "prices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[winBackOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type winBackOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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": [ + "prices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 WinBackOffers", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WinBackOffersResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/userInvitations/{id}/relationships/visibleApps": { + "get": { + "tags": [ + "UserInvitations" + ], + "operationId": "userInvitations_visibleApps_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/UserInvitationVisibleAppsLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/userInvitations/{id}/visibleApps": { + "get": { + "tags": [ + "UserInvitations" + ], + "operationId": "userInvitations_visibleApps_getToManyRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/users/{id}/relationships/visibleApps": { + "get": { + "tags": [ + "Users" + ], + "operationId": "users_visibleApps_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "Users" + ], + "operationId": "users_visibleApps_createToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Users" + ], + "operationId": "users_visibleApps_replaceToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Users" + ], + "operationId": "users_visibleApps_deleteToManyRelationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "422": { + "description": "Unprocessable request entity error(s)", + "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)" + }, + "429": { + "description": "Rate limit exceeded error", + "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/users/{id}/visibleApps": { + "get": { + "tags": [ + "Users" + ], + "operationId": "users_visibleApps_getToManyRelated", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "accessibilityUrl", + "name", + "bundleId", + "sku", + "primaryLocale", + "isOrEverWasMadeForKids", + "subscriptionStatusUrl", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersionForSandbox", + "contentRightsDeclaration", + "streamlinedPurchasingEnabled", + "accessibilityDeclarations", + "appEncryptionDeclarations", + "appStoreIcon", + "ciProduct", + "betaTesters", + "betaGroups", + "appStoreVersions", + "appTags", + "preReleaseVersions", + "betaAppLocalizations", + "builds", + "betaLicenseAgreement", + "betaAppReviewDetail", + "appInfos", + "appClips", + "appPricePoints", + "endUserLicenseAgreement", + "appPriceSchedule", + "appAvailabilityV2", + "inAppPurchases", + "subscriptionGroups", + "gameCenterEnabledVersions", + "performanceOverviews", + "perfPowerMetrics", + "appCustomProductPages", + "inAppPurchasesV2", + "promotedPurchases", + "appEvents", + "reviewSubmissions", + "subscriptionGracePeriod", + "customerReviews", + "customerReviewSummarizations", + "gameCenterDetail", + "appStoreVersionExperimentsV2", + "alternativeDistributionKey", + "analyticsReportRequests", + "marketplaceSearchDetail", + "buildUploads", + "backgroundAssets", + "assetLibrary", + "betaFeedbackScreenshotSubmissions", + "betaFeedbackCrashSubmissions", + "searchKeywords", + "webhooks", + "androidToIosAppMappingDetails" + ] + } + }, + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/webhooks/{id}/relationships/deliveries": { + "get": { + "tags": [ + "Webhooks" + ], + "operationId": "webhooks_deliveries_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/WebhookDeliveriesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/webhooks/{id}/deliveries": { + "get": { + "tags": [ + "Webhooks" + ], + "operationId": "webhooks_deliveries_getToManyRelated", + "parameters": [ + { + "name": "filter[deliveryState]", + "in": "query", + "description": "filter by attribute 'deliveryState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "SUCCEEDED", + "FAILED", + "PENDING" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[createdDateGreaterThanOrEqualTo]", + "in": "query", + "description": "filter by createdDateGreaterThanOrEqualTo", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[createdDateLessThan]", + "in": "query", + "description": "filter by createdDateLessThan", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[webhookDeliveries]", + "in": "query", + "description": "the fields to include for returned resources of type webhookDeliveries", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "deliveryState", + "errorMessage", + "redelivery", + "sentDate", + "request", + "response", + "event" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[webhookEvents]", + "in": "query", + "description": "the fields to include for returned resources of type webhookEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "eventType", + "payload", + "ping", + "createdDate" + ] + } + }, + "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": [ + "event" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 WebhookDeliveries", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookDeliveriesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/winBackOffers/{id}/relationships/prices": { + "get": { + "tags": [ + "WinBackOffers" + ], + "operationId": "winBackOffers_prices_getToManyRelationship", + "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" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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/WinBackOfferPricesLinkagesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/winBackOffers/{id}/prices": { + "get": { + "tags": [ + "WinBackOffers" + ], + "operationId": "winBackOffers_prices_getToManyRelated", + "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[winBackOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type winBackOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "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[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "proceeds", + "proceedsYear2", + "territory", + "equalizations", + "adjustedEqualizations" + ] + } + }, + "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": [ + "territory", + "subscriptionPricePoint" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden 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 WinBackOfferPrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WinBackOfferPricesResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/apps/{id}/metrics/betaTesterUsages": { + "get": { + "tags": [ + "Apps", + "Metrics" + ], + "operationId": "apps_betaTesterUsages_getMetrics", + "parameters": [ + { + "name": "period", + "in": "query", + "description": "the duration of the reporting period", + "schema": { + "type": "string", + "enum": [ + "P7D", + "P30D", + "P90D", + "P365D" + ] + }, + "style": "form", + "explode": false, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaTesters" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[betaTesters]", + "in": "query", + "description": "filter by 'betaTesters' relationship dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppsBetaTesterUsagesV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/metrics/betaTesterUsages": { + "get": { + "tags": [ + "BetaGroups", + "Metrics" + ], + "operationId": "betaGroups_betaTesterUsages_getMetrics", + "parameters": [ + { + "name": "period", + "in": "query", + "description": "the duration of the reporting period", + "schema": { + "type": "string", + "enum": [ + "P7D", + "P30D", + "P90D", + "P365D" + ] + }, + "style": "form", + "explode": false, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaTesters" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[betaTesters]", + "in": "query", + "description": "filter by 'betaTesters' relationship dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppsBetaTesterUsagesV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaGroups/{id}/metrics/publicLinkUsages": { + "get": { + "tags": [ + "BetaGroups", + "Metrics" + ], + "operationId": "betaGroups_publicLinkUsages_getMetrics", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaPublicLinkUsagesV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/betaTesters/{id}/metrics/betaTesterUsages": { + "get": { + "tags": [ + "BetaTesters", + "Metrics" + ], + "operationId": "betaTesters_betaTesterUsages_getMetrics", + "parameters": [ + { + "name": "period", + "in": "query", + "description": "the duration of the reporting period", + "schema": { + "type": "string", + "enum": [ + "P7D", + "P30D", + "P90D", + "P365D" + ] + }, + "style": "form", + "explode": false, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "filter[apps]", + "in": "query", + "description": "filter by 'apps' relationship dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterUsagesV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/builds/{id}/metrics/betaBuildUsages": { + "get": { + "tags": [ + "Builds", + "Metrics" + ], + "operationId": "builds_betaBuildUsages_getMetrics", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaBuildUsagesV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/metrics/classicMatchmakingRequests": { + "get": { + "tags": [ + "GameCenterDetails", + "Metrics" + ], + "operationId": "gameCenterDetails_classicMatchmakingRequests_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "result" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[result]", + "in": "query", + "description": "filter by 'result' attribute dimension", + "schema": { + "type": "string", + "enum": [ + "MATCHED", + "CANCELED", + "EXPIRED" + ] + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count", + "averageSecondsInQueue", + "-averageSecondsInQueue", + "p50SecondsInQueue", + "-p50SecondsInQueue", + "p95SecondsInQueue", + "-p95SecondsInQueue" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingAppRequestsV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterDetails/{id}/metrics/ruleBasedMatchmakingRequests": { + "get": { + "tags": [ + "GameCenterDetails", + "Metrics" + ], + "operationId": "gameCenterDetails_ruleBasedMatchmakingRequests_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "result" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[result]", + "in": "query", + "description": "filter by 'result' attribute dimension", + "schema": { + "type": "string", + "enum": [ + "MATCHED", + "CANCELED", + "EXPIRED" + ] + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count", + "averageSecondsInQueue", + "-averageSecondsInQueue", + "p50SecondsInQueue", + "-p50SecondsInQueue", + "p95SecondsInQueue", + "-p95SecondsInQueue" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingAppRequestsV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingQueues/{id}/metrics/experimentMatchmakingQueueSizes": { + "get": { + "tags": [ + "GameCenterMatchmakingQueues", + "Metrics" + ], + "operationId": "gameCenterMatchmakingQueues_experimentMatchmakingQueueSizes_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count", + "averageNumberOfRequests", + "-averageNumberOfRequests", + "p50NumberOfRequests", + "-p50NumberOfRequests", + "p95NumberOfRequests", + "-p95NumberOfRequests" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueSizesV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingQueues/{id}/metrics/experimentMatchmakingRequests": { + "get": { + "tags": [ + "GameCenterMatchmakingQueues", + "Metrics" + ], + "operationId": "gameCenterMatchmakingQueues_experimentMatchmakingRequests_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "result", + "gameCenterDetail" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[result]", + "in": "query", + "description": "filter by 'result' attribute dimension", + "schema": { + "type": "string", + "enum": [ + "MATCHED", + "CANCELED", + "EXPIRED" + ] + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[gameCenterDetail]", + "in": "query", + "description": "filter by 'gameCenterDetail' relationship dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count", + "averageSecondsInQueue", + "-averageSecondsInQueue", + "p50SecondsInQueue", + "-p50SecondsInQueue", + "p95SecondsInQueue", + "-p95SecondsInQueue" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueRequestsV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingQueues/{id}/metrics/matchmakingQueueSizes": { + "get": { + "tags": [ + "GameCenterMatchmakingQueues", + "Metrics" + ], + "operationId": "gameCenterMatchmakingQueues_matchmakingQueueSizes_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count", + "averageNumberOfRequests", + "-averageNumberOfRequests", + "p50NumberOfRequests", + "-p50NumberOfRequests", + "p95NumberOfRequests", + "-p95NumberOfRequests" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueSizesV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingQueues/{id}/metrics/matchmakingRequests": { + "get": { + "tags": [ + "GameCenterMatchmakingQueues", + "Metrics" + ], + "operationId": "gameCenterMatchmakingQueues_matchmakingRequests_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "result", + "gameCenterDetail" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[result]", + "in": "query", + "description": "filter by 'result' attribute dimension", + "schema": { + "type": "string", + "enum": [ + "MATCHED", + "CANCELED", + "EXPIRED" + ] + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[gameCenterDetail]", + "in": "query", + "description": "filter by 'gameCenterDetail' relationship dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count", + "averageSecondsInQueue", + "-averageSecondsInQueue", + "p50SecondsInQueue", + "-p50SecondsInQueue", + "p95SecondsInQueue", + "-p95SecondsInQueue" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueueRequestsV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingQueues/{id}/metrics/matchmakingSessions": { + "get": { + "tags": [ + "GameCenterMatchmakingQueues", + "Metrics" + ], + "operationId": "gameCenterMatchmakingQueues_matchmakingSessions_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count", + "averagePlayerCount", + "-averagePlayerCount", + "p50PlayerCount", + "-p50PlayerCount", + "p95PlayerCount", + "-p95PlayerCount" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingSessionsV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRules/{id}/metrics/matchmakingBooleanRuleResults": { + "get": { + "tags": [ + "GameCenterMatchmakingRules", + "Metrics" + ], + "operationId": "gameCenterMatchmakingRules_matchmakingBooleanRuleResults_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "result", + "gameCenterMatchmakingQueue" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[result]", + "in": "query", + "description": "filter by 'result' attribute dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[gameCenterMatchmakingQueue]", + "in": "query", + "description": "filter by 'gameCenterMatchmakingQueue' relationship dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingBooleanRuleResultsV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRules/{id}/metrics/matchmakingNumberRuleResults": { + "get": { + "tags": [ + "GameCenterMatchmakingRules", + "Metrics" + ], + "operationId": "gameCenterMatchmakingRules_matchmakingNumberRuleResults_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterMatchmakingQueue" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[gameCenterMatchmakingQueue]", + "in": "query", + "description": "filter by 'gameCenterMatchmakingQueue' relationship dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count", + "averageResult", + "-averageResult", + "p50Result", + "-p50Result", + "p95Result", + "-p95Result" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingNumberRuleResultsV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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/gameCenterMatchmakingRules/{id}/metrics/matchmakingRuleErrors": { + "get": { + "tags": [ + "GameCenterMatchmakingRules", + "Metrics" + ], + "operationId": "gameCenterMatchmakingRules_matchmakingRuleErrors_getMetrics", + "parameters": [ + { + "name": "granularity", + "in": "query", + "description": "the granularity of the per-group dataset", + "schema": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + }, + "style": "form", + "explode": false, + "required": true, + "examples": { + "PnD": { + "value": "P7D" + }, + "PTnH": { + "value": "PT10H" + }, + "PTnM": { + "value": "PT10M" + }, + "PTn.nS": { + "value": "PT10.5S" + }, + "PnDTnHnMn.nS": { + "value": "P7DT10H10M10.5S" + } + } + }, + { + "name": "groupBy", + "in": "query", + "description": "the dimension by which to group the results", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterMatchmakingQueue" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[gameCenterMatchmakingQueue]", + "in": "query", + "description": "filter by 'gameCenterMatchmakingQueue' relationship dimension", + "schema": { + "type": "string" + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; metrics will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "count", + "-count" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum number of groups to return per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "401": { + "description": "Unauthorized error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Metrics data response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleErrorsV1MetricResponse" + } + } + } + }, + "429": { + "description": "Rate limit exceeded error", + "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 + } + ] + } + }, + "components": { + "schemas": { + "AccessibilityDeclaration": { + "type": "object", + "title": "AccessibilityDeclaration", + "properties": { + "type": { + "type": "string", + "enum": [ + "accessibilityDeclarations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "deviceFamily": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "state": { + "type": "string", + "enum": [ + "DRAFT", + "PUBLISHED", + "REPLACED" + ] + }, + "supportsAudioDescriptions": { + "type": "boolean" + }, + "supportsCaptions": { + "type": "boolean" + }, + "supportsDarkInterface": { + "type": "boolean" + }, + "supportsDifferentiateWithoutColorAlone": { + "type": "boolean" + }, + "supportsLargerText": { + "type": "boolean" + }, + "supportsReducedMotion": { + "type": "boolean" + }, + "supportsSufficientContrast": { + "type": "boolean" + }, + "supportsVoiceControl": { + "type": "boolean" + }, + "supportsVoiceover": { + "type": "boolean" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AccessibilityDeclarationsResponse": { + "type": "object", + "title": "AccessibilityDeclarationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AccessibilityDeclaration" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AccessibilityDeclarationResponse": { + "type": "object", + "title": "AccessibilityDeclarationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AccessibilityDeclaration" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AccessibilityDeclarationCreateRequest": { + "type": "object", + "title": "AccessibilityDeclarationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "accessibilityDeclarations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "deviceFamily": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "supportsAudioDescriptions": { + "type": "boolean", + "nullable": true + }, + "supportsCaptions": { + "type": "boolean", + "nullable": true + }, + "supportsDarkInterface": { + "type": "boolean", + "nullable": true + }, + "supportsDifferentiateWithoutColorAlone": { + "type": "boolean", + "nullable": true + }, + "supportsLargerText": { + "type": "boolean", + "nullable": true + }, + "supportsReducedMotion": { + "type": "boolean", + "nullable": true + }, + "supportsSufficientContrast": { + "type": "boolean", + "nullable": true + }, + "supportsVoiceControl": { + "type": "boolean", + "nullable": true + }, + "supportsVoiceover": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "deviceFamily" + ] + }, + "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" + ] + }, + "AccessibilityDeclarationUpdateRequest": { + "type": "object", + "title": "AccessibilityDeclarationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "accessibilityDeclarations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "publish": { + "type": "boolean", + "nullable": true + }, + "supportsAudioDescriptions": { + "type": "boolean", + "nullable": true + }, + "supportsCaptions": { + "type": "boolean", + "nullable": true + }, + "supportsDarkInterface": { + "type": "boolean", + "nullable": true + }, + "supportsDifferentiateWithoutColorAlone": { + "type": "boolean", + "nullable": true + }, + "supportsLargerText": { + "type": "boolean", + "nullable": true + }, + "supportsReducedMotion": { + "type": "boolean", + "nullable": true + }, + "supportsSufficientContrast": { + "type": "boolean", + "nullable": true + }, + "supportsVoiceControl": { + "type": "boolean", + "nullable": true + }, + "supportsVoiceover": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "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": { + "advertising": { + "type": "boolean" + }, + "alcoholTobaccoOrDrugUseOrReferences": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "contests": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "gambling": { + "type": "boolean" + }, + "gamblingSimulated": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "gunsOrOtherWeapons": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "healthOrWellnessTopics": { + "type": "boolean" + }, + "kidsAgeBand": { + "$ref": "#/components/schemas/KidsAgeBand" + }, + "lootBox": { + "type": "boolean" + }, + "medicalOrTreatmentInformation": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "messagingAndChat": { + "type": "boolean" + }, + "parentalControls": { + "type": "boolean" + }, + "profanityOrCrudeHumor": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "ageAssurance": { + "type": "boolean" + }, + "sexualContentGraphicAndNudity": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "sexualContentOrNudity": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "socialMedia": { + "type": "boolean" + }, + "socialMediaAgeRestricted": { + "type": "boolean" + }, + "horrorOrFearThemes": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "matureOrSuggestiveThemes": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "unrestrictedWebAccess": { + "type": "boolean" + }, + "userGeneratedContent": { + "type": "boolean" + }, + "violenceCartoonOrFantasy": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "violenceRealisticProlongedGraphicOrSadistic": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "violenceRealistic": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "ageRatingOverride": { + "type": "string", + "deprecated": true, + "enum": [ + "NONE", + "NINE_PLUS", + "THIRTEEN_PLUS", + "SIXTEEN_PLUS", + "SEVENTEEN_PLUS", + "UNRATED" + ] + }, + "ageRatingOverrideV2": { + "type": "string", + "enum": [ + "NONE", + "NINE_PLUS", + "THIRTEEN_PLUS", + "SIXTEEN_PLUS", + "EIGHTEEN_PLUS", + "UNRATED" + ] + }, + "koreaAgeRatingOverride": { + "type": "string", + "enum": [ + "NONE", + "ALL", + "TWELVE_PLUS", + "FIFTEEN_PLUS", + "NINETEEN_PLUS" + ] + }, + "gracRatingClassificationNumber": { + "type": "string" + }, + "developerAgeRatingInfoUrl": { + "type": "string", + "format": "uri" + } + } + }, + "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": { + "advertising": { + "type": "boolean", + "nullable": true + }, + "alcoholTobaccoOrDrugUseOrReferences": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "contests": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "gambling": { + "type": "boolean", + "nullable": true + }, + "gamblingSimulated": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "gunsOrOtherWeapons": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "healthOrWellnessTopics": { + "type": "boolean", + "nullable": true + }, + "kidsAgeBand": { + "nullable": true, + "$ref": "#/components/schemas/KidsAgeBand" + }, + "lootBox": { + "type": "boolean", + "nullable": true + }, + "medicalOrTreatmentInformation": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "messagingAndChat": { + "type": "boolean", + "nullable": true + }, + "parentalControls": { + "type": "boolean", + "nullable": true + }, + "profanityOrCrudeHumor": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "ageAssurance": { + "type": "boolean", + "nullable": true + }, + "sexualContentGraphicAndNudity": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "sexualContentOrNudity": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "socialMedia": { + "type": "boolean", + "nullable": true + }, + "socialMediaAgeRestricted": { + "type": "boolean", + "nullable": true + }, + "horrorOrFearThemes": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "matureOrSuggestiveThemes": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "unrestrictedWebAccess": { + "type": "boolean", + "nullable": true + }, + "userGeneratedContent": { + "type": "boolean", + "nullable": true + }, + "violenceCartoonOrFantasy": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "violenceRealisticProlongedGraphicOrSadistic": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "violenceRealistic": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE", + "INFREQUENT", + "FREQUENT" + ] + }, + "ageRatingOverride": { + "type": "string", + "deprecated": true, + "nullable": true, + "enum": [ + "NONE", + "NINE_PLUS", + "THIRTEEN_PLUS", + "SIXTEEN_PLUS", + "SEVENTEEN_PLUS", + "UNRATED" + ] + }, + "ageRatingOverrideV2": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "NINE_PLUS", + "THIRTEEN_PLUS", + "SIXTEEN_PLUS", + "EIGHTEEN_PLUS", + "UNRATED" + ] + }, + "koreaAgeRatingOverride": { + "type": "string", + "nullable": true, + "enum": [ + "NONE", + "ALL", + "TWELVE_PLUS", + "FIFTEEN_PLUS", + "NINETEEN_PLUS" + ] + }, + "gracRatingClassificationNumber": { + "type": "string", + "nullable": true + }, + "developerAgeRatingInfoUrl": { + "type": "string", + "format": "uri", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AlternativeDistributionDomain": { + "type": "object", + "title": "AlternativeDistributionDomain", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionDomains" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "referenceName": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionDomainsResponse": { + "type": "object", + "title": "AlternativeDistributionDomainsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionDomain" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionDomainResponse": { + "type": "object", + "title": "AlternativeDistributionDomainResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionDomain" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionDomainCreateRequest": { + "type": "object", + "title": "AlternativeDistributionDomainCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionDomains" + ] + }, + "attributes": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "referenceName": { + "type": "string" + } + }, + "required": [ + "domain", + "referenceName" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AlternativeDistributionKey": { + "type": "object", + "title": "AlternativeDistributionKey", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionKeys" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "publicKey": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionKeysResponse": { + "type": "object", + "title": "AlternativeDistributionKeysResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionKey" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionKeyResponse": { + "type": "object", + "title": "AlternativeDistributionKeyResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionKey" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionKeyCreateRequest": { + "type": "object", + "title": "AlternativeDistributionKeyCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionKeys" + ] + }, + "attributes": { + "type": "object", + "properties": { + "publicKey": { + "type": "string" + } + }, + "required": [ + "publicKey" + ] + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AlternativeDistributionPackageDelta": { + "type": "object", + "title": "AlternativeDistributionPackageDelta", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageDeltas" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri" + }, + "urlExpirationDate": { + "type": "string", + "format": "date-time" + }, + "alternativeDistributionKeyBlob": { + "type": "string" + }, + "fileChecksum": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionPackageDeltasResponse": { + "type": "object", + "title": "AlternativeDistributionPackageDeltasResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionPackageDelta" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageDeltaResponse": { + "type": "object", + "title": "AlternativeDistributionPackageDeltaResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionPackageDelta" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageVariant": { + "type": "object", + "title": "AlternativeDistributionPackageVariant", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageVariants" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri" + }, + "urlExpirationDate": { + "type": "string", + "format": "date-time" + }, + "alternativeDistributionKeyBlob": { + "type": "string" + }, + "fileChecksum": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionPackageVariantsResponse": { + "type": "object", + "title": "AlternativeDistributionPackageVariantsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVariant" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageVariantResponse": { + "type": "object", + "title": "AlternativeDistributionPackageVariantResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVariant" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageVersion": { + "type": "object", + "title": "AlternativeDistributionPackageVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri" + }, + "urlExpirationDate": { + "type": "string", + "format": "date-time" + }, + "version": { + "type": "string" + }, + "fileChecksum": { + "type": "string" + }, + "state": { + "type": "string", + "enum": [ + "COMPLETED", + "REPLACED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "variants": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageVariants" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "deltas": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageDeltas" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "alternativeDistributionPackage": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionPackageVersionsResponse": { + "type": "object", + "title": "AlternativeDistributionPackageVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AlternativeDistributionPackageDelta" + }, + { + "$ref": "#/components/schemas/AlternativeDistributionPackageVariant" + }, + { + "$ref": "#/components/schemas/AlternativeDistributionPackage" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "alternativeDistributionPackages": "#/components/schemas/AlternativeDistributionPackage", + "alternativeDistributionPackageDeltas": "#/components/schemas/AlternativeDistributionPackageDelta", + "alternativeDistributionPackageVariants": "#/components/schemas/AlternativeDistributionPackageVariant" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageVersionResponse": { + "type": "object", + "title": "AlternativeDistributionPackageVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AlternativeDistributionPackageDelta" + }, + { + "$ref": "#/components/schemas/AlternativeDistributionPackageVariant" + }, + { + "$ref": "#/components/schemas/AlternativeDistributionPackage" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "alternativeDistributionPackages": "#/components/schemas/AlternativeDistributionPackage", + "alternativeDistributionPackageDeltas": "#/components/schemas/AlternativeDistributionPackageDelta", + "alternativeDistributionPackageVariants": "#/components/schemas/AlternativeDistributionPackageVariant" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackage": { + "type": "object", + "title": "AlternativeDistributionPackage", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "$ref": "#/components/schemas/Checksums" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AlternativeDistributionPackageResponse": { + "type": "object", + "title": "AlternativeDistributionPackageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AlternativeDistributionPackage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlternativeDistributionPackageVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageCreateRequest": { + "type": "object", + "title": "AlternativeDistributionPackageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackages" + ] + }, + "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" + ] + }, + "AnalyticsReportInstance": { + "type": "object", + "title": "AnalyticsReportInstance", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportInstances" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "granularity": { + "type": "string", + "enum": [ + "DAILY", + "WEEKLY", + "MONTHLY" + ] + }, + "processingDate": { + "type": "string", + "format": "date" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "segments": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AnalyticsReportInstancesResponse": { + "type": "object", + "title": "AnalyticsReportInstancesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsReportInstance" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportInstanceResponse": { + "type": "object", + "title": "AnalyticsReportInstanceResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AnalyticsReportInstance" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportRequest": { + "type": "object", + "title": "AnalyticsReportRequest", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportRequests" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "accessType": { + "type": "string", + "enum": [ + "ONE_TIME_SNAPSHOT", + "ONGOING" + ] + }, + "stoppedDueToInactivity": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "reports": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReports" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AnalyticsReportRequestsResponse": { + "type": "object", + "title": "AnalyticsReportRequestsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsReportRequest" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsReport" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportRequestResponse": { + "type": "object", + "title": "AnalyticsReportRequestResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AnalyticsReportRequest" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsReport" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportRequestCreateRequest": { + "type": "object", + "title": "AnalyticsReportRequestCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportRequests" + ] + }, + "attributes": { + "type": "object", + "properties": { + "accessType": { + "type": "string", + "enum": [ + "ONE_TIME_SNAPSHOT", + "ONGOING" + ] + } + }, + "required": [ + "accessType" + ] + }, + "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" + ] + }, + "AnalyticsReportSegment": { + "type": "object", + "title": "AnalyticsReportSegment", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportSegments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "checksum": { + "type": "string" + }, + "sizeInBytes": { + "type": "integer" + }, + "url": { + "type": "string", + "format": "uri" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AnalyticsReportSegmentsResponse": { + "type": "object", + "title": "AnalyticsReportSegmentsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsReportSegment" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportSegmentResponse": { + "type": "object", + "title": "AnalyticsReportSegmentResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AnalyticsReportSegment" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReport": { + "type": "object", + "title": "AnalyticsReport", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReports" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "category": { + "type": "string", + "enum": [ + "APP_USAGE", + "APP_STORE_ENGAGEMENT", + "COMMERCE", + "FRAMEWORK_USAGE", + "PERFORMANCE" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "instances": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AnalyticsReportsResponse": { + "type": "object", + "title": "AnalyticsReportsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnalyticsReport" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportResponse": { + "type": "object", + "title": "AnalyticsReportResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AnalyticsReport" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AndroidToIosAppMappingDetail": { + "type": "object", + "title": "AndroidToIosAppMappingDetail", + "properties": { + "type": { + "type": "string", + "enum": [ + "androidToIosAppMappingDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "packageName": { + "type": "string" + }, + "appSigningKeyPublicCertificateSha256Fingerprints": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AndroidToIosAppMappingDetailsResponse": { + "type": "object", + "title": "AndroidToIosAppMappingDetailsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AndroidToIosAppMappingDetail" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AndroidToIosAppMappingDetailResponse": { + "type": "object", + "title": "AndroidToIosAppMappingDetailResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AndroidToIosAppMappingDetail" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AndroidToIosAppMappingDetailCreateRequest": { + "type": "object", + "title": "AndroidToIosAppMappingDetailCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "androidToIosAppMappingDetails" + ] + }, + "attributes": { + "type": "object", + "properties": { + "packageName": { + "type": "string" + }, + "appSigningKeyPublicCertificateSha256Fingerprints": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "appSigningKeyPublicCertificateSha256Fingerprints", + "packageName" + ] + }, + "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" + ] + }, + "AndroidToIosAppMappingDetailUpdateRequest": { + "type": "object", + "title": "AndroidToIosAppMappingDetailUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "androidToIosAppMappingDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "packageName": { + "type": "string", + "nullable": true + }, + "appSigningKeyPublicCertificateSha256Fingerprints": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppAssetLibrary": { + "type": "object", + "title": "AppAssetLibrary", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraries" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "images": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "videos": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppAssetLibraryResponse": { + "type": "object", + "title": "AppAssetLibraryResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppAssetLibrary" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryImage": { + "type": "object", + "title": "AppAssetLibraryImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageAwaitingUploadAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageUploadCompleteAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageFailedAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageReadyForReviewAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageWaitingForReviewAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageInReviewAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageAcceptedAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageApprovedAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageRejectedAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryImageArchivedAttributes" + } + ], + "discriminator": { + "propertyName": "state", + "mapping": { + "UPLOAD_COMPLETE": "#/components/schemas/AppAssetLibraryImageUploadCompleteAttributes", + "COMPLETE": "#/components/schemas/AppAssetLibraryImageCommonAttributes", + "IN_REVIEW": "#/components/schemas/AppAssetLibraryImageInReviewAttributes", + "ACCEPTED": "#/components/schemas/AppAssetLibraryImageAcceptedAttributes", + "FAILED": "#/components/schemas/AppAssetLibraryImageFailedAttributes", + "AWAITING_UPLOAD": "#/components/schemas/AppAssetLibraryImageAwaitingUploadAttributes", + "PREPARE_FOR_SUBMISSION": "#/components/schemas/AppAssetLibraryImageCommonAttributes", + "READY_FOR_REVIEW": "#/components/schemas/AppAssetLibraryImageReadyForReviewAttributes", + "ARCHIVED": "#/components/schemas/AppAssetLibraryImageArchivedAttributes", + "APPROVED": "#/components/schemas/AppAssetLibraryImageApprovedAttributes", + "WAITING_FOR_REVIEW": "#/components/schemas/AppAssetLibraryImageWaitingForReviewAttributes", + "REJECTED": "#/components/schemas/AppAssetLibraryImageRejectedAttributes" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "placements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppAssetLibraryImageCommonAttributes": { + "type": "object", + "title": "AppAssetLibraryImageCommonAttributes", + "properties": { + "category": { + "$ref": "#/components/schemas/AppAssetLibraryAssetCategory" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "lastModifiedDate": { + "type": "string", + "format": "date-time" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "referenceName": { + "type": "string" + }, + "specId": { + "type": "string" + }, + "state": { + "$ref": "#/components/schemas/AppAssetLibraryAssetState" + }, + "stateDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + } + }, + "required": [ + "state" + ] + }, + "AppAssetLibraryImageAcceptedAttributes": { + "title": "AppAssetLibraryImageAcceptedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryImageApprovedAttributes": { + "title": "AppAssetLibraryImageApprovedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryImageArchivedAttributes": { + "title": "AppAssetLibraryImageArchivedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryImageAwaitingUploadAttributes": { + "title": "AppAssetLibraryImageAwaitingUploadAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object", + "properties": { + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + } + } + } + ] + }, + "AppAssetLibraryImageFailedAttributes": { + "title": "AppAssetLibraryImageFailedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object", + "properties": { + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + } + } + } + ] + }, + "AppAssetLibraryImageInReviewAttributes": { + "title": "AppAssetLibraryImageInReviewAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryImageReadyForReviewAttributes": { + "title": "AppAssetLibraryImageReadyForReviewAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryImageRejectedAttributes": { + "title": "AppAssetLibraryImageRejectedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryImageUploadCompleteAttributes": { + "title": "AppAssetLibraryImageUploadCompleteAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object", + "properties": { + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + } + } + } + ] + }, + "AppAssetLibraryImageWaitingForReviewAttributes": { + "title": "AppAssetLibraryImageWaitingForReviewAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImageCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryImagesResponse": { + "type": "object", + "title": "AppAssetLibraryImagesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryImage" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryImageResponse": { + "type": "object", + "title": "AppAssetLibraryImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppAssetLibraryImage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryImageCreateRequest": { + "type": "object", + "title": "AppAssetLibraryImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "category": { + "$ref": "#/components/schemas/AppAssetLibraryAssetCategory" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "referenceName": { + "type": "string", + "nullable": true + } + }, + "required": [ + "fileName", + "fileSize", + "category" + ] + }, + "relationships": { + "type": "object", + "properties": { + "assetLibrary": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraries" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "placements": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "required": [ + "assetLibrary" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppAssetLibraryImageUpdateRequest": { + "type": "object", + "title": "AppAssetLibraryImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "nullable": true + }, + "referenceName": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppAssetLibraryPlacementOrderingRequest": { + "type": "object", + "title": "AppAssetLibraryPlacementOrderingRequest", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacementOrderingRequests" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "orderedPlacements": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppAssetLibraryPlacementOrderingRequestResponse": { + "type": "object", + "title": "AppAssetLibraryPlacementOrderingRequestResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementOrderingRequest" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryPlacementOrderingRequestCreateRequest": { + "type": "object", + "title": "AppAssetLibraryPlacementOrderingRequestCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacementOrderingRequests" + ] + }, + "attributes": { + "type": "object", + "properties": { + "placementGroup": { + "type": "string", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "orderedPlacements": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "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" + ] + } + } + } + } + } + }, + "anyOf": [ + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementGroup" + ] + }, + "relationships": { + "type": "object", + "required": [ + "orderedPlacements", + "appStoreVersionLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementGroup" + ] + }, + "relationships": { + "type": "object", + "required": [ + "orderedPlacements", + "appCustomProductPageLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementGroup" + ] + }, + "relationships": { + "type": "object", + "required": [ + "orderedPlacements", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + } + ], + "required": [ + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppAssetLibraryPlacement": { + "type": "object", + "title": "AppAssetLibraryPlacement", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "mediaType": { + "$ref": "#/components/schemas/AppAssetLibraryMediaType" + }, + "placementType": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementType" + }, + "placementGroup": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "lastModifiedDate": { + "type": "string", + "format": "date-time" + }, + "state": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementState" + }, + "stateDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + } + } + }, + "relationships": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryPlacementImageRelationships" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryPlacementVideoRelationships" + } + ], + "discriminator": { + "propertyName": "mediaType", + "mapping": { + "IMAGE": "#/components/schemas/AppAssetLibraryPlacementImageRelationships", + "VIDEO": "#/components/schemas/AppAssetLibraryPlacementVideoRelationships" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppAssetLibraryPlacementCommonRelationships": { + "type": "object", + "title": "AppAssetLibraryPlacementCommonRelationships", + "properties": { + "appEventLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "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" + ] + } + } + } + } + }, + "AppAssetLibraryPlacementCommonAttributes": { + "type": "object", + "title": "AppAssetLibraryPlacementCommonAttributes", + "properties": { + "mediaType": { + "$ref": "#/components/schemas/AppAssetLibraryMediaType" + }, + "placementType": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementType" + }, + "placementGroup": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "lastModifiedDate": { + "type": "string", + "format": "date-time" + }, + "state": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementState" + }, + "stateDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + } + } + }, + "AppAssetLibraryPlacementVideoAttributes": { + "title": "AppAssetLibraryPlacementVideoAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryPlacementCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryPlacementImageRelationships": { + "title": "AppAssetLibraryPlacementImageRelationships", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryPlacementCommonRelationships" + }, + { + "type": "object", + "properties": { + "image": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + ] + }, + "AppAssetLibraryPlacementVideoRelationships": { + "title": "AppAssetLibraryPlacementVideoRelationships", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryPlacementCommonRelationships" + }, + { + "type": "object", + "properties": { + "video": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryVideos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + ] + }, + "AppAssetLibraryPlacementsResponse": { + "type": "object", + "title": "AppAssetLibraryPlacementsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImage" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideo" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppEventLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionLocalizations": "#/components/schemas/AppStoreVersionLocalization", + "appAssetLibraryImages": "#/components/schemas/AppAssetLibraryImage", + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalizations": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization", + "appAssetLibraryVideos": "#/components/schemas/AppAssetLibraryVideo", + "appEventLocalizations": "#/components/schemas/AppEventLocalization" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryPlacementResponse": { + "type": "object", + "title": "AppAssetLibraryPlacementResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImage" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideo" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppEventLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionLocalizations": "#/components/schemas/AppStoreVersionLocalization", + "appAssetLibraryImages": "#/components/schemas/AppAssetLibraryImage", + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalizations": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization", + "appAssetLibraryVideos": "#/components/schemas/AppAssetLibraryVideo", + "appEventLocalizations": "#/components/schemas/AppEventLocalization" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryPlacementCreateRequest": { + "type": "object", + "title": "AppAssetLibraryPlacementCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "attributes": { + "type": "object", + "properties": { + "placementType": { + "nullable": true, + "$ref": "#/components/schemas/AppAssetLibraryPlacementType" + }, + "placementGroup": { + "type": "string", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "image": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "video": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryVideos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appEventLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "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" + ] + } + } + } + } + } + }, + "anyOf": [ + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementType" + ] + }, + "relationships": { + "type": "object", + "required": [ + "image", + "appEventLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementType" + ] + }, + "relationships": { + "type": "object", + "required": [ + "image", + "appStoreVersionLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementType" + ] + }, + "relationships": { + "type": "object", + "required": [ + "image", + "appCustomProductPageLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementType" + ] + }, + "relationships": { + "type": "object", + "required": [ + "image", + "appStoreVersionExperimentTreatmentLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementType" + ] + }, + "relationships": { + "type": "object", + "required": [ + "appEventLocalization", + "video" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementType" + ] + }, + "relationships": { + "type": "object", + "required": [ + "video", + "appStoreVersionLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementType" + ] + }, + "relationships": { + "type": "object", + "required": [ + "appCustomProductPageLocalization", + "video" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + }, + { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "required": [ + "placementType" + ] + }, + "relationships": { + "type": "object", + "required": [ + "appStoreVersionExperimentTreatmentLocalization", + "video" + ] + } + }, + "required": [ + "relationships", + "attributes" + ] + } + ], + "required": [ + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppAssetLibraryRefDatum": { + "type": "object", + "title": "AppAssetLibraryRefDatum", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryRefData" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "features": { + "type": "array", + "items": { + "type": "object", + "properties": { + "featureId": { + "$ref": "#/components/schemas/AppAssetLibraryFeature" + }, + "placementPolicies": { + "type": "array", + "items": { + "type": "object", + "properties": { + "placementType": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementType" + }, + "groupLimits": { + "type": "array", + "items": { + "type": "object", + "properties": { + "groupIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxCount": { + "type": "integer" + } + } + } + } + } + } + } + } + } + }, + "placementProfileGroups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "placementProfileGroupId": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementPlatform" + }, + "displayClassId": { + "$ref": "#/components/schemas/AppAssetLibraryDisplayClass" + } + } + } + }, + "imageSpecs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "specId": { + "type": "string" + }, + "shortName": { + "type": "string" + }, + "dimensions": { + "type": "object", + "properties": { + "minWidth": { + "type": "integer" + }, + "maxWidth": { + "type": "integer" + }, + "minHeight": { + "type": "integer" + }, + "maxHeight": { + "type": "integer" + } + } + }, + "aspectRatio": { + "type": "string" + }, + "compatiblePlacementTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementType" + } + }, + "alphaAllowed": { + "type": "boolean" + }, + "fileExtensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxFileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "mimeTypes": { + "type": "array", + "items": { + "type": "string" + } + }, + "universalAsset": { + "type": "boolean" + } + } + } + }, + "videoSpecs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "specId": { + "type": "string" + }, + "shortName": { + "type": "string" + }, + "dimensions": { + "type": "object", + "properties": { + "minWidth": { + "type": "integer" + }, + "maxWidth": { + "type": "integer" + }, + "minHeight": { + "type": "integer" + }, + "maxHeight": { + "type": "integer" + } + } + }, + "aspectRatio": { + "type": "string" + }, + "compatiblePlacementTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementType" + } + }, + "frameRates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "minFps": { + "type": "integer" + }, + "maxFps": { + "type": "integer" + } + } + } + }, + "duration": { + "type": "object", + "properties": { + "min": { + "type": "string", + "format": "duration" + }, + "max": { + "type": "string", + "format": "duration" + } + } + }, + "audioRequired": { + "type": "boolean" + }, + "fileExtensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxFileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "mimeTypes": { + "type": "array", + "items": { + "type": "string" + } + }, + "universalAsset": { + "type": "boolean" + } + } + } + }, + "placementTypes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "placementTypeId": { + "$ref": "#/components/schemas/AppAssetLibraryPlacementType" + }, + "acceptsAssetCategories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryAssetCategory" + } + }, + "specMappings": { + "type": "array", + "items": { + "type": "object", + "properties": { + "placementGroupId": { + "type": "string" + }, + "specs": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "displayClasses": { + "type": "array", + "items": { + "type": "object", + "properties": { + "displayClassId": { + "$ref": "#/components/schemas/AppAssetLibraryDisplayClass" + }, + "deviceFamily": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "screenDimensions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppAssetLibraryRefDataResponse": { + "type": "object", + "title": "AppAssetLibraryRefDataResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryRefDatum" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryRefDatumResponse": { + "type": "object", + "title": "AppAssetLibraryRefDatumResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppAssetLibraryRefDatum" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryVideo": { + "type": "object", + "title": "AppAssetLibraryVideo", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryVideos" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoAwaitingUploadAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoUploadCompleteAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoFailedAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoReadyForReviewAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoWaitingForReviewAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoInReviewAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoAcceptedAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoApprovedAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoRejectedAttributes" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideoArchivedAttributes" + } + ], + "discriminator": { + "propertyName": "state", + "mapping": { + "UPLOAD_COMPLETE": "#/components/schemas/AppAssetLibraryVideoUploadCompleteAttributes", + "COMPLETE": "#/components/schemas/AppAssetLibraryVideoCommonAttributes", + "IN_REVIEW": "#/components/schemas/AppAssetLibraryVideoInReviewAttributes", + "ACCEPTED": "#/components/schemas/AppAssetLibraryVideoAcceptedAttributes", + "FAILED": "#/components/schemas/AppAssetLibraryVideoFailedAttributes", + "AWAITING_UPLOAD": "#/components/schemas/AppAssetLibraryVideoAwaitingUploadAttributes", + "PREPARE_FOR_SUBMISSION": "#/components/schemas/AppAssetLibraryVideoCommonAttributes", + "READY_FOR_REVIEW": "#/components/schemas/AppAssetLibraryVideoReadyForReviewAttributes", + "ARCHIVED": "#/components/schemas/AppAssetLibraryVideoArchivedAttributes", + "APPROVED": "#/components/schemas/AppAssetLibraryVideoApprovedAttributes", + "WAITING_FOR_REVIEW": "#/components/schemas/AppAssetLibraryVideoWaitingForReviewAttributes", + "REJECTED": "#/components/schemas/AppAssetLibraryVideoRejectedAttributes" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "placements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppAssetLibraryVideoCommonAttributes": { + "type": "object", + "title": "AppAssetLibraryVideoCommonAttributes", + "properties": { + "category": { + "$ref": "#/components/schemas/AppAssetLibraryAssetCategory" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "lastModifiedDate": { + "type": "string", + "format": "date-time" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "previewFrameImage": { + "$ref": "#/components/schemas/PreviewFrameImage" + }, + "previewFrameTimeCode": { + "type": "string" + }, + "referenceName": { + "type": "string" + }, + "specId": { + "type": "string" + }, + "state": { + "$ref": "#/components/schemas/AppAssetLibraryAssetState" + }, + "stateDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + }, + "videoAsset": { + "type": "string", + "format": "uri" + } + }, + "required": [ + "state" + ] + }, + "AppAssetLibraryVideoAcceptedAttributes": { + "title": "AppAssetLibraryVideoAcceptedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryVideoApprovedAttributes": { + "title": "AppAssetLibraryVideoApprovedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryVideoArchivedAttributes": { + "title": "AppAssetLibraryVideoArchivedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryVideoAwaitingUploadAttributes": { + "title": "AppAssetLibraryVideoAwaitingUploadAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object", + "properties": { + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + } + } + } + ] + }, + "AppAssetLibraryVideoFailedAttributes": { + "title": "AppAssetLibraryVideoFailedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object", + "properties": { + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + } + } + } + ] + }, + "AppAssetLibraryVideoInReviewAttributes": { + "title": "AppAssetLibraryVideoInReviewAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryVideoReadyForReviewAttributes": { + "title": "AppAssetLibraryVideoReadyForReviewAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryVideoRejectedAttributes": { + "title": "AppAssetLibraryVideoRejectedAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryVideoUploadCompleteAttributes": { + "title": "AppAssetLibraryVideoUploadCompleteAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object", + "properties": { + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + } + } + } + ] + }, + "AppAssetLibraryVideoWaitingForReviewAttributes": { + "title": "AppAssetLibraryVideoWaitingForReviewAttributes", + "allOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryVideoCommonAttributes" + }, + { + "type": "object" + } + ] + }, + "AppAssetLibraryVideosResponse": { + "type": "object", + "title": "AppAssetLibraryVideosResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryVideo" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryVideoResponse": { + "type": "object", + "title": "AppAssetLibraryVideoResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppAssetLibraryVideo" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryVideoCreateRequest": { + "type": "object", + "title": "AppAssetLibraryVideoCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryVideos" + ] + }, + "attributes": { + "type": "object", + "properties": { + "category": { + "$ref": "#/components/schemas/AppAssetLibraryAssetCategory" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "previewFrameTimeCode": { + "type": "string", + "nullable": true + }, + "referenceName": { + "type": "string", + "nullable": true + } + }, + "required": [ + "fileName", + "fileSize", + "category" + ] + }, + "relationships": { + "type": "object", + "properties": { + "assetLibrary": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraries" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "placements": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "required": [ + "assetLibrary" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppAssetLibraryVideoUpdateRequest": { + "type": "object", + "title": "AppAssetLibraryVideoUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryVideos" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "nullable": true + }, + "previewFrameTimeCode": { + "type": "string", + "nullable": true + }, + "referenceName": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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" + ] + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "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": [ + "id", + "type" + ] + }, + "AppClipAdvancedExperienceLocalizationInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "language": { + "nullable": true, + "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" + }, + "title": { + "type": "string", + "nullable": true + }, + "subtitle": { + "type": "string", + "nullable": true + } + } + } + }, + "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", + "AIRLINE_BOOK_TRAVEL", + "AIRLINE_CHECK_IN", + "AIRLINE_FLIGHT_STATUS", + "APPLY", + "BOOK", + "BOOK_ACTIVITIES", + "BOOK_RIDES", + "BOOK_TEETIMES", + "BOOK_TOURS", + "CAREERS", + "CHARGE_EV", + "COUPONS", + "DONATE", + "EVENTS", + "EVENTS_SHOWS", + "EVENTS_SPORTS", + "GIFT_CARD", + "HOTEL_AMENITIES", + "JOIN", + "PARKING_AVAILABLE", + "RESTAURANT_PICKUP", + "RETAIL_SERVICE_QUOTE", + "RETAIL_STORE_DELIVERY", + "RETAIL_STORE_PICKUP", + "RETAIL_STORE_SHOP", + "SERVICES", + "SUPPORT", + "PAY_TO_PARK" + ] + }, + "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": { + "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": { + "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/AppClipAdvancedExperienceImage" + }, + { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalization" + }, + { + "$ref": "#/components/schemas/AppClip" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appClipAdvancedExperienceLocalizations": "#/components/schemas/AppClipAdvancedExperienceLocalization", + "appClipAdvancedExperienceImages": "#/components/schemas/AppClipAdvancedExperienceImage", + "appClips": "#/components/schemas/AppClip" + } + } + } + }, + "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/AppClipAdvancedExperienceImage" + }, + { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalization" + }, + { + "$ref": "#/components/schemas/AppClip" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appClipAdvancedExperienceLocalizations": "#/components/schemas/AppClipAdvancedExperienceLocalization", + "appClipAdvancedExperienceImages": "#/components/schemas/AppClipAdvancedExperienceImage", + "appClips": "#/components/schemas/AppClip" + } + } + } + }, + "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": { + "nullable": true, + "$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", + "AIRLINE_BOOK_TRAVEL", + "AIRLINE_CHECK_IN", + "AIRLINE_FLIGHT_STATUS", + "APPLY", + "BOOK", + "BOOK_ACTIVITIES", + "BOOK_RIDES", + "BOOK_TEETIMES", + "BOOK_TOURS", + "CAREERS", + "CHARGE_EV", + "COUPONS", + "DONATE", + "EVENTS", + "EVENTS_SHOWS", + "EVENTS_SPORTS", + "GIFT_CARD", + "HOTEL_AMENITIES", + "JOIN", + "PARKING_AVAILABLE", + "RESTAURANT_PICKUP", + "RETAIL_SERVICE_QUOTE", + "RETAIL_STORE_DELIVERY", + "RETAIL_STORE_PICKUP", + "RETAIL_STORE_SHOP", + "SERVICES", + "SUPPORT", + "PAY_TO_PARK" + ] + }, + "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" + } + } + }, + "nullable": true + }, + "businessCategory": { + "type": "string", + "nullable": true, + "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": { + "nullable": true, + "$ref": "#/components/schemas/AppClipAction" + }, + "isPoweredBy": { + "type": "boolean", + "nullable": true + }, + "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", + "AIRLINE_BOOK_TRAVEL", + "AIRLINE_CHECK_IN", + "AIRLINE_FLIGHT_STATUS", + "APPLY", + "BOOK", + "BOOK_ACTIVITIES", + "BOOK_RIDES", + "BOOK_TEETIMES", + "BOOK_TOURS", + "CAREERS", + "CHARGE_EV", + "COUPONS", + "DONATE", + "EVENTS", + "EVENTS_SHOWS", + "EVENTS_SPORTS", + "GIFT_CARD", + "HOTEL_AMENITIES", + "JOIN", + "PARKING_AVAILABLE", + "RESTAURANT_PICKUP", + "RETAIL_SERVICE_QUOTE", + "RETAIL_STORE_DELIVERY", + "RETAIL_STORE_PICKUP", + "RETAIL_STORE_SHOP", + "SERVICES", + "SUPPORT", + "PAY_TO_PARK" + ] + }, + "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" + } + } + }, + "nullable": true + }, + "businessCategory": { + "type": "string", + "nullable": true, + "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": { + "nullable": true, + "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" + }, + "removed": { + "type": "boolean", + "nullable": true + } + } + }, + "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": { + "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" + }, + "nullable": true + } + } + }, + "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" + }, + "nullable": true + } + } + } + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipHeaderImage": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appClipDefaultExperiences": "#/components/schemas/AppClipDefaultExperience", + "appClipHeaderImages": "#/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" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appClipDefaultExperiences": "#/components/schemas/AppClipDefaultExperience", + "appClipHeaderImages": "#/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", + "nullable": true + } + }, + "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", + "nullable": true + } + } + } + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "releaseWithAppStoreVersion": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDefaultExperienceLocalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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/AppClipAppStoreReviewDetail" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + }, + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appClipDefaultExperienceLocalizations": "#/components/schemas/AppClipDefaultExperienceLocalization", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "appClipAppStoreReviewDetails": "#/components/schemas/AppClipAppStoreReviewDetail", + "appClips": "#/components/schemas/AppClip" + } + } + } + }, + "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/AppClipAppStoreReviewDetail" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + }, + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appClipDefaultExperienceLocalizations": "#/components/schemas/AppClipDefaultExperienceLocalization", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "appClipAppStoreReviewDetails": "#/components/schemas/AppClipAppStoreReviewDetail", + "appClips": "#/components/schemas/AppClip" + } + } + } + }, + "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": { + "nullable": true, + "$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": { + "nullable": true, + "$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", + "CROSS_SITE_REDIRECTS_FORBIDDEN", + "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", + "TOO_MANY_REDIRECTS", + "UNEXPECTED_ERROR" + ] + } + } + } + }, + "lastUpdatedDate": { + "type": "string", + "format": "date-time" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "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": { + "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", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDefaultExperiences": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appClipAdvancedExperiences": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "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/AppClipDefaultExperience" + }, + { + "$ref": "#/components/schemas/App" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appClipDefaultExperiences": "#/components/schemas/AppClipDefaultExperience", + "apps": "#/components/schemas/App" + } + } + } + }, + "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/AppClipDefaultExperience" + }, + { + "$ref": "#/components/schemas/App" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appClipDefaultExperiences": "#/components/schemas/AppClipDefaultExperience", + "apps": "#/components/schemas/App" + } + } + } + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appScreenshotSets": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "searchKeywords": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appKeywords" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "placements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "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", + "nullable": true + } + }, + "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" + ] + } + } + }, + "placements": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "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/AppAssetLibraryPlacement" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + { + "$ref": "#/components/schemas/AppKeyword" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appScreenshotSets": "#/components/schemas/AppScreenshotSet", + "appAssetLibraryPlacements": "#/components/schemas/AppAssetLibraryPlacement", + "appKeywords": "#/components/schemas/AppKeyword", + "appCustomProductPageVersions": "#/components/schemas/AppCustomProductPageVersion", + "appPreviewSets": "#/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/AppAssetLibraryPlacement" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + { + "$ref": "#/components/schemas/AppKeyword" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appScreenshotSets": "#/components/schemas/AppScreenshotSet", + "appAssetLibraryPlacements": "#/components/schemas/AppAssetLibraryPlacement", + "appKeywords": "#/components/schemas/AppKeyword", + "appCustomProductPageVersions": "#/components/schemas/AppCustomProductPageVersion", + "appPreviewSets": "#/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", + "nullable": true + } + }, + "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" + ] + }, + "placements": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "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", + "nullable": true + } + } + } + }, + "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" + ] + }, + "deepLink": { + "type": "string", + "format": "uri" + } + } + }, + "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": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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" + }, + "attributes": { + "type": "object", + "properties": { + "deepLink": { + "type": "string", + "format": "uri", + "nullable": true + } + } + }, + "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/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppCustomProductPage" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appCustomProductPages": "#/components/schemas/AppCustomProductPage" + } + } + } + }, + "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/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppCustomProductPage" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appCustomProductPages": "#/components/schemas/AppCustomProductPage" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageVersionCreateRequest": { + "type": "object", + "title": "AppCustomProductPageVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "attributes": { + "type": "object", + "properties": { + "deepLink": { + "type": "string", + "format": "uri", + "nullable": true + } + } + }, + "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" + ] + }, + "AppCustomProductPageVersionUpdateRequest": { + "type": "object", + "title": "AppCustomProductPageVersionUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "deepLink": { + "type": "string", + "format": "uri", + "nullable": true + } + } + } + }, + "required": [ + "id", + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appCustomProductPageVersions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + { + "$ref": "#/components/schemas/App" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appCustomProductPageVersions": "#/components/schemas/AppCustomProductPageVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "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/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + { + "$ref": "#/components/schemas/App" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appCustomProductPageVersions": "#/components/schemas/AppCustomProductPageVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "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", + "nullable": true + }, + "visible": { + "type": "boolean", + "nullable": true + } + } + } + }, + "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", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "builds": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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/AppEncryptionDeclarationDocument" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builds": "#/components/schemas/Build", + "appEncryptionDeclarationDocuments": "#/components/schemas/AppEncryptionDeclarationDocument", + "apps": "#/components/schemas/App" + } + } + } + }, + "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/AppEncryptionDeclarationDocument" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builds": "#/components/schemas/Build", + "appEncryptionDeclarationDocuments": "#/components/schemas/AppEncryptionDeclarationDocument", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEncryptionDeclarationCreateRequest": { + "type": "object", + "title": "AppEncryptionDeclarationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "appDescription": { + "type": "string" + }, + "containsProprietaryCryptography": { + "type": "boolean" + }, + "containsThirdPartyCryptography": { + "type": "boolean" + }, + "availableOnFrenchStore": { + "type": "boolean" + } + }, + "required": [ + "availableOnFrenchStore", + "appDescription", + "containsThirdPartyCryptography", + "containsProprietaryCryptography" + ] + }, + "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" + ], + "deprecated": true + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appEventScreenshots": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventVideoClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "placements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "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/AppAssetLibraryPlacement" + }, + { + "$ref": "#/components/schemas/AppEventScreenshot" + }, + { + "$ref": "#/components/schemas/AppEventVideoClip" + }, + { + "$ref": "#/components/schemas/AppEvent" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appEvents": "#/components/schemas/AppEvent", + "appEventVideoClips": "#/components/schemas/AppEventVideoClip", + "appAssetLibraryPlacements": "#/components/schemas/AppAssetLibraryPlacement", + "appEventScreenshots": "#/components/schemas/AppEventScreenshot" + } + } + } + }, + "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/AppAssetLibraryPlacement" + }, + { + "$ref": "#/components/schemas/AppEventScreenshot" + }, + { + "$ref": "#/components/schemas/AppEventVideoClip" + }, + { + "$ref": "#/components/schemas/AppEvent" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appEvents": "#/components/schemas/AppEvent", + "appEventVideoClips": "#/components/schemas/AppEventVideoClip", + "appAssetLibraryPlacements": "#/components/schemas/AppAssetLibraryPlacement", + "appEventScreenshots": "#/components/schemas/AppEventScreenshot" + } + } + } + }, + "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", + "nullable": true + }, + "shortDescription": { + "type": "string", + "nullable": true + }, + "longDescription": { + "type": "string", + "nullable": true + } + }, + "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" + ] + }, + "placements": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "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", + "nullable": true + }, + "shortDescription": { + "type": "string", + "nullable": true + }, + "longDescription": { + "type": "string", + "nullable": true + } + } + } + }, + "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": { + "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", + "nullable": true + } + } + } + }, + "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" + }, + "previewFrameImage": { + "$ref": "#/components/schemas/PreviewFrameImage" + }, + "previewImage": { + "deprecated": true, + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "deprecated": true, + "$ref": "#/components/schemas/AppMediaAssetState" + }, + "videoDeliveryState": { + "$ref": "#/components/schemas/AppMediaVideoState" + }, + "appEventAssetType": { + "$ref": "#/components/schemas/AppEventAssetType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appEventLocalization": { + "type": "object", + "properties": { + "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", + "nullable": true + }, + "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", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "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" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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", + "nullable": true, + "enum": [ + "LIVE_EVENT", + "PREMIERE", + "CHALLENGE", + "COMPETITION", + "NEW_SEASON", + "MAJOR_UPDATE", + "SPECIAL_EVENT" + ] + }, + "deepLink": { + "type": "string", + "format": "uri", + "nullable": true + }, + "purchaseRequirement": { + "type": "string", + "nullable": true + }, + "primaryLocale": { + "type": "string", + "nullable": true + }, + "priority": { + "type": "string", + "nullable": true, + "enum": [ + "HIGH", + "NORMAL" + ] + }, + "purpose": { + "type": "string", + "nullable": true, + "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" + } + } + }, + "nullable": true + } + }, + "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" + ] + }, + "AppEventUpdateRequest": { + "type": "object", + "title": "AppEventUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + }, + "badge": { + "type": "string", + "nullable": true, + "enum": [ + "LIVE_EVENT", + "PREMIERE", + "CHALLENGE", + "COMPETITION", + "NEW_SEASON", + "MAJOR_UPDATE", + "SPECIAL_EVENT" + ] + }, + "deepLink": { + "type": "string", + "format": "uri", + "nullable": true + }, + "purchaseRequirement": { + "type": "string", + "nullable": true + }, + "primaryLocale": { + "type": "string", + "nullable": true + }, + "priority": { + "type": "string", + "nullable": true, + "enum": [ + "HIGH", + "NORMAL" + ] + }, + "purpose": { + "type": "string", + "nullable": true, + "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" + } + } + }, + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppInfoLocalization": { + "type": "object", + "title": "AppInfoLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfoLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "privacyPolicyUrl": { + "type": "string" + }, + "privacyChoicesUrl": { + "type": "string" + }, + "privacyPolicyText": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appInfo": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppInfoLocalizationsResponse": { + "type": "object", + "title": "AppInfoLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppInfoLocalization" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppInfo" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoLocalizationResponse": { + "type": "object", + "title": "AppInfoLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppInfoLocalization" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppInfo" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoLocalizationCreateRequest": { + "type": "object", + "title": "AppInfoLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfoLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "subtitle": { + "type": "string", + "nullable": true + }, + "privacyPolicyUrl": { + "type": "string", + "nullable": true + }, + "privacyChoicesUrl": { + "type": "string", + "nullable": true + }, + "privacyPolicyText": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "locale" + ] + }, + "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" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppInfoLocalizationUpdateRequest": { + "type": "object", + "title": "AppInfoLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfoLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "subtitle": { + "type": "string", + "nullable": true + }, + "privacyPolicyUrl": { + "type": "string", + "nullable": true + }, + "privacyChoicesUrl": { + "type": "string", + "nullable": true + }, + "privacyPolicyText": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppInfo": { + "type": "object", + "title": "AppInfo", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfos" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "appStoreState": { + "deprecated": true, + "$ref": "#/components/schemas/AppStoreVersionState" + }, + "state": { + "type": "string", + "enum": [ + "ACCEPTED", + "DEVELOPER_REJECTED", + "IN_REVIEW", + "PENDING_RELEASE", + "PREPARE_FOR_SUBMISSION", + "READY_FOR_DISTRIBUTION", + "READY_FOR_REVIEW", + "REJECTED", + "REPLACED_WITH_NEW_INFO", + "WAITING_FOR_REVIEW" + ] + }, + "appStoreAgeRating": { + "deprecated": true, + "$ref": "#/components/schemas/AppStoreAgeRating" + }, + "australiaAgeRating": { + "type": "string", + "deprecated": true, + "enum": [ + "FIFTEEN", + "EIGHTEEN" + ] + }, + "brazilAgeRating": { + "deprecated": true, + "$ref": "#/components/schemas/BrazilAgeRating" + }, + "brazilAgeRatingV2": { + "type": "string", + "deprecated": true, + "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" + ] + }, + "franceAgeRating": { + "type": "string", + "deprecated": true, + "enum": [ + "EIGHTEEN" + ] + }, + "koreaAgeRating": { + "type": "string", + "deprecated": true, + "enum": [ + "ALL", + "TWELVE", + "FIFTEEN", + "NINETEEN", + "NOT_APPLICABLE" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "ageRatingDeclaration": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ageRatingDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appInfoLocalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfoLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "primaryCategory": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "primarySubcategoryOne": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "primarySubcategoryTwo": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "secondaryCategory": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "secondarySubcategoryOne": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "secondarySubcategoryTwo": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "territoryAgeRatings": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppInfosResponse": { + "type": "object", + "title": "AppInfosResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppInfo" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AgeRatingDeclaration" + }, + { + "$ref": "#/components/schemas/AppCategory" + }, + { + "$ref": "#/components/schemas/AppInfoLocalization" + }, + { + "$ref": "#/components/schemas/App" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "ageRatingDeclarations": "#/components/schemas/AgeRatingDeclaration", + "appCategories": "#/components/schemas/AppCategory", + "appInfoLocalizations": "#/components/schemas/AppInfoLocalization", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoResponse": { + "type": "object", + "title": "AppInfoResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppInfo" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AgeRatingDeclaration" + }, + { + "$ref": "#/components/schemas/AppCategory" + }, + { + "$ref": "#/components/schemas/AppInfoLocalization" + }, + { + "$ref": "#/components/schemas/App" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "ageRatingDeclarations": "#/components/schemas/AgeRatingDeclaration", + "appCategories": "#/components/schemas/AppCategory", + "appInfoLocalizations": "#/components/schemas/AppInfoLocalization", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoUpdateRequest": { + "type": "object", + "title": "AppInfoUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfos" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "primaryCategory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "primarySubcategoryOne": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "primarySubcategoryTwo": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "secondaryCategory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "secondarySubcategoryOne": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "secondarySubcategoryTwo": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppKeyword": { + "type": "object", + "title": "AppKeyword", + "properties": { + "type": { + "type": "string", + "enum": [ + "appKeywords" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppKeywordsResponse": { + "type": "object", + "title": "AppKeywordsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppKeyword" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "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": { + "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" + ] + } + } + }, + "appPreviews": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "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": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppPreview" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionLocalizations": "#/components/schemas/AppStoreVersionLocalization", + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalizations": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization", + "appPreviews": "#/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/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppPreview" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionLocalizations": "#/components/schemas/AppStoreVersionLocalization", + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalizations": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization", + "appPreviews": "#/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" + }, + "previewFrameImage": { + "$ref": "#/components/schemas/PreviewFrameImage" + }, + "previewImage": { + "deprecated": true, + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "deprecated": true, + "$ref": "#/components/schemas/AppMediaAssetState" + }, + "videoDeliveryState": { + "$ref": "#/components/schemas/AppMediaVideoState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appPreviewSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$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": [ + "data", + "links" + ] + }, + "AppPreviewResponse": { + "type": "object", + "title": "AppPreviewResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppPreview" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppPreviewSet" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPreviewCreateRequest": { + "type": "object", + "title": "AppPreviewCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviews" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "previewFrameTimeCode": { + "type": "string", + "nullable": true + }, + "mimeType": { + "type": "string", + "nullable": true + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appPreviewSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appPreviewSet" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppPreviewUpdateRequest": { + "type": "object", + "title": "AppPreviewUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviews" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "nullable": true + }, + "previewFrameTimeCode": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "equalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "territory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "apps": "#/components/schemas/App" + } + } + } + }, + "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" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPriceSchedule": { + "type": "object", + "title": "AppPriceSchedule", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPriceSchedules" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "baseTerritory": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "manualPrices": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "automaticPrices": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppPriceScheduleResponse": { + "type": "object", + "title": "AppPriceScheduleResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppPriceSchedule" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppPriceV2" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "appPrices": "#/components/schemas/AppPriceV2", + "apps": "#/components/schemas/App" + } + } + } + }, + "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" + ] + }, + "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": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "territory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppPriceV2InlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "endDate": { + "type": "string", + "format": "date", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appPricePoint": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "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" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "appPricePoints": "#/components/schemas/AppPricePointV3" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "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": { + "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" + ] + } + } + }, + "appScreenshots": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppScreenshotSetsResponse": { + "type": "object", + "title": "AppScreenshotSetsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppScreenshotSet" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppScreenshot" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionLocalizations": "#/components/schemas/AppStoreVersionLocalization", + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalizations": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization", + "appScreenshots": "#/components/schemas/AppScreenshot" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppScreenshotSetResponse": { + "type": "object", + "title": "AppScreenshotSetResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppScreenshot" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionLocalizations": "#/components/schemas/AppStoreVersionLocalization", + "appCustomProductPageLocalizations": "#/components/schemas/AppCustomProductPageLocalization", + "appStoreVersionExperimentTreatmentLocalizations": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization", + "appScreenshots": "#/components/schemas/AppScreenshot" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppScreenshotSetCreateRequest": { + "type": "object", + "title": "AppScreenshotSetCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "attributes": { + "type": "object", + "properties": { + "screenshotDisplayType": { + "$ref": "#/components/schemas/ScreenshotDisplayType" + } + }, + "required": [ + "screenshotDisplayType" + ] + }, + "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" + ] + }, + "AppScreenshot": { + "type": "object", + "title": "AppScreenshot", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshots" + ] + }, + "id": { + "type": "string" + }, + "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" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appScreenshotSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppScreenshotsResponse": { + "type": "object", + "title": "AppScreenshotsResponse", + "properties": { + "data": { + "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" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppScreenshotCreateRequest": { + "type": "object", + "title": "AppScreenshotCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshots" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appScreenshotSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appScreenshotSet" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppScreenshotUpdateRequest": { + "type": "object", + "title": "AppScreenshotUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshots" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreReviewAttachment": { + "type": "object", + "title": "AppStoreReviewAttachment", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewAttachments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "sourceFileChecksum": { + "type": "string" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreReviewDetail": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreReviewAttachmentsResponse": { + "type": "object", + "title": "AppStoreReviewAttachmentsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreReviewAttachment" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreReviewDetail" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreReviewAttachmentResponse": { + "type": "object", + "title": "AppStoreReviewAttachmentResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreReviewAttachment" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreReviewDetail" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreReviewAttachmentCreateRequest": { + "type": "object", + "title": "AppStoreReviewAttachmentCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewAttachments" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreReviewDetail": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appStoreReviewDetail" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreReviewAttachmentUpdateRequest": { + "type": "object", + "title": "AppStoreReviewAttachmentUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewAttachments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreReviewDetail": { + "type": "object", + "title": "AppStoreReviewDetail", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewDetails" + ] + }, + "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": { + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreReviewAttachments": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewAttachments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreReviewDetailResponse": { + "type": "object", + "title": "AppStoreReviewDetailResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreReviewDetail" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreReviewAttachment" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "appStoreReviewAttachments": "#/components/schemas/AppStoreReviewAttachment" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreReviewDetailCreateRequest": { + "type": "object", + "title": "AppStoreReviewDetailCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewDetails" + ] + }, + "attributes": { + "type": "object", + "properties": { + "contactFirstName": { + "type": "string", + "nullable": true + }, + "contactLastName": { + "type": "string", + "nullable": true + }, + "contactPhone": { + "type": "string", + "nullable": true + }, + "contactEmail": { + "type": "string", + "nullable": true + }, + "demoAccountName": { + "type": "string", + "nullable": true + }, + "demoAccountPassword": { + "type": "string", + "nullable": true + }, + "demoAccountRequired": { + "type": "boolean", + "nullable": true + }, + "notes": { + "type": "string", + "nullable": true + } + } + }, + "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" + ] + }, + "AppStoreReviewDetailUpdateRequest": { + "type": "object", + "title": "AppStoreReviewDetailUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "contactFirstName": { + "type": "string", + "nullable": true + }, + "contactLastName": { + "type": "string", + "nullable": true + }, + "contactPhone": { + "type": "string", + "nullable": true + }, + "contactEmail": { + "type": "string", + "nullable": true + }, + "demoAccountName": { + "type": "string", + "nullable": true + }, + "demoAccountPassword": { + "type": "string", + "nullable": true + }, + "demoAccountRequired": { + "type": "boolean", + "nullable": true + }, + "notes": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionExperimentTreatmentLocalization": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatmentLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersionExperimentTreatment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appScreenshotSets": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "placements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreVersionExperimentTreatmentLocalizationsResponse": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appScreenshotSets": "#/components/schemas/AppScreenshotSet", + "appStoreVersionExperimentTreatments": "#/components/schemas/AppStoreVersionExperimentTreatment", + "appAssetLibraryPlacements": "#/components/schemas/AppAssetLibraryPlacement", + "appPreviewSets": "#/components/schemas/AppPreviewSet" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentLocalizationResponse": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appScreenshotSets": "#/components/schemas/AppScreenshotSet", + "appStoreVersionExperimentTreatments": "#/components/schemas/AppStoreVersionExperimentTreatment", + "appAssetLibraryPlacements": "#/components/schemas/AppAssetLibraryPlacement", + "appPreviewSets": "#/components/schemas/AppPreviewSet" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentLocalizationCreateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatmentLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + } + }, + "required": [ + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersionExperimentTreatment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "placements": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "required": [ + "appStoreVersionExperimentTreatment" + ] + } + }, + "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" + }, + "appIcon": { + "$ref": "#/components/schemas/ImageAsset" + }, + "appIconName": { + "type": "string" + }, + "promotedDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersionExperiment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentTreatmentLocalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatmentLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreVersionExperimentTreatmentsResponse": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionExperimentTreatmentLocalizations": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization", + "appStoreVersionExperiments": "#/components/schemas/AppStoreVersionExperiment" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentResponse": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionExperimentTreatmentLocalizations": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization", + "appStoreVersionExperiments": "#/components/schemas/AppStoreVersionExperiment" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentCreateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "appIconName": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersionExperiment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionExperimentTreatmentUpdateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentTreatmentUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "appIconName": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionExperimentV2": { + "type": "object", + "title": "AppStoreVersionExperimentV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "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": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "latestControlVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "controlVersions": { + "type": "object", + "properties": { + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreVersionExperimentsV2Response": { + "type": "object", + "title": "AppStoreVersionExperimentsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/App" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionExperimentTreatments": "#/components/schemas/AppStoreVersionExperimentTreatment", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentV2Response": { + "type": "object", + "title": "AppStoreVersionExperimentV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/App" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionExperimentTreatments": "#/components/schemas/AppStoreVersionExperimentTreatment", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentV2CreateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "trafficProportion": { + "type": "integer" + } + }, + "required": [ + "trafficProportion", + "name", + "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" + ] + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionExperimentV2UpdateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "trafficProportion": { + "type": "integer", + "nullable": true + }, + "started": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionExperiment": { + "type": "object", + "title": "AppStoreVersionExperiment", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "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": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentTreatments": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "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/AppStoreVersionExperimentTreatment" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionExperimentTreatments": "#/components/schemas/AppStoreVersionExperimentTreatment", + "appStoreVersions": "#/components/schemas/AppStoreVersion" + } + } + } + }, + "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/AppStoreVersionExperimentTreatment" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersionExperimentTreatments": "#/components/schemas/AppStoreVersionExperimentTreatment", + "appStoreVersions": "#/components/schemas/AppStoreVersion" + } + } + } + }, + "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" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "trafficProportion": { + "type": "integer" + } + }, + "required": [ + "trafficProportion", + "name" + ] + }, + "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", + "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", + "nullable": true + }, + "trafficProportion": { + "type": "integer", + "nullable": true + }, + "started": { + "type": "boolean", + "nullable": true + } + } + } + }, + "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" + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appScreenshotSets": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "searchKeywords": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appKeywords" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "placements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreVersionLocalizationsResponse": { + "type": "object", + "title": "AppStoreVersionLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryPlacement" + }, + { + "$ref": "#/components/schemas/AppKeyword" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appScreenshotSets": "#/components/schemas/AppScreenshotSet", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "appAssetLibraryPlacements": "#/components/schemas/AppAssetLibraryPlacement", + "appKeywords": "#/components/schemas/AppKeyword", + "appPreviewSets": "#/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/AppAssetLibraryPlacement" + }, + { + "$ref": "#/components/schemas/AppKeyword" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appScreenshotSets": "#/components/schemas/AppScreenshotSet", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "appAssetLibraryPlacements": "#/components/schemas/AppAssetLibraryPlacement", + "appKeywords": "#/components/schemas/AppKeyword", + "appPreviewSets": "#/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", + "nullable": true + }, + "locale": { + "type": "string" + }, + "keywords": { + "type": "string", + "nullable": true + }, + "marketingUrl": { + "type": "string", + "format": "uri", + "nullable": true + }, + "promotionalText": { + "type": "string", + "nullable": true + }, + "supportUrl": { + "type": "string", + "format": "uri", + "nullable": true + }, + "whatsNew": { + "type": "string", + "nullable": true + } + }, + "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" + ] + }, + "placements": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "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", + "nullable": true + }, + "keywords": { + "type": "string", + "nullable": true + }, + "marketingUrl": { + "type": "string", + "format": "uri", + "nullable": true + }, + "promotionalText": { + "type": "string", + "nullable": true + }, + "supportUrl": { + "type": "string", + "format": "uri", + "nullable": true + }, + "whatsNew": { + "type": "string", + "nullable": true + } + } + } + }, + "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/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": { + "nullable": true, + "$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": { + "nullable": true, + "$ref": "#/components/schemas/PhasedReleaseState" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionPromotion": { + "type": "object", + "title": "AppStoreVersionPromotion", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPromotions" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreVersionPromotionResponse": { + "type": "object", + "title": "AppStoreVersionPromotionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionPromotion" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionPromotionCreateRequest": { + "type": "object", + "title": "AppStoreVersionPromotionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPromotions" + ] + }, + "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" + ] + }, + "appStoreVersionExperimentTreatment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appStoreVersionExperimentTreatment", + "appStoreVersion" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionReleaseRequest": { + "type": "object", + "title": "AppStoreVersionReleaseRequest", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionReleaseRequests" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "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": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "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 + }, + "AppStoreVersion": { + "type": "object", + "title": "AppStoreVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "versionString": { + "type": "string" + }, + "appStoreState": { + "deprecated": true, + "$ref": "#/components/schemas/AppStoreVersionState" + }, + "appVersionState": { + "$ref": "#/components/schemas/AppVersionState" + }, + "copyright": { + "type": "string" + }, + "reviewType": { + "type": "string", + "enum": [ + "APP_STORE", + "NOTARIZATION" + ] + }, + "releaseType": { + "type": "string", + "enum": [ + "MANUAL", + "AFTER_APPROVAL", + "SCHEDULED" + ] + }, + "earliestReleaseDate": { + "type": "string", + "format": "date-time" + }, + "usesIdfa": { + "type": "boolean", + "deprecated": true + }, + "downloadable": { + "type": "boolean" + }, + "createdDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionLocalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionPhasedRelease": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPhasedReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterAppVersion": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "routingAppCoverage": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "routingAppCoverages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreReviewDetail": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionSubmission": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDefaultExperience": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperiments": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreVersionExperimentsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "customerReviews": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "alternativeDistributionPackage": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreVersionsResponse": { + "type": "object", + "title": "AppStoreVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AlternativeDistributionPackage" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperience" + }, + { + "$ref": "#/components/schemas/AppStoreReviewDetail" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" + }, + { + "$ref": "#/components/schemas/AppStoreVersionSubmission" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/GameCenterAppVersion" + }, + { + "$ref": "#/components/schemas/RoutingAppCoverage" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "alternativeDistributionPackages": "#/components/schemas/AlternativeDistributionPackage", + "appClipDefaultExperiences": "#/components/schemas/AppClipDefaultExperience", + "appStoreVersionLocalizations": "#/components/schemas/AppStoreVersionLocalization", + "routingAppCoverages": "#/components/schemas/RoutingAppCoverage", + "appStoreVersionPhasedReleases": "#/components/schemas/AppStoreVersionPhasedRelease", + "appStoreReviewDetails": "#/components/schemas/AppStoreReviewDetail", + "appStoreVersionExperiments": "#/components/schemas/AppStoreVersionExperiment", + "builds": "#/components/schemas/Build", + "appStoreVersionSubmissions": "#/components/schemas/AppStoreVersionSubmission", + "gameCenterAppVersions": "#/components/schemas/GameCenterAppVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionResponse": { + "type": "object", + "title": "AppStoreVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AlternativeDistributionPackage" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperience" + }, + { + "$ref": "#/components/schemas/AppStoreReviewDetail" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" + }, + { + "$ref": "#/components/schemas/AppStoreVersionSubmission" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/GameCenterAppVersion" + }, + { + "$ref": "#/components/schemas/RoutingAppCoverage" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "alternativeDistributionPackages": "#/components/schemas/AlternativeDistributionPackage", + "appClipDefaultExperiences": "#/components/schemas/AppClipDefaultExperience", + "appStoreVersionLocalizations": "#/components/schemas/AppStoreVersionLocalization", + "routingAppCoverages": "#/components/schemas/RoutingAppCoverage", + "appStoreVersionPhasedReleases": "#/components/schemas/AppStoreVersionPhasedRelease", + "appStoreReviewDetails": "#/components/schemas/AppStoreReviewDetail", + "appStoreVersionExperiments": "#/components/schemas/AppStoreVersionExperiment", + "builds": "#/components/schemas/Build", + "appStoreVersionSubmissions": "#/components/schemas/AppStoreVersionSubmission", + "gameCenterAppVersions": "#/components/schemas/GameCenterAppVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "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", + "nullable": true + }, + "reviewType": { + "type": "string", + "nullable": true, + "enum": [ + "APP_STORE", + "NOTARIZATION" + ] + }, + "releaseType": { + "type": "string", + "nullable": true, + "enum": [ + "MANUAL", + "AFTER_APPROVAL", + "SCHEDULED" + ] + }, + "earliestReleaseDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "usesIdfa": { + "type": "boolean", + "deprecated": true, + "nullable": true + } + }, + "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": { + "type": "object", + "title": "AppStoreVersionUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "versionString": { + "type": "string", + "nullable": true + }, + "copyright": { + "type": "string", + "nullable": true + }, + "reviewType": { + "type": "string", + "nullable": true, + "enum": [ + "APP_STORE", + "NOTARIZATION" + ] + }, + "releaseType": { + "type": "string", + "nullable": true, + "enum": [ + "MANUAL", + "AFTER_APPROVAL", + "SCHEDULED" + ] + }, + "earliestReleaseDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "usesIdfa": { + "type": "boolean", + "deprecated": true, + "nullable": true + }, + "downloadable": { + "type": "boolean", + "nullable": true + } + } + }, + "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": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppTag": { + "type": "object", + "title": "AppTag", + "properties": { + "type": { + "type": "string", + "enum": [ + "appTags" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "visibleInAppStore": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "territories": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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" + ] + }, + "AppTagsResponse": { + "type": "object", + "title": "AppTagsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppTag" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppTagResponse": { + "type": "object", + "title": "AppTagResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppTag" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppTagUpdateRequest": { + "type": "object", + "title": "AppTagUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appTags" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "visibleInAppStore": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "App": { + "type": "object", + "title": "App", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "accessibilityUrl": { + "type": "string", + "format": "uri" + }, + "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" + }, + "contentRightsDeclaration": { + "type": "string", + "enum": [ + "DOES_NOT_USE_THIRD_PARTY_CONTENT", + "USES_THIRD_PARTY_CONTENT" + ] + }, + "streamlinedPurchasingEnabled": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "accessibilityDeclarations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "appEncryptionDeclarations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreIcon": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildIcons" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "ciProduct": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciProducts" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "betaTesters": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "betaGroups": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appTags": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "preReleaseVersions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "builds": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "betaLicenseAgreement": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaLicenseAgreements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "betaAppReviewDetail": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppReviewDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appInfos": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appPricePoints": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "endUserLicenseAgreement": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "endUserLicenseAgreements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appPriceSchedule": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "appAvailabilityV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "inAppPurchases": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterEnabledVersions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterEnabledVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "performanceOverviews": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "perfPowerMetrics": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "appCustomProductPages": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "subscriptionGracePeriod": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGracePeriods" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "customerReviews": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "customerReviewSummarizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "gameCenterDetail": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "alternativeDistributionKey": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "analyticsReportRequests": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "marketplaceSearchDetail": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "buildUploads": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "backgroundAssets": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "assetLibrary": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "betaFeedbackScreenshotSubmissions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "betaFeedbackCrashSubmissions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "searchKeywords": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "webhooks": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "androidToIosAppMappingDetails": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "androidToIosAppMappingDetails" + ] + }, + "id": { + "type": "string" + } + }, + "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/AndroidToIosAppMappingDetail" + }, + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/AppCustomProductPage" + }, + { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + }, + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/AppInfo" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/BetaAppLocalization" + }, + { + "$ref": "#/components/schemas/BetaAppReviewDetail" + }, + { + "$ref": "#/components/schemas/BetaGroup" + }, + { + "$ref": "#/components/schemas/BetaLicenseAgreement" + }, + { + "$ref": "#/components/schemas/BuildIcon" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/EndUserLicenseAgreement" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterEnabledVersion" + }, + { + "$ref": "#/components/schemas/InAppPurchase" + }, + { + "$ref": "#/components/schemas/PrereleaseVersion" + }, + { + "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/ReviewSubmission" + }, + { + "$ref": "#/components/schemas/SubscriptionGracePeriod" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "betaGroups": "#/components/schemas/BetaGroup", + "appEvents": "#/components/schemas/AppEvent", + "appEncryptionDeclarations": "#/components/schemas/AppEncryptionDeclaration", + "reviewSubmissions": "#/components/schemas/ReviewSubmission", + "subscriptionGracePeriods": "#/components/schemas/SubscriptionGracePeriod", + "appInfos": "#/components/schemas/AppInfo", + "preReleaseVersions": "#/components/schemas/PrereleaseVersion", + "appStoreVersionExperiments": "#/components/schemas/AppStoreVersionExperimentV2", + "appCustomProductPages": "#/components/schemas/AppCustomProductPage", + "inAppPurchases": "#/components/schemas/InAppPurchase", + "appClips": "#/components/schemas/AppClip", + "betaAppReviewDetails": "#/components/schemas/BetaAppReviewDetail", + "buildIcons": "#/components/schemas/BuildIcon", + "ciProducts": "#/components/schemas/CiProduct", + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "promotedPurchases": "#/components/schemas/PromotedPurchase", + "androidToIosAppMappingDetails": "#/components/schemas/AndroidToIosAppMappingDetail", + "gameCenterEnabledVersions": "#/components/schemas/GameCenterEnabledVersion", + "subscriptionGroups": "#/components/schemas/SubscriptionGroup", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "builds": "#/components/schemas/Build", + "betaAppLocalizations": "#/components/schemas/BetaAppLocalization", + "betaLicenseAgreements": "#/components/schemas/BetaLicenseAgreement", + "endUserLicenseAgreements": "#/components/schemas/EndUserLicenseAgreement" + } + } + } + }, + "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/AndroidToIosAppMappingDetail" + }, + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/AppCustomProductPage" + }, + { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + }, + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/AppInfo" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/BetaAppLocalization" + }, + { + "$ref": "#/components/schemas/BetaAppReviewDetail" + }, + { + "$ref": "#/components/schemas/BetaGroup" + }, + { + "$ref": "#/components/schemas/BetaLicenseAgreement" + }, + { + "$ref": "#/components/schemas/BuildIcon" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/EndUserLicenseAgreement" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterEnabledVersion" + }, + { + "$ref": "#/components/schemas/InAppPurchase" + }, + { + "$ref": "#/components/schemas/PrereleaseVersion" + }, + { + "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/ReviewSubmission" + }, + { + "$ref": "#/components/schemas/SubscriptionGracePeriod" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "betaGroups": "#/components/schemas/BetaGroup", + "appEvents": "#/components/schemas/AppEvent", + "appEncryptionDeclarations": "#/components/schemas/AppEncryptionDeclaration", + "reviewSubmissions": "#/components/schemas/ReviewSubmission", + "subscriptionGracePeriods": "#/components/schemas/SubscriptionGracePeriod", + "appInfos": "#/components/schemas/AppInfo", + "preReleaseVersions": "#/components/schemas/PrereleaseVersion", + "appStoreVersionExperiments": "#/components/schemas/AppStoreVersionExperimentV2", + "appCustomProductPages": "#/components/schemas/AppCustomProductPage", + "inAppPurchases": "#/components/schemas/InAppPurchase", + "appClips": "#/components/schemas/AppClip", + "betaAppReviewDetails": "#/components/schemas/BetaAppReviewDetail", + "buildIcons": "#/components/schemas/BuildIcon", + "ciProducts": "#/components/schemas/CiProduct", + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "promotedPurchases": "#/components/schemas/PromotedPurchase", + "androidToIosAppMappingDetails": "#/components/schemas/AndroidToIosAppMappingDetail", + "gameCenterEnabledVersions": "#/components/schemas/GameCenterEnabledVersion", + "subscriptionGroups": "#/components/schemas/SubscriptionGroup", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "builds": "#/components/schemas/Build", + "betaAppLocalizations": "#/components/schemas/BetaAppLocalization", + "betaLicenseAgreements": "#/components/schemas/BetaLicenseAgreement", + "endUserLicenseAgreements": "#/components/schemas/EndUserLicenseAgreement" + } + } + } + }, + "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": { + "accessibilityUrl": { + "type": "string", + "format": "uri", + "nullable": true + }, + "bundleId": { + "type": "string", + "nullable": true + }, + "primaryLocale": { + "type": "string", + "nullable": true + }, + "subscriptionStatusUrl": { + "type": "string", + "format": "uri", + "nullable": true + }, + "subscriptionStatusUrlVersion": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" + }, + "subscriptionStatusUrlForSandbox": { + "type": "string", + "format": "uri", + "nullable": true + }, + "subscriptionStatusUrlVersionForSandbox": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" + }, + "contentRightsDeclaration": { + "type": "string", + "nullable": true, + "enum": [ + "DOES_NOT_USE_THIRD_PARTY_CONTENT", + "USES_THIRD_PARTY_CONTENT" + ] + }, + "streamlinedPurchasingEnabled": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BackgroundAssetUploadFile": { + "type": "object", + "title": "BackgroundAssetUploadFile", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetUploadFiles" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + }, + "assetToken": { + "type": "string" + }, + "assetType": { + "type": "string", + "enum": [ + "ASSET", + "MANIFEST" + ] + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "sourceFileChecksum": { + "type": "string", + "deprecated": true + }, + "sourceFileChecksums": { + "$ref": "#/components/schemas/Checksums" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DeliveryFileUploadOperation" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BackgroundAssetUploadFilesResponse": { + "type": "object", + "title": "BackgroundAssetUploadFilesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackgroundAssetUploadFile" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetUploadFileResponse": { + "type": "object", + "title": "BackgroundAssetUploadFileResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BackgroundAssetUploadFile" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetUploadFileCreateRequest": { + "type": "object", + "title": "BackgroundAssetUploadFileCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetUploadFiles" + ] + }, + "attributes": { + "type": "object", + "properties": { + "assetType": { + "type": "string", + "enum": [ + "ASSET", + "MANIFEST" + ] + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + } + }, + "required": [ + "fileName", + "fileSize", + "assetType" + ] + }, + "relationships": { + "type": "object", + "properties": { + "backgroundAssetVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "backgroundAssetVersion" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BackgroundAssetUploadFileUpdateRequest": { + "type": "object", + "title": "BackgroundAssetUploadFileUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetUploadFiles" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "deprecated": true, + "nullable": true + }, + "sourceFileChecksums": { + "nullable": true, + "$ref": "#/components/schemas/Checksums" + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BackgroundAssetVersionAppStoreRelease": { + "type": "object", + "title": "BackgroundAssetVersionAppStoreRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersionAppStoreReleases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/BackgroundAssetVersionAppStoreReleaseState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "backgroundAssetVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BackgroundAssetVersionAppStoreReleaseResponse": { + "type": "object", + "title": "BackgroundAssetVersionAppStoreReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BackgroundAssetVersionAppStoreRelease" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackgroundAssetVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetVersionExternalBetaRelease": { + "type": "object", + "title": "BackgroundAssetVersionExternalBetaRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersionExternalBetaReleases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/BackgroundAssetVersionExternalBetaReleaseState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "backgroundAssetVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BackgroundAssetVersionExternalBetaReleaseResponse": { + "type": "object", + "title": "BackgroundAssetVersionExternalBetaReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BackgroundAssetVersionExternalBetaRelease" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackgroundAssetVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetVersionInternalBetaRelease": { + "type": "object", + "title": "BackgroundAssetVersionInternalBetaRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersionInternalBetaReleases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "state": { + "type": "string", + "enum": [ + "READY_FOR_TESTING", + "SUPERSEDED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "backgroundAssetVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BackgroundAssetVersionInternalBetaReleaseResponse": { + "type": "object", + "title": "BackgroundAssetVersionInternalBetaReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BackgroundAssetVersionInternalBetaRelease" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackgroundAssetVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetVersion": { + "type": "object", + "title": "BackgroundAssetVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "createdDate": { + "type": "string", + "format": "date-time" + }, + "platforms": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Platform" + } + }, + "state": { + "$ref": "#/components/schemas/BackgroundAssetVersionState" + }, + "stateDetails": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + }, + "warnings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + }, + "infos": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + } + } + }, + "version": { + "type": "string" + }, + "locale": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "backgroundAsset": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "internalBetaRelease": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersionInternalBetaReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "externalBetaRelease": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersionExternalBetaReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreRelease": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersionAppStoreReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "assetFile": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetUploadFiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "manifestFile": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetUploadFiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "backgroundAssetUploadFiles": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BackgroundAssetVersionsResponse": { + "type": "object", + "title": "BackgroundAssetVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackgroundAssetVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BackgroundAssetUploadFile" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersionAppStoreRelease" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersionExternalBetaRelease" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersionInternalBetaRelease" + }, + { + "$ref": "#/components/schemas/BackgroundAsset" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "backgroundAssetVersionAppStoreReleases": "#/components/schemas/BackgroundAssetVersionAppStoreRelease", + "backgroundAssetVersionInternalBetaReleases": "#/components/schemas/BackgroundAssetVersionInternalBetaRelease", + "backgroundAssets": "#/components/schemas/BackgroundAsset", + "backgroundAssetUploadFiles": "#/components/schemas/BackgroundAssetUploadFile", + "backgroundAssetVersionExternalBetaReleases": "#/components/schemas/BackgroundAssetVersionExternalBetaRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetVersionResponse": { + "type": "object", + "title": "BackgroundAssetVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BackgroundAssetVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BackgroundAssetUploadFile" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersionAppStoreRelease" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersionExternalBetaRelease" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersionInternalBetaRelease" + }, + { + "$ref": "#/components/schemas/BackgroundAsset" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "backgroundAssetVersionAppStoreReleases": "#/components/schemas/BackgroundAssetVersionAppStoreRelease", + "backgroundAssetVersionInternalBetaReleases": "#/components/schemas/BackgroundAssetVersionInternalBetaRelease", + "backgroundAssets": "#/components/schemas/BackgroundAsset", + "backgroundAssetUploadFiles": "#/components/schemas/BackgroundAssetUploadFile", + "backgroundAssetVersionExternalBetaReleases": "#/components/schemas/BackgroundAssetVersionExternalBetaRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetVersionCreateRequest": { + "type": "object", + "title": "BackgroundAssetVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "backgroundAsset": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "backgroundAsset" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BackgroundAsset": { + "type": "object", + "title": "BackgroundAsset", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "assetPackIdentifier": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "usedBytes": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 0 + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "internalBetaVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "externalBetaVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BackgroundAssetsResponse": { + "type": "object", + "title": "BackgroundAssetsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BackgroundAsset" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "backgroundAssetVersions": "#/components/schemas/BackgroundAssetVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetResponse": { + "type": "object", + "title": "BackgroundAssetResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BackgroundAsset" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "backgroundAssetVersions": "#/components/schemas/BackgroundAssetVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetCreateRequest": { + "type": "object", + "title": "BackgroundAssetCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssets" + ] + }, + "attributes": { + "type": "object", + "properties": { + "assetPackIdentifier": { + "type": "string" + } + }, + "required": [ + "assetPackIdentifier" + ] + }, + "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" + ] + }, + "BackgroundAssetUpdateRequest": { + "type": "object", + "title": "BackgroundAssetUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + }, + "BetaAppClipInvocationLocalizationResponse": { + "type": "object", + "title": "BetaAppClipInvocationLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "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": { + "type": "object", + "title": "BetaAppClipInvocationLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "title": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaAppClipInvocation": { + "type": "object", + "title": "BetaAppClipInvocation", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "betaAppClipInvocationLocalizations": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaAppClipInvocationsResponse": { + "type": "object", + "title": "BetaAppClipInvocationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppClipInvocation" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppClipInvocationResponse": { + "type": "object", + "title": "BetaAppClipInvocationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaAppClipInvocation" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppClipInvocationCreateRequest": { + "type": "object", + "title": "BetaAppClipInvocationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri" + } + }, + "required": [ + "url" + ] + }, + "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" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "buildBundle", + "betaAppClipInvocationLocalizations" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalizationInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "BetaAppClipInvocationUpdateRequest": { + "type": "object", + "title": "BetaAppClipInvocationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaAppLocalization": { + "type": "object", + "title": "BetaAppLocalization", + "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" + }, + "description": { + "type": "string" + }, + "locale": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaAppLocalizationsResponse": { + "type": "object", + "title": "BetaAppLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppLocalization" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppLocalizationResponse": { + "type": "object", + "title": "BetaAppLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaAppLocalization" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppLocalizationCreateRequest": { + "type": "object", + "title": "BetaAppLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "feedbackEmail": { + "type": "string", + "nullable": true + }, + "marketingUrl": { + "type": "string", + "nullable": true + }, + "privacyPolicyUrl": { + "type": "string", + "nullable": true + }, + "tvOsPrivacyPolicy": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string" + } + }, + "required": [ + "locale" + ] + }, + "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" + ] + }, + "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", + "nullable": true + }, + "marketingUrl": { + "type": "string", + "nullable": true + }, + "privacyPolicyUrl": { + "type": "string", + "nullable": true + }, + "tvOsPrivacyPolicy": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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": [ + "data", + "links" + ] + }, + "BetaAppReviewDetailUpdateRequest": { + "type": "object", + "title": "BetaAppReviewDetailUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppReviewDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "contactFirstName": { + "type": "string", + "nullable": true + }, + "contactLastName": { + "type": "string", + "nullable": true + }, + "contactPhone": { + "type": "string", + "nullable": true + }, + "contactEmail": { + "type": "string", + "nullable": true + }, + "demoAccountName": { + "type": "string", + "nullable": true + }, + "demoAccountPassword": { + "type": "string", + "nullable": true + }, + "demoAccountRequired": { + "type": "boolean", + "nullable": true + }, + "notes": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaAppReviewSubmission": { + "type": "object", + "title": "BetaAppReviewSubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppReviewSubmissions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "betaReviewState": { + "$ref": "#/components/schemas/BetaReviewState" + }, + "submittedDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "build": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaAppReviewSubmissionsResponse": { + "type": "object", + "title": "BetaAppReviewSubmissionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppReviewSubmission" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppReviewSubmissionResponse": { + "type": "object", + "title": "BetaAppReviewSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaAppReviewSubmission" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "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": { + "type": "object", + "title": "BetaBuildLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaBuildLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "whatsNew": { + "type": "string" + }, + "locale": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "build": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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": { + "type": "object", + "title": "BetaBuildLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaBuildLocalization" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaBuildLocalizationCreateRequest": { + "type": "object", + "title": "BetaBuildLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaBuildLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "whatsNew": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string" + } + }, + "required": [ + "locale" + ] + }, + "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", + "attributes", + "type" + ] + } + }, + "required": [ + "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", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaCrashLog": { + "type": "object", + "title": "BetaCrashLog", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaCrashLogs" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "logText": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaCrashLogResponse": { + "type": "object", + "title": "BetaCrashLogResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaCrashLog" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaFeedbackCrashSubmission": { + "type": "object", + "title": "BetaFeedbackCrashSubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaFeedbackCrashSubmissions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "createdDate": { + "type": "string", + "format": "date-time" + }, + "comment": { + "type": "string" + }, + "email": { + "type": "string" + }, + "deviceModel": { + "type": "string" + }, + "osVersion": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "timeZone": { + "type": "string" + }, + "architecture": { + "type": "string" + }, + "connectionType": { + "$ref": "#/components/schemas/DeviceConnectionType" + }, + "pairedAppleWatch": { + "type": "string" + }, + "appUptimeInMilliseconds": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 0 + }, + "diskBytesAvailable": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 0 + }, + "diskBytesTotal": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 0 + }, + "batteryPercentage": { + "type": "integer" + }, + "screenWidthInPoints": { + "type": "integer" + }, + "screenHeightInPoints": { + "type": "integer" + }, + "appPlatform": { + "$ref": "#/components/schemas/Platform" + }, + "devicePlatform": { + "$ref": "#/components/schemas/Platform" + }, + "deviceFamily": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "buildBundleId": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "crashLog": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "build": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "tester": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaFeedbackCrashSubmissionsResponse": { + "type": "object", + "title": "BetaFeedbackCrashSubmissionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaFeedbackCrashSubmission" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BetaTester" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builds": "#/components/schemas/Build", + "betaTesters": "#/components/schemas/BetaTester" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaFeedbackCrashSubmissionResponse": { + "type": "object", + "title": "BetaFeedbackCrashSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaFeedbackCrashSubmission" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BetaTester" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builds": "#/components/schemas/Build", + "betaTesters": "#/components/schemas/BetaTester" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaFeedbackScreenshotSubmission": { + "type": "object", + "title": "BetaFeedbackScreenshotSubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaFeedbackScreenshotSubmissions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "createdDate": { + "type": "string", + "format": "date-time" + }, + "comment": { + "type": "string" + }, + "email": { + "type": "string" + }, + "deviceModel": { + "type": "string" + }, + "osVersion": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "timeZone": { + "type": "string" + }, + "architecture": { + "type": "string" + }, + "connectionType": { + "$ref": "#/components/schemas/DeviceConnectionType" + }, + "pairedAppleWatch": { + "type": "string" + }, + "appUptimeInMilliseconds": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 0 + }, + "diskBytesAvailable": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 0 + }, + "diskBytesTotal": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 0 + }, + "batteryPercentage": { + "type": "integer" + }, + "screenWidthInPoints": { + "type": "integer" + }, + "screenHeightInPoints": { + "type": "integer" + }, + "appPlatform": { + "$ref": "#/components/schemas/Platform" + }, + "devicePlatform": { + "$ref": "#/components/schemas/Platform" + }, + "deviceFamily": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "buildBundleId": { + "type": "string" + }, + "screenshots": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaFeedbackScreenshotImage" + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "build": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "tester": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaFeedbackScreenshotSubmissionsResponse": { + "type": "object", + "title": "BetaFeedbackScreenshotSubmissionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaFeedbackScreenshotSubmission" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BetaTester" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builds": "#/components/schemas/Build", + "betaTesters": "#/components/schemas/BetaTester" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaFeedbackScreenshotSubmissionResponse": { + "type": "object", + "title": "BetaFeedbackScreenshotSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaFeedbackScreenshotSubmission" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BetaTester" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builds": "#/components/schemas/Build", + "betaTesters": "#/components/schemas/BetaTester" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroup": { + "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" + }, + "publicLinkId": { + "type": "string" + }, + "publicLinkLimitEnabled": { + "type": "boolean" + }, + "publicLinkLimit": { + "type": "integer" + }, + "publicLink": { + "type": "string" + }, + "feedbackEnabled": { + "type": "boolean" + }, + "iosBuildsAvailableForAppleSiliconMac": { + "type": "boolean" + }, + "iosBuildsAvailableForAppleVision": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "builds": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "betaRecruitmentCriteria": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaRecruitmentCriteria" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "betaRecruitmentCriterionCompatibleBuildCheck": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaGroupsResponse": { + "type": "object", + "title": "BetaGroupsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaGroup" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BetaRecruitmentCriterion" + }, + { + "$ref": "#/components/schemas/BetaTester" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "betaRecruitmentCriteria": "#/components/schemas/BetaRecruitmentCriterion", + "builds": "#/components/schemas/Build", + "betaTesters": "#/components/schemas/BetaTester", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupResponse": { + "type": "object", + "title": "BetaGroupResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaGroup" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BetaRecruitmentCriterion" + }, + { + "$ref": "#/components/schemas/BetaTester" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "betaRecruitmentCriteria": "#/components/schemas/BetaRecruitmentCriterion", + "builds": "#/components/schemas/Build", + "betaTesters": "#/components/schemas/BetaTester", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupCreateRequest": { + "type": "object", + "title": "BetaGroupCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "isInternalGroup": { + "type": "boolean", + "nullable": true + }, + "hasAccessToAllBuilds": { + "type": "boolean", + "nullable": true + }, + "publicLinkEnabled": { + "type": "boolean", + "nullable": true + }, + "publicLinkLimitEnabled": { + "type": "boolean", + "nullable": true + }, + "publicLinkLimit": { + "type": "integer", + "nullable": true + }, + "feedbackEnabled": { + "type": "boolean", + "nullable": true + } + }, + "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" + ] + } + } + } + }, + "betaTesters": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaGroupUpdateRequest": { + "type": "object", + "title": "BetaGroupUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "publicLinkEnabled": { + "type": "boolean", + "nullable": true + }, + "publicLinkLimitEnabled": { + "type": "boolean", + "nullable": true + }, + "publicLinkLimit": { + "type": "integer", + "nullable": true + }, + "feedbackEnabled": { + "type": "boolean", + "nullable": true + }, + "iosBuildsAvailableForAppleSiliconMac": { + "type": "boolean", + "nullable": true + }, + "iosBuildsAvailableForAppleVision": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaLicenseAgreement": { + "type": "object", + "title": "BetaLicenseAgreement", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaLicenseAgreements" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "agreementText": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaLicenseAgreementsResponse": { + "type": "object", + "title": "BetaLicenseAgreementsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaLicenseAgreement" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaLicenseAgreementResponse": { + "type": "object", + "title": "BetaLicenseAgreementResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaLicenseAgreement" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "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", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaRecruitmentCriterion": { + "type": "object", + "title": "BetaRecruitmentCriterion", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaRecruitmentCriteria" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "lastModifiedDate": { + "type": "string", + "format": "date-time" + }, + "deviceFamilyOsVersionFilters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DeviceFamilyOsVersionFilter" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaRecruitmentCriterionResponse": { + "type": "object", + "title": "BetaRecruitmentCriterionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaRecruitmentCriterion" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaRecruitmentCriterionCreateRequest": { + "type": "object", + "title": "BetaRecruitmentCriterionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaRecruitmentCriteria" + ] + }, + "attributes": { + "type": "object", + "properties": { + "deviceFamilyOsVersionFilters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DeviceFamilyOsVersionFilter" + } + } + }, + "required": [ + "deviceFamilyOsVersionFilters" + ] + }, + "relationships": { + "type": "object", + "properties": { + "betaGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "betaGroup" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaRecruitmentCriterionUpdateRequest": { + "type": "object", + "title": "BetaRecruitmentCriterionUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaRecruitmentCriteria" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "deviceFamilyOsVersionFilters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DeviceFamilyOsVersionFilter" + }, + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaRecruitmentCriterionCompatibleBuildCheck": { + "type": "object", + "title": "BetaRecruitmentCriterionCompatibleBuildCheck", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaRecruitmentCriterionCompatibleBuildChecks" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "hasCompatibleBuild": { + "type": "boolean" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaRecruitmentCriterionCompatibleBuildCheckResponse": { + "type": "object", + "title": "BetaRecruitmentCriterionCompatibleBuildCheckResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionCompatibleBuildCheck" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaRecruitmentCriterionOption": { + "type": "object", + "title": "BetaRecruitmentCriterionOption", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaRecruitmentCriterionOptions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "deviceFamilyOsVersions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deviceFamily": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "osVersions": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaRecruitmentCriterionOptionsResponse": { + "type": "object", + "title": "BetaRecruitmentCriterionOptionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaRecruitmentCriterionOption" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterInvitation": { + "type": "object", + "title": "BetaTesterInvitation", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesterInvitations" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "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": { + "betaTester": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "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" + ] + }, + "BetaTester": { + "type": "object", + "title": "BetaTester", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + }, + "inviteType": { + "$ref": "#/components/schemas/BetaInviteType" + }, + "state": { + "$ref": "#/components/schemas/BetaTesterState" + }, + "appDevices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "model": { + "type": "string" + }, + "platform": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "WATCH_OS", + "VISION_OS" + ] + }, + "osVersion": { + "type": "string" + }, + "appBuildVersion": { + "type": "string" + } + } + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "apps": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "builds": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "betaGroups": "#/components/schemas/BetaGroup", + "builds": "#/components/schemas/Build", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterResponse": { + "type": "object", + "title": "BetaTesterResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaTester" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BetaGroup" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "betaGroups": "#/components/schemas/BetaGroup", + "builds": "#/components/schemas/Build", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterCreateRequest": { + "type": "object", + "title": "BetaTesterCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "attributes": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "nullable": true + }, + "lastName": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "format": "email" + } + }, + "required": [ + "email" + ] + }, + "relationships": { + "type": "object", + "properties": { + "betaGroups": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "builds": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BuildBetaDetail": { + "type": "object", + "title": "BuildBetaDetail", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBetaDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "autoNotifyEnabled": { + "type": "boolean" + }, + "internalBuildState": { + "$ref": "#/components/schemas/InternalBetaState" + }, + "externalBuildState": { + "$ref": "#/components/schemas/ExternalBetaState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "build": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BuildBetaNotification": { + "type": "object", + "title": "BuildBetaNotification", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBetaNotifications" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BuildBetaNotificationResponse": { + "type": "object", + "title": "BuildBetaNotificationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BuildBetaNotification" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBetaNotificationCreateRequest": { + "type": "object", + "title": "BuildBetaNotificationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBetaNotifications" + ] + }, + "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" + ] + }, + "BuildBundleFileSize": { + "type": "object", + "title": "BuildBundleFileSize", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBundleFileSizes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "deviceModel": { + "type": "string" + }, + "osVersion": { + "type": "string" + }, + "downloadBytes": { + "type": "integer" + }, + "installBytes": { + "type": "integer" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "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": { + "$ref": "#/components/schemas/BuildBundleType" + }, + "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" + } + } + }, + "baDownloadAllowance": { + "type": "integer" + }, + "baMaxInstallSize": { + "type": "integer" + }, + "minimumOsVersion": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClipDomainCacheStatus": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDomainStatuses" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDomainDebugStatus": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDomainStatuses" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "betaAppClipInvocations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": [ + "id", + "type" + ] + }, + "BuildIcon": { + "type": "object", + "title": "BuildIcon", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildIcons" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "iconAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "iconType": { + "$ref": "#/components/schemas/IconAssetType" + }, + "masked": { + "type": "boolean" + }, + "name": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BuildIconsResponse": { + "type": "object", + "title": "BuildIconsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BuildIcon" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildUploadFile": { + "type": "object", + "title": "BuildUploadFile", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploadFiles" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + }, + "assetToken": { + "type": "string" + }, + "assetType": { + "type": "string", + "enum": [ + "ASSET", + "ASSET_DESCRIPTION", + "ASSET_SPI" + ] + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "sourceFileChecksums": { + "$ref": "#/components/schemas/Checksums" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DeliveryFileUploadOperation" + } + }, + "uti": { + "type": "string", + "enum": [ + "com.apple.binary-property-list", + "com.apple.ipa", + "com.apple.pkg", + "com.apple.xml-property-list", + "com.pkware.zip-archive" + ] + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BuildUploadFilesResponse": { + "type": "object", + "title": "BuildUploadFilesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BuildUploadFile" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildUploadFileResponse": { + "type": "object", + "title": "BuildUploadFileResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BuildUploadFile" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildUploadFileCreateRequest": { + "type": "object", + "title": "BuildUploadFileCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploadFiles" + ] + }, + "attributes": { + "type": "object", + "properties": { + "assetType": { + "type": "string", + "enum": [ + "ASSET", + "ASSET_DESCRIPTION", + "ASSET_SPI" + ] + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "uti": { + "type": "string", + "enum": [ + "com.apple.binary-property-list", + "com.apple.ipa", + "com.apple.pkg", + "com.apple.xml-property-list", + "com.pkware.zip-archive" + ] + } + }, + "required": [ + "fileName", + "fileSize", + "uti", + "assetType" + ] + }, + "relationships": { + "type": "object", + "properties": { + "buildUpload": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploads" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "buildUpload" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BuildUploadFileUpdateRequest": { + "type": "object", + "title": "BuildUploadFileUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploadFiles" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksums": { + "nullable": true, + "$ref": "#/components/schemas/Checksums" + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BuildUpload": { + "type": "object", + "title": "BuildUpload", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploads" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "cfBundleShortVersionString": { + "type": "string" + }, + "cfBundleVersion": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "state": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + }, + "warnings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + }, + "infos": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StateDetail" + } + }, + "state": { + "$ref": "#/components/schemas/BuildUploadState" + } + } + }, + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "uploadedDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "build": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "assetFile": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploadFiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "assetDescriptionFile": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploadFiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "assetSpiFile": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploadFiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "buildUploadFiles": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BuildUploadsResponse": { + "type": "object", + "title": "BuildUploadsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BuildUpload" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BuildUploadFile" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "buildUploadFiles": "#/components/schemas/BuildUploadFile", + "builds": "#/components/schemas/Build" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildUploadResponse": { + "type": "object", + "title": "BuildUploadResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BuildUpload" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BuildUploadFile" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "buildUploadFiles": "#/components/schemas/BuildUploadFile", + "builds": "#/components/schemas/Build" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildUploadCreateRequest": { + "type": "object", + "title": "BuildUploadCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploads" + ] + }, + "attributes": { + "type": "object", + "properties": { + "cfBundleShortVersionString": { + "type": "string" + }, + "cfBundleVersion": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/Platform" + } + }, + "required": [ + "cfBundleVersion", + "cfBundleShortVersionString", + "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" + ] + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "Build": { + "type": "object", + "title": "Build", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "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" + }, + "computedMinVisionOsVersion": { + "type": "string" + }, + "iconAssetToken": { + "$ref": "#/components/schemas/ImageAsset" + }, + "processingState": { + "type": "string", + "enum": [ + "PROCESSING", + "FAILED", + "INVALID", + "VALID" + ] + }, + "buildAudienceType": { + "$ref": "#/components/schemas/BuildAudienceType" + }, + "usesNonExemptEncryption": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "preReleaseVersion": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "preReleaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "individualTesters": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "betaGroups": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "betaBuildLocalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaBuildLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appEncryptionDeclaration": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "betaAppReviewSubmission": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppReviewSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "app": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "buildBetaDetail": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBetaDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersion": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "icons": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildIcons" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "buildBundles": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBundles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "buildUpload": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploads" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "perfPowerMetrics": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "diagnosticSignatures": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BuildsResponse": { + "type": "object", + "title": "BuildsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BetaAppReviewSubmission" + }, + { + "$ref": "#/components/schemas/BetaBuildLocalization" + }, + { + "$ref": "#/components/schemas/BetaGroup" + }, + { + "$ref": "#/components/schemas/BetaTester" + }, + { + "$ref": "#/components/schemas/BuildBetaDetail" + }, + { + "$ref": "#/components/schemas/BuildBundle" + }, + { + "$ref": "#/components/schemas/BuildIcon" + }, + { + "$ref": "#/components/schemas/BuildUpload" + }, + { + "$ref": "#/components/schemas/PrereleaseVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "betaGroups": "#/components/schemas/BetaGroup", + "appEncryptionDeclarations": "#/components/schemas/AppEncryptionDeclaration", + "betaAppReviewSubmissions": "#/components/schemas/BetaAppReviewSubmission", + "buildBetaDetails": "#/components/schemas/BuildBetaDetail", + "buildIcons": "#/components/schemas/BuildIcon", + "buildUploads": "#/components/schemas/BuildUpload", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "preReleaseVersions": "#/components/schemas/PrereleaseVersion", + "buildBundles": "#/components/schemas/BuildBundle", + "betaTesters": "#/components/schemas/BetaTester", + "apps": "#/components/schemas/App", + "betaBuildLocalizations": "#/components/schemas/BetaBuildLocalization" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildResponse": { + "type": "object", + "title": "BuildResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Build" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BetaAppReviewSubmission" + }, + { + "$ref": "#/components/schemas/BetaBuildLocalization" + }, + { + "$ref": "#/components/schemas/BetaGroup" + }, + { + "$ref": "#/components/schemas/BetaTester" + }, + { + "$ref": "#/components/schemas/BuildBetaDetail" + }, + { + "$ref": "#/components/schemas/BuildBundle" + }, + { + "$ref": "#/components/schemas/BuildIcon" + }, + { + "$ref": "#/components/schemas/BuildUpload" + }, + { + "$ref": "#/components/schemas/PrereleaseVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "betaGroups": "#/components/schemas/BetaGroup", + "appEncryptionDeclarations": "#/components/schemas/AppEncryptionDeclaration", + "betaAppReviewSubmissions": "#/components/schemas/BetaAppReviewSubmission", + "buildBetaDetails": "#/components/schemas/BuildBetaDetail", + "buildIcons": "#/components/schemas/BuildIcon", + "buildUploads": "#/components/schemas/BuildUpload", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "preReleaseVersions": "#/components/schemas/PrereleaseVersion", + "buildBundles": "#/components/schemas/BuildBundle", + "betaTesters": "#/components/schemas/BetaTester", + "apps": "#/components/schemas/App", + "betaBuildLocalizations": "#/components/schemas/BetaBuildLocalization" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildUpdateRequest": { + "type": "object", + "title": "BuildUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "expired": { + "type": "boolean", + "nullable": true + }, + "usesNonExemptEncryption": { + "type": "boolean", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appEncryptionDeclaration": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "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": [ + "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" + }, + "nullable": true + } + }, + "required": [ + "capabilityType" + ] + }, + "relationships": { + "type": "object", + "properties": { + "bundleId": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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": { + "nullable": true, + "$ref": "#/components/schemas/CapabilityType" + }, + "settings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CapabilitySetting" + }, + "nullable": true + } + } + } + }, + "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" + }, + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" + }, + "identifier": { + "type": "string" + }, + "seedId": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "profiles": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "profiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "bundleIdCapabilities": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIdCapabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "app": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "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/App" + }, + { + "$ref": "#/components/schemas/BundleIdCapability" + }, + { + "$ref": "#/components/schemas/Profile" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "bundleIdCapabilities": "#/components/schemas/BundleIdCapability", + "profiles": "#/components/schemas/Profile", + "apps": "#/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/App" + }, + { + "$ref": "#/components/schemas/BundleIdCapability" + }, + { + "$ref": "#/components/schemas/Profile" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "bundleIdCapabilities": "#/components/schemas/BundleIdCapability", + "profiles": "#/components/schemas/Profile", + "apps": "#/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" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" + }, + "identifier": { + "type": "string" + }, + "seedId": { + "type": "string", + "nullable": true + } + }, + "required": [ + "identifier", + "name", + "platform" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BundleIdUpdateRequest": { + "type": "object", + "title": "BundleIdUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + } + } + } + }, + "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" + }, + "activated": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "passTypeId": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "passTypeIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CertificatesResponse": { + "type": "object", + "title": "CertificatesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Certificate" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PassTypeId" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CertificateResponse": { + "type": "object", + "title": "CertificateResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Certificate" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PassTypeId" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CertificateCreateRequest": { + "type": "object", + "title": "CertificateCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "attributes": { + "type": "object", + "properties": { + "csrContent": { + "type": "string" + }, + "certificateType": { + "$ref": "#/components/schemas/CertificateType" + } + }, + "required": [ + "csrContent", + "certificateType" + ] + }, + "relationships": { + "type": "object", + "properties": { + "merchantId": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "merchantIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "passTypeId": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "passTypeIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "CertificateUpdateRequest": { + "type": "object", + "title": "CertificateUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "activated": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "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", + "STAPLED_NOTARIZED_ARCHIVE" + ] + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildRuns" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "artifacts": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "issues": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "testResults": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "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" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "startedDate": { + "type": "string", + "format": "date-time" + }, + "finishedDate": { + "type": "string", + "format": "date-time" + }, + "sourceCommit": { + "type": "object", + "properties": { + "commitSha": { + "type": "string" + }, + "message": { + "type": "string" + }, + "author": { + "$ref": "#/components/schemas/CiGitUser" + }, + "committer": { + "$ref": "#/components/schemas/CiGitUser" + }, + "webUrl": { + "type": "string", + "format": "uri" + } + } + }, + "destinationCommit": { + "type": "object", + "properties": { + "commitSha": { + "type": "string" + }, + "message": { + "type": "string" + }, + "author": { + "$ref": "#/components/schemas/CiGitUser" + }, + "committer": { + "$ref": "#/components/schemas/CiGitUser" + }, + "webUrl": { + "type": "string", + "format": "uri" + } + } + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "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" + ] + } + } + }, + "product": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciProducts" + ] + }, + "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" + ] + } + } + }, + "destinationBranch": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmGitReferences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "actions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "pullRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmPullRequests" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CiBuildRunsResponse": { + "type": "object", + "title": "CiBuildRunsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiBuildRun" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/CiWorkflow" + }, + { + "$ref": "#/components/schemas/ScmGitReference" + }, + { + "$ref": "#/components/schemas/ScmPullRequest" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "ciProducts": "#/components/schemas/CiProduct", + "builds": "#/components/schemas/Build", + "scmPullRequests": "#/components/schemas/ScmPullRequest", + "ciWorkflows": "#/components/schemas/CiWorkflow", + "scmGitReferences": "#/components/schemas/ScmGitReference" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildRunResponse": { + "type": "object", + "title": "CiBuildRunResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CiBuildRun" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/CiWorkflow" + }, + { + "$ref": "#/components/schemas/ScmGitReference" + }, + { + "$ref": "#/components/schemas/ScmPullRequest" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "ciProducts": "#/components/schemas/CiProduct", + "builds": "#/components/schemas/Build", + "scmPullRequests": "#/components/schemas/ScmPullRequest", + "ciWorkflows": "#/components/schemas/CiWorkflow", + "scmGitReferences": "#/components/schemas/ScmGitReference" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildRunCreateRequest": { + "type": "object", + "title": "CiBuildRunCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildRuns" + ] + }, + "attributes": { + "type": "object", + "properties": { + "clean": { + "type": "boolean", + "nullable": true + } + } + }, + "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" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "CiIssue": { + "type": "object", + "title": "CiIssue", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciIssues" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "issueType": { + "type": "string", + "enum": [ + "ANALYZER_WARNING", + "ERROR", + "TEST_FAILURE", + "WARNING" + ] + }, + "message": { + "type": "string" + }, + "fileSource": { + "$ref": "#/components/schemas/FileLocation" + }, + "category": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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": [ + "data", + "links" + ] + }, + "CiMacOsVersion": { + "type": "object", + "title": "CiMacOsVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciMacOsVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "xcodeVersions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": [ + "id", + "type" + ] + }, + "CiMacOsVersionsResponse": { + "type": "object", + "title": "CiMacOsVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiMacOsVersion" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiXcodeVersion" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiMacOsVersionResponse": { + "type": "object", + "title": "CiMacOsVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CiMacOsVersion" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiXcodeVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiProduct": { + "type": "object", + "title": "CiProduct", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciProducts" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "productType": { + "type": "string", + "enum": [ + "APP", + "FRAMEWORK" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "bundleId": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "workflows": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "primaryRepositories": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "additionalRepositories": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "buildRuns": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CiProductsResponse": { + "type": "object", + "title": "CiProductsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiProduct" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BundleId" + }, + { + "$ref": "#/components/schemas/ScmRepository" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "scmRepositories": "#/components/schemas/ScmRepository", + "bundleIds": "#/components/schemas/BundleId", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiProductResponse": { + "type": "object", + "title": "CiProductResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CiProduct" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BundleId" + }, + { + "$ref": "#/components/schemas/ScmRepository" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "scmRepositories": "#/components/schemas/ScmRepository", + "bundleIds": "#/components/schemas/BundleId", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiTestResult": { + "type": "object", + "title": "CiTestResult", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciTestResults" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "className": { + "type": "string" + }, + "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" + }, + "deviceName": { + "type": "string" + }, + "osVersion": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/CiTestStatus" + }, + "duration": { + "type": "number" + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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": [ + "data", + "links" + ] + }, + "CiTestResultResponse": { + "type": "object", + "title": "CiTestResultResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CiTestResult" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiWorkflow": { + "type": "object", + "title": "CiWorkflow", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciWorkflows" + ] + }, + "id": { + "type": "string" + }, + "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" + }, + "manualBranchStartCondition": { + "$ref": "#/components/schemas/CiManualBranchStartCondition" + }, + "manualTagStartCondition": { + "$ref": "#/components/schemas/CiManualTagStartCondition" + }, + "manualPullRequestStartCondition": { + "$ref": "#/components/schemas/CiManualPullRequestStartCondition" + }, + "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": { + "product": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciProducts" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "repository": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "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" + ] + } + } + }, + "buildRuns": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CiWorkflowsResponse": { + "type": "object", + "title": "CiWorkflowsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiWorkflow" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/CiMacOsVersion" + }, + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/CiXcodeVersion" + }, + { + "$ref": "#/components/schemas/ScmRepository" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "scmRepositories": "#/components/schemas/ScmRepository", + "ciMacOsVersions": "#/components/schemas/CiMacOsVersion", + "ciProducts": "#/components/schemas/CiProduct", + "ciXcodeVersions": "#/components/schemas/CiXcodeVersion" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiWorkflowResponse": { + "type": "object", + "title": "CiWorkflowResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CiWorkflow" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/CiMacOsVersion" + }, + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/CiXcodeVersion" + }, + { + "$ref": "#/components/schemas/ScmRepository" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "scmRepositories": "#/components/schemas/ScmRepository", + "ciMacOsVersions": "#/components/schemas/CiMacOsVersion", + "ciProducts": "#/components/schemas/CiProduct", + "ciXcodeVersions": "#/components/schemas/CiXcodeVersion" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiWorkflowCreateRequest": { + "type": "object", + "title": "CiWorkflowCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciWorkflows" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "branchStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiBranchStartCondition" + }, + "tagStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiTagStartCondition" + }, + "pullRequestStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiPullRequestStartCondition" + }, + "scheduledStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiScheduledStartCondition" + }, + "manualBranchStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiManualBranchStartCondition" + }, + "manualTagStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiManualTagStartCondition" + }, + "manualPullRequestStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiManualPullRequestStartCondition" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiAction" + } + }, + "isEnabled": { + "type": "boolean" + }, + "isLockedForEditing": { + "type": "boolean", + "nullable": true + }, + "clean": { + "type": "boolean" + }, + "containerFilePath": { + "type": "string" + } + }, + "required": [ + "containerFilePath", + "isEnabled", + "name", + "description", + "clean", + "actions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "product": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciProducts" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "repository": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "xcodeVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciXcodeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "macOsVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciMacOsVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "macOsVersion", + "product", + "repository", + "xcodeVersion" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "CiWorkflowUpdateRequest": { + "type": "object", + "title": "CiWorkflowUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciWorkflows" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + }, + "branchStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiBranchStartCondition" + }, + "tagStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiTagStartCondition" + }, + "pullRequestStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiPullRequestStartCondition" + }, + "scheduledStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiScheduledStartCondition" + }, + "manualBranchStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiManualBranchStartCondition" + }, + "manualTagStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiManualTagStartCondition" + }, + "manualPullRequestStartCondition": { + "nullable": true, + "$ref": "#/components/schemas/CiManualPullRequestStartCondition" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiAction" + }, + "nullable": true + }, + "isEnabled": { + "type": "boolean", + "nullable": true + }, + "isLockedForEditing": { + "type": "boolean", + "nullable": true + }, + "clean": { + "type": "boolean", + "nullable": true + }, + "containerFilePath": { + "type": "string", + "nullable": true + } + } + }, + "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": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "CiXcodeVersion": { + "type": "object", + "title": "CiXcodeVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciXcodeVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "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": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciMacOsVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CustomerReviewResponseV1Response": { + "type": "object", + "title": "CustomerReviewResponseV1Response", + "properties": { + "data": { + "$ref": "#/components/schemas/CustomerReviewResponseV1" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomerReview" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CustomerReviewResponseV1CreateRequest": { + "type": "object", + "title": "CustomerReviewResponseV1CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviewResponses" + ] + }, + "attributes": { + "type": "object", + "properties": { + "responseBody": { + "type": "string" + } + }, + "required": [ + "responseBody" + ] + }, + "relationships": { + "type": "object", + "properties": { + "review": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "review" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "CustomerReviewSummarization": { + "type": "object", + "title": "CustomerReviewSummarization", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviewSummarizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "createdDate": { + "type": "string", + "format": "date-time" + }, + "locale": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "text": { + "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" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CustomerReviewSummarizationsResponse": { + "type": "object", + "title": "CustomerReviewSummarizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomerReviewSummarization" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CustomerReview": { + "type": "object", + "title": "CustomerReview", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviews" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "rating": { + "type": "integer", + "maximum": 5, + "minimum": 1 + }, + "title": { + "type": "string" + }, + "body": { + "type": "string" + }, + "reviewerNickname": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "territory": { + "$ref": "#/components/schemas/TerritoryCode" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "response": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviewResponses" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "reviewTerritory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CustomerReviewsResponse": { + "type": "object", + "title": "CustomerReviewsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomerReview" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/CustomerReviewResponseV1" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "customerReviewResponses": "#/components/schemas/CustomerReviewResponseV1" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CustomerReviewResponse": { + "type": "object", + "title": "CustomerReviewResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CustomerReview" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/CustomerReviewResponseV1" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "customerReviewResponses": "#/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_VISION_PRO", + "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", + "properties": { + "type": { + "type": "string", + "enum": [ + "devices" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" + }, + "udid": { + "type": "string" + } + }, + "required": [ + "name", + "udid", + "platform" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "DeviceUpdateRequest": { + "type": "object", + "title": "DeviceUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "devices" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "status": { + "type": "string", + "nullable": true, + "enum": [ + "ENABLED", + "DISABLED" + ] + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "DiagnosticLog": { + "type": "object", + "title": "DiagnosticLog", + "properties": { + "type": { + "type": "string", + "enum": [ + "diagnosticLogs" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "DiagnosticSignature": { + "type": "object", + "title": "DiagnosticSignature", + "properties": { + "type": { + "type": "string", + "enum": [ + "diagnosticSignatures" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "diagnosticType": { + "type": "string", + "enum": [ + "DISK_WRITES", + "HANGS", + "LAUNCHES" + ] + }, + "signature": { + "type": "string" + }, + "weight": { + "type": "number" + }, + "insight": { + "$ref": "#/components/schemas/DiagnosticInsight" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "logs": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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": [ + "data", + "links" + ] + }, + "EndAppAvailabilityPreOrder": { + "type": "object", + "title": "EndAppAvailabilityPreOrder", + "properties": { + "type": { + "type": "string", + "enum": [ + "endAppAvailabilityPreOrders" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "EndAppAvailabilityPreOrderResponse": { + "type": "object", + "title": "EndAppAvailabilityPreOrderResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/EndAppAvailabilityPreOrder" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "EndAppAvailabilityPreOrderCreateRequest": { + "type": "object", + "title": "EndAppAvailabilityPreOrderCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "endAppAvailabilityPreOrders" + ] + }, + "relationships": { + "type": "object", + "properties": { + "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": [ + "territoryAvailabilities" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "EndUserLicenseAgreement": { + "type": "object", + "title": "EndUserLicenseAgreement", + "properties": { + "type": { + "type": "string", + "enum": [ + "endUserLicenseAgreements" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "agreementText": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "territories": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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" + ] + }, + "EndUserLicenseAgreementResponse": { + "type": "object", + "title": "EndUserLicenseAgreementResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/EndUserLicenseAgreement" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "EndUserLicenseAgreementCreateRequest": { + "type": "object", + "title": "EndUserLicenseAgreementCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "endUserLicenseAgreements" + ] + }, + "attributes": { + "type": "object", + "properties": { + "agreementText": { + "type": "string" + } + }, + "required": [ + "agreementText" + ] + }, + "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": { + "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", + "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", + "nullable": true + } + } + }, + "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": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementImage": { + "type": "object", + "title": "GameCenterAchievementImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "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": { + "gameCenterAchievementLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterAchievementImageResponse": { + "type": "object", + "title": "GameCenterAchievementImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievementImage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementImageCreateRequest": { + "type": "object", + "title": "GameCenterAchievementImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterAchievementLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterAchievementLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterAchievementImageUpdateRequest": { + "type": "object", + "title": "GameCenterAchievementImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterAchievementImageV2": { + "type": "object", + "title": "GameCenterAchievementImageV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "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": { + "localization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterAchievementImageV2Response": { + "type": "object", + "title": "GameCenterAchievementImageV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievementImageV2" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementImageV2CreateRequest": { + "type": "object", + "title": "GameCenterAchievementImageV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "localization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "localization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementImageV2UpdateRequest": { + "type": "object", + "title": "GameCenterAchievementImageV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementLocalizationV2": { + "type": "object", + "title": "GameCenterAchievementLocalizationV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "beforeEarnedDescription": { + "type": "string" + }, + "afterEarnedDescription": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "image": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterAchievementLocalizationsV2Response": { + "type": "object", + "title": "GameCenterAchievementLocalizationsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementImageV2" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterAchievementVersions": "#/components/schemas/GameCenterAchievementVersionV2", + "gameCenterAchievementImages": "#/components/schemas/GameCenterAchievementImageV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementLocalizationV2Response": { + "type": "object", + "title": "GameCenterAchievementLocalizationV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementImageV2" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterAchievementVersions": "#/components/schemas/GameCenterAchievementVersionV2", + "gameCenterAchievementImages": "#/components/schemas/GameCenterAchievementImageV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementLocalizationV2CreateRequest": { + "type": "object", + "title": "GameCenterAchievementLocalizationV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "beforeEarnedDescription": { + "type": "string" + }, + "afterEarnedDescription": { + "type": "string" + } + }, + "required": [ + "name", + "beforeEarnedDescription", + "locale", + "afterEarnedDescription" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementLocalizationV2UpdateRequest": { + "type": "object", + "title": "GameCenterAchievementLocalizationV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "beforeEarnedDescription": { + "type": "string", + "nullable": true + }, + "afterEarnedDescription": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementLocalization": { + "type": "object", + "title": "GameCenterAchievementLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "beforeEarnedDescription": { + "type": "string" + }, + "afterEarnedDescription": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterAchievement": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterAchievementImage": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterAchievementLocalizationsResponse": { + "type": "object", + "title": "GameCenterAchievementLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementImage" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterAchievementImages": "#/components/schemas/GameCenterAchievementImage" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementLocalizationResponse": { + "type": "object", + "title": "GameCenterAchievementLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievementLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementImage" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterAchievementImages": "#/components/schemas/GameCenterAchievementImage" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementLocalizationCreateRequest": { + "type": "object", + "title": "GameCenterAchievementLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "beforeEarnedDescription": { + "type": "string" + }, + "afterEarnedDescription": { + "type": "string" + } + }, + "required": [ + "name", + "beforeEarnedDescription", + "locale", + "afterEarnedDescription" + ] + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterAchievement": { + "type": "object", + "properties": { + "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" + ], + "deprecated": true + }, + "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", + "nullable": true + }, + "beforeEarnedDescription": { + "type": "string", + "nullable": true + }, + "afterEarnedDescription": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterAchievement": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterAchievementReleasesResponse": { + "type": "object", + "title": "GameCenterAchievementReleasesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementReleaseResponse": { + "type": "object", + "title": "GameCenterAchievementReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementReleaseCreateRequest": { + "type": "object", + "title": "GameCenterAchievementReleaseCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementReleases" + ] + }, + "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" + ], + "deprecated": true + }, + "GameCenterAchievementVersionV2": { + "type": "object", + "title": "GameCenterAchievementVersionV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "integer" + }, + "state": { + "$ref": "#/components/schemas/GameCenterVersionState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "achievement": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterAchievementVersionV2InlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "achievement": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "GameCenterAchievementVersionsV2Response": { + "type": "object", + "title": "GameCenterAchievementVersionsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterAchievementLocalizations": "#/components/schemas/GameCenterAchievementLocalizationV2", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievementV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementVersionV2Response": { + "type": "object", + "title": "GameCenterAchievementVersionV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationV2" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterAchievementLocalizations": "#/components/schemas/GameCenterAchievementLocalizationV2", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievementV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementVersionV2CreateRequest": { + "type": "object", + "title": "GameCenterAchievementVersionV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "achievement": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "achievement" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementV2": { + "type": "object", + "title": "GameCenterAchievementV2", + "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" + }, + "activityProperties": { + "$ref": "#/components/schemas/StringToStringMap" + } + } + }, + "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" + ] + } + } + }, + "activity": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterAchievementsV2Response": { + "type": "object", + "title": "GameCenterAchievementsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2" + }, + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterAchievementVersions": "#/components/schemas/GameCenterAchievementVersionV2", + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementV2Response": { + "type": "object", + "title": "GameCenterAchievementV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievementV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2" + }, + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterAchievementVersions": "#/components/schemas/GameCenterAchievementVersionV2", + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementV2CreateRequest": { + "type": "object", + "title": "GameCenterAchievementV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "points": { + "type": "integer" + }, + "showBeforeEarned": { + "type": "boolean" + }, + "repeatable": { + "type": "boolean" + }, + "activityProperties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + } + }, + "required": [ + "vendorIdentifier", + "repeatable", + "showBeforeEarned", + "referenceName", + "points" + ] + }, + "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" + ] + } + } + }, + "versions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "versions" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2InlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementV2UpdateRequest": { + "type": "object", + "title": "GameCenterAchievementV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + }, + "points": { + "type": "integer", + "nullable": true + }, + "showBeforeEarned": { + "type": "boolean", + "nullable": true + }, + "repeatable": { + "type": "boolean", + "nullable": true + }, + "archived": { + "type": "boolean", + "nullable": true + }, + "activityProperties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + } + } + } + }, + "required": [ + "id", + "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" + }, + "activityProperties": { + "$ref": "#/components/schemas/StringToStringMap" + } + } + }, + "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" + ] + } + } + }, + "groupAchievement": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "releases": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "activity": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterAchievementsResponse": { + "type": "object", + "title": "GameCenterAchievementsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievement" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterAchievementLocalizations": "#/components/schemas/GameCenterAchievementLocalization", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterAchievementReleases": "#/components/schemas/GameCenterAchievementRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementResponse": { + "type": "object", + "title": "GameCenterAchievementResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievementLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterAchievementLocalizations": "#/components/schemas/GameCenterAchievementLocalization", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterAchievementReleases": "#/components/schemas/GameCenterAchievementRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementCreateRequest": { + "type": "object", + "title": "GameCenterAchievementCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "points": { + "type": "integer" + }, + "showBeforeEarned": { + "type": "boolean" + }, + "repeatable": { + "type": "boolean" + }, + "activityProperties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + } + }, + "required": [ + "vendorIdentifier", + "repeatable", + "showBeforeEarned", + "referenceName", + "points" + ] + }, + "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" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterAchievementUpdateRequest": { + "type": "object", + "title": "GameCenterAchievementUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + }, + "points": { + "type": "integer", + "nullable": true + }, + "showBeforeEarned": { + "type": "boolean", + "nullable": true + }, + "repeatable": { + "type": "boolean", + "nullable": true + }, + "archived": { + "type": "boolean", + "nullable": true + }, + "activityProperties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterActivity": { + "type": "object", + "title": "GameCenterActivity", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "playStyle": { + "type": "string", + "enum": [ + "ASYNCHRONOUS", + "SYNCHRONOUS" + ] + }, + "minimumPlayersCount": { + "type": "integer" + }, + "maximumPlayersCount": { + "type": "integer" + }, + "supportsPartyCode": { + "type": "boolean" + }, + "archived": { + "type": "boolean" + }, + "properties": { + "$ref": "#/components/schemas/StringToStringMap" + } + } + }, + "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" + ] + } + } + }, + "achievements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "achievementsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "leaderboards": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "leaderboardsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterActivitiesResponse": { + "type": "object", + "title": "GameCenterActivitiesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterActivity" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersion" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterActivityVersions": "#/components/schemas/GameCenterActivityVersion", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityResponse": { + "type": "object", + "title": "GameCenterActivityResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterActivity" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersion" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterActivityVersions": "#/components/schemas/GameCenterActivityVersion", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityCreateRequest": { + "type": "object", + "title": "GameCenterActivityCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "playStyle": { + "type": "string", + "nullable": true, + "enum": [ + "ASYNCHRONOUS", + "SYNCHRONOUS" + ] + }, + "minimumPlayersCount": { + "type": "integer", + "nullable": true + }, + "maximumPlayersCount": { + "type": "integer", + "nullable": true + }, + "supportsPartyCode": { + "type": "boolean", + "nullable": true + }, + "properties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + } + }, + "required": [ + "vendorIdentifier", + "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" + ] + } + } + }, + "versions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterActivityVersionInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityUpdateRequest": { + "type": "object", + "title": "GameCenterActivityUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + }, + "playStyle": { + "type": "string", + "nullable": true, + "enum": [ + "ASYNCHRONOUS", + "SYNCHRONOUS" + ] + }, + "minimumPlayersCount": { + "type": "integer", + "nullable": true + }, + "maximumPlayersCount": { + "type": "integer", + "nullable": true + }, + "supportsPartyCode": { + "type": "boolean", + "nullable": true + }, + "archived": { + "type": "boolean", + "nullable": true + }, + "properties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityImage": { + "type": "object", + "title": "GameCenterActivityImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityImages" + ] + }, + "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" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterActivityImageResponse": { + "type": "object", + "title": "GameCenterActivityImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterActivityImage" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityImageCreateRequest": { + "type": "object", + "title": "GameCenterActivityImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "localization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityImageUpdateRequest": { + "type": "object", + "title": "GameCenterActivityImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityLocalization": { + "type": "object", + "title": "GameCenterActivityLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "image": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterActivityLocalizationsResponse": { + "type": "object", + "title": "GameCenterActivityLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterActivityLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterActivityImage" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterActivityImages": "#/components/schemas/GameCenterActivityImage", + "gameCenterActivityVersions": "#/components/schemas/GameCenterActivityVersion" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityLocalizationResponse": { + "type": "object", + "title": "GameCenterActivityLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterActivityLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterActivityImage" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterActivityImages": "#/components/schemas/GameCenterActivityImage", + "gameCenterActivityVersions": "#/components/schemas/GameCenterActivityVersion" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityLocalizationCreateRequest": { + "type": "object", + "title": "GameCenterActivityLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityLocalizationUpdateRequest": { + "type": "object", + "title": "GameCenterActivityLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityVersionRelease": { + "type": "object", + "title": "GameCenterActivityVersionRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersionReleases" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterActivityVersionReleasesResponse": { + "type": "object", + "title": "GameCenterActivityVersionReleasesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterActivityVersionRelease" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterActivityVersion" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterActivityVersionReleaseResponse": { + "type": "object", + "title": "GameCenterActivityVersionReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterActivityVersionRelease" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterActivityVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterActivityVersionReleaseCreateRequest": { + "type": "object", + "title": "GameCenterActivityVersionReleaseCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersionReleases" + ] + }, + "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" + ] + }, + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterDetail", + "version" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterActivityVersion": { + "type": "object", + "title": "GameCenterActivityVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "integer" + }, + "state": { + "$ref": "#/components/schemas/GameCenterVersionState" + }, + "fallbackUrl": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "activity": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "defaultImage": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "releases": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersionReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterActivityVersionInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fallbackUrl": { + "type": "string", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "activity": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "GameCenterActivityVersionsResponse": { + "type": "object", + "title": "GameCenterActivityVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterActivityVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterActivityImage" + }, + { + "$ref": "#/components/schemas/GameCenterActivityLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersionRelease" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterActivityImages": "#/components/schemas/GameCenterActivityImage", + "gameCenterActivityLocalizations": "#/components/schemas/GameCenterActivityLocalization", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterActivityVersionReleases": "#/components/schemas/GameCenterActivityVersionRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityVersionResponse": { + "type": "object", + "title": "GameCenterActivityVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterActivityVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterActivityImage" + }, + { + "$ref": "#/components/schemas/GameCenterActivityLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersionRelease" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterActivityImages": "#/components/schemas/GameCenterActivityImage", + "gameCenterActivityLocalizations": "#/components/schemas/GameCenterActivityLocalization", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterActivityVersionReleases": "#/components/schemas/GameCenterActivityVersionRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityVersionCreateRequest": { + "type": "object", + "title": "GameCenterActivityVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fallbackUrl": { + "type": "string", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "activity": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "activity" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityVersionUpdateRequest": { + "type": "object", + "title": "GameCenterActivityVersionUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fallbackUrl": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAppVersion": { + "type": "object", + "title": "GameCenterAppVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "compatibilityVersions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreVersion": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterAppVersionsResponse": { + "type": "object", + "title": "GameCenterAppVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAppVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/GameCenterAppVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "gameCenterAppVersions": "#/components/schemas/GameCenterAppVersion" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAppVersionResponse": { + "type": "object", + "title": "GameCenterAppVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAppVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/GameCenterAppVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "gameCenterAppVersions": "#/components/schemas/GameCenterAppVersion" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAppVersionCreateRequest": { + "type": "object", + "title": "GameCenterAppVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "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" + ] + }, + "GameCenterAppVersionUpdateRequest": { + "type": "object", + "title": "GameCenterAppVersionUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallengeImage": { + "type": "object", + "title": "GameCenterChallengeImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeImages" + ] + }, + "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" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterChallengeImageResponse": { + "type": "object", + "title": "GameCenterChallengeImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterChallengeImage" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeImageCreateRequest": { + "type": "object", + "title": "GameCenterChallengeImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "localization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallengeImageUpdateRequest": { + "type": "object", + "title": "GameCenterChallengeImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallengeLocalization": { + "type": "object", + "title": "GameCenterChallengeLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "image": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterChallengeLocalizationsResponse": { + "type": "object", + "title": "GameCenterChallengeLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterChallengeLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterChallengeImage" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterChallengeVersions": "#/components/schemas/GameCenterChallengeVersion", + "gameCenterChallengeImages": "#/components/schemas/GameCenterChallengeImage" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeLocalizationResponse": { + "type": "object", + "title": "GameCenterChallengeLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterChallengeLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterChallengeImage" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterChallengeVersions": "#/components/schemas/GameCenterChallengeVersion", + "gameCenterChallengeImages": "#/components/schemas/GameCenterChallengeImage" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeLocalizationCreateRequest": { + "type": "object", + "title": "GameCenterChallengeLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallengeLocalizationUpdateRequest": { + "type": "object", + "title": "GameCenterChallengeLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallengeVersionRelease": { + "type": "object", + "title": "GameCenterChallengeVersionRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersionReleases" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterChallengeVersionReleasesResponse": { + "type": "object", + "title": "GameCenterChallengeVersionReleasesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterChallengeVersionRelease" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterChallengeVersionReleaseResponse": { + "type": "object", + "title": "GameCenterChallengeVersionReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterChallengeVersionRelease" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterChallengeVersionReleaseCreateRequest": { + "type": "object", + "title": "GameCenterChallengeVersionReleaseCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersionReleases" + ] + }, + "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" + ] + }, + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterDetail", + "version" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterChallengeVersion": { + "type": "object", + "title": "GameCenterChallengeVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "integer" + }, + "state": { + "$ref": "#/components/schemas/GameCenterVersionState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "challenge": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "releases": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersionReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "defaultImage": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterChallengeVersionInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "challenge": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "GameCenterChallengeVersionsResponse": { + "type": "object", + "title": "GameCenterChallengeVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterChallengeImage" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeVersionRelease" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterChallengeLocalizations": "#/components/schemas/GameCenterChallengeLocalization", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "gameCenterChallengeImages": "#/components/schemas/GameCenterChallengeImage", + "gameCenterChallengeVersionReleases": "#/components/schemas/GameCenterChallengeVersionRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeVersionResponse": { + "type": "object", + "title": "GameCenterChallengeVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterChallengeImage" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeVersionRelease" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterChallengeLocalizations": "#/components/schemas/GameCenterChallengeLocalization", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "gameCenterChallengeImages": "#/components/schemas/GameCenterChallengeImage", + "gameCenterChallengeVersionReleases": "#/components/schemas/GameCenterChallengeVersionRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeVersionCreateRequest": { + "type": "object", + "title": "GameCenterChallengeVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "challenge": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "challenge" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallenge": { + "type": "object", + "title": "GameCenterChallenge", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "archived": { + "type": "boolean" + }, + "challengeType": { + "type": "string", + "enum": [ + "LEADERBOARD" + ] + }, + "repeatable": { + "type": "boolean" + } + } + }, + "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" + ] + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "leaderboard": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "leaderboardV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterChallengesResponse": { + "type": "object", + "title": "GameCenterChallengesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterChallenge" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterChallengeVersions": "#/components/schemas/GameCenterChallengeVersion", + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeResponse": { + "type": "object", + "title": "GameCenterChallengeResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterChallengeVersions": "#/components/schemas/GameCenterChallengeVersion", + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeCreateRequest": { + "type": "object", + "title": "GameCenterChallengeCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "challengeType": { + "type": "string", + "enum": [ + "LEADERBOARD" + ] + }, + "repeatable": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "vendorIdentifier", + "challengeType", + "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" + ] + } + } + }, + "versions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "leaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "leaderboardV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterChallengeVersionInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallengeUpdateRequest": { + "type": "object", + "title": "GameCenterChallengeUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + }, + "archived": { + "type": "boolean", + "nullable": true + }, + "repeatable": { + "type": "boolean", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "leaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "leaderboardV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterDetailPlayer": { + "type": "object", + "title": "GameCenterDetailPlayer", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetailPlayers" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "nickname": { + "type": "string" + }, + "blocked": { + "type": "boolean" + }, + "bundleId": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterDetailPlayersResponse": { + "type": "object", + "title": "GameCenterDetailPlayersResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterDetailPlayer" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailPlayerResponse": { + "type": "object", + "title": "GameCenterDetailPlayerResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterDetailPlayer" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailPlayerUpdateRequest": { + "type": "object", + "title": "GameCenterDetailPlayerUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetailPlayers" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "blocked": { + "type": "boolean", + "nullable": true + }, + "bundleId": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterDetail": { + "type": "object", + "title": "GameCenterDetail", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "arcadeEnabled": { + "type": "boolean" + }, + "challengeEnabled": { + "type": "boolean", + "deprecated": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterAppVersions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterGroup": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboards": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "gameCenterLeaderboardsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterLeaderboardSets": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "gameCenterLeaderboardSetsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterAchievements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "gameCenterAchievementsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterActivities": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterChallenges": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "defaultLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "defaultLeaderboardV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "defaultGroupLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "defaultGroupLeaderboardV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "achievementReleases": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "activityReleases": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersionReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "challengeReleases": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersionReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "leaderboardReleases": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "leaderboardSetReleases": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "blockedPlayers": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "challengesMinimumPlatformVersions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterDetailsResponse": { + "type": "object", + "title": "GameCenterDetailsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterDetail" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersionRelease" + }, + { + "$ref": "#/components/schemas/GameCenterAppVersion" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeVersionRelease" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardReleases": "#/components/schemas/GameCenterLeaderboardRelease", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterAchievementReleases": "#/components/schemas/GameCenterAchievementRelease", + "gameCenterLeaderboardSetReleases": "#/components/schemas/GameCenterLeaderboardSetRelease", + "gameCenterAppVersions": "#/components/schemas/GameCenterAppVersion", + "gameCenterChallengeVersionReleases": "#/components/schemas/GameCenterChallengeVersionRelease", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "apps": "#/components/schemas/App", + "gameCenterActivityVersionReleases": "#/components/schemas/GameCenterActivityVersionRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailResponse": { + "type": "object", + "title": "GameCenterDetailResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterDetail" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersionRelease" + }, + { + "$ref": "#/components/schemas/GameCenterAppVersion" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeVersionRelease" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardReleases": "#/components/schemas/GameCenterLeaderboardRelease", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterAchievementReleases": "#/components/schemas/GameCenterAchievementRelease", + "gameCenterLeaderboardSetReleases": "#/components/schemas/GameCenterLeaderboardSetRelease", + "gameCenterAppVersions": "#/components/schemas/GameCenterAppVersion", + "gameCenterChallengeVersionReleases": "#/components/schemas/GameCenterChallengeVersionRelease", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "apps": "#/components/schemas/App", + "gameCenterActivityVersionReleases": "#/components/schemas/GameCenterActivityVersionRelease" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailCreateRequest": { + "type": "object", + "title": "GameCenterDetailCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "attributes": { + "type": "object", + "properties": { + "challengeEnabled": { + "type": "boolean", + "deprecated": true, + "nullable": true + } + } + }, + "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", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "challengeEnabled": { + "type": "boolean", + "deprecated": true, + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "defaultLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "defaultLeaderboardV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "defaultGroupLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "defaultGroupLeaderboardV2": { + "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" + }, + "versionString": { + "type": "string" + }, + "iconAsset": { + "$ref": "#/components/schemas/ImageAsset" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "compatibleVersions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterEnabledVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "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/App" + }, + { + "$ref": "#/components/schemas/GameCenterEnabledVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterEnabledVersions": "#/components/schemas/GameCenterEnabledVersion", + "apps": "#/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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterLeaderboards": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "gameCenterLeaderboardsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterLeaderboardSets": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "gameCenterLeaderboardSetsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterAchievements": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "gameCenterAchievementsV2": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterActivities": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterChallenges": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterGroupsResponse": { + "type": "object", + "title": "GameCenterGroupsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterGroup" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterGroupResponse": { + "type": "object", + "title": "GameCenterGroupResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterGroup" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterAchievements": "#/components/schemas/GameCenterAchievement", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterGroupCreateRequest": { + "type": "object", + "title": "GameCenterGroupCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterGroupUpdateRequest": { + "type": "object", + "title": "GameCenterGroupUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardEntrySubmission": { + "type": "object", + "title": "GameCenterLeaderboardEntrySubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardEntrySubmissions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "challengeIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "context": { + "type": "string", + "format": "number" + }, + "scopedPlayerId": { + "type": "string" + }, + "score": { + "type": "string", + "format": "number" + }, + "submittedDate": { + "type": "string", + "format": "date-time" + }, + "vendorIdentifier": { + "type": "string" + }, + "preReleased": { + "type": "boolean" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardEntrySubmissionResponse": { + "type": "object", + "title": "GameCenterLeaderboardEntrySubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardEntrySubmission" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardEntrySubmissionCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardEntrySubmissionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardEntrySubmissions" + ] + }, + "attributes": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "challengeIds": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "context": { + "type": "string", + "format": "number", + "nullable": true + }, + "scopedPlayerId": { + "type": "string" + }, + "score": { + "type": "string", + "format": "number" + }, + "submittedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "vendorIdentifier": { + "type": "string" + }, + "preReleased": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "vendorIdentifier", + "score", + "bundleId", + "scopedPlayerId" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardImage": { + "type": "object", + "title": "GameCenterLeaderboardImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "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": { + "gameCenterLeaderboardLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterLeaderboardImageResponse": { + "type": "object", + "title": "GameCenterLeaderboardImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardImage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardImageCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardImageCreateRequest", + "properties": { + "data": { + "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" + ], + "deprecated": true + }, + "GameCenterLeaderboardImageUpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardImageV2": { + "type": "object", + "title": "GameCenterLeaderboardImageV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "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": { + "localization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardImageV2Response": { + "type": "object", + "title": "GameCenterLeaderboardImageV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageV2" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardImageV2CreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardImageV2CreateRequest", + "properties": { + "data": { + "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": { + "localization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "localization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardImageV2UpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardImageV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardLocalization": { + "type": "object", + "title": "GameCenterLeaderboardLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "formatterOverride": { + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "formatterSuffix": { + "type": "string" + }, + "formatterSuffixSingular": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardImage": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterLeaderboardLocalizationsResponse": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardImage" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardImages": "#/components/schemas/GameCenterLeaderboardImage", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardLocalizationResponse": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardImage" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardImages": "#/components/schemas/GameCenterLeaderboardImage", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardLocalizationCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "formatterOverride": { + "nullable": true, + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "formatterSuffix": { + "type": "string", + "nullable": true + }, + "formatterSuffixSingular": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterLeaderboard" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardLocalizationUpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "formatterOverride": { + "nullable": true, + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "formatterSuffix": { + "type": "string", + "nullable": true + }, + "formatterSuffixSingular": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardLocalizationV2": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "formatterOverride": { + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "formatterSuffix": { + "type": "string" + }, + "formatterSuffixSingular": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "image": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardLocalizationsV2Response": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardImageV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardImages": "#/components/schemas/GameCenterLeaderboardImageV2", + "gameCenterLeaderboardVersions": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardLocalizationV2Response": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardImageV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardImages": "#/components/schemas/GameCenterLeaderboardImageV2", + "gameCenterLeaderboardVersions": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardLocalizationV2CreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "formatterOverride": { + "nullable": true, + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "formatterSuffix": { + "type": "string", + "nullable": true + }, + "formatterSuffixSingular": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardLocalizationV2UpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardLocalizationV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "formatterOverride": { + "nullable": true, + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "formatterSuffix": { + "type": "string", + "nullable": true + }, + "formatterSuffixSingular": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardRelease": { + "type": "object", + "title": "GameCenterLeaderboardRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardReleases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "live": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterDetail": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterLeaderboardReleasesResponse": { + "type": "object", + "title": "GameCenterLeaderboardReleasesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardReleaseResponse": { + "type": "object", + "title": "GameCenterLeaderboardReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardReleaseCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardReleaseCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardReleases" + ] + }, + "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" + ] + }, + "gameCenterLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "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": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "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" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetImageCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboardSetLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterLeaderboardSetLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetImageUpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetImageV2": { + "type": "object", + "title": "GameCenterLeaderboardSetImageV2", + "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": { + "localization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardSetImageV2Response": { + "type": "object", + "title": "GameCenterLeaderboardSetImageV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageV2" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetImageV2CreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetImageV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "localization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "localization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetImageV2UpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetImageV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetLocalization": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "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" + ] + } + } + }, + "gameCenterLeaderboardSetImage": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetLocalizationsResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImage" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterLeaderboardSetImages": "#/components/schemas/GameCenterLeaderboardSetImage" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetLocalizationResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImage" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterLeaderboardSetImages": "#/components/schemas/GameCenterLeaderboardSetImage" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetLocalizationCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "name", + "locale" + ] + }, + "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" + ] + } + }, + "required": [ + "gameCenterLeaderboardSet" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetLocalizationUpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetLocalizationV2": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "image": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardSetLocalizationsV2Response": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardSetImages": "#/components/schemas/GameCenterLeaderboardSetImageV2", + "gameCenterLeaderboardSetVersions": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetLocalizationV2Response": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardSetImages": "#/components/schemas/GameCenterLeaderboardSetImageV2", + "gameCenterLeaderboardSetVersions": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetLocalizationV2CreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetLocalizationV2UpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetMemberLocalization": { + "type": "object", + "title": "GameCenterLeaderboardSetMemberLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetMemberLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboardSet": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboard": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardSetMemberLocalizationsResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetMemberLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetMemberLocalizationResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetMemberLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetMemberLocalizationCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetMemberLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetMemberLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string", + "nullable": true + } + } + }, + "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": [ + "gameCenterLeaderboard", + "gameCenterLeaderboardSet" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetMemberLocalizationUpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetMemberLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetMemberLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetRelease": { + "type": "object", + "title": "GameCenterLeaderboardSetRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetReleases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "live": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterDetail": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetReleasesResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetReleasesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetReleaseResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetReleaseCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetReleaseCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "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" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetVersionV2": { + "type": "object", + "title": "GameCenterLeaderboardSetVersionV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "integer" + }, + "state": { + "$ref": "#/components/schemas/GameCenterVersionState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "leaderboardSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardSetVersionV2InlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "leaderboardSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "GameCenterLeaderboardSetVersionsV2Response": { + "type": "object", + "title": "GameCenterLeaderboardSetVersionsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSetV2", + "gameCenterLeaderboardSetLocalizations": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetVersionV2Response": { + "type": "object", + "title": "GameCenterLeaderboardSetVersionV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSetV2", + "gameCenterLeaderboardSetLocalizations": "#/components/schemas/GameCenterLeaderboardSetLocalizationV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetVersionV2CreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetVersionV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "leaderboardSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "leaderboardSet" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetV2": { + "type": "object", + "title": "GameCenterLeaderboardSetV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + } + } + }, + "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" + ] + } + } + }, + "gameCenterLeaderboards": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardSetsV2Response": { + "type": "object", + "title": "GameCenterLeaderboardSetsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterLeaderboardSetVersions": "#/components/schemas/GameCenterLeaderboardSetVersionV2", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboardV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetV2Response": { + "type": "object", + "title": "GameCenterLeaderboardSetV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterLeaderboardSetVersions": "#/components/schemas/GameCenterLeaderboardSetVersionV2", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboardV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetV2CreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + } + }, + "required": [ + "vendorIdentifier", + "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" + ] + } + } + }, + "gameCenterLeaderboards": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "versions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "versions" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2InlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetV2UpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSet": { + "type": "object", + "title": "GameCenterLeaderboardSet", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + } + } + }, + "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" + ] + } + } + }, + "groupLeaderboardSet": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterLeaderboards": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetsResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterLeaderboardSetReleases": "#/components/schemas/GameCenterLeaderboardSetRelease", + "gameCenterLeaderboardSetLocalizations": "#/components/schemas/GameCenterLeaderboardSetLocalization", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "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/GameCenterLeaderboardSetLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterLeaderboardSetReleases": "#/components/schemas/GameCenterLeaderboardSetRelease", + "gameCenterLeaderboardSetLocalizations": "#/components/schemas/GameCenterLeaderboardSetLocalization", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + } + }, + "required": [ + "vendorIdentifier", + "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" + ] + } + } + }, + "gameCenterLeaderboards": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetUpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardVersionV2": { + "type": "object", + "title": "GameCenterLeaderboardVersionV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "integer" + }, + "state": { + "$ref": "#/components/schemas/GameCenterVersionState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "leaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardVersionV2InlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "leaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "GameCenterLeaderboardVersionsV2Response": { + "type": "object", + "title": "GameCenterLeaderboardVersionsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardLocalizations": "#/components/schemas/GameCenterLeaderboardLocalizationV2", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboardV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardVersionV2Response": { + "type": "object", + "title": "GameCenterLeaderboardVersionV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardLocalizations": "#/components/schemas/GameCenterLeaderboardLocalizationV2", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboardV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardVersionV2CreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardVersionV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "leaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "leaderboard" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboard": { + "type": "object", + "title": "GameCenterLeaderboard", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + }, + "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" + }, + "archived": { + "type": "boolean" + }, + "activityProperties": { + "$ref": "#/components/schemas/StringToStringMap" + }, + "visibility": { + "type": "string", + "enum": [ + "SHOW_FOR_ALL", + "HIDE_FOR_ALL" + ] + } + } + }, + "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" + ] + } + } + }, + "groupLeaderboard": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "gameCenterLeaderboardSets": { + "type": "object", + "properties": { + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "releases": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "activity": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "challenge": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterLeaderboardsResponse": { + "type": "object", + "title": "GameCenterLeaderboardsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardReleases": "#/components/schemas/GameCenterLeaderboardRelease", + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterLeaderboardLocalizations": "#/components/schemas/GameCenterLeaderboardLocalization", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardResponse": { + "type": "object", + "title": "GameCenterLeaderboardResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboard" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterLeaderboardReleases": "#/components/schemas/GameCenterLeaderboardRelease", + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSet", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterLeaderboardLocalizations": "#/components/schemas/GameCenterLeaderboardLocalization", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "gameCenterLeaderboards": "#/components/schemas/GameCenterLeaderboard" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "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", + "nullable": true + }, + "scoreRangeEnd": { + "type": "string", + "format": "number", + "nullable": true + }, + "recurrenceStartDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "recurrenceDuration": { + "type": "string", + "format": "duration", + "nullable": true + }, + "recurrenceRule": { + "type": "string", + "nullable": true + }, + "activityProperties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + }, + "visibility": { + "type": "string", + "nullable": true, + "enum": [ + "SHOW_FOR_ALL", + "HIDE_FOR_ALL" + ] + } + }, + "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" + ], + "deprecated": true + }, + "GameCenterLeaderboardUpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "defaultFormatter": { + "nullable": true, + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "referenceName": { + "type": "string", + "nullable": true + }, + "submissionType": { + "type": "string", + "nullable": true, + "enum": [ + "BEST_SCORE", + "MOST_RECENT_SCORE" + ] + }, + "scoreSortType": { + "type": "string", + "nullable": true, + "enum": [ + "ASC", + "DESC" + ] + }, + "scoreRangeStart": { + "type": "string", + "format": "number", + "nullable": true + }, + "scoreRangeEnd": { + "type": "string", + "format": "number", + "nullable": true + }, + "recurrenceStartDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "recurrenceDuration": { + "type": "string", + "format": "duration", + "nullable": true + }, + "recurrenceRule": { + "type": "string", + "nullable": true + }, + "archived": { + "type": "boolean", + "nullable": true + }, + "activityProperties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + }, + "visibility": { + "type": "string", + "nullable": true, + "enum": [ + "SHOW_FOR_ALL", + "HIDE_FOR_ALL" + ] + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardV2": { + "type": "object", + "title": "GameCenterLeaderboardV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + }, + "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" + }, + "archived": { + "type": "boolean" + }, + "activityProperties": { + "$ref": "#/components/schemas/StringToStringMap" + }, + "visibility": { + "type": "string", + "enum": [ + "SHOW_FOR_ALL", + "HIDE_FOR_ALL" + ] + } + } + }, + "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": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterScoreModerations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "activity": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "challenge": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardsV2Response": { + "type": "object", + "title": "GameCenterLeaderboardsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSetV2", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "gameCenterLeaderboardVersions": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardV2Response": { + "type": "object", + "title": "GameCenterLeaderboardV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterActivity" + }, + { + "$ref": "#/components/schemas/GameCenterChallenge" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterDetails": "#/components/schemas/GameCenterDetail", + "gameCenterLeaderboardSets": "#/components/schemas/GameCenterLeaderboardSetV2", + "gameCenterActivities": "#/components/schemas/GameCenterActivity", + "gameCenterGroups": "#/components/schemas/GameCenterGroup", + "gameCenterChallenges": "#/components/schemas/GameCenterChallenge", + "gameCenterLeaderboardVersions": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardV2CreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardV2CreateRequest", + "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", + "nullable": true + }, + "scoreRangeEnd": { + "type": "string", + "format": "number", + "nullable": true + }, + "recurrenceStartDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "recurrenceDuration": { + "type": "string", + "format": "duration", + "nullable": true + }, + "recurrenceRule": { + "type": "string", + "nullable": true + }, + "activityProperties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + }, + "visibility": { + "type": "string", + "nullable": true, + "enum": [ + "SHOW_FOR_ALL", + "HIDE_FOR_ALL" + ] + } + }, + "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" + ] + } + } + } + }, + "versions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "versions" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2InlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardV2UpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "defaultFormatter": { + "nullable": true, + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "referenceName": { + "type": "string", + "nullable": true + }, + "submissionType": { + "type": "string", + "nullable": true, + "enum": [ + "BEST_SCORE", + "MOST_RECENT_SCORE" + ] + }, + "scoreSortType": { + "type": "string", + "nullable": true, + "enum": [ + "ASC", + "DESC" + ] + }, + "scoreRangeStart": { + "type": "string", + "format": "number", + "nullable": true + }, + "scoreRangeEnd": { + "type": "string", + "format": "number", + "nullable": true + }, + "recurrenceStartDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "recurrenceDuration": { + "type": "string", + "format": "duration", + "nullable": true + }, + "recurrenceRule": { + "type": "string", + "nullable": true + }, + "archived": { + "type": "boolean", + "nullable": true + }, + "activityProperties": { + "nullable": true, + "$ref": "#/components/schemas/StringToStringMap" + }, + "visibility": { + "type": "string", + "nullable": true, + "enum": [ + "SHOW_FOR_ALL", + "HIDE_FOR_ALL" + ] + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingQueue": { + "type": "object", + "title": "GameCenterMatchmakingQueue", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingQueues" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "classicMatchmakingBundleIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "ruleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "experimentRuleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterMatchmakingQueuesResponse": { + "type": "object", + "title": "GameCenterMatchmakingQueuesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueue" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSet" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingQueueResponse": { + "type": "object", + "title": "GameCenterMatchmakingQueueResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterMatchmakingQueue" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSet" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingQueueCreateRequest": { + "type": "object", + "title": "GameCenterMatchmakingQueueCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingQueues" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "classicMatchmakingBundleIds": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + } + }, + "required": [ + "referenceName" + ] + }, + "relationships": { + "type": "object", + "properties": { + "ruleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "experimentRuleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "required": [ + "ruleSet" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingQueueUpdateRequest": { + "type": "object", + "title": "GameCenterMatchmakingQueueUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingQueues" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "classicMatchmakingBundleIds": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "ruleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "experimentRuleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingRuleSetTest": { + "type": "object", + "title": "GameCenterMatchmakingRuleSetTest", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSetTests" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "matchmakingResults": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "requestName": { + "type": "string" + }, + "teamAssignments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterMatchmakingTeamAssignment" + } + } + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterMatchmakingRuleSetTestResponse": { + "type": "object", + "title": "GameCenterMatchmakingRuleSetTestResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSetTest" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterMatchmakingTestPlayerProperty" + }, + { + "$ref": "#/components/schemas/GameCenterMatchmakingTestRequest" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterMatchmakingTestRequests": "#/components/schemas/GameCenterMatchmakingTestRequest", + "gameCenterMatchmakingTestPlayerProperties": "#/components/schemas/GameCenterMatchmakingTestPlayerProperty" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleSetTestCreateRequest": { + "type": "object", + "title": "GameCenterMatchmakingRuleSetTestCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSetTests" + ] + }, + "relationships": { + "type": "object", + "properties": { + "matchmakingRuleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "matchmakingRequests": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTestRequests" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "matchmakingRuleSet", + "matchmakingRequests" + ] + } + }, + "required": [ + "relationships", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterMatchmakingTestPlayerPropertyInlineCreate" + }, + { + "$ref": "#/components/schemas/GameCenterMatchmakingTestRequestInlineCreate" + } + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingRuleSet": { + "type": "object", + "title": "GameCenterMatchmakingRuleSet", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "ruleLanguageVersion": { + "type": "integer" + }, + "minPlayers": { + "type": "integer" + }, + "maxPlayers": { + "type": "integer" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "teams": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTeams" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "rules": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRules" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "matchmakingQueues": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingQueues" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterMatchmakingRuleSetsResponse": { + "type": "object", + "title": "GameCenterMatchmakingRuleSetsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSet" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterMatchmakingQueue" + }, + { + "$ref": "#/components/schemas/GameCenterMatchmakingRule" + }, + { + "$ref": "#/components/schemas/GameCenterMatchmakingTeam" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterMatchmakingQueues": "#/components/schemas/GameCenterMatchmakingQueue", + "gameCenterMatchmakingTeams": "#/components/schemas/GameCenterMatchmakingTeam", + "gameCenterMatchmakingRules": "#/components/schemas/GameCenterMatchmakingRule" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleSetResponse": { + "type": "object", + "title": "GameCenterMatchmakingRuleSetResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterMatchmakingRuleSet" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterMatchmakingQueue" + }, + { + "$ref": "#/components/schemas/GameCenterMatchmakingRule" + }, + { + "$ref": "#/components/schemas/GameCenterMatchmakingTeam" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "gameCenterMatchmakingQueues": "#/components/schemas/GameCenterMatchmakingQueue", + "gameCenterMatchmakingTeams": "#/components/schemas/GameCenterMatchmakingTeam", + "gameCenterMatchmakingRules": "#/components/schemas/GameCenterMatchmakingRule" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleSetCreateRequest": { + "type": "object", + "title": "GameCenterMatchmakingRuleSetCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "ruleLanguageVersion": { + "type": "integer" + }, + "minPlayers": { + "type": "integer" + }, + "maxPlayers": { + "type": "integer" + } + }, + "required": [ + "maxPlayers", + "minPlayers", + "referenceName", + "ruleLanguageVersion" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingRuleSetUpdateRequest": { + "type": "object", + "title": "GameCenterMatchmakingRuleSetUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "minPlayers": { + "type": "integer", + "nullable": true + }, + "maxPlayers": { + "type": "integer", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingRule": { + "type": "object", + "title": "GameCenterMatchmakingRule", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRules" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "COMPATIBLE", + "DISTANCE", + "MATCH", + "TEAM" + ] + }, + "expression": { + "type": "string" + }, + "weight": { + "type": "number" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterMatchmakingRulesResponse": { + "type": "object", + "title": "GameCenterMatchmakingRulesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterMatchmakingRule" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleResponse": { + "type": "object", + "title": "GameCenterMatchmakingRuleResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterMatchmakingRule" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleCreateRequest": { + "type": "object", + "title": "GameCenterMatchmakingRuleCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRules" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "COMPATIBLE", + "DISTANCE", + "MATCH", + "TEAM" + ] + }, + "expression": { + "type": "string" + }, + "weight": { + "type": "number", + "nullable": true + } + }, + "required": [ + "expression", + "description", + "type", + "referenceName" + ] + }, + "relationships": { + "type": "object", + "properties": { + "ruleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "ruleSet" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingRuleUpdateRequest": { + "type": "object", + "title": "GameCenterMatchmakingRuleUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRules" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "description": { + "type": "string", + "nullable": true + }, + "expression": { + "type": "string", + "nullable": true + }, + "weight": { + "type": "number", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingTeam": { + "type": "object", + "title": "GameCenterMatchmakingTeam", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTeams" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "minPlayers": { + "type": "integer" + }, + "maxPlayers": { + "type": "integer" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterMatchmakingTeamsResponse": { + "type": "object", + "title": "GameCenterMatchmakingTeamsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterMatchmakingTeam" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingTeamResponse": { + "type": "object", + "title": "GameCenterMatchmakingTeamResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterMatchmakingTeam" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingTeamCreateRequest": { + "type": "object", + "title": "GameCenterMatchmakingTeamCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTeams" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "minPlayers": { + "type": "integer" + }, + "maxPlayers": { + "type": "integer" + } + }, + "required": [ + "maxPlayers", + "minPlayers", + "referenceName" + ] + }, + "relationships": { + "type": "object", + "properties": { + "ruleSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRuleSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "ruleSet" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingTeamUpdateRequest": { + "type": "object", + "title": "GameCenterMatchmakingTeamUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTeams" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "minPlayers": { + "type": "integer", + "nullable": true + }, + "maxPlayers": { + "type": "integer", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterMatchmakingTestPlayerProperty": { + "type": "object", + "title": "GameCenterMatchmakingTestPlayerProperty", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTestPlayerProperties" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterMatchmakingTestPlayerPropertyInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTestPlayerProperties" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "playerId": { + "type": "string" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Property" + }, + "nullable": true + } + } + } + }, + "required": [ + "type" + ] + }, + "GameCenterMatchmakingTestRequest": { + "type": "object", + "title": "GameCenterMatchmakingTestRequest", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTestRequests" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterMatchmakingTestRequestInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTestRequests" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "requestName": { + "type": "string" + }, + "secondsInQueue": { + "type": "integer" + }, + "locale": { + "type": "string", + "nullable": true, + "enum": [ + "AR-SA", + "CA-ES", + "CS-CZ", + "DA-DK", + "DE-DE", + "EL-GR", + "EN-AU", + "EN-GB", + "EN-US", + "EN-KY", + "ES-ES", + "ES-MX", + "FI-FI", + "FR-CA", + "FR-FR", + "HI-IN", + "HR-HR", + "HU-HU", + "ID-ID", + "IT-IT", + "IW-IL", + "JA-JP", + "KO-KR", + "MS-MY", + "NL-NL", + "NO-NO", + "PL-PL", + "PT-BR", + "PT-PT", + "RO-RO", + "RU-RU", + "SK-SK", + "SV-SE", + "TH-TH", + "TR-TR", + "UK-UA", + "ZH-CN", + "ZH-TW", + "ZH-HK" + ] + }, + "location": { + "nullable": true, + "$ref": "#/components/schemas/Location" + }, + "minPlayers": { + "type": "integer", + "nullable": true + }, + "maxPlayers": { + "type": "integer", + "nullable": true + }, + "playerCount": { + "type": "integer", + "nullable": true + }, + "bundleId": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "appVersion": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "matchmakingPlayerProperties": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTestPlayerProperties" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "GameCenterPlayerAchievementSubmission": { + "type": "object", + "title": "GameCenterPlayerAchievementSubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterPlayerAchievementSubmissions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "challengeIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "percentageAchieved": { + "type": "integer" + }, + "scopedPlayerId": { + "type": "string" + }, + "submittedDate": { + "type": "string", + "format": "date-time" + }, + "vendorIdentifier": { + "type": "string" + }, + "preReleased": { + "type": "boolean" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterPlayerAchievementSubmissionResponse": { + "type": "object", + "title": "GameCenterPlayerAchievementSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterPlayerAchievementSubmission" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterPlayerAchievementSubmissionCreateRequest": { + "type": "object", + "title": "GameCenterPlayerAchievementSubmissionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterPlayerAchievementSubmissions" + ] + }, + "attributes": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "challengeIds": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "percentageAchieved": { + "type": "integer" + }, + "scopedPlayerId": { + "type": "string" + }, + "submittedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "vendorIdentifier": { + "type": "string" + }, + "preReleased": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "vendorIdentifier", + "percentageAchieved", + "bundleId", + "scopedPlayerId" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterScoreModeration": { + "type": "object", + "title": "GameCenterScoreModeration", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterScoreModerations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "rank": { + "type": "string", + "format": "number" + }, + "score": { + "type": "string", + "format": "number" + }, + "submittedDate": { + "type": "string", + "format": "date-time" + }, + "blocked": { + "type": "boolean" + }, + "preReleased": { + "type": "boolean" + }, + "context": { + "type": "string", + "format": "number" + }, + "challengeIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "player": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetailPlayers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterScoreModerationsResponse": { + "type": "object", + "title": "GameCenterScoreModerationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterScoreModeration" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterDetailPlayer" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterScoreModerationResponse": { + "type": "object", + "title": "GameCenterScoreModerationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterScoreModeration" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterDetailPlayer" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterScoreModerationUpdateRequest": { + "type": "object", + "title": "GameCenterScoreModerationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterScoreModerations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "blocked": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseAppStoreReviewScreenshot": { + "type": "object", + "title": "InAppPurchaseAppStoreReviewScreenshot", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAppStoreReviewScreenshots" + ] + }, + "id": { + "type": "string" + }, + "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" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchaseV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseAppStoreReviewScreenshotResponse": { + "type": "object", + "title": "InAppPurchaseAppStoreReviewScreenshotResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshot" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseAppStoreReviewScreenshotCreateRequest": { + "type": "object", + "title": "InAppPurchaseAppStoreReviewScreenshotCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAppStoreReviewScreenshots" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "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" + ] + }, + "InAppPurchaseAppStoreReviewScreenshotUpdateRequest": { + "type": "object", + "title": "InAppPurchaseAppStoreReviewScreenshotUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAppStoreReviewScreenshots" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseAvailability": { + "type": "object", + "title": "InAppPurchaseAvailability", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAvailabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "availableTerritories": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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" + ] + }, + "InAppPurchaseAvailabilityResponse": { + "type": "object", + "title": "InAppPurchaseAvailabilityResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseAvailability" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseAvailabilityCreateRequest": { + "type": "object", + "title": "InAppPurchaseAvailabilityCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAvailabilities" + ] + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + } + }, + "required": [ + "availableInNewTerritories" + ] + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchase": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "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": [ + "inAppPurchase", + "availableTerritories" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseContent": { + "type": "object", + "title": "InAppPurchaseContent", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseContents" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer" + }, + "url": { + "type": "string", + "format": "uri" + }, + "lastModifiedDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchaseV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseContentResponse": { + "type": "object", + "title": "InAppPurchaseContentResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseContent" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseImage": { + "type": "object", + "title": "InAppPurchaseImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "sourceFileChecksum": { + "type": "string" + }, + "assetToken": { + "type": "string" + }, + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "state": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "UPLOAD_COMPLETE", + "FAILED", + "PREPARE_FOR_SUBMISSION", + "WAITING_FOR_REVIEW", + "APPROVED", + "REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchase": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseImagesResponse": { + "type": "object", + "title": "InAppPurchaseImagesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseImage" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseImageResponse": { + "type": "object", + "title": "InAppPurchaseImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseImage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseImageCreateRequest": { + "type": "object", + "title": "InAppPurchaseImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchase": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "inAppPurchase" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseImageUpdateRequest": { + "type": "object", + "title": "InAppPurchaseImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseImageV2": { + "type": "object", + "title": "InAppPurchaseImageV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "assetToken": { + "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" + ] + }, + "InAppPurchaseImagesV2Response": { + "type": "object", + "title": "InAppPurchaseImagesV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseImageV2" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseImageV2Response": { + "type": "object", + "title": "InAppPurchaseImageV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseImageV2" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseImageV2CreateRequest": { + "type": "object", + "title": "InAppPurchaseImageV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseImageV2UpdateRequest": { + "type": "object", + "title": "InAppPurchaseImageV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseLocalization": { + "type": "object", + "title": "InAppPurchaseLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "description": { + "type": "string" + }, + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "WAITING_FOR_REVIEW", + "APPROVED", + "REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchaseV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "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", + "nullable": true + } + }, + "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", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseLocalizationV2": { + "type": "object", + "title": "InAppPurchaseLocalizationV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseLocalizationsV2Response": { + "type": "object", + "title": "InAppPurchaseLocalizationsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseVersion" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseLocalizationV2Response": { + "type": "object", + "title": "InAppPurchaseLocalizationV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseLocalizationV2CreateRequest": { + "type": "object", + "title": "InAppPurchaseLocalizationV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseLocalizationV2UpdateRequest": { + "type": "object", + "title": "InAppPurchaseLocalizationV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseOfferCodeCustomCode": { + "type": "object", + "title": "InAppPurchaseOfferCodeCustomCode", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeCustomCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "customCode": { + "type": "string" + }, + "numberOfCodes": { + "type": "integer" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "expirationDate": { + "type": "string", + "format": "date" + }, + "active": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "createdByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deactivatedByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseOfferCodeCustomCodesResponse": { + "type": "object", + "title": "InAppPurchaseOfferCodeCustomCodesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCode" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Actor" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeCustomCodeResponse": { + "type": "object", + "title": "InAppPurchaseOfferCodeCustomCodeResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCode" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Actor" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeCustomCodeCreateRequest": { + "type": "object", + "title": "InAppPurchaseOfferCodeCustomCodeCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeCustomCodes" + ] + }, + "attributes": { + "type": "object", + "properties": { + "customCode": { + "type": "string" + }, + "numberOfCodes": { + "type": "integer" + }, + "expirationDate": { + "type": "string", + "format": "date", + "nullable": true + } + }, + "required": [ + "numberOfCodes", + "customCode" + ] + }, + "relationships": { + "type": "object", + "properties": { + "offerCode": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "offerCode" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseOfferCodeCustomCodeUpdateRequest": { + "type": "object", + "title": "InAppPurchaseOfferCodeCustomCodeUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeCustomCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "active": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseOfferCodeOneTimeUseCodeValue": { + "type": "object", + "title": "InAppPurchaseOfferCodeOneTimeUseCodeValue", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeOneTimeUseCodeValues" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseOfferCodeOneTimeUseCode": { + "type": "object", + "title": "InAppPurchaseOfferCodeOneTimeUseCode", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "numberOfCodes": { + "type": "integer" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "expirationDate": { + "type": "string", + "format": "date" + }, + "active": { + "type": "boolean" + }, + "environment": { + "$ref": "#/components/schemas/OfferCodeEnvironment" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "values": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "createdByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deactivatedByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseOfferCodeOneTimeUseCodesResponse": { + "type": "object", + "title": "InAppPurchaseOfferCodeOneTimeUseCodesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCode" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Actor" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeOneTimeUseCodeResponse": { + "type": "object", + "title": "InAppPurchaseOfferCodeOneTimeUseCodeResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCode" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Actor" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeOneTimeUseCodeCreateRequest": { + "type": "object", + "title": "InAppPurchaseOfferCodeOneTimeUseCodeCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeOneTimeUseCodes" + ] + }, + "attributes": { + "type": "object", + "properties": { + "numberOfCodes": { + "type": "integer" + }, + "expirationDate": { + "type": "string", + "format": "date" + }, + "environment": { + "nullable": true, + "$ref": "#/components/schemas/OfferCodeEnvironment" + } + }, + "required": [ + "numberOfCodes", + "expirationDate" + ] + }, + "relationships": { + "type": "object", + "properties": { + "offerCode": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "offerCode" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseOfferCodeOneTimeUseCodeUpdateRequest": { + "type": "object", + "title": "InAppPurchaseOfferCodeOneTimeUseCodeUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "active": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseOfferCode": { + "type": "object", + "title": "InAppPurchaseOfferCode", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "customerEligibilities": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "NON_SPENDER", + "ACTIVE_SPENDER", + "CHURNED_SPENDER" + ] + } + }, + "productionCodeCount": { + "type": "integer" + }, + "sandboxCodeCount": { + "type": "integer" + }, + "active": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "oneTimeUseCodes": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "customCodes": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeCustomCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "prices": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseOfferCodesResponse": { + "type": "object", + "title": "InAppPurchaseOfferCodesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseOfferCode" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCode" + }, + { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCode" + }, + { + "$ref": "#/components/schemas/InAppPurchaseOfferPrice" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "inAppPurchaseOfferPrices": "#/components/schemas/InAppPurchaseOfferPrice", + "inAppPurchaseOfferCodeOneTimeUseCodes": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCode", + "inAppPurchaseOfferCodeCustomCodes": "#/components/schemas/InAppPurchaseOfferCodeCustomCode" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeResponse": { + "type": "object", + "title": "InAppPurchaseOfferCodeResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseOfferCode" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeCustomCode" + }, + { + "$ref": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCode" + }, + { + "$ref": "#/components/schemas/InAppPurchaseOfferPrice" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "inAppPurchaseOfferPrices": "#/components/schemas/InAppPurchaseOfferPrice", + "inAppPurchaseOfferCodeOneTimeUseCodes": "#/components/schemas/InAppPurchaseOfferCodeOneTimeUseCode", + "inAppPurchaseOfferCodeCustomCodes": "#/components/schemas/InAppPurchaseOfferCodeCustomCode" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeCreateRequest": { + "type": "object", + "title": "InAppPurchaseOfferCodeCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodes" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "customerEligibilities": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "NON_SPENDER", + "ACTIVE_SPENDER", + "CHURNED_SPENDER" + ] + } + } + }, + "required": [ + "name", + "customerEligibilities" + ] + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchase": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "prices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "inAppPurchase", + "prices" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseOfferPriceInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseOfferCodeUpdateRequest": { + "type": "object", + "title": "InAppPurchaseOfferCodeUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "active": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseOfferPrice": { + "type": "object", + "title": "InAppPurchaseOfferPrice", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferPrices" + ] + }, + "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" + ] + } + } + }, + "pricePoint": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseOfferPriceInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferPrices" + ] + }, + "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" + ] + } + } + }, + "pricePoint": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "InAppPurchaseOfferPricesResponse": { + "type": "object", + "title": "InAppPurchaseOfferPricesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseOfferPrice" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchasePricePoint" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "inAppPurchasePricePoints": "#/components/schemas/InAppPurchasePricePoint" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchasePricePoint": { + "type": "object", + "title": "InAppPurchasePricePoint", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "customerPrice": { + "type": "string" + }, + "proceeds": { + "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" + ] + } + } + }, + "equalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchasePricePointsResponse": { + "type": "object", + "title": "InAppPurchasePricePointsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchasePricePoint" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchasePriceSchedule": { + "type": "object", + "title": "InAppPurchasePriceSchedule", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePriceSchedules" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "baseTerritory": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "manualPrices": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "automaticPrices": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchasePriceScheduleResponse": { + "type": "object", + "title": "InAppPurchasePriceScheduleResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchasePriceSchedule" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchasePrice" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "inAppPurchasePrices": "#/components/schemas/InAppPurchasePrice" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchasePriceScheduleCreateRequest": { + "type": "object", + "title": "InAppPurchasePriceScheduleCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePriceSchedules" + ] + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchase": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "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": [ + "inAppPurchasePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "inAppPurchase", + "manualPrices", + "baseTerritory" + ] + } + }, + "required": [ + "relationships", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchasePriceInlineCreate" + }, + { + "$ref": "#/components/schemas/TerritoryInlineCreate" + } + ] + } + } + }, + "required": [ + "data" + ] + }, + "InAppPurchasePrice": { + "type": "object", + "title": "InAppPurchasePrice", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePrices" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date" + }, + "endDate": { + "type": "string", + "format": "date" + }, + "manual": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchasePricePoint": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "territory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchasePriceInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePrices" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "endDate": { + "type": "string", + "format": "date", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchaseV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "inAppPurchasePricePoint": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "InAppPurchasePricesResponse": { + "type": "object", + "title": "InAppPurchasePricesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchasePrice" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchasePricePoint" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "inAppPurchasePricePoints": "#/components/schemas/InAppPurchasePricePoint" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseSubmission": { + "type": "object", + "title": "InAppPurchaseSubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseSubmissions" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchaseV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseSubmissionResponse": { + "type": "object", + "title": "InAppPurchaseSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseSubmission" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseSubmissionCreateRequest": { + "type": "object", + "title": "InAppPurchaseSubmissionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseSubmissions" + ] + }, + "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", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseVersion": { + "type": "object", + "title": "InAppPurchaseVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "integer" + }, + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REPLACED_WITH_NEW_VERSION", + "REJECTED", + "DEVELOPER_REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchase": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "image": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "images": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchaseVersionsResponse": { + "type": "object", + "title": "InAppPurchaseVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchaseImageV2" + }, + { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2" + }, + { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "inAppPurchaseImages": "#/components/schemas/InAppPurchaseImageV2", + "inAppPurchases": "#/components/schemas/InAppPurchaseV2", + "inAppPurchaseLocalizations": "#/components/schemas/InAppPurchaseLocalizationV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseVersionResponse": { + "type": "object", + "title": "InAppPurchaseVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchaseImageV2" + }, + { + "$ref": "#/components/schemas/InAppPurchaseLocalizationV2" + }, + { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "inAppPurchaseImages": "#/components/schemas/InAppPurchaseImageV2", + "inAppPurchases": "#/components/schemas/InAppPurchaseV2", + "inAppPurchaseLocalizations": "#/components/schemas/InAppPurchaseLocalizationV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseVersionCreateRequest": { + "type": "object", + "title": "InAppPurchaseVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchase": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "inAppPurchase" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchase": { + "type": "object", + "title": "InAppPurchase", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "inAppPurchaseType": { + "type": "string", + "enum": [ + "AUTOMATICALLY_RENEWABLE_SUBSCRIPTION", + "NON_CONSUMABLE", + "CONSUMABLE", + "NON_RENEWING_SUBSCRIPTION", + "FREE_SUBSCRIPTION" + ] + }, + "state": { + "type": "string", + "enum": [ + "CREATED", + "DEVELOPER_SIGNED_OFF", + "DEVELOPER_ACTION_NEEDED", + "DELETION_IN_PROGRESS", + "APPROVED", + "DELETED", + "REMOVED_FROM_SALE", + "DEVELOPER_REMOVED_FROM_SALE", + "WAITING_FOR_UPLOAD", + "PROCESSING_CONTENT", + "REPLACED", + "REJECTED", + "WAITING_FOR_SCREENSHOT", + "PREPARE_FOR_SUBMISSION", + "MISSING_METADATA", + "READY_TO_SUBMIT", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "PENDING_DEVELOPER_RELEASE" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "apps": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "InAppPurchasesResponse": { + "type": "object", + "title": "InAppPurchasesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchase" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "InAppPurchaseResponse": { + "type": "object", + "title": "InAppPurchaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchase" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "InAppPurchaseV2": { + "type": "object", + "title": "InAppPurchaseV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "inAppPurchaseType": { + "$ref": "#/components/schemas/InAppPurchaseType" + }, + "state": { + "$ref": "#/components/schemas/InAppPurchaseState" + }, + "reviewNote": { + "type": "string" + }, + "familySharable": { + "type": "boolean" + }, + "contentHosting": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchaseLocalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "pricePoints": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "content": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseContents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreReviewScreenshot": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAppStoreReviewScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "promotedPurchase": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "iapPriceSchedule": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePriceSchedules" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "inAppPurchaseAvailability": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "images": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "offerCodes": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "InAppPurchasesV2Response": { + "type": "object", + "title": "InAppPurchasesV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshot" + }, + { + "$ref": "#/components/schemas/InAppPurchaseAvailability" + }, + { + "$ref": "#/components/schemas/InAppPurchaseContent" + }, + { + "$ref": "#/components/schemas/InAppPurchaseImage" + }, + { + "$ref": "#/components/schemas/InAppPurchaseLocalization" + }, + { + "$ref": "#/components/schemas/InAppPurchaseOfferCode" + }, + { + "$ref": "#/components/schemas/InAppPurchasePricePoint" + }, + { + "$ref": "#/components/schemas/InAppPurchasePriceSchedule" + }, + { + "$ref": "#/components/schemas/InAppPurchaseVersion" + }, + { + "$ref": "#/components/schemas/PromotedPurchase" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "inAppPurchaseAppStoreReviewScreenshots": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshot", + "inAppPurchaseContents": "#/components/schemas/InAppPurchaseContent", + "inAppPurchaseOfferCodes": "#/components/schemas/InAppPurchaseOfferCode", + "inAppPurchasePriceSchedules": "#/components/schemas/InAppPurchasePriceSchedule", + "promotedPurchases": "#/components/schemas/PromotedPurchase", + "inAppPurchaseImages": "#/components/schemas/InAppPurchaseImage", + "inAppPurchaseAvailabilities": "#/components/schemas/InAppPurchaseAvailability", + "inAppPurchaseVersions": "#/components/schemas/InAppPurchaseVersion", + "inAppPurchasePricePoints": "#/components/schemas/InAppPurchasePricePoint", + "inAppPurchaseLocalizations": "#/components/schemas/InAppPurchaseLocalization" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2Response": { + "type": "object", + "title": "InAppPurchaseV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseV2" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshot" + }, + { + "$ref": "#/components/schemas/InAppPurchaseAvailability" + }, + { + "$ref": "#/components/schemas/InAppPurchaseContent" + }, + { + "$ref": "#/components/schemas/InAppPurchaseImage" + }, + { + "$ref": "#/components/schemas/InAppPurchaseLocalization" + }, + { + "$ref": "#/components/schemas/InAppPurchaseOfferCode" + }, + { + "$ref": "#/components/schemas/InAppPurchasePricePoint" + }, + { + "$ref": "#/components/schemas/InAppPurchasePriceSchedule" + }, + { + "$ref": "#/components/schemas/InAppPurchaseVersion" + }, + { + "$ref": "#/components/schemas/PromotedPurchase" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "inAppPurchaseAppStoreReviewScreenshots": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshot", + "inAppPurchaseContents": "#/components/schemas/InAppPurchaseContent", + "inAppPurchaseOfferCodes": "#/components/schemas/InAppPurchaseOfferCode", + "inAppPurchasePriceSchedules": "#/components/schemas/InAppPurchasePriceSchedule", + "promotedPurchases": "#/components/schemas/PromotedPurchase", + "inAppPurchaseImages": "#/components/schemas/InAppPurchaseImage", + "inAppPurchaseAvailabilities": "#/components/schemas/InAppPurchaseAvailability", + "inAppPurchaseVersions": "#/components/schemas/InAppPurchaseVersion", + "inAppPurchasePricePoints": "#/components/schemas/InAppPurchasePricePoint", + "inAppPurchaseLocalizations": "#/components/schemas/InAppPurchaseLocalization" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2CreateRequest": { + "type": "object", + "title": "InAppPurchaseV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "inAppPurchaseType": { + "$ref": "#/components/schemas/InAppPurchaseType" + }, + "reviewNote": { + "type": "string", + "nullable": true + }, + "familySharable": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "productId", + "name", + "inAppPurchaseType" + ] + }, + "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" + ] + }, + "InAppPurchaseV2UpdateRequest": { + "type": "object", + "title": "InAppPurchaseV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "reviewNote": { + "type": "string", + "nullable": true + }, + "familySharable": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "MarketplaceSearchDetail": { + "type": "object", + "title": "MarketplaceSearchDetail", + "properties": { + "type": { + "type": "string", + "enum": [ + "marketplaceSearchDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "catalogUrl": { + "type": "string", + "format": "uri" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "MarketplaceSearchDetailResponse": { + "type": "object", + "title": "MarketplaceSearchDetailResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/MarketplaceSearchDetail" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "MarketplaceSearchDetailCreateRequest": { + "type": "object", + "title": "MarketplaceSearchDetailCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "marketplaceSearchDetails" + ] + }, + "attributes": { + "type": "object", + "properties": { + "catalogUrl": { + "type": "string", + "format": "uri" + } + }, + "required": [ + "catalogUrl" + ] + }, + "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" + ] + }, + "MarketplaceSearchDetailUpdateRequest": { + "type": "object", + "title": "MarketplaceSearchDetailUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "marketplaceSearchDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "catalogUrl": { + "type": "string", + "format": "uri", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "MarketplaceWebhook": { + "type": "object", + "title": "MarketplaceWebhook", + "properties": { + "type": { + "type": "string", + "enum": [ + "marketplaceWebhooks" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "endpointUrl": { + "type": "string", + "format": "uri" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "MarketplaceWebhooksResponse": { + "type": "object", + "title": "MarketplaceWebhooksResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MarketplaceWebhook" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "MarketplaceWebhookResponse": { + "type": "object", + "title": "MarketplaceWebhookResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/MarketplaceWebhook" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "MarketplaceWebhookCreateRequest": { + "type": "object", + "title": "MarketplaceWebhookCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "marketplaceWebhooks" + ] + }, + "attributes": { + "type": "object", + "properties": { + "endpointUrl": { + "type": "string", + "format": "uri" + }, + "secret": { + "type": "string" + } + }, + "required": [ + "endpointUrl", + "secret" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "MarketplaceWebhookUpdateRequest": { + "type": "object", + "title": "MarketplaceWebhookUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "marketplaceWebhooks" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "endpointUrl": { + "type": "string", + "format": "uri", + "nullable": true + }, + "secret": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "MerchantId": { + "type": "object", + "title": "MerchantId", + "properties": { + "type": { + "type": "string", + "enum": [ + "merchantIds" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "identifier": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "certificates": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "MerchantIdsResponse": { + "type": "object", + "title": "MerchantIdsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MerchantId" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Certificate" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "MerchantIdResponse": { + "type": "object", + "title": "MerchantIdResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/MerchantId" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Certificate" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "MerchantIdCreateRequest": { + "type": "object", + "title": "MerchantIdCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "merchantIds" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "identifier": { + "type": "string" + } + }, + "required": [ + "identifier", + "name" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "MerchantIdUpdateRequest": { + "type": "object", + "title": "MerchantIdUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "merchantIds" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "Nomination": { + "type": "object", + "title": "Nomination", + "properties": { + "type": { + "type": "string", + "enum": [ + "nominations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "APP_LAUNCH", + "APP_ENHANCEMENTS", + "NEW_CONTENT" + ] + }, + "description": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "lastModifiedDate": { + "type": "string", + "format": "date-time" + }, + "submittedDate": { + "type": "string", + "format": "date-time" + }, + "state": { + "type": "string", + "enum": [ + "DRAFT", + "SUBMITTED", + "ARCHIVED" + ] + }, + "publishStartDate": { + "type": "string", + "format": "date-time" + }, + "publishEndDate": { + "type": "string", + "format": "date-time" + }, + "deviceFamilies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DeviceFamily" + } + }, + "locales": { + "type": "array", + "items": { + "type": "string" + } + }, + "supplementalMaterialsUris": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + } + }, + "hasInAppEvents": { + "type": "boolean" + }, + "launchInSelectMarketsFirst": { + "type": "boolean" + }, + "notes": { + "type": "string" + }, + "preOrderEnabled": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "relatedApps": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "createdByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "lastModifiedByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "submittedByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "inAppEvents": { + "type": "object", + "properties": { + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "supportedTerritories": { + "type": "object", + "properties": { + "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" + ] + }, + "NominationsResponse": { + "type": "object", + "title": "NominationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Nomination" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Actor" + }, + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "actors": "#/components/schemas/Actor", + "appEvents": "#/components/schemas/AppEvent", + "territories": "#/components/schemas/Territory", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "NominationResponse": { + "type": "object", + "title": "NominationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Nomination" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Actor" + }, + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "actors": "#/components/schemas/Actor", + "appEvents": "#/components/schemas/AppEvent", + "territories": "#/components/schemas/Territory", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "NominationCreateRequest": { + "type": "object", + "title": "NominationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "nominations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "APP_LAUNCH", + "APP_ENHANCEMENTS", + "NEW_CONTENT" + ] + }, + "description": { + "type": "string" + }, + "submitted": { + "type": "boolean" + }, + "publishStartDate": { + "type": "string", + "format": "date-time" + }, + "publishEndDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "deviceFamilies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "nullable": true + }, + "locales": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "supplementalMaterialsUris": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "nullable": true + }, + "hasInAppEvents": { + "type": "boolean", + "nullable": true + }, + "launchInSelectMarketsFirst": { + "type": "boolean", + "nullable": true + }, + "notes": { + "type": "string", + "nullable": true + }, + "preOrderEnabled": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "submitted", + "publishStartDate", + "name", + "description", + "type" + ] + }, + "relationships": { + "type": "object", + "properties": { + "relatedApps": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "inAppEvents": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "supportedTerritories": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "required": [ + "relatedApps" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "NominationUpdateRequest": { + "type": "object", + "title": "NominationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "nominations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "type": { + "type": "string", + "nullable": true, + "enum": [ + "APP_LAUNCH", + "APP_ENHANCEMENTS", + "NEW_CONTENT" + ] + }, + "description": { + "type": "string", + "nullable": true + }, + "submitted": { + "type": "boolean", + "nullable": true + }, + "archived": { + "type": "boolean", + "nullable": true + }, + "publishStartDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "publishEndDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "deviceFamilies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "nullable": true + }, + "locales": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "supplementalMaterialsUris": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "nullable": true + }, + "hasInAppEvents": { + "type": "boolean", + "nullable": true + }, + "launchInSelectMarketsFirst": { + "type": "boolean", + "nullable": true + }, + "notes": { + "type": "string", + "nullable": true + }, + "preOrderEnabled": { + "type": "boolean", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "relatedApps": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "inAppEvents": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "supportedTerritories": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "PassTypeId": { + "type": "object", + "title": "PassTypeId", + "properties": { + "type": { + "type": "string", + "enum": [ + "passTypeIds" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "identifier": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "certificates": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "PassTypeIdsResponse": { + "type": "object", + "title": "PassTypeIdsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PassTypeId" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Certificate" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "PassTypeIdResponse": { + "type": "object", + "title": "PassTypeIdResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/PassTypeId" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Certificate" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "PassTypeIdCreateRequest": { + "type": "object", + "title": "PassTypeIdCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "passTypeIds" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "identifier": { + "type": "string" + } + }, + "required": [ + "identifier", + "name" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "PassTypeIdUpdateRequest": { + "type": "object", + "title": "PassTypeIdUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "passTypeIds" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "PerfPowerMetric": { + "type": "object", + "title": "PerfPowerMetric", + "properties": { + "type": { + "type": "string", + "enum": [ + "perfPowerMetrics" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "platform": { + "type": "string", + "enum": [ + "IOS" + ] + }, + "metricType": { + "type": "string", + "enum": [ + "DISK", + "HANG", + "BATTERY", + "LAUNCH", + "MEMORY", + "ANIMATION", + "TERMINATION", + "STORAGE" + ] + }, + "deviceType": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "PerformanceOverview": { + "type": "object", + "title": "PerformanceOverview", + "properties": { + "type": { + "type": "string", + "enum": [ + "performanceOverviews" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "deviceType": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "PrereleaseVersion": { + "type": "object", + "title": "PrereleaseVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "preReleaseVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/Platform" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "builds": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "app": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "PreReleaseVersionsResponse": { + "type": "object", + "title": "PreReleaseVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PrereleaseVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builds": "#/components/schemas/Build", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "PrereleaseVersionResponse": { + "type": "object", + "title": "PrereleaseVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/PrereleaseVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Build" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builds": "#/components/schemas/Build", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "Profile": { + "type": "object", + "title": "Profile", + "properties": { + "type": { + "type": "string", + "enum": [ + "profiles" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" + }, + "profileType": { + "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" + ] + }, + "profileState": { + "type": "string", + "enum": [ + "ACTIVE", + "INVALID" + ] + }, + "profileContent": { + "type": "string" + }, + "uuid": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "expirationDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "bundleId": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "devices": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "devices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "certificates": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "ProfilesResponse": { + "type": "object", + "title": "ProfilesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Profile" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BundleId" + }, + { + "$ref": "#/components/schemas/Certificate" + }, + { + "$ref": "#/components/schemas/Device" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "certificates": "#/components/schemas/Certificate", + "devices": "#/components/schemas/Device", + "bundleIds": "#/components/schemas/BundleId" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ProfileResponse": { + "type": "object", + "title": "ProfileResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Profile" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/BundleId" + }, + { + "$ref": "#/components/schemas/Certificate" + }, + { + "$ref": "#/components/schemas/Device" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "certificates": "#/components/schemas/Certificate", + "devices": "#/components/schemas/Device", + "bundleIds": "#/components/schemas/BundleId" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "ProfileCreateRequest": { + "type": "object", + "title": "ProfileCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "profiles" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "profileType": { + "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" + ] + } + }, + "required": [ + "profileType", + "name" + ] + }, + "relationships": { + "type": "object", + "properties": { + "bundleId": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "devices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "devices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "certificates": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "certificates", + "bundleId" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "PromotedPurchase": { + "type": "object", + "title": "PromotedPurchase", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "visibleForAllUsers": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "state": { + "type": "string", + "enum": [ + "APPROVED", + "IN_REVIEW", + "PREPARE_FOR_SUBMISSION", + "REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchaseV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "PromotedPurchasesResponse": { + "type": "object", + "title": "PromotedPurchasesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PromotedPurchase" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchaseV2" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "inAppPurchases": "#/components/schemas/InAppPurchaseV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "PromotedPurchaseResponse": { + "type": "object", + "title": "PromotedPurchaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/PromotedPurchase" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/InAppPurchaseV2" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "inAppPurchases": "#/components/schemas/InAppPurchaseV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "PromotedPurchaseCreateRequest": { + "type": "object", + "title": "PromotedPurchaseCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "attributes": { + "type": "object", + "properties": { + "visibleForAllUsers": { + "type": "boolean" + }, + "enabled": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "visibleForAllUsers" + ] + }, + "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" + ] + }, + "inAppPurchaseV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "PromotedPurchaseUpdateRequest": { + "type": "object", + "title": "PromotedPurchaseUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "visibleForAllUsers": { + "type": "boolean", + "nullable": true + }, + "enabled": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "ReviewSubmissionItem": { + "type": "object", + "title": "ReviewSubmissionItem", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissionItems" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "state": { + "type": "string", + "enum": [ + "READY_FOR_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "REMOVED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appCustomProductPageVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperiment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appEvent": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appAssetLibraryImage": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appAssetLibraryVideo": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryVideos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "backgroundAssetVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterAchievementVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterActivityVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterChallengeVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardSetVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "inAppPurchaseVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionGroupVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "ReviewSubmissionItemsResponse": { + "type": "object", + "title": "ReviewSubmissionItemsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReviewSubmissionItem" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImage" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideo" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersion" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersion" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2" + }, + { + "$ref": "#/components/schemas/InAppPurchaseVersion" + }, + { + "$ref": "#/components/schemas/SubscriptionGroupVersion" + }, + { + "$ref": "#/components/schemas/SubscriptionVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appAssetLibraryImages": "#/components/schemas/AppAssetLibraryImage", + "appEvents": "#/components/schemas/AppEvent", + "gameCenterAchievementVersions": "#/components/schemas/GameCenterAchievementVersionV2", + "appStoreVersionExperiments": "#/components/schemas/AppStoreVersionExperiment", + "gameCenterActivityVersions": "#/components/schemas/GameCenterActivityVersion", + "inAppPurchaseVersions": "#/components/schemas/InAppPurchaseVersion", + "subscriptionVersions": "#/components/schemas/SubscriptionVersion", + "gameCenterChallengeVersions": "#/components/schemas/GameCenterChallengeVersion", + "subscriptionGroupVersions": "#/components/schemas/SubscriptionGroupVersion", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "appAssetLibraryVideos": "#/components/schemas/AppAssetLibraryVideo", + "backgroundAssetVersions": "#/components/schemas/BackgroundAssetVersion", + "gameCenterLeaderboardSetVersions": "#/components/schemas/GameCenterLeaderboardSetVersionV2", + "appCustomProductPageVersions": "#/components/schemas/AppCustomProductPageVersion", + "gameCenterLeaderboardVersions": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ReviewSubmissionItemResponse": { + "type": "object", + "title": "ReviewSubmissionItemResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/ReviewSubmissionItem" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppAssetLibraryImage" + }, + { + "$ref": "#/components/schemas/AppAssetLibraryVideo" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/BackgroundAssetVersion" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementVersionV2" + }, + { + "$ref": "#/components/schemas/GameCenterActivityVersion" + }, + { + "$ref": "#/components/schemas/GameCenterChallengeVersion" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetVersionV2" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardVersionV2" + }, + { + "$ref": "#/components/schemas/InAppPurchaseVersion" + }, + { + "$ref": "#/components/schemas/SubscriptionGroupVersion" + }, + { + "$ref": "#/components/schemas/SubscriptionVersion" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "appAssetLibraryImages": "#/components/schemas/AppAssetLibraryImage", + "appEvents": "#/components/schemas/AppEvent", + "gameCenterAchievementVersions": "#/components/schemas/GameCenterAchievementVersionV2", + "appStoreVersionExperiments": "#/components/schemas/AppStoreVersionExperiment", + "gameCenterActivityVersions": "#/components/schemas/GameCenterActivityVersion", + "inAppPurchaseVersions": "#/components/schemas/InAppPurchaseVersion", + "subscriptionVersions": "#/components/schemas/SubscriptionVersion", + "gameCenterChallengeVersions": "#/components/schemas/GameCenterChallengeVersion", + "subscriptionGroupVersions": "#/components/schemas/SubscriptionGroupVersion", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "appAssetLibraryVideos": "#/components/schemas/AppAssetLibraryVideo", + "backgroundAssetVersions": "#/components/schemas/BackgroundAssetVersion", + "gameCenterLeaderboardSetVersions": "#/components/schemas/GameCenterLeaderboardSetVersionV2", + "appCustomProductPageVersions": "#/components/schemas/AppCustomProductPageVersion", + "gameCenterLeaderboardVersions": "#/components/schemas/GameCenterLeaderboardVersionV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "ReviewSubmissionItemCreateRequest": { + "type": "object", + "title": "ReviewSubmissionItemCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissionItems" + ] + }, + "relationships": { + "type": "object", + "properties": { + "reviewSubmission": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appCustomProductPageVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperiment": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appEvent": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appAssetLibraryImage": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appAssetLibraryVideo": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryVideos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "backgroundAssetVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterAchievementVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterActivityVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterChallengeVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardSetVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "inAppPurchaseVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionGroupVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "required": [ + "reviewSubmission" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "ReviewSubmissionItemUpdateRequest": { + "type": "object", + "title": "ReviewSubmissionItemUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissionItems" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "resolved": { + "type": "boolean", + "nullable": true + }, + "removed": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "ReviewSubmission": { + "type": "object", + "title": "ReviewSubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "submittedDate": { + "type": "string", + "format": "date-time" + }, + "state": { + "type": "string", + "enum": [ + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "UNRESOLVED_ISSUES", + "CANCELING", + "COMPLETING", + "COMPLETE" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "items": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissionItems" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreVersionForReview": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "submittedByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "lastUpdatedByActor": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "ReviewSubmissionsResponse": { + "type": "object", + "title": "ReviewSubmissionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReviewSubmission" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Actor" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/ReviewSubmissionItem" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "actors": "#/components/schemas/Actor", + "reviewSubmissionItems": "#/components/schemas/ReviewSubmissionItem", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ReviewSubmissionResponse": { + "type": "object", + "title": "ReviewSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/ReviewSubmission" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Actor" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/ReviewSubmissionItem" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "actors": "#/components/schemas/Actor", + "reviewSubmissionItems": "#/components/schemas/ReviewSubmissionItem", + "appStoreVersions": "#/components/schemas/AppStoreVersion", + "apps": "#/components/schemas/App" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "ReviewSubmissionCreateRequest": { + "type": "object", + "title": "ReviewSubmissionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissions" + ] + }, + "attributes": { + "type": "object", + "properties": { + "platform": { + "nullable": true, + "$ref": "#/components/schemas/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" + ] + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "ReviewSubmissionUpdateRequest": { + "type": "object", + "title": "ReviewSubmissionUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "platform": { + "nullable": true, + "$ref": "#/components/schemas/Platform" + }, + "submitted": { + "type": "boolean", + "nullable": true + }, + "canceled": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "RoutingAppCoverage": { + "type": "object", + "title": "RoutingAppCoverage", + "properties": { + "type": { + "type": "string", + "enum": [ + "routingAppCoverages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "sourceFileChecksum": { + "type": "string" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "RoutingAppCoverageResponse": { + "type": "object", + "title": "RoutingAppCoverageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/RoutingAppCoverage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "RoutingAppCoverageCreateRequest": { + "type": "object", + "title": "RoutingAppCoverageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "routingAppCoverages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "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", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "RoutingAppCoverageUpdateRequest": { + "type": "object", + "title": "RoutingAppCoverageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "routingAppCoverages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SandboxTesterV2": { + "type": "object", + "title": "SandboxTesterV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "sandboxTesters" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "acAccountName": { + "type": "string" + }, + "territory": { + "$ref": "#/components/schemas/TerritoryCode" + }, + "applePayCompatible": { + "type": "boolean" + }, + "interruptPurchases": { + "type": "boolean" + }, + "subscriptionRenewalRate": { + "type": "string", + "enum": [ + "MONTHLY_RENEWAL_EVERY_ONE_HOUR", + "MONTHLY_RENEWAL_EVERY_THIRTY_MINUTES", + "MONTHLY_RENEWAL_EVERY_FIFTEEN_MINUTES", + "MONTHLY_RENEWAL_EVERY_FIVE_MINUTES", + "MONTHLY_RENEWAL_EVERY_THREE_MINUTES" + ] + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SandboxTestersV2Response": { + "type": "object", + "title": "SandboxTestersV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SandboxTesterV2" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SandboxTesterV2Response": { + "type": "object", + "title": "SandboxTesterV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/SandboxTesterV2" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SandboxTesterV2UpdateRequest": { + "type": "object", + "title": "SandboxTesterV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "sandboxTesters" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "territory": { + "nullable": true, + "$ref": "#/components/schemas/TerritoryCode" + }, + "interruptPurchases": { + "type": "boolean", + "nullable": true + }, + "subscriptionRenewalRate": { + "type": "string", + "nullable": true, + "enum": [ + "MONTHLY_RENEWAL_EVERY_ONE_HOUR", + "MONTHLY_RENEWAL_EVERY_THIRTY_MINUTES", + "MONTHLY_RENEWAL_EVERY_FIFTEEN_MINUTES", + "MONTHLY_RENEWAL_EVERY_FIVE_MINUTES", + "MONTHLY_RENEWAL_EVERY_THREE_MINUTES" + ] + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SandboxTestersClearPurchaseHistoryRequestV2": { + "type": "object", + "title": "SandboxTestersClearPurchaseHistoryRequestV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "sandboxTestersClearPurchaseHistoryRequest" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SandboxTestersClearPurchaseHistoryRequestV2Response": { + "type": "object", + "title": "SandboxTestersClearPurchaseHistoryRequestV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/SandboxTestersClearPurchaseHistoryRequestV2" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SandboxTestersClearPurchaseHistoryRequestV2CreateRequest": { + "type": "object", + "title": "SandboxTestersClearPurchaseHistoryRequestV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "sandboxTestersClearPurchaseHistoryRequest" + ] + }, + "relationships": { + "type": "object", + "properties": { + "sandboxTesters": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "sandboxTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "sandboxTesters" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "ScmGitReference": { + "type": "object", + "title": "ScmGitReference", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmGitReferences" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "canonicalName": { + "type": "string" + }, + "isDeleted": { + "type": "boolean" + }, + "kind": { + "$ref": "#/components/schemas/CiGitRefKind" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "repository": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "ScmGitReferencesResponse": { + "type": "object", + "title": "ScmGitReferencesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScmGitReference" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScmRepository" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmGitReferenceResponse": { + "type": "object", + "title": "ScmGitReferenceResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/ScmGitReference" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScmRepository" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmProvider": { + "type": "object", + "title": "ScmProvider", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmProviders" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "scmProviderType": { + "$ref": "#/components/schemas/ScmProviderType" + }, + "url": { + "type": "string", + "format": "uri" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "repositories": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "ScmProvidersResponse": { + "type": "object", + "title": "ScmProvidersResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScmProvider" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmProviderResponse": { + "type": "object", + "title": "ScmProviderResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/ScmProvider" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmPullRequest": { + "type": "object", + "title": "ScmPullRequest", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmPullRequests" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "number": { + "type": "integer" + }, + "webUrl": { + "type": "string", + "format": "uri" + }, + "sourceRepositoryOwner": { + "type": "string" + }, + "sourceRepositoryName": { + "type": "string" + }, + "sourceBranchName": { + "type": "string" + }, + "destinationRepositoryOwner": { + "type": "string" + }, + "destinationRepositoryName": { + "type": "string" + }, + "destinationBranchName": { + "type": "string" + }, + "isClosed": { + "type": "boolean" + }, + "isCrossRepository": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "repository": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "ScmPullRequestsResponse": { + "type": "object", + "title": "ScmPullRequestsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScmPullRequest" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScmRepository" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmPullRequestResponse": { + "type": "object", + "title": "ScmPullRequestResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/ScmPullRequest" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScmRepository" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmRepository": { + "type": "object", + "title": "ScmRepository", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "lastAccessedDate": { + "type": "string", + "format": "date-time" + }, + "httpCloneUrl": { + "type": "string", + "format": "uri" + }, + "sshCloneUrl": { + "type": "string", + "format": "uri" + }, + "ownerName": { + "type": "string" + }, + "repositoryName": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "scmProvider": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmProviders" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "defaultBranch": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmGitReferences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gitReferences": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "pullRequests": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "ScmRepositoriesResponse": { + "type": "object", + "title": "ScmRepositoriesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ScmRepository" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/ScmGitReference" + }, + { + "$ref": "#/components/schemas/ScmProvider" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "scmProviders": "#/components/schemas/ScmProvider", + "scmGitReferences": "#/components/schemas/ScmGitReference" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmRepositoryResponse": { + "type": "object", + "title": "ScmRepositoryResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/ScmRepository" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/ScmGitReference" + }, + { + "$ref": "#/components/schemas/ScmProvider" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "scmProviders": "#/components/schemas/ScmProvider", + "scmGitReferences": "#/components/schemas/ScmGitReference" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionAppStoreReviewScreenshot": { + "type": "object", + "title": "SubscriptionAppStoreReviewScreenshot", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAppStoreReviewScreenshots" + ] + }, + "id": { + "type": "string" + }, + "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" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionAppStoreReviewScreenshotResponse": { + "type": "object", + "title": "SubscriptionAppStoreReviewScreenshotResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshot" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionAppStoreReviewScreenshotCreateRequest": { + "type": "object", + "title": "SubscriptionAppStoreReviewScreenshotCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAppStoreReviewScreenshots" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscription" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionAppStoreReviewScreenshotUpdateRequest": { + "type": "object", + "title": "SubscriptionAppStoreReviewScreenshotUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAppStoreReviewScreenshots" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionAvailability": { + "type": "object", + "title": "SubscriptionAvailability", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAvailabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "availableTerritories": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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" + ], + "deprecated": true + }, + "SubscriptionAvailabilityResponse": { + "type": "object", + "title": "SubscriptionAvailabilityResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionAvailability" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "SubscriptionAvailabilityCreateRequest": { + "type": "object", + "title": "SubscriptionAvailabilityCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAvailabilities" + ] + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + } + }, + "required": [ + "availableInNewTerritories" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "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": [ + "subscription", + "availableTerritories" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "SubscriptionGracePeriod": { + "type": "object", + "title": "SubscriptionGracePeriod", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGracePeriods" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "optIn": { + "type": "boolean" + }, + "sandboxOptIn": { + "type": "boolean" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionGracePeriodDuration" + }, + "renewalType": { + "type": "string", + "enum": [ + "ALL_RENEWALS", + "PAID_TO_PAID_ONLY" + ] + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionGracePeriodResponse": { + "type": "object", + "title": "SubscriptionGracePeriodResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionGracePeriod" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGracePeriodUpdateRequest": { + "type": "object", + "title": "SubscriptionGracePeriodUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGracePeriods" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "optIn": { + "type": "boolean", + "nullable": true + }, + "sandboxOptIn": { + "type": "boolean", + "nullable": true + }, + "duration": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionGracePeriodDuration" + }, + "renewalType": { + "type": "string", + "nullable": true, + "enum": [ + "ALL_RENEWALS", + "PAID_TO_PAID_ONLY" + ] + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionGroupLocalizationV2": { + "type": "object", + "title": "SubscriptionGroupLocalizationV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "customAppName": { + "type": "string" + }, + "locale": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionGroupLocalizationsV2Response": { + "type": "object", + "title": "SubscriptionGroupLocalizationsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionGroupVersion" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupLocalizationV2Response": { + "type": "object", + "title": "SubscriptionGroupLocalizationV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionGroupVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupLocalizationV2CreateRequest": { + "type": "object", + "title": "SubscriptionGroupLocalizationV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "customAppName": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string" + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionGroupLocalizationV2UpdateRequest": { + "type": "object", + "title": "SubscriptionGroupLocalizationV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "customAppName": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionGroupLocalization": { + "type": "object", + "title": "SubscriptionGroupLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "customAppName": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "WAITING_FOR_REVIEW", + "APPROVED", + "REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscriptionGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionGroupLocalizationsResponse": { + "type": "object", + "title": "SubscriptionGroupLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionGroupLocalization" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionGroup" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupLocalizationResponse": { + "type": "object", + "title": "SubscriptionGroupLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionGroupLocalization" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionGroup" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupLocalizationCreateRequest": { + "type": "object", + "title": "SubscriptionGroupLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "customAppName": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string" + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscriptionGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscriptionGroup" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionGroupLocalizationUpdateRequest": { + "type": "object", + "title": "SubscriptionGroupLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "customAppName": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionGroupSubmission": { + "type": "object", + "title": "SubscriptionGroupSubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupSubmissions" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionGroupSubmissionResponse": { + "type": "object", + "title": "SubscriptionGroupSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionGroupSubmission" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupSubmissionCreateRequest": { + "type": "object", + "title": "SubscriptionGroupSubmissionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupSubmissions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscriptionGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscriptionGroup" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionGroupVersion": { + "type": "object", + "title": "SubscriptionGroupVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "integer" + }, + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REPLACED_WITH_NEW_VERSION", + "REJECTED", + "DEVELOPER_REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscriptionGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionGroupVersionsResponse": { + "type": "object", + "title": "SubscriptionGroupVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionGroupVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptionGroups": "#/components/schemas/SubscriptionGroup", + "subscriptionGroupLocalizations": "#/components/schemas/SubscriptionGroupLocalizationV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupVersionResponse": { + "type": "object", + "title": "SubscriptionGroupVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionGroupVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationV2" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptionGroups": "#/components/schemas/SubscriptionGroup", + "subscriptionGroupLocalizations": "#/components/schemas/SubscriptionGroupLocalizationV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupVersionCreateRequest": { + "type": "object", + "title": "SubscriptionGroupVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscriptionGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscriptionGroup" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionGroup": { + "type": "object", + "title": "SubscriptionGroup", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscriptions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "subscriptionGroupLocalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionGroupsResponse": { + "type": "object", + "title": "SubscriptionGroupsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionGroup" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionGroupLocalization" + }, + { + "$ref": "#/components/schemas/SubscriptionGroupVersion" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "subscriptionGroupVersions": "#/components/schemas/SubscriptionGroupVersion", + "subscriptionGroupLocalizations": "#/components/schemas/SubscriptionGroupLocalization" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupResponse": { + "type": "object", + "title": "SubscriptionGroupResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionGroup" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionGroupLocalization" + }, + { + "$ref": "#/components/schemas/SubscriptionGroupVersion" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "subscriptionGroupVersions": "#/components/schemas/SubscriptionGroupVersion", + "subscriptionGroupLocalizations": "#/components/schemas/SubscriptionGroupLocalization" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupCreateRequest": { + "type": "object", + "title": "SubscriptionGroupCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + } + }, + "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" + ] + }, + "SubscriptionGroupUpdateRequest": { + "type": "object", + "title": "SubscriptionGroupUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionImage": { + "type": "object", + "title": "SubscriptionImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "sourceFileChecksum": { + "type": "string" + }, + "assetToken": { + "type": "string" + }, + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "state": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "UPLOAD_COMPLETE", + "FAILED", + "PREPARE_FOR_SUBMISSION", + "WAITING_FOR_REVIEW", + "APPROVED", + "REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionImagesResponse": { + "type": "object", + "title": "SubscriptionImagesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionImage" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionImageResponse": { + "type": "object", + "title": "SubscriptionImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionImage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionImageCreateRequest": { + "type": "object", + "title": "SubscriptionImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscription" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionImageUpdateRequest": { + "type": "object", + "title": "SubscriptionImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string", + "nullable": true + }, + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionImageV2": { + "type": "object", + "title": "SubscriptionImageV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "assetToken": { + "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" + ] + }, + "SubscriptionImagesV2Response": { + "type": "object", + "title": "SubscriptionImagesV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionImageV2" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionImageV2Response": { + "type": "object", + "title": "SubscriptionImageV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionImageV2" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionImageV2CreateRequest": { + "type": "object", + "title": "SubscriptionImageV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionImageV2UpdateRequest": { + "type": "object", + "title": "SubscriptionImageV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionIntroductoryOffer": { + "type": "object", + "title": "SubscriptionIntroductoryOffer", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date" + }, + "endDate": { + "type": "string", + "format": "date" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "numberOfPeriods": { + "type": "integer" + }, + "targetSubscriptionPlanType": { + "$ref": "#/components/schemas/SubscriptionPlanType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "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" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionIntroductoryOfferInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "endDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "numberOfPeriods": { + "type": "integer" + }, + "targetSubscriptionPlanType": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionPlanType" + } + }, + "required": [ + "duration", + "numberOfPeriods", + "offerMode" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "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": [ + "attributes", + "type" + ] + }, + "SubscriptionIntroductoryOffersResponse": { + "type": "object", + "title": "SubscriptionIntroductoryOffersResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffer" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPricePoint" + }, + { + "$ref": "#/components/schemas/Subscription" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "territories": "#/components/schemas/Territory", + "subscriptionPricePoints": "#/components/schemas/SubscriptionPricePoint" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionIntroductoryOfferResponse": { + "type": "object", + "title": "SubscriptionIntroductoryOfferResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffer" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPricePoint" + }, + { + "$ref": "#/components/schemas/Subscription" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "territories": "#/components/schemas/Territory", + "subscriptionPricePoints": "#/components/schemas/SubscriptionPricePoint" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionIntroductoryOfferCreateRequest": { + "type": "object", + "title": "SubscriptionIntroductoryOfferCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "endDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "numberOfPeriods": { + "type": "integer" + }, + "targetSubscriptionPlanType": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionPlanType" + } + }, + "required": [ + "duration", + "numberOfPeriods", + "offerMode" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "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": [ + "subscription" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionPricePointInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "SubscriptionIntroductoryOfferUpdateRequest": { + "type": "object", + "title": "SubscriptionIntroductoryOfferUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "endDate": { + "type": "string", + "format": "date", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionLocalizationV2": { + "type": "object", + "title": "SubscriptionLocalizationV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionLocalizationsV2Response": { + "type": "object", + "title": "SubscriptionLocalizationsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionLocalizationV2" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionVersion" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionLocalizationV2Response": { + "type": "object", + "title": "SubscriptionLocalizationV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionLocalizationV2" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionLocalizationV2CreateRequest": { + "type": "object", + "title": "SubscriptionLocalizationV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "version": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "version" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionLocalizationV2UpdateRequest": { + "type": "object", + "title": "SubscriptionLocalizationV2UpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionLocalization": { + "type": "object", + "title": "SubscriptionLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "description": { + "type": "string" + }, + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "WAITING_FOR_REVIEW", + "APPROVED", + "REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionLocalizationsResponse": { + "type": "object", + "title": "SubscriptionLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionLocalization" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionLocalizationResponse": { + "type": "object", + "title": "SubscriptionLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionLocalization" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionLocalizationCreateRequest": { + "type": "object", + "title": "SubscriptionLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscription" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionLocalizationUpdateRequest": { + "type": "object", + "title": "SubscriptionLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "description": { + "type": "string", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionOfferCodeCustomCode": { + "type": "object", + "title": "SubscriptionOfferCodeCustomCode", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeCustomCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "customCode": { + "type": "string" + }, + "numberOfCodes": { + "type": "integer" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "expirationDate": { + "type": "string", + "format": "date" + }, + "active": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "offerCode": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionOfferCodeCustomCodesResponse": { + "type": "object", + "title": "SubscriptionOfferCodeCustomCodesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCode" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCode" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeCustomCodeResponse": { + "type": "object", + "title": "SubscriptionOfferCodeCustomCodeResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCode" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCode" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeCustomCodeCreateRequest": { + "type": "object", + "title": "SubscriptionOfferCodeCustomCodeCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeCustomCodes" + ] + }, + "attributes": { + "type": "object", + "properties": { + "customCode": { + "type": "string" + }, + "numberOfCodes": { + "type": "integer" + }, + "expirationDate": { + "type": "string", + "format": "date", + "nullable": true + } + }, + "required": [ + "numberOfCodes", + "customCode" + ] + }, + "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" + ] + }, + "SubscriptionOfferCodeCustomCodeUpdateRequest": { + "type": "object", + "title": "SubscriptionOfferCodeCustomCodeUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeCustomCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "active": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionOfferCodeOneTimeUseCodeValue": { + "type": "object", + "title": "SubscriptionOfferCodeOneTimeUseCodeValue", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeOneTimeUseCodeValues" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionOfferCodeOneTimeUseCode": { + "type": "object", + "title": "SubscriptionOfferCodeOneTimeUseCode", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "numberOfCodes": { + "type": "integer" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "expirationDate": { + "type": "string", + "format": "date" + }, + "active": { + "type": "boolean" + }, + "environment": { + "$ref": "#/components/schemas/OfferCodeEnvironment" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "offerCode": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "values": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "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" + }, + "environment": { + "nullable": true, + "$ref": "#/components/schemas/OfferCodeEnvironment" + } + }, + "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", + "nullable": true + } + } + } + }, + "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": { + "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" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "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/SubscriptionPricePoint" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "subscriptionPricePoints": "#/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" + }, + "productionCodeCount": { + "type": "integer" + }, + "sandboxCodeCount": { + "type": "integer" + }, + "active": { + "type": "boolean" + }, + "autoRenewEnabled": { + "type": "boolean" + }, + "targetSubscriptionPlanType": { + "$ref": "#/components/schemas/SubscriptionPlanType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "oneTimeUseCodes": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "customCodes": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionOfferCodesResponse": { + "type": "object", + "title": "SubscriptionOfferCodesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCode" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCode" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodePrice" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptionOfferCodePrices": "#/components/schemas/SubscriptionOfferCodePrice", + "subscriptions": "#/components/schemas/Subscription", + "subscriptionOfferCodeOneTimeUseCodes": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode", + "subscriptionOfferCodeCustomCodes": "#/components/schemas/SubscriptionOfferCodeCustomCode" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeResponse": { + "type": "object", + "title": "SubscriptionOfferCodeResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionOfferCode" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCode" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodePrice" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptionOfferCodePrices": "#/components/schemas/SubscriptionOfferCodePrice", + "subscriptions": "#/components/schemas/Subscription", + "subscriptionOfferCodeOneTimeUseCodes": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode", + "subscriptionOfferCodeCustomCodes": "#/components/schemas/SubscriptionOfferCodeCustomCode" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeCreateRequest": { + "type": "object", + "title": "SubscriptionOfferCodeCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodes" + ] + }, + "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" + }, + "autoRenewEnabled": { + "type": "boolean", + "nullable": true + }, + "targetSubscriptionPlanType": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionPlanType" + } + }, + "required": [ + "duration", + "offerEligibility", + "name", + "numberOfPeriods", + "offerMode", + "customerEligibilities" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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": [ + "subscription", + "prices" + ] + } + }, + "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", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionPlanAvailability": { + "type": "object", + "title": "SubscriptionPlanAvailability", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPlanAvailabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + }, + "planType": { + "$ref": "#/components/schemas/SubscriptionPlanType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "availableTerritories": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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" + ] + }, + "SubscriptionPlanAvailabilitiesResponse": { + "type": "object", + "title": "SubscriptionPlanAvailabilitiesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionPlanAvailability" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPlanAvailabilityResponse": { + "type": "object", + "title": "SubscriptionPlanAvailabilityResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionPlanAvailability" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPlanAvailabilityCreateRequest": { + "type": "object", + "title": "SubscriptionPlanAvailabilityCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPlanAvailabilities" + ] + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean", + "nullable": true + }, + "planType": { + "$ref": "#/components/schemas/SubscriptionPlanType" + } + }, + "required": [ + "planType" + ] + }, + "relationships": { + "type": "object", + "properties": { + "availableTerritories": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "availableTerritories", + "subscription" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionPlanAvailabilityUpdateRequest": { + "type": "object", + "title": "SubscriptionPlanAvailabilityUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPlanAvailabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "availableTerritories": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionPricePoint": { + "type": "object", + "title": "SubscriptionPricePoint", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "customerPrice": { + "type": "string" + }, + "proceeds": { + "type": "string" + }, + "proceedsYear2": { + "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" + ] + } + } + }, + "equalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "adjustedEqualizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionPricePointInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "type" + ] + }, + "SubscriptionPricePointsResponse": { + "type": "object", + "title": "SubscriptionPricePointsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionPricePoint" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "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": { + "type": "object", + "title": "SubscriptionPrice", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPrices" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date" + }, + "preserved": { + "type": "boolean" + }, + "planType": { + "$ref": "#/components/schemas/SubscriptionPlanType" + } + } + }, + "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" + ] + } + } + } + } + }, + "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", + "nullable": true + }, + "preserveCurrentPrice": { + "type": "boolean", + "nullable": true + }, + "planType": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionPlanType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "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" + ] + }, + "SubscriptionPricesResponse": { + "type": "object", + "title": "SubscriptionPricesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionPrice" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPricePoint" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "subscriptionPricePoints": "#/components/schemas/SubscriptionPricePoint" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPriceResponse": { + "type": "object", + "title": "SubscriptionPriceResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionPrice" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPricePoint" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "subscriptionPricePoints": "#/components/schemas/SubscriptionPricePoint" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPriceCreateRequest": { + "type": "object", + "title": "SubscriptionPriceCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPrices" + ] + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "preserveCurrentPrice": { + "type": "boolean", + "nullable": true + }, + "planType": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionPlanType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "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": [ + "data" + ] + } + }, + "required": [ + "subscription", + "subscriptionPricePoint" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionPromotionalOfferPrice": { + "type": "object", + "title": "SubscriptionPromotionalOfferPrice", + "properties": { + "type": { + "type": "string", + "enum": [ + "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" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionPromotionalOfferPriceInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "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" + ] + }, + "SubscriptionPromotionalOfferPricesResponse": { + "type": "object", + "title": "SubscriptionPromotionalOfferPricesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPricePoint" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "subscriptionPricePoints": "#/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": { + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "name": { + "type": "string" + }, + "numberOfPeriods": { + "type": "integer" + }, + "offerCode": { + "type": "string" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "targetSubscriptionPlanType": { + "$ref": "#/components/schemas/SubscriptionPlanType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "prices": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionPromotionalOfferInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOffers" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "name": { + "type": "string" + }, + "numberOfPeriods": { + "type": "integer" + }, + "offerCode": { + "type": "string" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "targetSubscriptionPlanType": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionPlanType" + } + }, + "required": [ + "duration", + "offerCode", + "name", + "numberOfPeriods", + "offerMode" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "prices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + }, + "SubscriptionPromotionalOffersResponse": { + "type": "object", + "title": "SubscriptionPromotionalOffersResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionPromotionalOffer" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "subscriptionPromotionalOfferPrices": "#/components/schemas/SubscriptionPromotionalOfferPrice" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPromotionalOfferResponse": { + "type": "object", + "title": "SubscriptionPromotionalOfferResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionPromotionalOffer" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "subscriptionPromotionalOfferPrices": "#/components/schemas/SubscriptionPromotionalOfferPrice" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPromotionalOfferCreateRequest": { + "type": "object", + "title": "SubscriptionPromotionalOfferCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOffers" + ] + }, + "attributes": { + "type": "object", + "properties": { + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "name": { + "type": "string" + }, + "numberOfPeriods": { + "type": "integer" + }, + "offerCode": { + "type": "string" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "targetSubscriptionPlanType": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionPlanType" + } + }, + "required": [ + "duration", + "offerCode", + "name", + "numberOfPeriods", + "offerMode" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "prices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "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": { + "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": [ + "subscriptionSubmissions" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "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" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscription" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionVersion": { + "type": "object", + "title": "SubscriptionVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "integer" + }, + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REPLACED_WITH_NEW_VERSION", + "REJECTED", + "DEVELOPER_REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "image": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "images": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionVersionsResponse": { + "type": "object", + "title": "SubscriptionVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionImageV2" + }, + { + "$ref": "#/components/schemas/SubscriptionLocalizationV2" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "subscriptionImages": "#/components/schemas/SubscriptionImageV2", + "subscriptionLocalizations": "#/components/schemas/SubscriptionLocalizationV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionVersionResponse": { + "type": "object", + "title": "SubscriptionVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionImageV2" + }, + { + "$ref": "#/components/schemas/SubscriptionLocalizationV2" + }, + { + "$ref": "#/components/schemas/Subscription" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptions": "#/components/schemas/Subscription", + "subscriptionImages": "#/components/schemas/SubscriptionImageV2", + "subscriptionLocalizations": "#/components/schemas/SubscriptionLocalizationV2" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionVersionCreateRequest": { + "type": "object", + "title": "SubscriptionVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscription" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "Subscription": { + "type": "object", + "title": "Subscription", + "properties": { + "type": { + "type": "string", + "enum": [ + "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" + }, + "multiSeatStatus": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ] + }, + "marketSettings": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APPLE_SCHOOL", + "APP_STORE", + "APPLE_BUSINESS" + ] + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscriptionLocalizations": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAppStoreReviewScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "group": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "introductoryOffers": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "promotionalOffers": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOffers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "offerCodes": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "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": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "pricePoints": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + }, + "promotedPurchase": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionAvailability": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "winBackOffers": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOffers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "images": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "planAvailabilities": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPlanAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "versions": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionsResponse": { + "type": "object", + "title": "SubscriptionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshot" + }, + { + "$ref": "#/components/schemas/SubscriptionAvailability" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + }, + { + "$ref": "#/components/schemas/SubscriptionImage" + }, + { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffer" + }, + { + "$ref": "#/components/schemas/SubscriptionLocalization" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCode" + }, + { + "$ref": "#/components/schemas/SubscriptionPlanAvailability" + }, + { + "$ref": "#/components/schemas/SubscriptionPrice" + }, + { + "$ref": "#/components/schemas/SubscriptionPromotionalOffer" + }, + { + "$ref": "#/components/schemas/SubscriptionVersion" + }, + { + "$ref": "#/components/schemas/WinBackOffer" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptionAppStoreReviewScreenshots": "#/components/schemas/SubscriptionAppStoreReviewScreenshot", + "winBackOffers": "#/components/schemas/WinBackOffer", + "subscriptionOfferCodes": "#/components/schemas/SubscriptionOfferCode", + "subscriptionPlanAvailabilities": "#/components/schemas/SubscriptionPlanAvailability", + "subscriptionVersions": "#/components/schemas/SubscriptionVersion", + "promotedPurchases": "#/components/schemas/PromotedPurchase", + "subscriptionGroups": "#/components/schemas/SubscriptionGroup", + "subscriptionImages": "#/components/schemas/SubscriptionImage", + "subscriptionPrices": "#/components/schemas/SubscriptionPrice", + "subscriptionIntroductoryOffers": "#/components/schemas/SubscriptionIntroductoryOffer", + "subscriptionPromotionalOffers": "#/components/schemas/SubscriptionPromotionalOffer", + "subscriptionLocalizations": "#/components/schemas/SubscriptionLocalization", + "subscriptionAvailabilities": "#/components/schemas/SubscriptionAvailability" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionResponse": { + "type": "object", + "title": "SubscriptionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Subscription" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshot" + }, + { + "$ref": "#/components/schemas/SubscriptionAvailability" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + }, + { + "$ref": "#/components/schemas/SubscriptionImage" + }, + { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffer" + }, + { + "$ref": "#/components/schemas/SubscriptionLocalization" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCode" + }, + { + "$ref": "#/components/schemas/SubscriptionPlanAvailability" + }, + { + "$ref": "#/components/schemas/SubscriptionPrice" + }, + { + "$ref": "#/components/schemas/SubscriptionPromotionalOffer" + }, + { + "$ref": "#/components/schemas/SubscriptionVersion" + }, + { + "$ref": "#/components/schemas/WinBackOffer" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "subscriptionAppStoreReviewScreenshots": "#/components/schemas/SubscriptionAppStoreReviewScreenshot", + "winBackOffers": "#/components/schemas/WinBackOffer", + "subscriptionOfferCodes": "#/components/schemas/SubscriptionOfferCode", + "subscriptionPlanAvailabilities": "#/components/schemas/SubscriptionPlanAvailability", + "subscriptionVersions": "#/components/schemas/SubscriptionVersion", + "promotedPurchases": "#/components/schemas/PromotedPurchase", + "subscriptionGroups": "#/components/schemas/SubscriptionGroup", + "subscriptionImages": "#/components/schemas/SubscriptionImage", + "subscriptionPrices": "#/components/schemas/SubscriptionPrice", + "subscriptionIntroductoryOffers": "#/components/schemas/SubscriptionIntroductoryOffer", + "subscriptionPromotionalOffers": "#/components/schemas/SubscriptionPromotionalOffer", + "subscriptionLocalizations": "#/components/schemas/SubscriptionLocalization", + "subscriptionAvailabilities": "#/components/schemas/SubscriptionAvailability" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionCreateRequest": { + "type": "object", + "title": "SubscriptionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "familySharable": { + "type": "boolean", + "nullable": true + }, + "subscriptionPeriod": { + "type": "string", + "nullable": true, + "enum": [ + "ONE_WEEK", + "ONE_MONTH", + "TWO_MONTHS", + "THREE_MONTHS", + "SIX_MONTHS", + "ONE_YEAR" + ] + }, + "reviewNote": { + "type": "string", + "nullable": true + }, + "groupLevel": { + "type": "integer", + "nullable": true + } + }, + "required": [ + "productId", + "name" + ] + }, + "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" + ] + } + }, + "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", + "nullable": true + }, + "familySharable": { + "type": "boolean", + "nullable": true + }, + "subscriptionPeriod": { + "type": "string", + "nullable": true, + "enum": [ + "ONE_WEEK", + "ONE_MONTH", + "TWO_MONTHS", + "THREE_MONTHS", + "SIX_MONTHS", + "ONE_YEAR" + ] + }, + "reviewNote": { + "type": "string", + "nullable": true + }, + "groupLevel": { + "type": "integer", + "nullable": true + }, + "multiSeatStatus": { + "type": "string", + "nullable": true, + "enum": [ + "ENABLED", + "DISABLED" + ] + }, + "marketSettings": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APPLE_SCHOOL", + "APP_STORE", + "APPLE_BUSINESS" + ] + }, + "nullable": 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" + ] + } + } + } + }, + "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": [ + "id", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferInlineCreate" + }, + { + "$ref": "#/components/schemas/SubscriptionPriceInlineCreate" + }, + { + "$ref": "#/components/schemas/SubscriptionIntroductoryOfferInlineCreate" + } + ] + } + } + }, + "required": [ + "data" + ] + }, + "Territory": { + "type": "object", + "title": "Territory", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "currency": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "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" + ] + }, + "TerritoryAgeRating": { + "type": "object", + "title": "TerritoryAgeRating", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAgeRatings" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "appStoreAgeRating": { + "$ref": "#/components/schemas/AppStoreAgeRating" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "territory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "TerritoryAgeRatingsResponse": { + "type": "object", + "title": "TerritoryAgeRatingsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TerritoryAgeRating" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "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", + "BRAZIL_GAMBLING_NOT_VERIFIED", + "MISSING_GRN", + "UNVERIFIED_GRN", + "ICP_NUMBER_INVALID", + "ICP_NUMBER_MISSING", + "TRADER_STATUS_NOT_PROVIDED", + "TRADER_STATUS_VERIFICATION_FAILED", + "TRADER_STATUS_VERIFICATION_STATUS_MISSING", + "CANNOT_SELL_SEVENTEEN_PLUS_APPS", + "CANNOT_SELL_SEXUALLY_EXPLICIT", + "CANNOT_SELL_NON_IOS_GAMES", + "CANNOT_SELL_SEVENTEEN_PLUS_GAMES", + "CANNOT_SELL_CASINO", + "CANNOT_SELL_CASINO_WITHOUT_GRAC", + "CANNOT_SELL_CASINO_WITHOUT_AGE_VERIFICATION", + "CANNOT_SELL_ADULT_ONLY", + "CANNOT_SELL_GAMBLING_CONTESTS", + "CANNOT_SELL_GAMBLING", + "CANNOT_SELL_CONTESTS", + "CANNOT_SELL_NINETEEN_PLUS_WITHOUT_GRAC", + "CANNOT_SELL", + "CANNOT_SELL_FREQUENT_INTENSE_GAMBLING", + "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_FREQUENT_INTENSE", + "CANNOT_SELL_FREQUENT_INTENSE_WITHOUT_GRAC", + "CANNOT_SELL_FREQUENT_GAMBLING", + "CANNOT_SELL_FREQUENT_ALCOHOL_TOBACCO_DRUGS", + "CANNOT_SELL_FREQUENT_VIOLENCE", + "CANNOT_SELL_FREQUENT_SEXUAL_CONTENT_NUDITY", + "CANNOT_SELL_INFREQUENT_ALCOHOL_TOBACCO_DRUGS", + "CANNOT_SELL_INFREQUENT_SEXUAL_CONTENT_NUDITY", + "CANNOT_SELL_FREQUENT", + "CANNOT_SELL_FREQUENT_WITHOUT_GRAC" + ] + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "territory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "TerritoryAvailabilityInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAvailabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "available": { + "type": "boolean", + "nullable": true + }, + "releaseDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "preOrderEnabled": { + "type": "boolean", + "nullable": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "territory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "TerritoryAvailabilitiesResponse": { + "type": "object", + "title": "TerritoryAvailabilitiesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TerritoryAvailability" + } + }, + "included": { + "type": "array", + "items": { + "$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": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "TerritoryAvailabilityUpdateRequest": { + "type": "object", + "title": "TerritoryAvailabilityUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAvailabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "available": { + "type": "boolean", + "nullable": true + }, + "releaseDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "preOrderEnabled": { + "type": "boolean", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "UserInvitation": { + "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" + } + }, + "allAppsVisible": { + "type": "boolean" + }, + "provisioningAllowed": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "visibleApps": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "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" + ] + }, + "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", + "nullable": true + }, + "provisioningAllowed": { + "type": "boolean", + "nullable": true + } + }, + "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" + ] + } + } + } + } + } + } + }, + "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" + } + }, + "allAppsVisible": { + "type": "boolean" + }, + "provisioningAllowed": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "visibleApps": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "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" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRole" + }, + "nullable": true + }, + "allAppsVisible": { + "type": "boolean", + "nullable": true + }, + "provisioningAllowed": { + "type": "boolean", + "nullable": true + } + } + }, + "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": [ + "data" + ] + }, + "WebhookDelivery": { + "type": "object", + "title": "WebhookDelivery", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhookDeliveries" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "createdDate": { + "type": "string", + "format": "date-time" + }, + "deliveryState": { + "type": "string", + "enum": [ + "SUCCEEDED", + "FAILED", + "PENDING" + ] + }, + "errorMessage": { + "type": "string" + }, + "redelivery": { + "type": "boolean" + }, + "sentDate": { + "type": "string", + "format": "date-time" + }, + "request": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri" + } + } + }, + "response": { + "type": "object", + "properties": { + "httpStatusCode": { + "type": "integer" + }, + "body": { + "type": "string" + } + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "event": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhookEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "WebhookDeliveriesResponse": { + "type": "object", + "title": "WebhookDeliveriesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookDelivery" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookEvent" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "WebhookDeliveryResponse": { + "type": "object", + "title": "WebhookDeliveryResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/WebhookDelivery" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookEvent" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "WebhookDeliveryCreateRequest": { + "type": "object", + "title": "WebhookDeliveryCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhookDeliveries" + ] + }, + "relationships": { + "type": "object", + "properties": { + "template": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhookDeliveries" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "template" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "WebhookEvent": { + "type": "object", + "title": "WebhookEvent", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhookEvents" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "eventType": { + "$ref": "#/components/schemas/WebhookEventType" + }, + "payload": { + "type": "string" + }, + "ping": { + "type": "boolean" + }, + "createdDate": { + "type": "string", + "format": "date-time" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "WebhookPing": { + "type": "object", + "title": "WebhookPing", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhookPings" + ] + }, + "id": { + "type": "string" + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "WebhookPingResponse": { + "type": "object", + "title": "WebhookPingResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/WebhookPing" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "WebhookPingCreateRequest": { + "type": "object", + "title": "WebhookPingCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhookPings" + ] + }, + "relationships": { + "type": "object", + "properties": { + "webhook": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhooks" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "webhook" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "Webhook": { + "type": "object", + "title": "Webhook", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhooks" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "eventTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookEventType" + } + }, + "name": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deliveries": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "WebhooksResponse": { + "type": "object", + "title": "WebhooksResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Webhook" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "WebhookResponse": { + "type": "object", + "title": "WebhookResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Webhook" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "WebhookCreateRequest": { + "type": "object", + "title": "WebhookCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhooks" + ] + }, + "attributes": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "eventTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookEventType" + } + }, + "name": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + } + }, + "required": [ + "name", + "secret", + "eventTypes", + "url", + "enabled" + ] + }, + "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" + ] + }, + "WebhookUpdateRequest": { + "type": "object", + "title": "WebhookUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhooks" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "nullable": true + }, + "eventTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookEventType" + }, + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "secret": { + "type": "string", + "nullable": true + }, + "url": { + "type": "string", + "format": "uri", + "nullable": true + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "WinBackOfferPrice": { + "type": "object", + "title": "WinBackOfferPrice", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOfferPrices" + ] + }, + "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" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "WinBackOfferPriceInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "type" + ] + }, + "WinBackOfferPricesResponse": { + "type": "object", + "title": "WinBackOfferPricesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WinBackOfferPrice" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPricePoint" + }, + { + "$ref": "#/components/schemas/Territory" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "territories": "#/components/schemas/Territory", + "subscriptionPricePoints": "#/components/schemas/SubscriptionPricePoint" + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "WinBackOffer": { + "type": "object", + "title": "WinBackOffer", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOffers" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "offerId": { + "type": "string" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "periodCount": { + "type": "integer" + }, + "customerEligibilityPaidSubscriptionDurationInMonths": { + "type": "integer" + }, + "customerEligibilityTimeSinceLastSubscribedInMonths": { + "$ref": "#/components/schemas/IntegerRange" + }, + "customerEligibilityWaitBetweenOffersInMonths": { + "type": "integer" + }, + "startDate": { + "type": "string", + "format": "date" + }, + "endDate": { + "type": "string", + "format": "date" + }, + "priority": { + "type": "string", + "enum": [ + "HIGH", + "NORMAL" + ] + }, + "promotionIntent": { + "type": "string", + "enum": [ + "NOT_PROMOTED", + "USE_AUTO_GENERATED_ASSETS" + ] + }, + "targetSubscriptionPlanType": { + "$ref": "#/components/schemas/SubscriptionPlanType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "prices": { + "type": "object", + "properties": { + "links": { + "$ref": "#/components/schemas/RelationshipLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "WinBackOffersResponse": { + "type": "object", + "title": "WinBackOffersResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WinBackOffer" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WinBackOfferPrice" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "WinBackOfferResponse": { + "type": "object", + "title": "WinBackOfferResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/WinBackOffer" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WinBackOfferPrice" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "WinBackOfferCreateRequest": { + "type": "object", + "title": "WinBackOfferCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOffers" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "offerId": { + "type": "string" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "periodCount": { + "type": "integer" + }, + "customerEligibilityPaidSubscriptionDurationInMonths": { + "type": "integer" + }, + "customerEligibilityTimeSinceLastSubscribedInMonths": { + "$ref": "#/components/schemas/IntegerRange" + }, + "customerEligibilityWaitBetweenOffersInMonths": { + "type": "integer", + "nullable": true + }, + "startDate": { + "type": "string", + "format": "date" + }, + "endDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "priority": { + "type": "string", + "enum": [ + "HIGH", + "NORMAL" + ] + }, + "promotionIntent": { + "type": "string", + "nullable": true, + "enum": [ + "NOT_PROMOTED", + "USE_AUTO_GENERATED_ASSETS" + ] + }, + "targetSubscriptionPlanType": { + "nullable": true, + "$ref": "#/components/schemas/SubscriptionPlanType" + } + }, + "required": [ + "duration", + "customerEligibilityTimeSinceLastSubscribedInMonths", + "periodCount", + "offerId", + "offerMode", + "priority", + "customerEligibilityPaidSubscriptionDurationInMonths", + "startDate", + "referenceName" + ] + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "prices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "subscription", + "prices" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WinBackOfferPriceInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "WinBackOfferUpdateRequest": { + "type": "object", + "title": "WinBackOfferUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOffers" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "customerEligibilityPaidSubscriptionDurationInMonths": { + "type": "integer", + "nullable": true + }, + "customerEligibilityTimeSinceLastSubscribedInMonths": { + "nullable": true, + "$ref": "#/components/schemas/IntegerRange" + }, + "customerEligibilityWaitBetweenOffersInMonths": { + "type": "integer", + "nullable": true + }, + "startDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "endDate": { + "type": "string", + "format": "date", + "nullable": true + }, + "priority": { + "type": "string", + "nullable": true, + "enum": [ + "HIGH", + "NORMAL" + ] + }, + "promotionIntent": { + "type": "string", + "nullable": true, + "enum": [ + "NOT_PROMOTED", + "USE_AUTO_GENERATED_ASSETS" + ] + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AlternativeDistributionPackageVersionDeltasLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageDeltas" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageVersionVariantsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageVariants" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AlternativeDistributionPackageVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportInstanceSegmentsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportSegments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportRequestReportsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReports" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AnalyticsReportInstancesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportInstances" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryImagesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryVideosLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryVideos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryImagePlacementsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryVideoPlacementsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAvailabilityV2TerritoryAvailabilitiesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCategoryWithoutIncludesResponse": { + "type": "object", + "title": "AppCategoryWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppCategory" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCategoryParentLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "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" + ] + }, + "AppCategorySubcategoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceLocalizationAppClipHeaderImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipHeaderImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceAppClipAppStoreReviewDetailLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAppStoreReviewDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceAppClipDefaultExperienceLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperienceLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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" + ] + }, + "AppClipAppClipAdvancedExperiencesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipAppClipDefaultExperiencesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageLocalizationAppPreviewSetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageLocalizationAppScreenshotSetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageLocalizationPlacementsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageLocalizationSearchKeywordsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appKeywords" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageLocalizationSearchKeywordsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appKeywords" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "AppCustomProductPageVersionAppCustomProductPageLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageAppCustomProductPageVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppWithoutIncludesResponse": { + "type": "object", + "title": "AppWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/App" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEncryptionDeclarationAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppEncryptionDeclarationAppEncryptionDeclarationDocumentLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarationDocuments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "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 + }, + "AppEventLocalizationAppEventScreenshotsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventLocalizationAppEventVideoClipsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventVideoClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventLocalizationPlacementsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoAgeRatingDeclarationLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ageRatingDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoAppInfoLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfoLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoPrimaryCategoryLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoPrimarySubcategoryOneLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoPrimarySubcategoryTwoLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoSecondaryCategoryLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoSecondarySubcategoryOneLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoSecondarySubcategoryTwoLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppInfoTerritoryAgeRatingsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAgeRatings" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPreviewSetAppPreviewsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPreviewSetAppPreviewsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "AppPricePointV3EqualizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPriceScheduleAutomaticPricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPriceScheduleBaseTerritoryLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPriceScheduleManualPricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppScreenshotSetAppScreenshotsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppScreenshotSetAppScreenshotsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "AppStoreReviewDetailAppStoreReviewAttachmentsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewAttachments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentLocalizationAppPreviewSetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentLocalizationAppScreenshotSetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentLocalizationPlacementsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentTreatmentAppStoreVersionExperimentTreatmentLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatmentLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentV2AppStoreVersionExperimentTreatmentsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionExperimentAppStoreVersionExperimentTreatmentsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppStoreVersionLocalizationAppPreviewSetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionLocalizationAppScreenshotSetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionLocalizationPlacementsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraryPlacements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionLocalizationSearchKeywordsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appKeywords" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionLocalizationSearchKeywordsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appKeywords" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionAlternativeDistributionPackageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionPackages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionAppClipDefaultExperienceLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "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" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionAppStoreReviewDetailLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionAppStoreVersionExperimentsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppStoreVersionAppStoreVersionExperimentsV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionAppStoreVersionLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionPhasedReleaseWithoutIncludesResponse": { + "type": "object", + "title": "AppStoreVersionPhasedReleaseWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionAppStoreVersionPhasedReleaseLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPhasedReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionAppStoreVersionSubmissionLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "BuildWithoutIncludesResponse": { + "type": "object", + "title": "BuildWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Build" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionBuildLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "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" + ] + }, + "AppStoreVersionCustomerReviewsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionGameCenterAppVersionLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionRoutingAppCoverageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "routingAppCoverages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppTagTerritoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAccessibilityDeclarationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "accessibilityDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAlternativeDistributionKeyLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "alternativeDistributionKeys" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAnalyticsReportRequestsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "analyticsReportRequests" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAndroidToIosAppMappingDetailsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "androidToIosAppMappingDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppAvailabilityV2LinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppClipsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppCustomProductPagesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppEncryptionDeclarationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppEventsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppInfosLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppPricePointsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppPriceScheduleLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPriceSchedules" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppStoreVersionExperimentsV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppStoreVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAppTagsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appTags" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAssetLibraryLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAssetLibraries" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBackgroundAssetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppLocalizationsWithoutIncludesResponse": { + "type": "object", + "title": "BetaAppLocalizationsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBetaAppLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppReviewDetailWithoutIncludesResponse": { + "type": "object", + "title": "BetaAppReviewDetailWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaAppReviewDetail" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBetaAppReviewDetailLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppReviewDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBetaFeedbackCrashSubmissionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaFeedbackCrashSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBetaFeedbackScreenshotSubmissionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaFeedbackScreenshotSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupsWithoutIncludesResponse": { + "type": "object", + "title": "BetaGroupsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaGroup" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBetaGroupsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaLicenseAgreementWithoutIncludesResponse": { + "type": "object", + "title": "BetaLicenseAgreementWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaLicenseAgreement" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBetaLicenseAgreementLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaLicenseAgreements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBetaTestersLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "AppBuildUploadsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploads" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildsWithoutIncludesResponse": { + "type": "object", + "title": "BuildsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppBuildsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCiProductLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciProducts" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomerReviewsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "EndUserLicenseAgreementWithoutIncludesResponse": { + "type": "object", + "title": "EndUserLicenseAgreementWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/EndUserLicenseAgreement" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEndUserLicenseAgreementLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "endUserLicenseAgreements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppGameCenterDetailLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppGameCenterEnabledVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterEnabledVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppInAppPurchasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppInAppPurchasesV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppMarketplaceSearchDetailLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "marketplaceSearchDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPerfPowerMetricsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "perfPowerMetrics" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPerformanceOverviewsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "performanceOverviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "PreReleaseVersionsWithoutIncludesResponse": { + "type": "object", + "title": "PreReleaseVersionsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PrereleaseVersion" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPreReleaseVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "preReleaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPromotedPurchasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPromotedPurchasesLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "AppReviewSubmissionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppSearchKeywordsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appKeywords" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppSubscriptionGracePeriodLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGracePeriods" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppSubscriptionGroupsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppWebhooksLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhooks" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetVersionBackgroundAssetUploadFilesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetUploadFiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BackgroundAssetVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "backgroundAssetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppLocalizationAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppReviewDetailAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppReviewSubmissionBuildLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaBuildLocalizationBuildLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaFeedbackCrashSubmissionCrashLogLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaCrashLogs" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupBetaRecruitmentCriteriaLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaRecruitmentCriteria" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupBetaRecruitmentCriterionCompatibleBuildCheckLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaRecruitmentCriterionCompatibleBuildChecks" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTestersWithoutIncludesResponse": { + "type": "object", + "title": "BetaTestersWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaTester" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "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" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupBetaTestersLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "BetaGroupBuildsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupBuildsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "BetaLicenseAgreementAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppsWithoutIncludesResponse": { + "type": "object", + "title": "AppsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterAppsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterAppsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "BetaTesterBetaGroupsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterBetaGroupsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "BetaTesterBuildsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterBuildsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "BuildBetaDetailBuildLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBundleAppClipDomainCacheStatusLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDomainStatuses" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBundleAppClipDomainDebugStatusLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDomainStatuses" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBundleBetaAppClipInvocationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBundleBuildBundleFileSizesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBundleFileSizes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildUploadBuildUploadFilesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildUploadFiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEncryptionDeclarationWithoutIncludesResponse": { + "type": "object", + "title": "AppEncryptionDeclarationWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildAppEncryptionDeclarationLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildAppEncryptionDeclarationLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BuildAppStoreVersionLinkageResponse": { + "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" + ] + }, + "BetaAppReviewSubmissionWithoutIncludesResponse": { + "type": "object", + "title": "BetaAppReviewSubmissionWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaAppReviewSubmission" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBetaAppReviewSubmissionLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppReviewSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaBuildLocalizationsWithoutIncludesResponse": { + "type": "object", + "title": "BetaBuildLocalizationsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaBuildLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBetaBuildLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaBuildLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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" + ] + }, + "BuildBuildBetaDetailLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBetaDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildDiagnosticSignaturesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "diagnosticSignatures" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildIconsWithoutIncludesResponse": { + "type": "object", + "title": "BuildIconsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BuildIcon" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildIconsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildIcons" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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" + ] + }, + "BuildPerfPowerMetricsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "perfPowerMetrics" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "PrereleaseVersionWithoutIncludesResponse": { + "type": "object", + "title": "PrereleaseVersionWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/PrereleaseVersion" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildPreReleaseVersionLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "preReleaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdCapabilitiesWithoutIncludesResponse": { + "type": "object", + "title": "BundleIdCapabilitiesWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BundleIdCapability" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdBundleIdCapabilitiesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIdCapabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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/Profile" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdProfilesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "profiles" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CertificatePassTypeIdLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "passTypeIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildActionArtifactsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciArtifacts" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildActionBuildRunLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildRuns" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildActionIssuesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciIssues" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildActionTestResultsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciTestResults" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildRunActionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildActions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildRunBuildsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiMacOsVersionXcodeVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciXcodeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiProductAdditionalRepositoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiProductAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiProductBuildRunsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildRuns" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiProductPrimaryRepositoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiProductWorkflowsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciWorkflows" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiWorkflowBuildRunsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildRuns" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiWorkflowRepositoryLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiXcodeVersionMacOsVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciMacOsVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CustomerReviewResponseLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviewResponses" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "DiagnosticSignatureLogsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "diagnosticLogs" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "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/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "EndUserLicenseAgreementTerritoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementLocalizationV2ImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementLocalizationGameCenterAchievementLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementLocalizationGameCenterAchievementImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementVersionV2LocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementV2ActivityLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementV2VersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementActivityLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterAchievementGroupAchievementLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementGroupAchievementLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterAchievementLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterAchievementReleasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterActivityAchievementsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterActivityAchievementsV2LinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityLeaderboardsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterActivityLeaderboardsV2LinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterActivityVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityLocalizationImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityVersionDefaultImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterActivityVersionLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAppVersionAppStoreVersionLinkageResponse": { + "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" + ] + }, + "GameCenterAppVersionCompatibilityVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "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": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallengeLocalizationImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeVersionDefaultImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeVersionLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterChallengeLeaderboardLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterChallengeLeaderboardV2LinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterChallengeVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailAchievementReleasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterDetailActivityReleasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivityVersionReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterDetailBlockedPlayersLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetailPlayers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailChallengeReleasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallengeVersionReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterDetailChallengesMinimumPlatformVersionsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterDetailGameCenterAchievementsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterDetailGameCenterAchievementsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterDetailGameCenterAchievementsV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailGameCenterAchievementsV2LinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterDetailGameCenterActivitiesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailGameCenterAppVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailGameCenterChallengesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailGameCenterGroupLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterDetailGameCenterLeaderboardSetsV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailGameCenterLeaderboardSetsV2LinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterDetailGameCenterLeaderboardsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterDetailGameCenterLeaderboardsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterDetailGameCenterLeaderboardsV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterDetailGameCenterLeaderboardsV2LinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterDetailLeaderboardReleasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterDetailLeaderboardSetReleasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterEnabledVersionCompatibleVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterEnabledVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterEnabledVersionCompatibleVersionsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterEnabledVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterGroupGameCenterAchievementsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterGroupGameCenterAchievementsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterGroupGameCenterAchievementsV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterGroupGameCenterAchievementsV2LinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterGroupGameCenterActivitiesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterGroupGameCenterChallengesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterGroupGameCenterDetailsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterGroupGameCenterLeaderboardSetsV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterGroupGameCenterLeaderboardSetsV2LinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterGroupGameCenterLeaderboardsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterGroupGameCenterLeaderboardsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterGroupGameCenterLeaderboardsV2LinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterGroupGameCenterLeaderboardsV2LinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardLocalizationGameCenterLeaderboardImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardLocalizationV2ImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetLocalizationGameCenterLeaderboardSetImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetLocalizationV2ImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetMemberLocalizationGameCenterLeaderboardLinkageResponse": { + "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" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetMemberLocalizationGameCenterLeaderboardSetLinkageResponse": { + "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" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetVersionV2LocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetV2GameCenterLeaderboardsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetV2GameCenterLeaderboardsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetV2VersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "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" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardSetReleasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardVersionV2LocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardActivityLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardChallengeLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "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" + ], + "deprecated": true + }, + "GameCenterLeaderboardGroupLeaderboardLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "GameCenterLeaderboardLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardReleasesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterLeaderboardV2ActivityLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterActivities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardV2ChallengeLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterChallenges" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardV2GameCenterScoreModerationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterScoreModerations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardV2VersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleSetMatchmakingQueuesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingQueues" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleSetRulesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingRules" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleSetTeamsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterMatchmakingTeams" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseAvailabilityAvailableTerritoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeOneTimeUseCodeValuesLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeOneTimeUseCodeValues" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeCustomCodesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeCustomCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodeOneTimeUseCodesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseOfferCodePricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchasePricePointEqualizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchasePriceScheduleAutomaticPricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchasePriceScheduleBaseTerritoryLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchasePriceScheduleManualPricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseVersionImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseVersionImagesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseVersionLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2AppStoreReviewScreenshotLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAppStoreReviewScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2ContentLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseContents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2IapPriceScheduleLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePriceSchedules" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2ImagesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2InAppPurchaseAvailabilityLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2InAppPurchaseLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2OfferCodesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2PricePointsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2PromotedPurchaseLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseV2VersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "MerchantIdCertificatesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "PassTypeIdCertificatesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "PrereleaseVersionAppLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "PrereleaseVersionBuildsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdWithoutIncludesResponse": { + "type": "object", + "title": "BundleIdWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BundleId" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "ProfileBundleIdLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CertificatesWithoutIncludesResponse": { + "type": "object", + "title": "CertificatesWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Certificate" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ProfileCertificatesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "DevicesWithoutIncludesResponse": { + "type": "object", + "title": "DevicesWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Device" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ProfileDevicesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "devices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ReviewSubmissionItemsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissionItems" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmProviderRepositoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmRepositoryGitReferencesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmGitReferences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ScmRepositoryPullRequestsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmPullRequests" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionAvailabilityAvailableTerritoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "SubscriptionGroupVersionLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupSubscriptionGroupLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupSubscriptionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionGroupVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroupVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeOneTimeUseCodeValuesLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeOneTimeUseCodeValues" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeCustomCodesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeCustomCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeOneTimeUseCodesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodePricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPlanAvailabilityAvailableTerritoriesLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "SubscriptionPricePointEqualizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPromotionalOfferPricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionVersionImageLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionVersionImagesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionVersionLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionAppStoreReviewScreenshotLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAppStoreReviewScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionImagesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionIntroductoryOffersLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionIntroductoryOffersLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "SubscriptionOfferCodesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPlanAvailabilitiesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPlanAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPricePointsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPricesLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "SubscriptionPromotedPurchaseLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPromotionalOffersLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOffers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionSubscriptionAvailabilityLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "SubscriptionSubscriptionLocalizationsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionVersionsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionWinBackOffersLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOffers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "UserInvitationVisibleAppsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "UserVisibleAppsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "UserVisibleAppsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "WebhookDeliveriesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhookDeliveries" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "WinBackOfferPricesLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "winBackOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppsBetaTesterUsagesV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "crashCount": { + "type": "integer" + }, + "sessionCount": { + "type": "integer" + }, + "feedbackCount": { + "type": "integer" + } + } + } + } + } + }, + "dimensions": { + "type": "object", + "properties": { + "betaTesters": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string" + } + } + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaTester" + } + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaPublicLinkUsagesV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "viewCount": { + "type": "integer" + }, + "acceptedCount": { + "type": "integer" + }, + "didNotAcceptCount": { + "type": "integer" + }, + "didNotMeetCriteriaCount": { + "type": "integer" + }, + "notRelevantRatio": { + "type": "number" + }, + "notClearRatio": { + "type": "number" + }, + "notInterestingRatio": { + "type": "number" + } + } + } + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterUsagesV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "crashCount": { + "type": "integer" + }, + "sessionCount": { + "type": "integer" + }, + "feedbackCount": { + "type": "integer" + } + } + } + } + } + }, + "dimensions": { + "type": "object", + "properties": { + "apps": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string" + } + } + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaBuildUsagesV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "crashCount": { + "type": "integer" + }, + "installCount": { + "type": "integer" + }, + "sessionCount": { + "type": "integer" + }, + "feedbackCount": { + "type": "integer" + }, + "inviteCount": { + "type": "integer" + } + } + } + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingAppRequestsV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "averageSecondsInQueue": { + "type": "number" + }, + "p50SecondsInQueue": { + "type": "number" + }, + "p95SecondsInQueue": { + "type": "number" + } + } + } + } + } + }, + "dimensions": { + "type": "object", + "properties": { + "result": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string", + "enum": [ + "MATCHED", + "CANCELED", + "EXPIRED" + ] + } + } + } + } + }, + "granularity": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingQueueSizesV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "averageNumberOfRequests": { + "type": "number" + }, + "p50NumberOfRequests": { + "type": "number" + }, + "p95NumberOfRequests": { + "type": "number" + } + } + } + } + } + }, + "granularity": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingQueueRequestsV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "averageSecondsInQueue": { + "type": "number" + }, + "p50SecondsInQueue": { + "type": "number" + }, + "p95SecondsInQueue": { + "type": "number" + } + } + } + } + } + }, + "dimensions": { + "type": "object", + "properties": { + "result": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string", + "enum": [ + "MATCHED", + "CANCELED", + "EXPIRED" + ] + } + } + }, + "gameCenterDetail": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string" + } + } + } + } + }, + "granularity": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingSessionsV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "averagePlayerCount": { + "type": "number" + }, + "p50PlayerCount": { + "type": "number" + }, + "p95PlayerCount": { + "type": "number" + } + } + } + } + } + }, + "granularity": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingBooleanRuleResultsV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "count": { + "type": "integer" + } + } + } + } + } + }, + "dimensions": { + "type": "object", + "properties": { + "result": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string" + } + } + }, + "gameCenterMatchmakingQueue": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string" + } + } + } + } + }, + "granularity": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingNumberRuleResultsV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "averageResult": { + "type": "number" + }, + "p50Result": { + "type": "number" + }, + "p95Result": { + "type": "number" + } + } + } + } + } + }, + "dimensions": { + "type": "object", + "properties": { + "gameCenterMatchmakingQueue": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string" + } + } + } + } + }, + "granularity": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterMatchmakingRuleErrorsV1MetricResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dataPoints": { + "type": "array", + "items": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "values": { + "type": "object", + "properties": { + "count": { + "type": "integer" + } + } + } + } + } + }, + "dimensions": { + "type": "object", + "properties": { + "gameCenterMatchmakingQueue": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "groupBy": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "string" + } + } + } + } + }, + "granularity": { + "type": "string", + "enum": [ + "P1D", + "PT1H", + "PT15M" + ] + } + } + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ErrorResponse": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "status": { + "type": "string" + }, + "code": { + "type": "string" + }, + "title": { + "type": "string" + }, + "detail": { + "type": "string" + }, + "source": { + "oneOf": [ + { + "$ref": "#/components/schemas/ErrorSourcePointer" + }, + { + "$ref": "#/components/schemas/ErrorSourceParameter" + } + ] + }, + "links": { + "$ref": "#/components/schemas/ErrorLinks" + }, + "meta": { + "type": "object", + "additionalProperties": {} + } + }, + "required": [ + "code", + "detail", + "status", + "title" + ] + } + } + } + }, + "ErrorSourceParameter": { + "type": "object", + "title": "Parameter", + "properties": { + "parameter": { + "type": "string" + } + }, + "required": [ + "parameter" + ] + }, + "ErrorSourcePointer": { + "type": "object", + "title": "JsonPointer", + "properties": { + "pointer": { + "type": "string" + } + }, + "required": [ + "pointer" + ] + }, + "ErrorLinks": { + "type": "object", + "properties": { + "about": { + "type": "string", + "format": "uri-reference" + }, + "associated": { + "oneOf": [ + { + "type": "string", + "format": "uri-reference" + }, + { + "type": "object", + "properties": { + "href": { + "type": "string", + "format": "uri-reference" + }, + "meta": { + "type": "object", + "properties": { + "source": { + "type": "string" + } + } + } + } + } + ] + } + } + }, + "PagedDocumentLinks": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "first": { + "type": "string", + "format": "uri-reference" + }, + "next": { + "type": "string", + "format": "uri-reference" + } + }, + "required": [ + "self" + ] + }, + "PagingInformation": { + "type": "object", + "properties": { + "paging": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "limit": { + "type": "integer" + }, + "nextCursor": { + "type": "string" + } + }, + "required": [ + "limit" + ] + } + }, + "required": [ + "paging" + ] + }, + "DocumentLinks": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + } + }, + "required": [ + "self" + ] + }, + "ResourceLinks": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + } + } + }, + "RelationshipLinks": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "AppAssetLibraryAssetCategory": { + "type": "string", + "enum": [ + "CREATIVE_ASSETS", + "APP_SCREENSHOTS_AND_PREVIEWS" + ] + }, + "AppAssetLibraryAssetState": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "UPLOAD_COMPLETE", + "FAILED", + "COMPLETE", + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "ARCHIVED" + ] + }, + "AppAssetLibraryDisplayClass": { + "type": "string", + "enum": [ + "DEFAULT", + "WATCH_ULTRA", + "WATCH_SERIES_10", + "WATCH_SERIES_7", + "WATCH_SERIES_4", + "WATCH_SERIES_3", + "IPHONE_DUO", + "IPHONE_DYNAMIC_ISLAND_LARGE_DISPLAY", + "IPHONE_DYNAMIC_ISLAND_MEDIUM_DISPLAY", + "IPHONE_FACE_ID_LARGE_DISPLAY", + "IPHONE_FACE_ID_MEDIUM_DISPLAY", + "IPHONE_HOME_BUTTON_LARGE_DISPLAY", + "IPHONE_HOME_BUTTON_MEDIUM_DISPLAY", + "IPHONE_HOME_BUTTON_40_DISPLAY", + "IPHONE_HOME_BUTTON_35_DISPLAY", + "IPAD_13_DISPLAY", + "IPAD_11_DISPLAY", + "IPAD_129_DISPLAY", + "IPAD_105_DISPLAY", + "IPAD_97_DISPLAY" + ] + }, + "AppAssetLibraryFeature": { + "type": "string", + "enum": [ + "APP_STORE_VERSIONS", + "CUSTOM_PRODUCT_PAGES", + "PRODUCT_PAGE_OPTIMIZATIONS", + "IN_APP_EVENTS", + "IN_APP_PURCHASES", + "SUBSCRIPTIONS", + "RETENTION_MESSAGING", + "GAME_CENTER", + "APP_CLIPS", + "APPLE_ADS" + ] + }, + "AppAssetLibraryMediaType": { + "type": "string", + "enum": [ + "IMAGE", + "VIDEO" + ] + }, + "AppAssetLibraryPlacementPlatform": { + "type": "string", + "enum": [ + "IPHONE_APP_STORE", + "IPAD_APP_STORE", + "WATCH_APP_STORE", + "IMESSAGE_APP_STORE", + "VISION_PRO_APP_STORE", + "MAC_APP_STORE", + "TV_APP_STORE", + "ANY" + ] + }, + "AppAssetLibraryPlacementState": { + "type": "string", + "enum": [ + "ASSET_PROCESSING", + "FAILED", + "PARENT_PREPARE_FOR_SUBMISSION", + "PARENT_READY_FOR_REVIEW", + "PARENT_WAITING_FOR_REVIEW", + "PARENT_IN_REVIEW", + "PARENT_APPROVED" + ] + }, + "AppAssetLibraryPlacementType": { + "type": "string", + "enum": [ + "APP_SCREENSHOT", + "IMESSAGE_APP_SCREENSHOT", + "APP_PREVIEW", + "PRODUCT_PAGE_HEADER_ASSET", + "APP_STORE_SEARCH_RESULTS_ASSET", + "SEARCH_RESULTS_ADS_ASSET", + "TODAY_TAB_ADS_ASSET", + "EVENT_CARD_ASSET", + "EVENT_DETAILS_PAGE_ASSET", + "RETENTION_MESSAGE_ASSET" + ] + }, + "AppClipAction": { + "type": "string", + "enum": [ + "OPEN", + "VIEW", + "PLAY" + ] + }, + "AppClipAdvancedExperienceLanguage": { + "type": "string", + "enum": [ + "AR", + "CA", + "CS", + "DA", + "DE", + "EL", + "EN", + "ES", + "FI", + "FR", + "HE", + "HI", + "HR", + "HU", + "ID", + "IT", + "JA", + "KO", + "MS", + "NL", + "NO", + "PL", + "PT", + "RO", + "RU", + "SK", + "SV", + "TH", + "TR", + "UK", + "VI", + "ZH" + ] + }, + "AppEncryptionDeclarationState": { + "type": "string", + "enum": [ + "CREATED", + "IN_REVIEW", + "APPROVED", + "REJECTED", + "INVALID", + "EXPIRED" + ] + }, + "AppEventAssetType": { + "type": "string", + "enum": [ + "EVENT_CARD", + "EVENT_DETAILS_PAGE" + ] + }, + "AppMediaAssetState": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppMediaStateError" + } + }, + "warnings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppMediaStateError" + } + }, + "state": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "UPLOAD_COMPLETE", + "COMPLETE", + "FAILED" + ] + } + } + }, + "AppMediaPreviewFrameImageState": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppMediaStateError" + } + }, + "warnings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppMediaStateError" + } + }, + "state": { + "type": "string", + "enum": [ + "PROCESSING", + "COMPLETE", + "FAILED" + ] + } + } + }, + "AppMediaStateError": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "AppMediaVideoState": { + "type": "object", + "properties": { + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppMediaStateError" + } + }, + "warnings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppMediaStateError" + } + }, + "state": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "UPLOAD_COMPLETE", + "PROCESSING", + "COMPLETE", + "FAILED" + ] + } + } + }, + "AppStoreAgeRating": { + "type": "string", + "enum": [ + "L", + "ALL", + "ZERO_ZERO", + "ONE_PLUS", + "TWO_PLUS", + "THREE_PLUS", + "FOUR_PLUS", + "FIVE_PLUS", + "SIX_PLUS", + "SEVEN_PLUS", + "EIGHT_PLUS", + "NINE_PLUS", + "TEN_PLUS", + "ELEVEN_PLUS", + "TWELVE_PLUS", + "THIRTEEN_PLUS", + "FOURTEEN_PLUS", + "FIFTEEN_PLUS", + "SIXTEEN_PLUS", + "SEVENTEEN_PLUS", + "EIGHTEEN_PLUS", + "NINETEEN_PLUS", + "TWENTY_PLUS", + "TWENTY_ONE_PLUS", + "UNRATED" + ] + }, + "AppStoreVersionState": { + "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", + "NOT_APPLICABLE" + ] + }, + "AppVersionState": { + "type": "string", + "enum": [ + "ACCEPTED", + "DEVELOPER_REJECTED", + "IN_REVIEW", + "INVALID_BINARY", + "METADATA_REJECTED", + "PENDING_APPLE_RELEASE", + "PENDING_DEVELOPER_RELEASE", + "PREPARE_FOR_SUBMISSION", + "PROCESSING_FOR_DISTRIBUTION", + "READY_FOR_DISTRIBUTION", + "READY_FOR_REVIEW", + "REJECTED", + "REPLACED_WITH_NEW_VERSION", + "WAITING_FOR_EXPORT_COMPLIANCE", + "WAITING_FOR_REVIEW" + ] + }, + "BackgroundAssetVersionAppStoreReleaseState": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "REJECTED", + "PROCESSING_FOR_DISTRIBUTION", + "READY_FOR_DISTRIBUTION", + "SUPERSEDED" + ] + }, + "BackgroundAssetVersionExternalBetaReleaseState": { + "type": "string", + "enum": [ + "READY_FOR_BETA_SUBMISSION", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "PROCESSING_FOR_TESTING", + "READY_FOR_TESTING", + "SUPERSEDED" + ] + }, + "BackgroundAssetVersionState": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "PROCESSING", + "FAILED", + "COMPLETE" + ] + }, + "BetaFeedbackScreenshotImage": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "expirationDate": { + "type": "string", + "format": "date-time" + } + } + }, + "BetaInviteType": { + "type": "string", + "enum": [ + "EMAIL", + "PUBLIC_LINK" + ] + }, + "BetaReviewState": { + "type": "string", + "enum": [ + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "APPROVED" + ] + }, + "BetaTesterState": { + "type": "string", + "enum": [ + "NOT_INVITED", + "INVITED", + "ACCEPTED", + "INSTALLED", + "REVOKED" + ] + }, + "BrazilAgeRating": { + "type": "string", + "enum": [ + "L", + "TEN", + "TWELVE", + "FOURTEEN", + "SIXTEEN", + "EIGHTEEN" + ] + }, + "BuildAudienceType": { + "type": "string", + "enum": [ + "INTERNAL_ONLY", + "APP_STORE_ELIGIBLE" + ] + }, + "BuildBundleType": { + "type": "string", + "enum": [ + "APP", + "APP_CLIP", + "WATCH_APP" + ] + }, + "BuildUploadState": { + "type": "string", + "enum": [ + "AWAITING_UPLOAD", + "PROCESSING", + "FAILED", + "COMPLETE" + ] + }, + "BundleIdPlatform": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "UNIVERSAL" + ] + }, + "CapabilityOption": { + "type": "object", + "properties": { + "key": { + "type": "string", + "enum": [ + "XCODE_5", + "XCODE_6", + "COMPLETE_PROTECTION", + "PROTECTED_UNLESS_OPEN", + "PROTECTED_UNTIL_FIRST_USER_AUTH", + "PRIMARY_APP_CONSENT" + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "enabledByDefault": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "supportsWildcard": { + "type": "boolean" + } + } + }, + "CapabilitySetting": { + "type": "object", + "properties": { + "key": { + "type": "string", + "enum": [ + "ICLOUD_VERSION", + "DATA_PROTECTION_PERMISSION_LEVEL", + "APPLE_ID_AUTH_APP_CONSENT" + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "enabledByDefault": { + "type": "boolean" + }, + "visible": { + "type": "boolean" + }, + "allowedInstances": { + "type": "string", + "enum": [ + "ENTRY", + "SINGLE", + "MULTIPLE" + ] + }, + "minInstances": { + "type": "integer" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CapabilityOption" + } + } + } + }, + "CapabilityType": { + "type": "string", + "enum": [ + "ICLOUD", + "IN_APP_PURCHASE", + "GAME_CENTER", + "PUSH_NOTIFICATIONS", + "WALLET", + "INTER_APP_AUDIO", + "MAPS", + "ASSOCIATED_DOMAINS", + "PERSONAL_VPN", + "APP_GROUPS", + "HEALTHKIT", + "HOMEKIT", + "WIRELESS_ACCESSORY_CONFIGURATION", + "APPLE_PAY", + "DATA_PROTECTION", + "SIRIKIT", + "NETWORK_EXTENSIONS", + "MULTIPATH", + "HOT_SPOT", + "NFC_TAG_READING", + "CLASSKIT", + "AUTOFILL_CREDENTIAL_PROVIDER", + "ACCESS_WIFI_INFORMATION", + "NETWORK_CUSTOM_PROTOCOL", + "COREMEDIA_HLS_LOW_LATENCY", + "SYSTEM_EXTENSION_INSTALL", + "USER_MANAGEMENT", + "APPLE_ID_AUTH" + ] + }, + "CertificateType": { + "type": "string", + "enum": [ + "APPLE_PAY", + "APPLE_PAY_MERCHANT_IDENTITY", + "APPLE_PAY_PSP_IDENTITY", + "APPLE_PAY_RSA", + "DEVELOPER_ID_KEXT", + "DEVELOPER_ID_KEXT_G2", + "DEVELOPER_ID_APPLICATION", + "DEVELOPER_ID_APPLICATION_G2", + "DEVELOPMENT", + "DISTRIBUTION", + "IDENTITY_ACCESS", + "IOS_DEVELOPMENT", + "IOS_DISTRIBUTION", + "MAC_APP_DISTRIBUTION", + "MAC_INSTALLER_DISTRIBUTION", + "MAC_APP_DEVELOPMENT", + "PASS_TYPE_ID", + "PASS_TYPE_ID_WITH_NFC" + ] + }, + "ChecksumAlgorithm": { + "type": "string", + "enum": [ + "MD5", + "SHA_256" + ] + }, + "Checksums": { + "type": "object", + "properties": { + "file": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "algorithm": { + "$ref": "#/components/schemas/ChecksumAlgorithm" + } + } + }, + "composite": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "algorithm": { + "type": "string", + "enum": [ + "MD5" + ] + } + } + } + } + }, + "CiAction": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "actionType": { + "$ref": "#/components/schemas/CiActionType" + }, + "destination": { + "type": "string", + "enum": [ + "ANY_IOS_DEVICE", + "ANY_IOS_SIMULATOR", + "ANY_TVOS_DEVICE", + "ANY_TVOS_SIMULATOR", + "ANY_WATCHOS_DEVICE", + "ANY_WATCHOS_SIMULATOR", + "ANY_MAC", + "ANY_MAC_CATALYST", + "ANY_VISIONOS_DEVICE", + "ANY_VISIONOS_SIMULATOR" + ] + }, + "buildDistributionAudience": { + "$ref": "#/components/schemas/BuildAudienceType" + }, + "testConfiguration": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "USE_SCHEME_SETTINGS", + "SPECIFIC_TEST_PLANS" + ] + }, + "testPlanName": { + "type": "string" + }, + "testDestinations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiTestDestination" + } + } + } + }, + "scheme": { + "type": "string" + }, + "platform": { + "type": "string", + "enum": [ + "MACOS", + "IOS", + "TVOS", + "WATCHOS", + "VISIONOS" + ] + }, + "isRequiredToPass": { + "type": "boolean" + } + } + }, + "CiActionType": { + "type": "string", + "enum": [ + "BUILD", + "ANALYZE", + "TEST", + "ARCHIVE" + ] + }, + "CiBranchPatterns": { + "type": "object", + "properties": { + "isAllMatch": { + "type": "boolean" + }, + "patterns": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pattern": { + "type": "string" + }, + "isPrefix": { + "type": "boolean" + } + } + } + } + } + }, + "CiBranchStartCondition": { + "type": "object", + "properties": { + "source": { + "$ref": "#/components/schemas/CiBranchPatterns" + }, + "filesAndFoldersRule": { + "$ref": "#/components/schemas/CiFilesAndFoldersRule" + }, + "autoCancel": { + "type": "boolean" + } + } + }, + "CiCompletionStatus": { + "type": "string", + "enum": [ + "SUCCEEDED", + "FAILED", + "ERRORED", + "CANCELED", + "SKIPPED" + ] + }, + "CiExecutionProgress": { + "type": "string", + "enum": [ + "PENDING", + "RUNNING", + "COMPLETE" + ] + }, + "CiFilesAndFoldersRule": { + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": [ + "START_IF_ANY_FILE_MATCHES", + "DO_NOT_START_IF_ALL_FILES_MATCH" + ] + }, + "matchers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiStartConditionFileMatcher" + } + } + } + }, + "CiGitRefKind": { + "type": "string", + "enum": [ + "BRANCH", + "TAG" + ] + }, + "CiGitUser": { + "type": "object", + "properties": { + "displayName": { + "type": "string" + }, + "avatarUrl": { + "type": "string", + "format": "uri" + } + } + }, + "CiIssueCounts": { + "type": "object", + "properties": { + "analyzerWarnings": { + "type": "integer" + }, + "errors": { + "type": "integer" + }, + "testFailures": { + "type": "integer" + }, + "warnings": { + "type": "integer" + } + } + }, + "CiManualBranchStartCondition": { + "type": "object", + "properties": { + "source": { + "$ref": "#/components/schemas/CiBranchPatterns" + } + } + }, + "CiManualPullRequestStartCondition": { + "type": "object", + "properties": { + "source": { + "$ref": "#/components/schemas/CiBranchPatterns" + }, + "destination": { + "$ref": "#/components/schemas/CiBranchPatterns" + } + } + }, + "CiManualTagStartCondition": { + "type": "object", + "properties": { + "source": { + "$ref": "#/components/schemas/CiTagPatterns" + } + } + }, + "CiPullRequestStartCondition": { + "type": "object", + "properties": { + "source": { + "$ref": "#/components/schemas/CiBranchPatterns" + }, + "destination": { + "$ref": "#/components/schemas/CiBranchPatterns" + }, + "filesAndFoldersRule": { + "$ref": "#/components/schemas/CiFilesAndFoldersRule" + }, + "autoCancel": { + "type": "boolean" + } + } + }, + "CiScheduledStartCondition": { + "type": "object", + "properties": { + "source": { + "$ref": "#/components/schemas/CiBranchPatterns" + }, + "schedule": { + "type": "object", + "properties": { + "frequency": { + "type": "string", + "enum": [ + "WEEKLY", + "DAILY", + "HOURLY" + ] + }, + "days": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "SUNDAY", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY" + ] + } + }, + "hour": { + "type": "integer" + }, + "minute": { + "type": "integer" + }, + "timezone": { + "type": "string" + } + } + } + } + }, + "CiStartConditionFileMatcher": { + "type": "object", + "properties": { + "directory": { + "type": "string" + }, + "fileExtension": { + "type": "string" + }, + "fileName": { + "type": "string" + } + } + }, + "CiTagPatterns": { + "type": "object", + "properties": { + "isAllMatch": { + "type": "boolean" + }, + "patterns": { + "type": "array", + "items": { + "type": "object", + "properties": { + "pattern": { + "type": "string" + }, + "isPrefix": { + "type": "boolean" + } + } + } + } + } + }, + "CiTagStartCondition": { + "type": "object", + "properties": { + "source": { + "$ref": "#/components/schemas/CiTagPatterns" + }, + "filesAndFoldersRule": { + "$ref": "#/components/schemas/CiFilesAndFoldersRule" + }, + "autoCancel": { + "type": "boolean" + } + } + }, + "CiTestDestination": { + "type": "object", + "properties": { + "deviceTypeName": { + "type": "string" + }, + "deviceTypeIdentifier": { + "type": "string" + }, + "runtimeName": { + "type": "string" + }, + "runtimeIdentifier": { + "type": "string" + }, + "kind": { + "$ref": "#/components/schemas/CiTestDestinationKind" + } + } + }, + "CiTestDestinationKind": { + "type": "string", + "enum": [ + "SIMULATOR", + "MAC" + ] + }, + "CiTestStatus": { + "type": "string", + "enum": [ + "SUCCESS", + "FAILURE", + "MIXED", + "SKIPPED", + "EXPECTED_FAILURE" + ] + }, + "DeliveryFileUploadOperation": { + "type": "object", + "properties": { + "method": { + "type": "string" + }, + "url": { + "type": "string" + }, + "length": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "offset": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 0 + }, + "requestHeaders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HttpHeader" + } + }, + "expiration": { + "type": "string", + "format": "date-time" + }, + "partNumber": { + "type": "integer", + "format": "int64", + "maximum": 9007199254740991, + "minimum": 1 + }, + "entityTag": { + "type": "string" + } + } + }, + "DeviceConnectionType": { + "type": "string", + "enum": [ + "WIFI", + "MOBILE_DATA", + "WIRE", + "UNKNOWN", + "NONE" + ] + }, + "DeviceFamily": { + "type": "string", + "enum": [ + "IPHONE", + "IPAD", + "APPLE_TV", + "APPLE_WATCH", + "MAC", + "VISION" + ] + }, + "DeviceFamilyOsVersionFilter": { + "type": "object", + "properties": { + "deviceFamily": { + "$ref": "#/components/schemas/DeviceFamily" + }, + "minimumOsInclusive": { + "type": "string" + }, + "maximumOsInclusive": { + "type": "string" + } + } + }, + "DiagnosticInsight": { + "type": "object", + "properties": { + "insightType": { + "$ref": "#/components/schemas/DiagnosticInsightType" + }, + "direction": { + "$ref": "#/components/schemas/DiagnosticInsightDirection" + }, + "referenceVersions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "value": { + "type": "number" + } + } + } + } + } + }, + "DiagnosticInsightDirection": { + "type": "string", + "enum": [ + "UP", + "DOWN", + "UNDEFINED" + ] + }, + "DiagnosticInsightType": { + "type": "string", + "enum": [ + "TREND" + ] + }, + "DiagnosticLogCallStackNode": { + "type": "object", + "properties": { + "sampleCount": { + "type": "integer" + }, + "isBlameFrame": { + "type": "boolean" + }, + "symbolName": { + "type": "string" + }, + "insightsCategory": { + "type": "string" + }, + "offsetIntoSymbol": { + "type": "string" + }, + "binaryName": { + "type": "string" + }, + "fileName": { + "type": "string" + }, + "binaryUUID": { + "type": "string" + }, + "lineNumber": { + "type": "string" + }, + "address": { + "type": "string" + }, + "offsetIntoBinaryTextSegment": { + "type": "string" + }, + "rawFrame": { + "type": "string" + }, + "subFrames": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DiagnosticLogCallStackNode" + } + } + } + }, + "ExternalBetaState": { + "type": "string", + "enum": [ + "PROCESSING", + "PROCESSING_EXCEPTION", + "MISSING_EXPORT_COMPLIANCE", + "READY_FOR_BETA_TESTING", + "IN_BETA_TESTING", + "EXPIRED", + "READY_FOR_BETA_SUBMISSION", + "IN_EXPORT_COMPLIANCE_REVIEW", + "WAITING_FOR_BETA_REVIEW", + "IN_BETA_REVIEW", + "BETA_REJECTED", + "BETA_APPROVED", + "NOT_APPLICABLE" + ] + }, + "FileLocation": { + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "lineNumber": { + "type": "integer" + } + } + }, + "GameCenterLeaderboardFormatter": { + "type": "string", + "enum": [ + "INTEGER", + "DECIMAL_POINT_1_PLACE", + "DECIMAL_POINT_2_PLACE", + "DECIMAL_POINT_3_PLACE", + "ELAPSED_TIME_CENTISECOND", + "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" + ] + }, + "GameCenterMatchmakingTeamAssignment": { + "type": "object", + "properties": { + "playerId": { + "type": "string" + }, + "team": { + "type": "string" + } + } + }, + "GameCenterVersionState": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "DEVELOPER_REJECTED", + "REJECTED", + "ACCEPTED", + "PENDING_RELEASE", + "LIVE", + "REPLACED_WITH_NEW_VERSION" + ] + }, + "HttpHeader": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "IconAssetType": { + "type": "string", + "enum": [ + "APP_STORE", + "MESSAGES_APP_STORE", + "WATCH_APP_STORE", + "TV_OS_HOME_SCREEN", + "TV_OS_TOP_SHELF", + "ALTERNATE_EXPERIMENT" + ] + }, + "ImageAsset": { + "type": "object", + "properties": { + "templateUrl": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + } + } + }, + "InAppPurchaseState": { + "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" + ] + }, + "InAppPurchaseType": { + "type": "string", + "enum": [ + "CONSUMABLE", + "NON_CONSUMABLE", + "NON_RENEWING_SUBSCRIPTION" + ] + }, + "IntegerRange": { + "type": "object", + "properties": { + "minimum": { + "type": "integer" + }, + "maximum": { + "type": "integer" + } + } + }, + "InternalBetaState": { + "type": "string", + "enum": [ + "PROCESSING", + "PROCESSING_EXCEPTION", + "MISSING_EXPORT_COMPLIANCE", + "READY_FOR_BETA_TESTING", + "IN_BETA_TESTING", + "EXPIRED", + "IN_EXPORT_COMPLIANCE_REVIEW" + ] + }, + "KidsAgeBand": { + "type": "string", + "enum": [ + "FIVE_AND_UNDER", + "SIX_TO_EIGHT", + "NINE_TO_ELEVEN" + ] + }, + "Location": { + "type": "object", + "properties": { + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + } + } + }, + "MetricCategory": { + "type": "string", + "enum": [ + "HANG", + "LAUNCH", + "MEMORY", + "DISK", + "BATTERY", + "TERMINATION", + "ANIMATION", + "STORAGE" + ] + }, + "MetricsInsight": { + "type": "object", + "properties": { + "metricCategory": { + "$ref": "#/components/schemas/MetricCategory" + }, + "latestVersion": { + "type": "string" + }, + "metric": { + "type": "string" + }, + "summaryString": { + "type": "string" + }, + "referenceVersions": { + "type": "string" + }, + "maxLatestVersionValue": { + "type": "number" + }, + "subSystemLabel": { + "type": "string" + }, + "highImpact": { + "type": "boolean" + }, + "populations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deltaPercentage": { + "type": "number" + }, + "percentile": { + "type": "string" + }, + "summaryString": { + "type": "string" + }, + "referenceAverageValue": { + "type": "number" + }, + "latestVersionValue": { + "type": "number" + }, + "device": { + "type": "string" + } + } + } + } + } + }, + "OfferCodeEnvironment": { + "type": "string", + "enum": [ + "PRODUCTION", + "SANDBOX" + ] + }, + "PerformanceSignature": { + "type": "object", + "properties": { + "signatureId": { + "type": "string" + }, + "signature": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "weight": { + "type": "number" + }, + "sourceFile": { + "type": "string" + }, + "lineNumber": { + "type": "integer" + }, + "trendInfo": { + "$ref": "#/components/schemas/DiagnosticInsightDirection" + }, + "metricsSummary": { + "type": "object", + "properties": { + "referenceVersions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "value": { + "type": "number" + } + } + } + } + } + } + } + }, + "PhasedReleaseState": { + "type": "string", + "enum": [ + "INACTIVE", + "ACTIVE", + "PAUSED", + "COMPLETE" + ] + }, + "Platform": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS", + "VISION_OS" + ] + }, + "PreviewFrameImage": { + "type": "object", + "properties": { + "image": { + "$ref": "#/components/schemas/ImageAsset" + }, + "state": { + "$ref": "#/components/schemas/AppMediaPreviewFrameImageState" + } + } + }, + "PreviewType": { + "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", + "APPLE_VISION_PRO" + ] + }, + "Property": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "ScmProviderType": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "BITBUCKET_CLOUD", + "BITBUCKET_SERVER", + "GITHUB_CLOUD", + "GITHUB_ENTERPRISE", + "GITLAB_CLOUD", + "GITLAB_SELF_MANAGED" + ] + }, + "displayName": { + "type": "string" + }, + "isOnPremise": { + "type": "boolean" + } + } + }, + "ScreenshotDisplayType": { + "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_10", + "APP_WATCH_SERIES_7", + "APP_WATCH_SERIES_4", + "APP_WATCH_SERIES_3", + "APP_APPLE_TV", + "APP_APPLE_VISION_PRO", + "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" + ] + }, + "StateDetail": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "StringToStringMap": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "SubscriptionCustomerEligibility": { + "type": "string", + "enum": [ + "NEW", + "EXISTING", + "EXPIRED" + ] + }, + "SubscriptionGracePeriodDuration": { + "type": "string", + "enum": [ + "THREE_DAYS", + "SIXTEEN_DAYS", + "TWENTY_EIGHT_DAYS" + ] + }, + "SubscriptionOfferDuration": { + "type": "string", + "enum": [ + "THREE_DAYS", + "ONE_WEEK", + "TWO_WEEKS", + "ONE_MONTH", + "TWO_MONTHS", + "THREE_MONTHS", + "SIX_MONTHS", + "ONE_YEAR" + ] + }, + "SubscriptionOfferEligibility": { + "type": "string", + "enum": [ + "STACK_WITH_INTRO_OFFERS", + "REPLACE_INTRO_OFFERS" + ] + }, + "SubscriptionOfferMode": { + "type": "string", + "enum": [ + "PAY_AS_YOU_GO", + "PAY_UP_FRONT", + "FREE_TRIAL" + ] + }, + "SubscriptionPlanType": { + "type": "string", + "enum": [ + "MONTHLY", + "UPFRONT" + ] + }, + "SubscriptionStatusUrlVersion": { + "type": "string", + "enum": [ + "V1", + "V2" + ] + }, + "TerritoryCode": { + "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", + "XKS", + "YEM", + "ZAF", + "ZMB", + "ZWE" + ] + }, + "UploadOperation": { + "type": "object", + "properties": { + "method": { + "type": "string" + }, + "url": { + "type": "string" + }, + "length": { + "type": "integer" + }, + "offset": { + "type": "integer" + }, + "requestHeaders": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HttpHeader" + } + } + } + }, + "UserRole": { + "type": "string", + "enum": [ + "ADMIN", + "FINANCE", + "ACCOUNT_HOLDER", + "SALES", + "MARKETING", + "APP_MANAGER", + "DEVELOPER", + "ACCESS_TO_REPORTS", + "CUSTOMER_SUPPORT", + "CREATE_APPS", + "CLOUD_MANAGED_DEVELOPER_ID", + "CLOUD_MANAGED_APP_DISTRIBUTION", + "GENERATE_INDIVIDUAL_KEYS" + ] + }, + "WebhookEventType": { + "type": "string", + "enum": [ + "ALTERNATIVE_DISTRIBUTION_PACKAGE_AVAILABLE_UPDATED", + "ALTERNATIVE_DISTRIBUTION_PACKAGE_VERSION_CREATED", + "ALTERNATIVE_DISTRIBUTION_TERRITORY_AVAILABILITY_UPDATED", + "APP_STORE_VERSION_APP_VERSION_STATE_UPDATED", + "BACKGROUND_ASSET_VERSION_APP_STORE_RELEASE_STATE_UPDATED", + "BACKGROUND_ASSET_VERSION_EXTERNAL_BETA_RELEASE_STATE_UPDATED", + "BACKGROUND_ASSET_VERSION_INTERNAL_BETA_RELEASE_CREATED", + "BACKGROUND_ASSET_VERSION_STATE_UPDATED", + "BETA_FEEDBACK_CRASH_SUBMISSION_CREATED", + "BETA_FEEDBACK_SCREENSHOT_SUBMISSION_CREATED", + "BUILD_BETA_DETAIL_EXTERNAL_BUILD_STATE_UPDATED", + "BUILD_UPLOAD_STATE_UPDATED" + ] + }, + "csv": { + "type": "string" + }, + "diagnosticLogs": { + "type": "object", + "properties": { + "productData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "signatureId": { + "type": "string" + }, + "diagnosticInsights": { + "type": "array", + "items": { + "type": "object", + "properties": { + "insightsURL": { + "type": "string" + }, + "insightsCategory": { + "type": "string" + }, + "insightsString": { + "type": "string" + } + } + } + }, + "diagnosticLogs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "callStackTree": { + "type": "array", + "items": { + "type": "object", + "properties": { + "callStackPerThread": { + "type": "boolean" + }, + "callStacks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "callStackRootFrames": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DiagnosticLogCallStackNode" + } + } + } + } + } + } + } + }, + "diagnosticMetaData": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "event": { + "type": "string" + }, + "osVersion": { + "type": "string" + }, + "appVersion": { + "type": "string" + }, + "writesCaused": { + "type": "string" + }, + "deviceType": { + "type": "string" + }, + "platformArchitecture": { + "type": "string" + }, + "eventDetail": { + "type": "string" + }, + "buildVersion": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "version": { + "type": "string" + } + } + }, + "gzip": { + "type": "string", + "format": "binary" + }, + "xcodeMetrics": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "insights": { + "type": "object", + "properties": { + "trendingUp": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MetricsInsight" + } + }, + "regressions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MetricsInsight" + } + } + } + }, + "productData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "platform": { + "type": "string" + }, + "metricCategories": { + "type": "array", + "items": { + "type": "object", + "properties": { + "identifier": { + "$ref": "#/components/schemas/MetricCategory" + }, + "metrics": { + "type": "array", + "items": { + "type": "object", + "properties": { + "identifier": { + "type": "string" + }, + "goalKeys": { + "type": "array", + "items": { + "type": "object", + "properties": { + "goalKey": { + "type": "string" + }, + "lowerBound": { + "type": "integer" + }, + "upperBound": { + "type": "integer" + } + } + } + }, + "unit": { + "type": "object", + "properties": { + "identifier": { + "type": "string" + }, + "displayName": { + "type": "string" + } + } + }, + "datasets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "filterCriteria": { + "type": "object", + "properties": { + "percentile": { + "type": "string" + }, + "device": { + "type": "string" + }, + "deviceMarketingName": { + "type": "string" + } + } + }, + "points": { + "type": "array", + "items": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "value": { + "type": "number" + }, + "errorMargin": { + "type": "number" + }, + "percentageBreakdown": { + "type": "object", + "properties": { + "value": { + "type": "number" + }, + "subSystemLabel": { + "type": "string" + } + } + }, + "goal": { + "type": "string" + } + } + } + }, + "recommendedMetricGoal": { + "type": "object", + "properties": { + "value": { + "type": "number" + }, + "detail": { + "type": "string" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + }, + "xcodeOverview": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "appMetadata": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "appId": { + "type": "string" + }, + "latestVersion": { + "type": "string" + }, + "platform": { + "type": "string" + } + } + }, + "insights": { + "type": "object", + "properties": { + "regressions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MetricsInsight" + } + }, + "trendingUp": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MetricsInsight" + } + } + } + }, + "categories": { + "type": "array", + "items": { + "type": "object", + "properties": { + "identifier": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "sections": { + "type": "array", + "items": { + "type": "object", + "properties": { + "identifier": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "relevanceScore": { + "type": "number" + }, + "sortOrder": { + "type": "integer" + }, + "unit": { + "type": "object", + "properties": { + "identifier": { + "type": "string" + }, + "displayName": { + "type": "string" + } + } + }, + "datasets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "filterCriteria": { + "type": "object", + "properties": { + "percentile": { + "type": "string" + }, + "device": { + "type": "string" + }, + "deviceMarketingName": { + "type": "string" + } + } + }, + "points": { + "type": "array", + "items": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "value": { + "type": "number" + }, + "errorMargin": { + "type": "number" + }, + "percentageBreakdown": { + "type": "object", + "properties": { + "value": { + "type": "number" + }, + "subSystemLabel": { + "type": "string" + } + } + } + } + } + }, + "recommendedMetricGoal": { + "type": "object", + "properties": { + "value": { + "type": "number" + }, + "detail": { + "type": "string" + } + } + } + } + } + } + } + } + } + } + } + }, + "signatures": { + "type": "object", + "properties": { + "topHangPoint": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PerformanceSignature" + } + }, + "topLaunchPoint": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PerformanceSignature" + } + }, + "topDiskWritePoint": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PerformanceSignature" + } + } + } + }, + "telemetryIdentifier": { + "type": "string" + } + } + } + }, + "securitySchemes": { + "itc-bearer-token": { + "type": "http", + "scheme": "bearer", + "bearerFormat": "JWT" + } + } + }, + "security": [ + { + "itc-bearer-token": [] + } + ] +} diff --git a/specs/playdeveloperreporting_v1beta1.discovery.json b/specs/playdeveloperreporting_v1beta1.discovery.json new file mode 100644 index 00000000..ebd0bf73 --- /dev/null +++ b/specs/playdeveloperreporting_v1beta1.discovery.json @@ -0,0 +1,2678 @@ +{ + "baseUrl": "https://playdeveloperreporting.googleapis.com/", + "mtlsRootUrl": "https://playdeveloperreporting.mtls.googleapis.com/", + "fullyEncodeReservedExpansion": true, + "basePath": "", + "id": "playdeveloperreporting:v1beta1", + "resources": { + "anomalies": { + "methods": { + "list": { + "path": "v1beta1/{+parent}/anomalies", + "httpMethod": "GET", + "parameters": { + "parent": { + "pattern": "^apps/[^/]+$", + "description": "Required. Parent app for which anomalies were detected. Format: apps/{app}", + "required": true, + "location": "path", + "type": "string" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListErrorReports` must match the call that provided the page token.", + "type": "string", + "location": "query" + }, + "pageSize": { + "location": "query", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 10 anomalies will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "format": "int32", + "type": "integer" + }, + "filter": { + "type": "string", + "description": "Optional. Filtering criteria for anomalies. For basic filter guidance, please check: https://google.aip.dev/160. **Supported functions:** * `activeBetween(startTime, endTime)`: If specified, only list anomalies that were active in between `startTime` (inclusive) and `endTime` (exclusive). Both parameters are expected to conform to an RFC-3339 formatted string (e.g. `2012-04-21T11:30:00-04:00`). UTC offsets are supported. Both `startTime` and `endTime` accept the special value `UNBOUNDED`, to signify intervals with no lower or upper bound, respectively. Examples: * `activeBetween(\"2021-04-21T11:30:00Z\", \"2021-07-21T00:00:00Z\")` * `activeBetween(UNBOUNDED, \"2021-11-21T00:00:00-04:00\")` * `activeBetween(\"2021-07-21T00:00:00-04:00\", UNBOUNDED)`", + "location": "query" + } + }, + "parameterOrder": [ + "parent" + ], + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "id": "playdeveloperreporting.anomalies.list", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse" + }, + "description": "Lists anomalies in any of the datasets.", + "flatPath": "v1beta1/apps/{appsId}/anomalies" + } + } + }, + "vitals": { + "resources": { + "crashrate": { + "methods": { + "get": { + "path": "v1beta1/{+name}", + "flatPath": "v1beta1/apps/{appsId}/crashRateMetricSet", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1CrashRateMetricSet" + }, + "id": "playdeveloperreporting.vitals.crashrate.get", + "httpMethod": "GET", + "parameters": { + "name": { + "required": true, + "location": "path", + "type": "string", + "description": "Required. The resource name. Format: apps/{app}/crashRateMetricSet", + "pattern": "^apps/[^/]+/crashRateMetricSet$" + } + }, + "description": "Describes the properties of the metric set.", + "parameterOrder": [ + "name" + ] + }, + "query": { + "description": "Queries the metrics in the metric set.", + "flatPath": "v1beta1/apps/{appsId}/crashRateMetricSet:query", + "id": "playdeveloperreporting.vitals.crashrate.query", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse" + }, + "httpMethod": "POST", + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/crashRateMetricSet", + "location": "path", + "type": "string", + "pattern": "^apps/[^/]+/crashRateMetricSet$", + "required": true + } + }, + "path": "v1beta1/{+name}:query", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest" + }, + "parameterOrder": [ + "name" + ] + } + } + }, + "slowrenderingrate": { + "methods": { + "get": { + "id": "playdeveloperreporting.vitals.slowrenderingrate.get", + "path": "v1beta1/{+name}", + "httpMethod": "GET", + "parameters": { + "name": { + "location": "path", + "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + "type": "string", + "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", + "required": true + } + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "parameterOrder": [ + "name" + ], + "flatPath": "v1beta1/apps/{appsId}/slowRenderingRateMetricSet", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet" + }, + "description": "Describes the properties of the metric set." + }, + "query": { + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "description": "Queries the metrics in the metric set.", + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest" + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse" + }, + "path": "v1beta1/{+name}:query", + "flatPath": "v1beta1/apps/{appsId}/slowRenderingRateMetricSet:query", + "id": "playdeveloperreporting.vitals.slowrenderingrate.query", + "httpMethod": "POST", + "parameters": { + "name": { + "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", + "type": "string", + "required": true, + "location": "path", + "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet" + } + }, + "parameterOrder": [ + "name" + ] + } + } + }, + "slowstartrate": { + "methods": { + "query": { + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "flatPath": "v1beta1/apps/{appsId}/slowStartRateMetricSet:query", + "path": "v1beta1/{+name}:query", + "description": "Queries the metrics in the metric set.", + "httpMethod": "POST", + "parameters": { + "name": { + "required": true, + "pattern": "^apps/[^/]+/slowStartRateMetricSet$", + "location": "path", + "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", + "type": "string" + } + }, + "id": "playdeveloperreporting.vitals.slowstartrate.query", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse" + }, + "parameterOrder": [ + "name" + ], + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest" + } + }, + "get": { + "path": "v1beta1/{+name}", + "id": "playdeveloperreporting.vitals.slowstartrate.get", + "description": "Describes the properties of the metric set.", + "httpMethod": "GET", + "parameters": { + "name": { + "location": "path", + "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", + "type": "string", + "pattern": "^apps/[^/]+/slowStartRateMetricSet$", + "required": true + } + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "flatPath": "v1beta1/apps/{appsId}/slowStartRateMetricSet", + "parameterOrder": [ + "name" + ] + } + } + }, + "lmkrate": { + "methods": { + "get": { + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1LmkRateMetricSet" + }, + "parameterOrder": [ + "name" + ], + "flatPath": "v1beta1/apps/{appsId}/lmkRateMetricSet", + "path": "v1beta1/{+name}", + "id": "playdeveloperreporting.vitals.lmkrate.get", + "httpMethod": "GET", + "parameters": { + "name": { + "required": true, + "description": "Required. The resource name. Format: apps/{app}/lmkRateMetricSet", + "type": "string", + "pattern": "^apps/[^/]+/lmkRateMetricSet$", + "location": "path" + } + }, + "description": "Describes the properties of the metric set.", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + }, + "query": { + "flatPath": "v1beta1/apps/{appsId}/lmkRateMetricSet:query", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryLmkRateMetricSetResponse" + }, + "parameterOrder": [ + "name" + ], + "httpMethod": "POST", + "parameters": { + "name": { + "type": "string", + "required": true, + "pattern": "^apps/[^/]+/lmkRateMetricSet$", + "location": "path", + "description": "Required. The resource name. Format: apps/{app}/lmkRateMetricSet" + } + }, + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryLmkRateMetricSetRequest" + }, + "id": "playdeveloperreporting.vitals.lmkrate.query", + "path": "v1beta1/{+name}:query", + "description": "Queries the metrics in the metric set." + } + } + }, + "stuckbackgroundwakelockrate": { + "methods": { + "get": { + "id": "playdeveloperreporting.vitals.stuckbackgroundwakelockrate.get", + "description": "Describes the properties of the metric set.", + "httpMethod": "GET", + "parameters": { + "name": { + "required": true, + "type": "string", + "description": "Required. The resource name. Format: apps/{app}/stuckBackgroundWakelockRateMetricSet", + "pattern": "^apps/[^/]+/stuckBackgroundWakelockRateMetricSet$", + "location": "path" + } + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet" + }, + "path": "v1beta1/{+name}", + "flatPath": "v1beta1/apps/{appsId}/stuckBackgroundWakelockRateMetricSet", + "parameterOrder": [ + "name" + ], + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + }, + "query": { + "httpMethod": "POST", + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/stuckBackgroundWakelockRateMetricSet", + "required": true, + "type": "string", + "location": "path", + "pattern": "^apps/[^/]+/stuckBackgroundWakelockRateMetricSet$" + } + }, + "path": "v1beta1/{+name}:query", + "description": "Queries the metrics in the metric set.", + "flatPath": "v1beta1/apps/{appsId}/stuckBackgroundWakelockRateMetricSet:query", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest" + }, + "parameterOrder": [ + "name" + ], + "id": "playdeveloperreporting.vitals.stuckbackgroundwakelockrate.query" + } + } + }, + "excessivewakeuprate": { + "methods": { + "get": { + "parameterOrder": [ + "name" + ], + "id": "playdeveloperreporting.vitals.excessivewakeuprate.get", + "description": "Describes the properties of the metric set.", + "path": "v1beta1/{+name}", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "httpMethod": "GET", + "parameters": { + "name": { + "location": "path", + "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", + "type": "string", + "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + "required": true + } + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet" + }, + "flatPath": "v1beta1/apps/{appsId}/excessiveWakeupRateMetricSet" + }, + "query": { + "flatPath": "v1beta1/apps/{appsId}/excessiveWakeupRateMetricSet:query", + "path": "v1beta1/{+name}:query", + "parameterOrder": [ + "name" + ], + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "id": "playdeveloperreporting.vitals.excessivewakeuprate.query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest" + }, + "description": "Queries the metrics in the metric set.", + "httpMethod": "POST", + "parameters": { + "name": { + "required": true, + "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", + "type": "string", + "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + "location": "path" + } + } + } + } + }, + "anonrssandswapmemoryusage": { + "methods": { + "query": { + "parameterOrder": [ + "name" + ], + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "id": "playdeveloperreporting.vitals.anonrssandswapmemoryusage.query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryAnonRssAndSwapMemoryUsageMetricSetRequest" + }, + "description": "Queries the metrics in the metric set.", + "flatPath": "v1beta1/apps/{appsId}/anonRssAndSwapMemoryUsageMetricSet:query", + "path": "v1beta1/{+name}:query", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryAnonRssAndSwapMemoryUsageMetricSetResponse" + }, + "httpMethod": "POST", + "parameters": { + "name": { + "location": "path", + "type": "string", + "description": "Required. * The resource name. Format: apps/{app}/anonRssAndSwapMemoryUsageMetricSet", + "pattern": "^apps/[^/]+/anonRssAndSwapMemoryUsageMetricSet$", + "required": true + } + } + }, + "get": { + "description": "Describes the properties of the metric set.", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1AnonRssAndSwapMemoryUsageMetricSet" + }, + "flatPath": "v1beta1/apps/{appsId}/anonRssAndSwapMemoryUsageMetricSet", + "id": "playdeveloperreporting.vitals.anonrssandswapmemoryusage.get", + "httpMethod": "GET", + "parameters": { + "name": { + "required": true, + "type": "string", + "description": "Required. * The resource name. Format: apps/{app}/anonRssAndSwapMemoryUsageMetricSet", + "pattern": "^apps/[^/]+/anonRssAndSwapMemoryUsageMetricSet$", + "location": "path" + } + }, + "path": "v1beta1/{+name}", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "parameterOrder": [ + "name" + ] + } + } + }, + "errors": { + "resources": { + "counts": { + "methods": { + "query": { + "parameterOrder": [ + "name" + ], + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "flatPath": "v1beta1/apps/{appsId}/errorCountMetricSet:query", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse" + }, + "httpMethod": "POST", + "parameters": { + "name": { + "pattern": "^apps/[^/]+/errorCountMetricSet$", + "type": "string", + "location": "path", + "description": "Required. The resource name. Format: apps/{app}/errorCountMetricSet", + "required": true + } + }, + "id": "playdeveloperreporting.vitals.errors.counts.query", + "path": "v1beta1/{+name}:query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest" + }, + "description": "Queries the metrics in the metrics set." + }, + "get": { + "description": "Describes the properties of the metrics set.", + "httpMethod": "GET", + "parameters": { + "name": { + "required": true, + "pattern": "^apps/[^/]+/errorCountMetricSet$", + "type": "string", + "description": "Required. Name of the errors metric set. Format: apps/{app}/errorCountMetricSet", + "location": "path" + } + }, + "path": "v1beta1/{+name}", + "flatPath": "v1beta1/apps/{appsId}/errorCountMetricSet", + "id": "playdeveloperreporting.vitals.errors.counts.get", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet" + }, + "parameterOrder": [ + "name" + ], + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + } + } + }, + "issues": { + "methods": { + "search": { + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "path": "v1beta1/{+parent}/errorIssues:search", + "description": "Searches all error issues in which reports have been grouped.", + "parameterOrder": [ + "parent" + ], + "httpMethod": "GET", + "parameters": { + "filter": { + "type": "string", + "description": "Optional. A selection predicate to retrieve only a subset of the issues. Counts in the returned error issues will only reflect occurrences that matched the filter. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error issues that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error issues that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error issues that occurred in the requested devices. Example: `deviceModel = \"google/walleye\" OR deviceModel = \"google/marlin\"`. * `deviceBrand`: Matches error issues that occurred in the requested device brands. Example: `deviceBrand = \"Google\". * `deviceType`: Matches error issues that occurred in the requested device types. Example: `deviceType = \"PHONE\"`. * `errorIssueType`: Matches error issues of the requested types only. Valid candidates: `CRASH`, `ANR`, `NON_FATAL`. Example: `errorIssueType = CRASH OR errorIssueType = ANR`. * `appProcessState`: Matches error issues on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error issues that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR errorIssueType = ANR` is not a valid filter. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`", + "location": "query" + }, + "interval.endTime.utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + "location": "query", + "format": "google-duration", + "type": "string" + }, + "parent": { + "pattern": "^apps/[^/]+$", + "location": "path", + "type": "string", + "description": "Required. Parent resource of the error issues, indicating the application for which they were received. Format: apps/{app}", + "required": true + }, + "interval.startTime.utcOffset": { + "type": "string", + "location": "query", + "format": "google-duration", + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }." + }, + "interval.startTime.hours": { + "location": "query", + "type": "integer", + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32" + }, + "interval.endTime.timeZone.version": { + "location": "query", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", + "type": "string" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "interval.startTime.month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + "type": "integer", + "format": "int32", + "location": "query" + }, + "interval.endTime.seconds": { + "type": "integer", + "format": "int32", + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "location": "query" + }, + "interval.endTime.minutes": { + "location": "query", + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + "format": "int32", + "type": "integer" + }, + "interval.startTime.year": { + "type": "integer", + "location": "query", + "format": "int32", + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year." + }, + "sampleErrorReportLimit": { + "location": "query", + "format": "int32", + "description": "Optional. Number of sample error reports to return per ErrorIssue. If unspecified, 0 will be used. *Note:* currently only 0 and 1 are supported.", + "type": "integer" + }, + "interval.startTime.seconds": { + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer", + "location": "query" + }, + "interval.endTime.day": { + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.day": { + "location": "query", + "type": "integer", + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + "format": "int32" + }, + "interval.endTime.timeZone.id": { + "location": "query", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", + "type": "string" + }, + "interval.startTime.nanos": { + "type": "integer", + "format": "int32", + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + "location": "query" + }, + "orderBy": { + "type": "string", + "location": "query", + "description": "Optional. Specifies a field that will be used to order the results. ** Supported dimensions:** * `errorReportCount`: Orders issues by number of error reports. * `distinctUsers`: Orders issues by number of unique affected users. ** Supported operations:** * `asc` for ascending order. * `desc` for descending order. Format: A field and an operation, e.g., `errorReportCount desc` *Note:* currently only one field is supported at a time." + }, + "interval.startTime.timeZone.id": { + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", + "location": "query", + "type": "string" + }, + "interval.endTime.nanos": { + "location": "query", + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + "format": "int32", + "type": "integer" + }, + "interval.endTime.hours": { + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "type": "integer", + "format": "int32", + "location": "query" + }, + "interval.endTime.year": { + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "type": "integer", + "location": "query", + "format": "int32" + }, + "interval.startTime.timeZone.version": { + "location": "query", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", + "type": "string" + }, + "interval.endTime.month": { + "format": "int32", + "type": "integer", + "location": "query", + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month." + }, + "pageSize": { + "type": "integer", + "description": "Optional. The maximum number of error issues to return. The service may return fewer than this value. If unspecified, at most 50 error issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query" + }, + "interval.startTime.minutes": { + "location": "query", + "type": "integer", + "format": "int32", + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0." + } + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse" + }, + "flatPath": "v1beta1/apps/{appsId}/errorIssues:search", + "id": "playdeveloperreporting.vitals.errors.issues.search" + } + } + }, + "reports": { + "methods": { + "search": { + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "httpMethod": "GET", + "parameters": { + "interval.endTime.year": { + "location": "query", + "format": "int32", + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "type": "integer" + }, + "interval.startTime.year": { + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "filter": { + "location": "query", + "description": "Optional. A selection predicate to retrieve only a subset of the reports. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error reports that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error reports that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error issues that occurred in the requested devices. Example: `deviceModel = \"google/walleye\" OR deviceModel = \"google/marlin\"`. * `deviceBrand`: Matches error issues that occurred in the requested device brands. Example: `deviceBrand = \"Google\". * `deviceType`: Matches error reports that occurred in the requested device types. Example: `deviceType = \"PHONE\"`. * `errorIssueType`: Matches error reports of the requested types only. Valid candidates: `CRASH`, `ANR`, `NON_FATAL`. Example: `errorIssueType = CRASH OR errorIssueType = ANR`. * `errorIssueId`: Matches error reports belonging to the requested error issue ids only. Example: `errorIssueId = 1234 OR errorIssueId = 4567`. * `errorReportId`: Matches error reports with the requested error report id. Example: `errorReportId = 1234 OR errorReportId = 4567`. * `appProcessState`: Matches error reports on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error reports that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR versionCode = ANR`. The filter expression `versionCode = 123 OR errorIssueType = ANR` is not valid. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`", + "type": "string" + }, + "pageToken": { + "location": "query", + "description": "Optional. A page token, received from a previous `SearchErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchErrorReports` must match the call that provided the page token.", + "type": "string" + }, + "interval.endTime.timeZone.version": { + "type": "string", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\".", + "location": "query" + }, + "interval.startTime.nanos": { + "location": "query", + "type": "integer", + "format": "int32", + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0." + }, + "interval.startTime.utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + "location": "query", + "type": "string", + "format": "google-duration" + }, + "interval.endTime.hours": { + "format": "int32", + "type": "integer", + "location": "query", + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time." + }, + "interval.endTime.nanos": { + "location": "query", + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + "type": "integer", + "format": "int32" + }, + "interval.startTime.timeZone.version": { + "type": "string", + "location": "query", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\"." + }, + "interval.startTime.minutes": { + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + "format": "int32", + "type": "integer", + "location": "query" + }, + "parent": { + "type": "string", + "required": true, + "description": "Required. Parent resource of the reports, indicating the application for which they were received. Format: apps/{app}", + "pattern": "^apps/[^/]+$", + "location": "path" + }, + "interval.endTime.month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + "format": "int32", + "type": "integer", + "location": "query" + }, + "interval.startTime.seconds": { + "type": "integer", + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "location": "query" + }, + "pageSize": { + "format": "int32", + "type": "integer", + "description": "Optional. The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 50 reports will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + "location": "query" + }, + "interval.startTime.hours": { + "type": "integer", + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "location": "query", + "format": "int32" + }, + "interval.endTime.utcOffset": { + "type": "string", + "format": "google-duration", + "location": "query", + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }." + }, + "interval.startTime.month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.seconds": { + "location": "query", + "type": "integer", + "format": "int32", + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds." + }, + "interval.startTime.day": { + "format": "int32", + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + "location": "query", + "type": "integer" + }, + "interval.endTime.day": { + "location": "query", + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + "type": "integer", + "format": "int32" + }, + "interval.endTime.timeZone.id": { + "type": "string", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", + "location": "query" + }, + "interval.startTime.timeZone.id": { + "type": "string", + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", + "location": "query" + }, + "interval.endTime.minutes": { + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + "format": "int32", + "type": "integer", + "location": "query" + } + }, + "flatPath": "v1beta1/apps/{appsId}/errorReports:search", + "id": "playdeveloperreporting.vitals.errors.reports.search", + "path": "v1beta1/{+parent}/errorReports:search", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse" + }, + "description": "Searches all error reports received for an app.", + "parameterOrder": [ + "parent" + ] + } + } + } + } + }, + "bitmapmemoryusage": { + "methods": { + "query": { + "description": "Queries the metrics in the metric set.", + "path": "v1beta1/{+name}:query", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryBitmapMemoryUsageMetricSetResponse" + }, + "httpMethod": "POST", + "parameters": { + "name": { + "required": true, + "pattern": "^apps/[^/]+/bitmapMemoryUsageMetricSet$", + "type": "string", + "location": "path", + "description": "Required. The resource name. Format: apps/{app}/bitmapMemoryUsageMetricSet" + } + }, + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryBitmapMemoryUsageMetricSetRequest" + }, + "flatPath": "v1beta1/apps/{appsId}/bitmapMemoryUsageMetricSet:query", + "parameterOrder": [ + "name" + ], + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "id": "playdeveloperreporting.vitals.bitmapmemoryusage.query" + }, + "get": { + "httpMethod": "GET", + "parameters": { + "name": { + "required": true, + "type": "string", + "location": "path", + "pattern": "^apps/[^/]+/bitmapMemoryUsageMetricSet$", + "description": "Required. The resource name. Format: apps/{app}/bitmapMemoryUsageMetricSet" + } + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1BitmapMemoryUsageMetricSet" + }, + "id": "playdeveloperreporting.vitals.bitmapmemoryusage.get", + "path": "v1beta1/{+name}", + "flatPath": "v1beta1/apps/{appsId}/bitmapMemoryUsageMetricSet", + "parameterOrder": [ + "name" + ], + "description": "Describes the properties of the metric set." + } + } + }, + "anrrate": { + "methods": { + "query": { + "path": "v1beta1/{+name}:query", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse" + }, + "flatPath": "v1beta1/apps/{appsId}/anrRateMetricSet:query", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "httpMethod": "POST", + "parameters": { + "name": { + "location": "path", + "type": "string", + "description": "Required. The resource name. Format: apps/{app}/anrRateMetricSet", + "pattern": "^apps/[^/]+/anrRateMetricSet$", + "required": true + } + }, + "id": "playdeveloperreporting.vitals.anrrate.query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest" + }, + "parameterOrder": [ + "name" + ], + "description": "Queries the metrics in the metric set." + }, + "get": { + "id": "playdeveloperreporting.vitals.anrrate.get", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1AnrRateMetricSet" + }, + "httpMethod": "GET", + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/anrRateMetricSet", + "required": true, + "pattern": "^apps/[^/]+/anrRateMetricSet$", + "type": "string", + "location": "path" + } + }, + "flatPath": "v1beta1/apps/{appsId}/anrRateMetricSet", + "description": "Describes the properties of the metric set.", + "parameterOrder": [ + "name" + ], + "path": "v1beta1/{+name}" + } + } + } + } + }, + "apps": { + "methods": { + "search": { + "description": "Searches for Apps accessible by the user.", + "httpMethod": "GET", + "parameters": { + "pageSize": { + "type": "integer", + "location": "query", + "description": "Optional. The maximum number of apps to return. The service may return fewer than this value. If unspecified, at most 50 apps will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32" + }, + "pageToken": { + "location": "query", + "description": "Optional. A page token, received from a previous `SearchAccessibleApps` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchAccessibleApps` must match the call that provided the page token.", + "type": "string" + } + }, + "flatPath": "v1beta1/apps:search", + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse" + }, + "path": "v1beta1/apps:search", + "id": "playdeveloperreporting.apps.search", + "parameterOrder": [] + }, + "fetchReleaseFilterOptions": { + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ], + "description": "Describes filtering options for releases.", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions" + }, + "flatPath": "v1beta1/apps/{appsId}:fetchReleaseFilterOptions", + "id": "playdeveloperreporting.apps.fetchReleaseFilterOptions", + "path": "v1beta1/{+name}:fetchReleaseFilterOptions", + "parameterOrder": [ + "name" + ], + "httpMethod": "GET", + "parameters": { + "name": { + "pattern": "^apps/[^/]+$", + "location": "path", + "type": "string", + "description": "Required. Name of the resource, i.e. app the filtering options are for. Format: apps/{app}", + "required": true + } + } + } + } + } + }, + "documentationLink": "https://developers.google.com/play/developer/reporting", + "description": "", + "discoveryVersion": "v1", + "title": "Google Play Developer Reporting API", + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/playdeveloperreporting": { + "description": "See metrics and data about the apps in your Google Play Developer account" + } + } + } + }, + "canonicalName": "Playdeveloperreporting", + "ownerDomain": "google.com", + "schemas": { + "GooglePlayDeveloperReportingV1beta1DeviceId": { + "properties": { + "buildBrand": { + "type": "string", + "description": "Value of Build.BRAND." + }, + "buildDevice": { + "description": "Value of Build.DEVICE.", + "type": "string" + } + }, + "type": "object", + "description": "Identifier of a device.", + "id": "GooglePlayDeveloperReportingV1beta1DeviceId" + }, + "GooglePlayDeveloperReportingV1beta1QueryLmkRateMetricSetResponse": { + "properties": { + "nextPageToken": { + "description": "Continuation token to fetch the next page of data.", + "type": "string" + }, + "rows": { + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array", + "description": "Returned rows of data." + } + }, + "description": "Response message for QueryLmkRateMetricSet.", + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1QueryLmkRateMetricSetResponse" + }, + "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse": { + "properties": { + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + }, + "rows": { + "description": "Returned rows of data.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array" + } + }, + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse", + "description": "Response message for QuerySlowRenderingRateMetricSet." + }, + "GoogleTypeDecimal": { + "id": "GoogleTypeDecimal", + "description": "A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).", + "type": "object", + "properties": { + "value": { + "description": "The decimal value, as a string. The string representation consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits (\"the integer\"), optionally followed by a fraction, optionally followed by an exponent. An empty string **should** be interpreted as `0`. The fraction consists of a decimal point followed by zero or more decimal digits. The string must contain at least one digit in either the integer or the fraction. The number formed by the sign, the integer and the fraction is referred to as the significand. The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one or more decimal digits. Services **should** normalize decimal values before storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -\u003e `2.5`). - Replacing a zero-length integer value with `0` (`.5` -\u003e `0.5`). - Coercing the exponent character to upper-case, with explicit sign (`2.5e8` -\u003e `2.5E+8`). - Removing an explicitly-provided zero exponent (`2.5E0` -\u003e `2.5`). Services **may** perform additional normalization based on its own needs and the internal decimal implementation selected, such as shifting the decimal point and exponent value together (example: `2.5E-1` \u003c-\u003e `0.25`). Additionally, services **may** preserve trailing zeroes in the fraction to indicate increased precision, but are not required to do so. Note that only the `.` character is supported to divide the integer and the fraction; `,` **should not** be supported regardless of locale. Additionally, thousand separators **should not** be supported. If a service does support them, values **must** be normalized. The ENBF grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range of supported values, the maximum supported precision (total number of digits), and, if applicable, the scale (number of digits after the decimal point), as well as how it behaves when receiving out-of-bounds values. Services **may** choose to accept values passed as input even when the value has a higher precision or scale than the service supports, and **should** round the value to fit the supported scale. Alternatively, the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service receives a value outside of the supported range.", + "type": "string" + } + } + }, + "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest": { + "description": "Request message for QueryExcessiveWakeupRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest", + "properties": { + "userCohort": { + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "description": "Optional. User view to select. The output data will correspond to the selected view. The only supported value is `OS_PUBLIC`.", + "type": "string" + }, + "filter": { + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions.", + "type": "string" + }, + "pageSize": { + "type": "integer", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32" + }, + "pageToken": { + "type": "string", + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token." + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`." + }, + "dimensions": { + "description": "Optional. Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "type": "array", + "items": { + "type": "string" + } + }, + "metrics": { + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse": { + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "apps": { + "type": "array", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1App" + }, + "description": "The apps accessible to the user calling the endpoint." + } + }, + "id": "GooglePlayDeveloperReportingV1beta1SearchAccessibleAppsResponse", + "description": "Response message for SearchAccessibleApps.", + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1Anomaly": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. Name of the anomaly. Format: apps/{app}/anomalies/{anomaly}" + }, + "metricSet": { + "type": "string", + "description": "Metric set resource where the anomaly was detected." + }, + "dimensions": { + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1DimensionValue" + }, + "type": "array", + "description": "Combination of dimensions in which the anomaly was detected." + }, + "metric": { + "description": "Metric where the anomaly was detected, together with the anomalous value.", + "$ref": "GooglePlayDeveloperReportingV1beta1MetricValue" + }, + "timelineSpec": { + "description": "Timeline specification that covers the anomaly period.", + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec" + } + }, + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1Anomaly", + "description": "Represents an anomaly detected in a dataset. Our anomaly detection systems flag datapoints in a time series that fall outside of and expected range derived from historical data. Although those expected ranges have an upper and a lower bound, we only flag anomalies when the data has become unexpectedly _worse_, which usually corresponds to the case where the metric crosses the upper bound. Multiple contiguous datapoints in a timeline outside of the expected range will be grouped into a single anomaly. Therefore, an anomaly represents effectively a segment of a metric's timeline. The information stored in the `timeline_spec`, `dimensions` and `metric` can be used to fetch a full timeline with extended ragne for context. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app." + }, + "GooglePlayDeveloperReportingV1beta1MetricsRow": { + "description": "Represents a row of dimensions and metrics.", + "id": "GooglePlayDeveloperReportingV1beta1MetricsRow", + "type": "object", + "properties": { + "metrics": { + "type": "array", + "description": "Optional. Metric columns in the row.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricValue" + } + }, + "startTime": { + "$ref": "GoogleTypeDateTime", + "description": "Optional. Starting date (and time for hourly aggregation) of the period covered by this row." + }, + "aggregationPeriod": { + "type": "string", + "enumDescriptions": [ + "Unspecified granularity.", + "Data is aggregated in hourly intervals.", + "Data is aggregated in daily intervals.", + "Data is aggregated over the full timeline range. Effectively this produces a single value rather than a timeline." + ], + "description": "Optional. Granularity of the aggregation period of the row.", + "enum": [ + "AGGREGATION_PERIOD_UNSPECIFIED", + "HOURLY", + "DAILY", + "FULL_RANGE" + ] + }, + "dimensions": { + "description": "Optional. Dimension columns in the row.", + "type": "array", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1DimensionValue" + } + } + } + }, + "GooglePlayDeveloperReportingV1beta1Track": { + "properties": { + "type": { + "description": "The type of the track.", + "type": "string" + }, + "displayName": { + "description": "Readable identifier of the track.", + "type": "string" + }, + "servingReleases": { + "type": "array", + "description": "Represents all active releases in the track.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1Release" + } + } + }, + "id": "GooglePlayDeveloperReportingV1beta1Track", + "description": "A representation of a Play release track.", + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse": { + "type": "object", + "description": "Response message for QueryStuckBackgroundWakelockRateMetricSet.", + "properties": { + "rows": { + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array", + "description": "Returned rows of data." + }, + "nextPageToken": { + "description": "Continuation token to fetch the next page of data.", + "type": "string" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse" + }, + "GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse": { + "properties": { + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + }, + "anomalies": { + "description": "Anomalies that were found.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1Anomaly" + }, + "type": "array" + } + }, + "description": "Response with a list of anomalies in datasets.", + "id": "GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse", + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest": { + "description": "Request message for QueryCrashRateMetricSet.", + "type": "object", + "properties": { + "timelineSpec": { + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`. * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`.", + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec" + }, + "userCohort": { + "description": "Optional. User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta android versions only, excluding data from released android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., \"T1B2.220916.004\".", + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "type": "string", + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ] + }, + "pageSize": { + "type": "integer", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100,000; values above 100,000 will be coerced to 100,000.", + "format": "int32" + }, + "metrics": { + "type": "array", + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "items": { + "type": "string" + } + }, + "pageToken": { + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "dimensions": { + "items": { + "type": "string" + }, + "description": "Optional. Dimensions to slice the metrics by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "type": "array" + }, + "filter": { + "type": "string", + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions." + } + }, + "id": "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest" + }, + "GooglePlayDeveloperReportingV1beta1Release": { + "properties": { + "displayName": { + "description": "Readable identifier of the release.", + "type": "string" + }, + "versionCodes": { + "description": "The version codes contained in this release.", + "type": "array", + "items": { + "type": "string", + "format": "int64" + } + } + }, + "id": "GooglePlayDeveloperReportingV1beta1Release", + "description": "A representation of an app release.", + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest": { + "id": "GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest", + "type": "object", + "description": "Request message for QueryStuckBackgroundWakelockRateMetricSet.", + "properties": { + "userCohort": { + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "description": "Optional. User view to select. The output data will correspond to the selected view. The only supported value is `OS_PUBLIC`.", + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "metrics": { + "type": "array", + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "items": { + "type": "string" + } + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`." + }, + "filter": { + "type": "string", + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions." + }, + "pageSize": { + "type": "integer", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32" + }, + "dimensions": { + "items": { + "type": "string" + }, + "description": "Optional. Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "type": "array" + } + } + }, + "GooglePlayDeveloperReportingV1beta1MetricValue": { + "properties": { + "decimalValue": { + "description": "Actual value, represented as a decimal number.", + "$ref": "GoogleTypeDecimal" + }, + "decimalValueConfidenceInterval": { + "description": "Confidence interval of a value that is of type `type.Decimal`.", + "$ref": "GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval" + }, + "metric": { + "description": "Name of the metric.", + "type": "string" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1MetricValue", + "type": "object", + "description": "Represents the value of a metric." + }, + "GooglePlayDeveloperReportingV1beta1AnonRssAndSwapMemoryUsageMetricSet": { + "description": "Singleton resource representing the set of Anon RSS and Swap Memory Usage metrics. This metric set contains anon RSS and swap memory usage data combined with usage data. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `anonRssAndSwapMemoryUsageP50` (`google.type.Decimal`): 50th percentile of anon RSS and swap memory usage. * `anonRssAndSwapMemoryUsageP75` (`google.type.Decimal`): 75th percentile of anon RSS and swap memory usage. * `anonRssAndSwapMemoryUsageP90` (`google.type.Decimal`): 90th percentile of anon RSS and swap memory usage. * `anonRssAndSwapMemoryUsageP95` (`google.type.Decimal`): 95th percentile of anon RSS and swap memory usage. * `anonRssAndSwapMemoryUsageP99` (`google.type.Decimal`): 99th percentile of anon RSS and swap memory usage. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which memory metrics were reported during the aggregation period. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. * `processName` (string): the name of the process that was running, e.g., com.example.app. * `appState` (string): the state of the app when memory was collected, e.g., FOREGROUND. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1beta1AnonRssAndSwapMemoryUsageMetricSet", + "type": "object", + "properties": { + "name": { + "description": "Identifier. * The resource name. Format: apps/{app}/anonRssAndSwapMemoryUsageMetricSet", + "type": "string" + }, + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "readOnly": true, + "description": "Output only. * Summary about data freshness in this resource." + } + } + }, + "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse": { + "id": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse", + "description": "Response message for QuerySlowStartRateMetricSet.", + "type": "object", + "properties": { + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + }, + "rows": { + "type": "array", + "description": "Returned rows of data.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + } + } + } + }, + "ApiservingMcpMcpToolVisibility": { + "id": "ApiservingMcpMcpToolVisibility", + "properties": { + "visibilityRestriction": { + "type": "string", + "description": "The visibility restriction labels for the tool itself (e.g., \"PRODUCER_DEFINED_PREVIEW\"). Multiple labels can be provided as a comma-separated string." + }, + "fieldVisibility": { + "description": "A list of field-level visibility restrictions.", + "type": "array", + "items": { + "$ref": "ApiservingMcpMcpToolVisibilityFieldVisibility" + } + }, + "visibilityEnforcementStrategy": { + "enum": [ + "VISIBILITY_ENFORCEMENT_STRATEGY_UNSPECIFIED", + "COMBINE", + "OVERRIDE" + ], + "enumDescriptions": [ + "Default. Equivalent to COMBINE.", + "The principal must satisfy both API-level tool-level) visibility restrictions.", + "Bypasses the API-level visibility restrictions check; access is determined solely by the tool-level visibility restrictions." + ], + "description": "The strategy used to enforce visibility restrictions. DO NOT USE. This field is not yet implemented.", + "type": "string" + } + }, + "type": "object", + "description": "Profile describing the visibility restriction of an MCP tool. Key: \"google.com/tool.profiles/visibility.restriction\"" + }, + "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest": { + "type": "object", + "description": "Request message for QueryAnrRateMetricSet.", + "properties": { + "filter": { + "type": "string", + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions." + }, + "metrics": { + "type": "array", + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not . supported in HOURLY granularity. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "items": { + "type": "string" + } + }, + "pageToken": { + "type": "string", + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token." + }, + "dimensions": { + "description": "Optional. Dimensions to slice the metrics by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "type": "array", + "items": { + "type": "string" + } + }, + "pageSize": { + "format": "int32", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100,000; values above 100,000 will be coerced to 100,000.", + "type": "integer" + }, + "userCohort": { + "description": "Optional. User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta android versions only, excluding data from released android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., \"T1B2.220916.004\".", + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string", + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ] + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`. * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`." + } + }, + "id": "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest" + }, + "GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet": { + "type": "object", + "description": "Singleton resource representing the set of Slow Rendering metrics. This metric set contains low-level rendering data captured by SurafeFlinger. Sessions are evaluated based on the present-to-present histogram of frames handled by any SurfaceFlinger layer owned by the app. A slow session is a session where more than 25% of frames for the session did not meet the metric's target frame rate (either 20fps, or 30fps). *NOTE:* This metric set is only available for games. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had slow rendering. * `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had slow rendering. * `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is counted in this metric if their app rendered any frames. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet", + "properties": { + "name": { + "description": "Identifier. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + "type": "string" + }, + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "description": "Summary about data freshness in this resource." + } + } + }, + "GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse": { + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse", + "description": "Response with a paginated list of error reports matching the search query.", + "properties": { + "errorReports": { + "type": "array", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1ErrorReport" + }, + "description": "Error reports that were found." + }, + "nextPageToken": { + "type": "string", + "description": "Page token to fetch the next page of reports." + } + } + }, + "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse": { + "id": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse", + "type": "object", + "description": "Response message for QueryExcessiveWakeupRateMetricSet.", + "properties": { + "rows": { + "description": "Returned rows of data.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array" + }, + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + } + } + }, + "GooglePlayDeveloperReportingV1beta1OsVersion": { + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1OsVersion", + "properties": { + "apiLevel": { + "format": "int64", + "description": "Optional. Numeric version code of the OS - API level", + "type": "string" + } + }, + "description": "Representation of an OS version." + }, + "GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval": { + "description": "Represents the confidence interval of a metric.", + "type": "object", + "properties": { + "lowerBound": { + "description": "The confidence interval's lower bound.", + "$ref": "GoogleTypeDecimal" + }, + "upperBound": { + "description": "The confidence interval's upper bound.", + "$ref": "GoogleTypeDecimal" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval" + }, + "GooglePlayDeveloperReportingV1beta1FreshnessInfo": { + "properties": { + "freshnesses": { + "description": "Information about data freshness for every supported aggregation period. This field has set semantics, keyed by the `aggregation_period` field.", + "type": "array", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfoFreshness" + } + } + }, + "description": "Represents the latest available time that can be requested in a TimelineSpec. Different aggregation periods have different freshness. For example, `DAILY` aggregation may lag behind `HOURLY` in cases where such aggregation is computed only once at the end of the day.", + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1FreshnessInfo" + }, + "GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet": { + "id": "GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet", + "description": "Singleton resource representing the set of Excessive Weakeups metrics. This metric set contains AlarmManager wakeup counts data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "type": "object", + "properties": { + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "description": "Summary about data freshness in this resource." + }, + "name": { + "description": "Identifier. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + "type": "string" + } + } + }, + "GooglePlayDeveloperReportingV1beta1QueryAnonRssAndSwapMemoryUsageMetricSetRequest": { + "properties": { + "timelineSpec": { + "description": "Optional. * Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`.", + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec" + }, + "filter": { + "type": "string", + "description": "Optional. * Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions." + }, + "pageToken": { + "type": "string", + "description": "Optional. * A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token." + }, + "dimensions": { + "description": "Optional. * Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. * `processName` (string): the name of the process that was running, e.g., com.example.app. * `appState` (string): the state of the app when memory was collected, e.g., FOREGROUND.", + "type": "array", + "items": { + "type": "string" + } + }, + "userCohort": { + "description": "Optional. * User view to select. The output data will correspond to the selected view. The only supported value is `OS_PUBLIC`.", + "type": "string", + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ] + }, + "pageSize": { + "description": "Optional. * Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "type": "integer", + "format": "int32" + }, + "metrics": { + "description": "Optional. * Metrics to aggregate. **Supported metrics:** * `anonRssAndSwapMemoryUsageP50` (`google.type.Decimal`): 50th percentile of anon RSS and swap memory usage. * `anonRssAndSwapMemoryUsageP75` (`google.type.Decimal`): 75th percentile of anon RSS and swap memory usage. * `anonRssAndSwapMemoryUsageP90` (`google.type.Decimal`): 90th percentile of anon RSS and swap memory usage. * `anonRssAndSwapMemoryUsageP95` (`google.type.Decimal`): 95th percentile of anon RSS and swap memory usage. * `anonRssAndSwapMemoryUsageP99` (`google.type.Decimal`): 99th percentile of anon RSS and swap memory usage. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which memory metrics were reported during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1QueryAnonRssAndSwapMemoryUsageMetricSetRequest", + "type": "object", + "description": "Request message for QueryAnonRssAndSwapMemoryUsageMetricSet." + }, + "GooglePlayDeveloperReportingV1beta1FreshnessInfoFreshness": { + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1FreshnessInfoFreshness", + "properties": { + "latestEndTime": { + "$ref": "GoogleTypeDateTime", + "description": "Latest end time for which data is available, for the aggregation period. The time is specified in the metric set's default timezone. *Note:* time ranges in TimelineSpec are represented as `start_time, end_time)`. For example, if the latest available timeline data point for a `DAILY` aggregation period is `2021-06-23 00:00:00 America/Los_Angeles`, the value of this field would be `2021-06-24 00:00:00 America/Los_Angeles` so it can be easily reused in [TimelineSpec.end_time." + }, + "aggregationPeriod": { + "type": "string", + "enumDescriptions": [ + "Unspecified granularity.", + "Data is aggregated in hourly intervals.", + "Data is aggregated in daily intervals.", + "Data is aggregated over the full timeline range. Effectively this produces a single value rather than a timeline." + ], + "description": "Aggregation period for which data is available.", + "enum": [ + "AGGREGATION_PERIOD_UNSPECIFIED", + "HOURLY", + "DAILY", + "FULL_RANGE" + ] + } + }, + "description": "Information about data freshness for a single aggregation period." + }, + "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest": { + "properties": { + "filter": { + "type": "string", + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions." + }, + "pageToken": { + "type": "string", + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token." + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi." + }, + "userCohort": { + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string", + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "description": "Optional. User view to select. The output data will correspond to the selected view. The only supported value is `OS_PUBLIC`." + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`." + }, + "pageSize": { + "type": "integer", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32" + }, + "metrics": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `slowStartRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow start. * `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowStartRate` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value." + } + }, + "id": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest", + "description": "Request message for QuerySlowStartRateMetricSet.", + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1AppVersion": { + "properties": { + "versionCode": { + "type": "string", + "description": "Optional. Numeric version code of the app version (set by the app's developer).", + "format": "int64" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1AppVersion", + "description": "Representations of an app version.", + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1ErrorReport": { + "type": "object", + "description": "An error report received for an app. There reports are produced by the Android platform code when a (potentially fatal) error condition is detected. Identical reports from many users will be deduplicated and coalesced into a single ErrorReport. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "properties": { + "eventTime": { + "format": "google-datetime", + "type": "string", + "description": "Start of the hour during which the latest event in this error report occurred." + }, + "deviceModel": { + "description": "A device model on which an event in this error report occurred on.", + "$ref": "GooglePlayDeveloperReportingV1beta1DeviceModelSummary" + }, + "issue": { + "description": "The issue this report was associated with. **Please note:** this resource is currently in Alpha. There could be changes to the issue grouping that would result in similar but more recent error reports being assigned to a different issue.", + "type": "string" + }, + "reportText": { + "type": "string", + "description": "Textual representation of the error report. These textual reports are produced by the platform. The reports are then sanitized and filtered to remove any potentially sensitive information. Although their format is fairly stable, they are not entirely meant for machine consumption and we cannot guarantee that there won't be subtle changes to the formatting that may break systems trying to parse information out of the reports." + }, + "appVersion": { + "description": "The app version on which an event in this error report occurred on.", + "$ref": "GooglePlayDeveloperReportingV1beta1AppVersion" + }, + "type": { + "type": "string", + "enumDescriptions": [ + "Unspecified error type.", + "Application Not Responding (ANR) error. To learn more about this type of errors visit the corresponding Android Developers documentation.", + "Crash caused by an unhandled exception in Java (or Kotlin or any other JVM language) or a signal in native code such as SIGSEGV.", + "Non-fatal caused by events that do not immediately cause crashes, but is likely to lead to one." + ], + "enum": [ + "ERROR_TYPE_UNSPECIFIED", + "APPLICATION_NOT_RESPONDING", + "CRASH", + "NON_FATAL" + ], + "description": "Type of the error for which this report was generated." + }, + "vcsInformation": { + "type": "string", + "description": "Version control system information from BUNDLE-METADATA/version-control-info.textproto or META-INF/version-control-info.textproto of the app bundle or APK, respectively." + }, + "name": { + "type": "string", + "description": "Identifier. The resource name of the report. Format: apps/{app}/{report}" + }, + "osVersion": { + "description": "The OS version on which an event in this error report occurred on.", + "$ref": "GooglePlayDeveloperReportingV1beta1OsVersion" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1ErrorReport" + }, + "GooglePlayDeveloperReportingV1beta1BitmapMemoryUsageMetricSet": { + "type": "object", + "description": "Singleton resource representing the set of Bitmap Memory Usage metrics. This metric set contains bitmap memory usage data combined with usage data. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `bitmapMemoryUsageP50` (`google.type.Decimal`): 50th percentile of bitmap memory usage. * `bitmapMemoryUsageP75` (`google.type.Decimal`): 75th percentile of bitmap memory usage. * `bitmapMemoryUsageP90` (`google.type.Decimal`): 90th percentile of bitmap memory usage. * `bitmapMemoryUsageP95` (`google.type.Decimal`): 95th percentile of bitmap memory usage. * `bitmapMemoryUsageP99` (`google.type.Decimal`): 99th percentile of bitmap memory usage. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which memory metrics were reported during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. * `processName` (string): the name of the process that was running, e.g., com.example.app. * `appState` (string): the state of the app when memory was collected, e.g., FOREGROUND. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1beta1BitmapMemoryUsageMetricSet", + "properties": { + "freshnessInfo": { + "description": "Output only. Summary about data freshness in this resource.", + "readOnly": true, + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo" + }, + "name": { + "type": "string", + "description": "Identifier. The resource name. Format: apps/{app}/bitmapMemoryUsageMetricSet" + } + } + }, + "ApiservingMcpMcpToolVisibilityFieldVisibility": { + "description": "Visibility rules for individual tool parameters (fields). This allows producers to hide specific fields in tools/list and tools/call.", + "type": "object", + "id": "ApiservingMcpMcpToolVisibilityFieldVisibility", + "properties": { + "selector": { + "type": "string", + "description": "The name of the parameter in the input_schema or output_schema." + }, + "restriction": { + "description": "The visibility restriction labels for this field (comma-separated).", + "type": "string" + } + } + }, + "GooglePlayDeveloperReportingV1beta1QueryBitmapMemoryUsageMetricSetResponse": { + "type": "object", + "properties": { + "rows": { + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "description": "Returned rows of data.", + "type": "array" + }, + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + } + }, + "id": "GooglePlayDeveloperReportingV1beta1QueryBitmapMemoryUsageMetricSetResponse", + "description": "Response message for QueryBitmapMemoryUsageMetricSet." + }, + "GooglePlayDeveloperReportingV1beta1TimelineSpec": { + "id": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "type": "object", + "properties": { + "startTime": { + "description": "Optional. Starting datapoint of the timeline (inclusive). Must be aligned to the aggregation period as follows: * HOURLY: the 'minutes', 'seconds' and 'nanos' fields must be unset. The time_zone can be left unset (defaults to UTC) or set explicitly to \"UTC\". Setting any other utc_offset or timezone id will result in a validation error. * DAILY: the 'hours', 'minutes', 'seconds' and 'nanos' fields must be unset. Different metric sets support different timezones. It can be left unset to use the default timezone specified by the metric set. The timezone of the end point must match the timezone of the start point.", + "$ref": "GoogleTypeDateTime" + }, + "aggregationPeriod": { + "type": "string", + "enumDescriptions": [ + "Unspecified granularity.", + "Data is aggregated in hourly intervals.", + "Data is aggregated in daily intervals.", + "Data is aggregated over the full timeline range. Effectively this produces a single value rather than a timeline." + ], + "description": "Optional. Type of the aggregation period of the datapoints in the timeline. Intervals are identified by the date and time at the start of the interval.", + "enum": [ + "AGGREGATION_PERIOD_UNSPECIFIED", + "HOURLY", + "DAILY", + "FULL_RANGE" + ] + }, + "endTime": { + "description": "Optional. Ending datapoint of the timeline (exclusive). See start_time for restrictions. The timezone of the end point must match the timezone of the start point.", + "$ref": "GoogleTypeDateTime" + } + }, + "description": "Specification of the time-related aggregation parameters of a timeline. Timelines have an aggregation period (`DAILY`, `HOURLY`, etc) which defines how events are aggregated in metrics. The points in a timeline are defined by the starting DateTime of the aggregation period. The duration is implicit in the AggregationPeriod. Hourly aggregation periods, when supported by a metric set, are always specified in UTC to avoid ambiguities around daylight saving time transitions, where an hour is skipped when adopting DST, and repeated when abandoning DST. For example, the timestamp '2021-11-07 01:00:00 America/Los_Angeles' is ambiguous since it can correspond to '2021-11-07 08:00:00 UTC' or '2021-11-07 09:00:00 UTC'. Daily aggregation periods require specifying a timezone which will determine the precise instants of the start and the end of the day. Not all metric sets support all timezones, so make sure to check which timezones are supported by the metric set you want to query." + }, + "GooglePlayDeveloperReportingV1beta1DeviceModelSummary": { + "type": "object", + "properties": { + "marketingName": { + "type": "string", + "description": "Display name of the device." + }, + "deviceId": { + "description": "Identifier of the device.", + "$ref": "GooglePlayDeveloperReportingV1beta1DeviceId" + }, + "deviceUri": { + "type": "string", + "description": "Link to the device in Play Device Catalog." + } + }, + "description": "Summary of a device", + "id": "GooglePlayDeveloperReportingV1beta1DeviceModelSummary" + }, + "GooglePlayDeveloperReportingV1beta1QueryAnonRssAndSwapMemoryUsageMetricSetResponse": { + "type": "object", + "properties": { + "nextPageToken": { + "description": "* Continuation token to fetch the next page of data.", + "type": "string" + }, + "rows": { + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array", + "description": "* Returned rows of data." + } + }, + "id": "GooglePlayDeveloperReportingV1beta1QueryAnonRssAndSwapMemoryUsageMetricSetResponse", + "description": "Response message for QueryAnonRssAndSwapMemoryUsageMetricSet." + }, + "GoogleTypeDateTime": { + "properties": { + "seconds": { + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + }, + "utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + "type": "string", + "format": "google-duration" + }, + "nanos": { + "type": "integer", + "format": "int32", + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0." + }, + "minutes": { + "format": "int32", + "type": "integer", + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0." + }, + "hours": { + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "day": { + "format": "int32", + "type": "integer", + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day." + }, + "timeZone": { + "$ref": "GoogleTypeTimeZone", + "description": "Time zone." + }, + "month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + "type": "integer", + "format": "int32" + }, + "year": { + "format": "int32", + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "type": "integer" + } + }, + "type": "object", + "description": "Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or day respectively. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations.", + "id": "GoogleTypeDateTime" + }, + "GoogleTypeTimeZone": { + "type": "object", + "description": "Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).", + "properties": { + "version": { + "type": "string", + "description": "Optional. IANA Time Zone Database version number. For example \"2019a\"." + }, + "id": { + "description": "IANA Time Zone Database time zone. For example \"America/New_York\".", + "type": "string" + } + }, + "id": "GoogleTypeTimeZone" + }, + "GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet": { + "id": "GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet", + "description": "Singleton resource representing the set of Slow Start metrics. This metric set contains Activity start duration data. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `slowStartRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow start. * `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowStartRate` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Required dimension:** This dimension must be specified with each request for the request to be valid. * `startType` (string): the type of start that was measured. Valid types are `HOT`, `WARM` and `COLD`. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "type": "object", + "properties": { + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "description": "Summary about data freshness in this resource." + }, + "name": { + "description": "Identifier. The resource name. Format: apps/{app}/slowStartRateMetricSet", + "type": "string" + } + } + }, + "GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions": { + "id": "GooglePlayDeveloperReportingV1beta1ReleaseFilterOptions", + "type": "object", + "properties": { + "tracks": { + "description": "List of tracks to filter releases over. Provides the grouping of version codes under releases and tracks.", + "type": "array", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1Track" + } + } + }, + "description": "A set of filtering options for releases and version codes specific to an app." + }, + "GooglePlayDeveloperReportingV1beta1DimensionValue": { + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1DimensionValue", + "description": "Represents the value of a single dimension.", + "properties": { + "stringValue": { + "type": "string", + "description": "Actual value, represented as a string." + }, + "int64Value": { + "description": "Actual value, represented as an int64.", + "type": "string", + "format": "int64" + }, + "valueLabel": { + "description": "Optional. Human-friendly label for the value, always in English. For example, 'Spain' for the 'ES' country code. Whereas the dimension value is stable, this value label is subject to change. Do not assume that the (value, value_label) relationship is stable. For example, the ISO country code 'MK' changed its name recently to 'North Macedonia'.", + "type": "string" + }, + "dimension": { + "description": "Name of the dimension.", + "type": "string" + } + } + }, + "GooglePlayDeveloperReportingV1beta1App": { + "description": "A representation of an app in the Play Store.", + "type": "object", + "properties": { + "name": { + "description": "Identifier. The resource name. Format: apps/{app}", + "type": "string" + }, + "packageName": { + "type": "string", + "description": "Package name of the app. Example: `com.example.app123`." + }, + "displayName": { + "description": "Title of the app. This is the latest title as set in the Play Console and may not yet have been reviewed, so might not match the Play Store. Example: `Google Maps`.", + "type": "string" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1App" + }, + "GooglePlayDeveloperReportingV1beta1QueryBitmapMemoryUsageMetricSetRequest": { + "id": "GooglePlayDeveloperReportingV1beta1QueryBitmapMemoryUsageMetricSetRequest", + "type": "object", + "description": "Request message for QueryBitmapMemoryUsageMetricSet.", + "properties": { + "filter": { + "type": "string", + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions." + }, + "userCohort": { + "description": "Optional. User view to select. The output data will correspond to the selected view. The only supported value is `OS_PUBLIC`.", + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string", + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ] + }, + "pageSize": { + "type": "integer", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32" + }, + "pageToken": { + "type": "string", + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token." + }, + "timelineSpec": { + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`.", + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec" + }, + "metrics": { + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `bitmapMemoryUsageP50` (`google.type.Decimal`): 50th percentile of bitmap memory usage. * `bitmapMemoryUsageP75` (`google.type.Decimal`): 75th percentile of bitmap memory usage. * `bitmapMemoryUsageP90` (`google.type.Decimal`): 90th percentile of bitmap memory usage. * `bitmapMemoryUsageP95` (`google.type.Decimal`): 95th percentile of bitmap memory usage. * `bitmapMemoryUsageP99` (`google.type.Decimal`): 99th percentile of bitmap memory usage. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which memory metrics were reported during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "items": { + "type": "string" + }, + "description": "Optional. Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. * `processName` (string): the name of the process that was running, e.g., com.example.app. * `appState` (string): the state of the app when memory was collected, e.g., FOREGROUND.", + "type": "array" + } + } + }, + "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse": { + "description": "Response message for QueryAnrRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse", + "properties": { + "rows": { + "type": "array", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "description": "Returned rows of data." + }, + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QueryLmkRateMetricSetRequest": { + "id": "GooglePlayDeveloperReportingV1beta1QueryLmkRateMetricSetRequest", + "description": "Request message for QueryLmkRateMetricSet.", + "type": "object", + "properties": { + "metrics": { + "items": { + "type": "string" + }, + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `userPerceivedLmkRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one LMK while they were actively using your app (a user-perceived LMK). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedLmkRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedLmkRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedLmkRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedLmkRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `userPerceivedLmkRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "type": "array" + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. Dimensions to slice the metrics by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi." + }, + "pageSize": { + "type": "integer", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100,000; values above 100,000 will be coerced to 100,000.", + "format": "int32" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the default and only supported timezone is `America/Los_Angeles`." + }, + "filter": { + "type": "string", + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions." + }, + "userCohort": { + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string", + "description": "Optional. User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta android versions only, excluding data from released android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., \"T1B2.220916.004\"." + } + } + }, + "GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet": { + "id": "GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet", + "type": "object", + "description": "Singleton resource representing the set of Stuck Background Wakelocks metrics. This metric set contains PowerManager wakelock duration data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if their app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "properties": { + "freshnessInfo": { + "description": "Summary about data freshness in this resource.", + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo" + }, + "name": { + "description": "Identifier. The resource name. Format: apps/{app}/stuckBackgroundWakelockRateMetricSet", + "type": "string" + } + } + }, + "GooglePlayDeveloperReportingV1beta1AnrRateMetricSet": { + "properties": { + "name": { + "type": "string", + "description": "Identifier. The resource name. Format: apps/{app}/anrRateMetricSet" + }, + "freshnessInfo": { + "description": "Summary about data freshness in this resource.", + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo" + } + }, + "description": "Singleton resource representing the set of ANR (Application not responding) metrics. This metric set contains ANRs data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about crashes, another stability metric.", + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1AnrRateMetricSet" + }, + "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest": { + "properties": { + "metrics": { + "items": { + "type": "string" + }, + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. This value is not rounded, however it may be an approximation.", + "type": "array" + }, + "pageToken": { + "type": "string", + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token." + }, + "filter": { + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions and: * `isUserPerceived` (string): denotes whether error is user perceived or not, USER_PERCEIVED or NOT_USER_PERCEIVED.", + "type": "string" + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): identifier of the device's form factor, e.g., PHONE. * `reportType` (string): the type of error. The value should correspond to one of the possible values in ErrorType. * `issueId` (string): the id an error was assigned to. The value should correspond to the `{issue}` component of the issue name. * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi." + }, + "timelineSpec": { + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. The default and only supported timezone is `America/Los_Angeles`.", + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec" + }, + "pageSize": { + "type": "integer", + "format": "int32", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000." + } + }, + "type": "object", + "description": "Request message for QueryErrorCountMetricSet.", + "id": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest" + }, + "GooglePlayDeveloperReportingV1beta1LmkRateMetricSet": { + "description": "Singleton resource representing the set of LMK (Low Memory Kill) metrics. This metric set contains LMKs data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `userPerceivedLmkRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one LMK while they were actively using your app (a user-perceived LMK). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedLmkRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedLmkRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedLmkRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedLmkRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `userPerceivedLmkRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains normalized metrics about crashes, another stability metric. * vitals.errors contains normalized metrics about ANRs, another stability metric.", + "properties": { + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "description": "Summary about data freshness in this resource." + }, + "name": { + "description": "Identifier. The resource name. Format: apps/{app}/lmkRateMetricSet", + "type": "string" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1LmkRateMetricSet", + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse": { + "id": "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse", + "type": "object", + "description": "Response message for QueryCrashRateMetricSet.", + "properties": { + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + }, + "rows": { + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array", + "description": "Returned rows of data." + } + } + }, + "GooglePlayDeveloperReportingV1beta1ErrorIssue": { + "id": "GooglePlayDeveloperReportingV1beta1ErrorIssue", + "properties": { + "firstOsVersion": { + "description": "The smallest OS version in which this error cluster has occurred in the requested time period (only considering occurrences matching the filters and within the requested time period).", + "$ref": "GooglePlayDeveloperReportingV1beta1OsVersion" + }, + "distinctUsersPercent": { + "description": "An estimated percentage of users affected by any issue that are affected by this issue (only considering occurrences matching the filters and within the requested time period).", + "$ref": "GoogleTypeDecimal" + }, + "errorReportCount": { + "description": "The total number of error reports in this issue (only considering occurrences matching the filters and within the requested time period).", + "format": "int64", + "type": "string" + }, + "sampleErrorReports": { + "items": { + "type": "string" + }, + "description": "Output only. Sample error reports which belong to this ErrorIssue. *Note:* currently a maximum of 1 per ErrorIssue is supported. Format: \"apps/{app}/{report}\"", + "type": "array", + "readOnly": true + }, + "cause": { + "type": "string", + "description": "Cause of the issue. Depending on the type this can be either: * APPLICATION_NOT_RESPONDING: the type of ANR that occurred, e.g., 'Input dispatching timed out'. * CRASH: for Java unhandled exception errors, the type of the innermost exception that was thrown, e.g., IllegalArgumentException. For signals in native code, the signal that was raised, e.g. SIGSEGV." + }, + "issueUri": { + "description": "Link to the issue in Android vitals in the Play Console.", + "type": "string" + }, + "lastAppVersion": { + "$ref": "GooglePlayDeveloperReportingV1beta1AppVersion", + "description": "The latest (inclusive) app version appearing in this ErrorIssue in the requested time period (only considering occurrences matching the filters)." + }, + "distinctUsers": { + "type": "string", + "format": "int64", + "description": "An estimate of the number of unique users who have experienced this issue (only considering occurrences matching the filters and within the requested time period)." + }, + "name": { + "description": "Identifier. The resource name of the issue. Format: apps/{app}/{issue}", + "type": "string" + }, + "annotations": { + "description": "List of annotations for an issue. Annotations provide additional information that may help in diagnosing and fixing the issue.", + "type": "array", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1IssueAnnotation" + } + }, + "firstAppVersion": { + "description": "The earliest (inclusive) app version appearing in this ErrorIssue in the requested time period (only considering occurrences matching the filters).", + "$ref": "GooglePlayDeveloperReportingV1beta1AppVersion" + }, + "type": { + "enum": [ + "ERROR_TYPE_UNSPECIFIED", + "APPLICATION_NOT_RESPONDING", + "CRASH", + "NON_FATAL" + ], + "enumDescriptions": [ + "Unspecified error type.", + "Application Not Responding (ANR) error. To learn more about this type of errors visit the corresponding Android Developers documentation.", + "Crash caused by an unhandled exception in Java (or Kotlin or any other JVM language) or a signal in native code such as SIGSEGV.", + "Non-fatal caused by events that do not immediately cause crashes, but is likely to lead to one." + ], + "type": "string", + "description": "Type of the errors grouped in this issue." + }, + "lastErrorReportTime": { + "type": "string", + "format": "google-datetime", + "description": "Start of the hour during which the last error report in this issue occurred." + }, + "location": { + "description": "Location where the issue happened. Depending on the type this can be either: * APPLICATION_NOT_RESPONDING: the name of the activity or service that stopped responding. * CRASH: the likely method name that caused the error.", + "type": "string" + }, + "lastOsVersion": { + "$ref": "GooglePlayDeveloperReportingV1beta1OsVersion", + "description": "The latest OS version in which this error cluster has occurred in the requested time period (only considering occurrences matching the filters and within the requested time period)." + } + }, + "type": "object", + "description": "A group of related ErrorReports received for an app. Similar error reports are grouped together into issues with a likely identical root cause. **Please note:** this resource is currently in Alpha. There could be changes to the issue grouping that would result in similar but more recent error reports being assigned to different issues. This could also cause some issues disappearing entirely and being replaced by new ones. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app." + }, + "GooglePlayDeveloperReportingV1beta1IssueAnnotation": { + "type": "object", + "description": "Representation of an annotation message for an issue.", + "properties": { + "body": { + "type": "string", + "description": "Contains the contents of the annotation message." + }, + "title": { + "description": "Title for the annotation.", + "type": "string" + }, + "category": { + "description": "Category that the annotation belongs to. An annotation will belong to a single category. Example categories: \"Potential fix\", \"Insight\".", + "type": "string" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1IssueAnnotation" + }, + "GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet": { + "description": "Singleton resource representing the set of error report metrics. This metric set contains un-normalized error report counts. **Supported aggregation periods:** * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`. * DAILY: metrics are aggregated in calendar date intervals. The default and only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. This value is not rounded, however it may be an approximation. **Required dimension:** This dimension must be always specified in all requests in the `dimensions` field in query requests. * `reportType` (string): the type of error. The value should correspond to one of the possible values in ErrorType. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceType` (string): identifier of the device's form factor, e.g., PHONE. * `issueId` (string): the id an error was assigned to. The value should correspond to the `{issue}` component of the issue name. * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors.counts contains normalized metrics about Crashes, another stability metric. * vitals.errors.counts contains normalized metrics about ANRs, another stability metric.", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Identifier. The resource name. Format: apps/{app}/errorCountMetricSet" + }, + "freshnessInfo": { + "description": "Summary about data freshness in this resource.", + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo" + } + }, + "id": "GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet" + }, + "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest": { + "description": "Request message for QuerySlowRenderingRateMetricSet.", + "properties": { + "dimensions": { + "description": "Optional. Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "type": "array", + "items": { + "type": "string" + } + }, + "timelineSpec": { + "description": "Optional. Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`.", + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec" + }, + "metrics": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. Metrics to aggregate. **Supported metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow rendering. * `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow rendering. * `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value." + }, + "pageSize": { + "format": "int32", + "description": "Optional. Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "type": "integer" + }, + "filter": { + "type": "string", + "description": "Optional. Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions." + }, + "pageToken": { + "description": "Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "userCohort": { + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "description": "Optional. User view to select. The output data will correspond to the selected view. The only supported value is `OS_PUBLIC`.", + "type": "string" + } + }, + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest" + }, + "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse": { + "description": "Error counts query response.", + "properties": { + "rows": { + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "description": "Returned rows.", + "type": "array" + }, + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + } + }, + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse" + }, + "GooglePlayDeveloperReportingV1beta1CrashRateMetricSet": { + "description": "Singleton resource representing the set of crashrate metrics. This metric set contains crashes data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. * HOURLY: metrics are aggregated in hourly intervals. The default and only supported timezone is `UTC`. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. Not supported in HOURLY granularity. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device, e.g., 26. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. The form of the identifier is 'deviceBrand/device', where deviceBrand corresponds to Build.BRAND and device corresponds to Build.DEVICE, e.g., google/coral. * `deviceBrand` (string): unique identifier of the user's device brand, e.g., google. * `deviceType` (string): the type (also known as form factor) of the user's device, e.g., PHONE. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (e.g., 1024 for 1-1.5GB, 4096 for 4-6GB). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about ANRs, another stability metric.", + "properties": { + "name": { + "description": "Identifier. The resource name. Format: apps/{app}/crashRateMetricSet", + "type": "string" + }, + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "description": "Summary about data freshness in this resource." + } + }, + "type": "object", + "id": "GooglePlayDeveloperReportingV1beta1CrashRateMetricSet" + }, + "GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse": { + "type": "object", + "description": "Response with a paginated list of issues that matched the request.", + "properties": { + "errorIssues": { + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1ErrorIssue" + }, + "type": "array", + "description": "ErrorIssues that were found." + }, + "nextPageToken": { + "type": "string", + "description": "Continuation token to fetch the next page of data." + } + }, + "id": "GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse" + } + }, + "revision": "20261008", + "kind": "discovery#restDescription", + "servicePath": "", + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "rootUrl": "https://playdeveloperreporting.googleapis.com/", + "parameters": { + "prettyPrint": { + "location": "query", + "default": "true", + "description": "Returns response with indentations and line breaks.", + "type": "boolean" + }, + "key": { + "location": "query", + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "type": "string" + }, + "uploadType": { + "location": "query", + "type": "string", + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." + }, + "alt": { + "type": "string", + "location": "query", + "description": "Data format for response.", + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "default": "json", + "enum": [ + "json", + "media", + "proto" + ] + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "access_token": { + "location": "query", + "type": "string", + "description": "OAuth access token." + }, + "quotaUser": { + "location": "query", + "type": "string", + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters." + }, + "oauth_token": { + "type": "string", + "location": "query", + "description": "OAuth 2.0 token for the current user." + }, + "fields": { + "location": "query", + "type": "string", + "description": "Selector specifying which fields to include in a partial response." + }, + "upload_protocol": { + "type": "string", + "location": "query", + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." + }, + "$.xgafv": { + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "type": "string", + "location": "query", + "enum": [ + "1", + "2" + ], + "description": "V1 error format." + } + }, + "ownerName": "Google", + "batchPath": "batch", + "name": "playdeveloperreporting", + "version": "v1beta1", + "version_module": true, + "protocol": "rest" +} diff --git a/tests/api.test.ts b/tests/api.test.ts new file mode 100644 index 00000000..7d6bed31 --- /dev/null +++ b/tests/api.test.ts @@ -0,0 +1,333 @@ +import { describe, expect, test } from 'bun:test'; +import { readFileSync } from 'node:fs'; +import { join } from 'node:path'; +import { appleRows, generate, playRows, scanSource, templateRegex, wrappedOps } from '../tools/gen-api'; +import { APPLE_OPS } from '../cli/api/apple.gen'; +import { PLAY_APIS, PLAY_OPS } from '../cli/api/play.gen'; +import { allOps, appleApi, backoffMs, buildRequest, getOp, mergePages, nextRequest, type Op, playApi, resolveOp, send, sendAll } from '../cli/api/client'; +import { decide, gateOf, type GateInput, OWNER_ONLY, ownerReason } from '../cli/api/gate'; +import { coverage, describeRequest, parseParams, rows, search } from '../cli/api'; +import { parseArgs } from '../cli/lib/args'; +import { TOOLS, toArgv, validateInput } from '../cli/mcp-tools'; +import { DESKTOP_TOOLS } from '../cli/serve'; + +const ROOT = join(import.meta.dir, '..'); +const op = (store: 'apple' | 'play', id: string): Op => getOp(store, id)!; + +describe('generator', () => { + test('deterministic and committed files are fresh', () => { + const a = generate(ROOT), b = generate(ROOT); + expect(a.map(g => g.text)).toEqual(b.map(g => g.text)); + for (const g of a) expect({ path: g.path, fresh: readFileSync(join(ROOT, g.path), 'utf8') === g.text }).toEqual({ path: g.path, fresh: true }); + }); + test('every operation of the pinned specs is in the tables', () => { + const spec = JSON.parse(readFileSync(join(ROOT, 'specs/app-store-connect.oas.json'), 'utf8')); + let n = 0; + for (const item of Object.values>(spec.paths)) for (const m of ['get', 'post', 'put', 'patch', 'delete']) if (item[m]) n++; + expect(Object.keys(APPLE_OPS).length).toBe(n); + expect(n).toBeGreaterThan(1200); + const ap = playRows(JSON.parse(readFileSync(join(ROOT, 'specs/androidpublisher_v3.discovery.json'), 'utf8'))); + const rep = playRows(JSON.parse(readFileSync(join(ROOT, 'specs/playdeveloperreporting_v1beta1.discovery.json'), 'utf8'))); + expect(Object.keys(PLAY_OPS).length).toBe(Object.keys(ap).length + Object.keys(rep).length); + expect(Object.keys(PLAY_APIS).sort()).toEqual(['androidpublisher', 'playdeveloperreporting']); + expect(PLAY_APIS.androidpublisher.scope).toBe('https://www.googleapis.com/auth/androidpublisher'); + expect(PLAY_APIS.playdeveloperreporting.scope).toBe('https://www.googleapis.com/auth/playdeveloperreporting'); + }); + test('rows are sorted and the spec order does not matter', () => { + const spec = { paths: { '/v1/b': { get: { operationId: 'b_get', responses: {} } }, '/v1/a': { get: { operationId: 'a_get', responses: {} } } } }; + const rev = { paths: { '/v1/a': spec.paths['/v1/a'], '/v1/b': spec.paths['/v1/b'] } }; + expect(JSON.stringify(appleRows(spec))).toBe(JSON.stringify(appleRows(rev))); + expect(Object.keys(appleRows(spec))).toEqual(['a_get', 'b_get']); + const ids = Object.keys(APPLE_OPS); + expect([...ids].sort()).toEqual(ids); + }); + test('JSON:API shapes and vendor media types', () => { + expect(APPLE_OPS.apps_getCollection[4]).toBe('many:apps'); + expect(APPLE_OPS.apps_getInstance[4]).toBe('one:apps'); + expect(APPLE_OPS.appStoreVersions_createInstance[3]).toBe('appStoreVersions'); + expect(APPLE_OPS.betaGroups_betaTesters_createToManyRelationship[3]).toBe('betaTesters[]'); + expect(APPLE_OPS.appScreenshots_deleteInstance[4]).toBe('none'); + expect(APPLE_OPS.apps_perfPowerMetrics_getToManyRelated[4]).toBe('raw:application/vnd.apple.xcode-metrics+json'); + expect(APPLE_OPS.salesReports_getCollection[4]).toBe('raw:application/a-gzip'); + }); +}); + +describe('request building', () => { + test('Apple: path, comma-joined arrays, readable brackets', () => { + const r = buildRequest(op('apple', 'apps_getCollection'), { 'filter[bundleId]': 'com.example.app', 'fields[apps]': ['name', 'bundleId'], limit: 200 }); + expect(r.method).toBe('GET'); + expect(r.url).toBe('https://api.appstoreconnect.apple.com/v1/apps?filter[bundleId]=com.example.app&fields[apps]=name,bundleId&limit=200'); + expect(r.body).toBeUndefined(); + const v = buildRequest(op('apple', 'apps_appStoreVersions_getToManyRelated'), { id: 'a/b c', 'filter[platform]': 'IOS' }); + expect(v.url).toBe('https://api.appstoreconnect.apple.com/v1/apps/a%2Fb%20c/appStoreVersions?filter[platform]=IOS'); + }); + test('Apple: body, vendor Accept, missing and unknown parameters', () => { + const body = { data: { type: 'appStoreVersions', id: '1', attributes: { versionString: '1.1' } } }; + const p = buildRequest(op('apple', 'appStoreVersions_updateInstance'), { id: '1' }, body); + expect(p).toMatchObject({ method: 'PATCH', url: 'https://api.appstoreconnect.apple.com/v1/appStoreVersions/1', contentType: 'application/json' }); + expect(JSON.parse(p.body as string)).toEqual(body); + expect(buildRequest(op('apple', 'apps_perfPowerMetrics_getToManyRelated'), { id: '9' }).accept).toBe('application/vnd.apple.xcode-metrics+json'); + expect(() => buildRequest(op('apple', 'apps_getInstance'), {})).toThrow('path parameter "id" is required'); + expect(() => buildRequest(op('apple', 'betaAppReviewDetails_getCollection'), {})).toThrow('query parameter "filter[app]" is required'); + expect(() => buildRequest(op('apple', 'apps_getInstance'), { id: '1', 'filter[nope]': 'x' })).toThrow('unknown parameter "filter[nope]"'); + expect(() => buildRequest(op('apple', 'apps_getCollection'), {}, { x: 1 })).toThrow('GET takes no body'); + }); + test('Play: API roots, uploads, downloads, {+name} shapes, global parameters', () => { + expect(buildRequest(op('play', 'androidpublisher.edits.tracks.update'), { packageName: 'com.example.app', editId: 'e1', track: 'beta' }, { track: 'beta' }).url) + .toBe('https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.example.app/edits/e1/tracks/beta'); + const up = buildRequest(op('play', 'androidpublisher.edits.bundles.upload'), { packageName: 'com.example.app', editId: 'e1' }, undefined, + { upload: { bytes: new Uint8Array([1, 2]), contentType: 'application/octet-stream' } }); + expect(up.url).toBe('https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/com.example.app/edits/e1/bundles?uploadType=media'); + expect(up.body).toEqual(new Uint8Array([1, 2])); + expect(() => buildRequest(op('play', 'androidpublisher.edits.tracks.list'), { packageName: 'p', editId: 'e' }, undefined, { upload: { bytes: new Uint8Array(), contentType: 'x' } })).toThrow('takes no file upload'); + expect(buildRequest(op('play', 'androidpublisher.generatedapks.download'), { packageName: 'p', versionCode: 3, downloadId: 'd' }, undefined, { download: true }).url).toEndWith('?alt=media'); + const q = buildRequest(op('play', 'playdeveloperreporting.vitals.crashrate.query'), { name: 'apps/com.example.app/crashRateMetricSet' }, { metrics: ['crashRate'] }); + expect(q.url).toBe('https://playdeveloperreporting.googleapis.com/v1beta1/apps/com.example.app/crashRateMetricSet:query'); + expect(() => buildRequest(op('play', 'playdeveloperreporting.vitals.crashrate.query'), { name: 'apps/com.example.app/anrRateMetricSet' })).toThrow('must look like apps/*/crashRateMetricSet'); + expect(buildRequest(op('play', 'androidpublisher.reviews.list'), { packageName: 'p', fields: 'reviews(reviewId)', maxResults: 10 }).url) + .toBe('https://androidpublisher.googleapis.com/androidpublisher/v3/applications/p/reviews?fields=reviews(reviewId)&maxResults=10'); + }); + test('repeated Google parameters are sent once per value', () => { + const synthetic: Op = { ...op('play', 'androidpublisher.reviews.list'), query: [{ name: 'x', required: false, repeated: true }] }; + expect(buildRequest(synthetic, { packageName: 'p', x: ['a', 'b'] }).url).toEndWith('/reviews?x=a&x=b'); + }); + test('METHOD path resolves to the operation and its parameters', () => { + const a = resolveOp('apple', 'GET', '/v1/apps/123/appStoreVersions?filter[platform]=IOS&limit=5'); + expect(a.op.id).toBe('apps_appStoreVersions_getToManyRelated'); + expect(a.params).toEqual({ id: '123', 'filter[platform]': 'IOS', limit: '5' }); + expect(resolveOp('apple', 'get', 'https://api.appstoreconnect.apple.com/v1/apps/9').op.id).toBe('apps_getInstance'); + const crash = resolveOp('play', 'POST', '/v1beta1/apps/com.example.app/crashRateMetricSet:query'); + expect(crash.op.id).toBe('playdeveloperreporting.vitals.crashrate.query'); + expect(crash.params).toEqual({ name: 'apps/com.example.app/crashRateMetricSet' }); + expect(resolveOp('play', 'POST', '/v1beta1/apps/com.example.app/anrRateMetricSet:query').op.id).toBe('playdeveloperreporting.vitals.anrrate.query'); + expect(resolveOp('play', 'POST', '/upload/androidpublisher/v3/applications/p/edits/e/bundles').op.id).toBe('androidpublisher.edits.bundles.upload'); + expect(resolveOp('play', 'reviews.list').op.id).toBe('androidpublisher.reviews.list'); + expect(() => resolveOp('apple', 'apps_nope')).toThrow('no operation'); + expect(() => resolveOp('apple', 'GET', '/v9/nothing')).toThrow('no GET operation'); + }); + test('typed facades (checked by tsc)', () => { + const api = appleApi(() => 'Bearer t'); + expect(api.build('apps_getInstance', { id: '1', 'fields[apps]': 'name' }).url).toContain('/v1/apps/1?fields[apps]=name'); + // @ts-expect-error id is a required path parameter + expect(() => api.build('apps_getInstance', {})).toThrow(); + // @ts-expect-error not a parameter of this operation + expect(() => api.build('apps_getInstance', { id: '1', nope: 'x' })).toThrow(); + // @ts-expect-error filter[app] is required + expect(() => api.build('betaAppReviewDetails_getCollection', {})).toThrow(); + api.build('appStoreVersions_updateInstance', { id: '1' }, { data: { type: 'appStoreVersions', id: '1', attributes: { copyright: 'x' } } }); + // @ts-expect-error the body's resource type is appStoreVersions + api.build('appStoreVersions_updateInstance', { id: '1' }, { data: { type: 'apps', id: '1' } }); + const play = playApi(() => 'Bearer t'); + expect(play.build('androidpublisher.edits.tracks.list', { packageName: 'p', editId: 'e' }).method).toBe('GET'); + // @ts-expect-error editId is required + expect(() => play.build('androidpublisher.edits.tracks.list', { packageName: 'p' })).toThrow(); + }); +}); + +describe('write gating', () => { + const base: GateInput = { kind: 'read', method: 'GET', dry: false, yes: false, tty: true, agent: false, getOnly: false }; + test('gate kinds', () => { + expect(gateOf('apple', 'apps_getCollection', 'GET')).toBe('read'); + expect(gateOf('apple', 'apps_updateInstance', 'PATCH')).toBe('write'); + expect(gateOf('apple', 'reviewSubmissions_updateInstance', 'PATCH')).toBe('owner'); + expect(gateOf('apple', 'reviewSubmissions_createInstance', 'POST')).toBe('owner'); + expect(gateOf('apple', 'betaAppReviewSubmissions_createInstance', 'POST')).toBe('owner'); + expect(gateOf('apple', 'appStoreVersionReleaseRequests_createInstance', 'POST')).toBe('owner'); + expect(gateOf('apple', 'appStoreVersionPhasedReleases_createInstance', 'POST')).toBe('write'); + expect(gateOf('apple', 'appStoreVersionPhasedReleases_updateInstance', 'PATCH')).toBe('owner'); + expect(gateOf('apple', 'subscriptionPrices_createInstance', 'POST')).toBe('owner'); + expect(gateOf('apple', 'customerReviewResponses_createInstance', 'POST')).toBe('owner'); + expect(gateOf('apple', 'betaTesterInvitations_createInstance', 'POST')).toBe('owner'); + expect(gateOf('apple', 'appStoreVersionExperimentsV2_updateInstance', 'PATCH')).toBe('owner'); + expect(gateOf('apple', 'reviewSubmissionItems_createInstance', 'POST')).toBe('write'); + expect(gateOf('play', 'androidpublisher.edits.insert', 'POST')).toBe('write'); + expect(gateOf('play', 'androidpublisher.edits.commit', 'POST')).toBe('owner'); + expect(gateOf('play', 'androidpublisher.reviews.reply', 'POST')).toBe('owner'); + expect(gateOf('play', 'androidpublisher.purchases.subscriptionsv2.cancel', 'POST')).toBe('owner'); + expect(gateOf('play', 'androidpublisher.orders.refund', 'POST')).toBe('owner'); + expect(gateOf('play', 'androidpublisher.monetization.subscriptions.basePlans.migratePrices', 'POST')).toBe('owner'); + expect(gateOf('play', 'androidpublisher.inappproducts.batchDelete', 'POST')).toBe('owner'); + expect(gateOf('play', 'androidpublisher.edits.testers.update', 'PUT')).toBe('owner'); + expect(gateOf('play', 'androidpublisher.appsigning.rotateAppSigningKey', 'POST')).toBe('owner'); + expect(gateOf('play', 'playdeveloperreporting.vitals.crashrate.query', 'POST')).toBe('read'); + expect(gateOf('play', 'androidpublisher.monetization.convertRegionPrices', 'POST')).toBe('read'); + expect(ownerReason('apple', 'apps_getCollection', 'GET')).toBeNull(); + }); + test('every delete, submit, release and cancel operation is owner-only', () => { + for (const s of ['apple', 'play'] as const) for (const o of allOps(s)) { + const word = /delete|submi|release(?!s?_get)|cancel|refund|revoke|commit|reply|deploy/i.test(o.id.split('.').pop()!.replace(/_get\w+$/, '')); + if (o.method === 'DELETE' || (o.method !== 'GET' && word && !/PhasedReleases_createInstance|reviewSubmissionItems_|SubmissionItems|appClipDefaultExperiences_releaseWithAppStoreVersion/.test(o.id))) + expect({ id: o.id, gate: gateOf(s, o.id, o.method) }).toEqual({ id: o.id, gate: 'owner' }); + } + expect(OWNER_ONLY.apple.length).toBeGreaterThan(5); + }); + test('decisions: GET runs, writes are dry until --yes in a terminal, owner-only asks for the typed id', () => { + expect(decide(base)).toEqual({ action: 'send' }); + expect(decide({ ...base, dry: true }).action).toBe('dry'); + const w = { ...base, kind: 'write' as const, method: 'PATCH' }; + expect(decide(w)).toMatchObject({ action: 'dry', why: expect.stringContaining('--yes') }); + expect(decide({ ...w, yes: true, dry: true }).action).toBe('dry'); + expect(decide({ ...w, yes: true, tty: false })).toMatchObject({ action: 'dry', why: expect.stringContaining('not an interactive terminal') }); + expect(decide({ ...w, yes: true })).toEqual({ action: 'send' }); + const o = { ...w, kind: 'owner' as const }; + expect(decide({ ...o, yes: true })).toEqual({ action: 'confirm', typed: true }); + expect(decide({ ...o, yes: true, tty: false }).action).toBe('dry'); + // MCP / desktop: never a write, whatever the flags + expect(decide({ ...w, yes: true, agent: true }).action).toBe('refuse'); + expect(decide({ ...o, yes: true, agent: true })).toMatchObject({ action: 'refuse', why: expect.stringContaining('never through MCP') }); + expect(decide({ ...base, agent: true })).toEqual({ action: 'send' }); + // api get: GET only, even the read-only POST queries + expect(decide({ ...base, getOnly: true, method: 'POST' }).action).toBe('refuse'); + expect(decide({ ...base, getOnly: true })).toEqual({ action: 'send' }); + }); + test('the dry run shows the exact request without the credential', () => { + const r = buildRequest(op('apple', 'appStoreVersions_updateInstance'), { id: '1' }, { data: { type: 'appStoreVersions', id: '1' } }); + const text = describeRequest(r); + expect(text).toStartWith('PATCH https://api.appstoreconnect.apple.com/v1/appStoreVersions/1\n'); + expect(text).toContain('Bearer '); + expect(text).toContain('"type": "appStoreVersions"'); + }); + test('MCP exposes api_get only, read-only, with every parameter as one --param= token', () => { + const apiTools = TOOLS.filter(t => t.command[0] === 'api'); + expect(apiTools.map(t => t.name)).toEqual(['api_get']); + const t = apiTools[0]!; + expect(t.write).toBe(false); + const argv = toArgv(t, { store: 'apple', operation: 'apps_getCollection', params: { 'filter[bundleId]': 'com.example.app', limit: 5 }, all_pages: true }).argv; + expect(argv).toEqual(['api', 'get', 'apple', 'apps_getCollection', '--param=filter[bundleId]=com.example.app', '--param=limit=5', '--all-pages', '--json']); + expect(argv).not.toContain('--yes'); + expect(validateInput(t, { store: 'apple', operation: '--yes' })[0]).toContain('does not match'); + expect(validateInput(t, { store: 'apple', operation: 'x', params: { a: ['b'] } })[0]).toContain('must be an object'); + expect(validateInput(t, { store: 'apple', operation: 'x', params: { '--yes': 'x' } })[0]).toContain('must be an object'); + expect(validateInput(t, { store: 'apple', operation: 'x', params: { a: 'b\nc' } })[0]).toContain('must be an object'); + expect(validateInput(t, { store: 'apple', operation: 'x', params: { a: 'b', n: 1, f: true } })).toEqual([]); + expect(DESKTOP_TOOLS.some(d => d.command[0] === 'api')).toBe(false); + }); + test('repeated --param values', () => { + const a = parseArgs(['apple', 'x', '--param', 'a=1', '--param=b=2', '--param', 'a=3', '--all-pages', 'y']); + expect(a.many('param')).toEqual(['a=1', 'b=2', 'a=3']); + expect(a.has('all-pages')).toBe(true); + expect(a._).toEqual(['apple', 'x', 'y']); + expect(parseParams(a.many('param'))).toEqual({ a: ['1', '3'], b: '2' }); + expect(() => parseParams(['nope'])).toThrow('name=value'); + }); +}); + +describe('the CLI never sends a write it should not', () => { + const cli = (args: string[], env: Record = {}) => { + const r = Bun.spawnSync(['bun', join(ROOT, 'cli/index.ts'), 'api', ...args], { cwd: ROOT, env: { ...process.env, ASC_KEY_ID: '', ASC_P8: '', PLAY_SERVICE_ACCOUNT: '', ...env }, stdin: 'ignore' }); + return { code: r.exitCode, out: r.stdout.toString(), err: r.stderr.toString() }; + }; + test('a write without --yes prints the request (no credentials needed, nothing sent)', () => { + const r = cli(['play', 'edits.tracks.update', '--param', 'packageName=com.example.app', '--param', 'editId=1', '--param', 'track=beta', '--json']); + expect(r.code).toBe(0); + expect(JSON.parse(r.out)).toMatchObject({ dryRun: true, gate: 'write', request: { method: 'PUT', url: 'https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.example.app/edits/1/tracks/beta' } }); + }); + test('--yes outside a terminal still only prints', () => { + const r = cli(['apple', 'DELETE', '/v1/appScreenshots/1', '--yes']); + expect(r.code).toBe(0); + expect(r.out).toContain('not an interactive terminal'); + expect(r.out).toContain('owner only: this deletes'); + }); + test('under MCP and in api get, writes are refused', () => { + const m = cli(['play', 'edits.commit', '--param', 'packageName=p', '--param', 'editId=1', '--yes'], { STOREBOUND_MCP: '1' }); + expect(m.code).toBe(1); + expect(m.err).toContain('never through MCP'); + const g = cli(['get', 'apple', 'apps_updateInstance', '--param', 'id=1']); + expect(g.code).toBe(1); + expect(g.err).toContain('GET operations only'); + }); + test('list and coverage', () => { + const l = JSON.parse(cli(['list', '--store', 'play', '--search', 'tracks update', '--json']).out) as { id: string }[]; + expect(l.map(x => x.id)).toEqual(['androidpublisher.edits.tracks.update']); + const c = JSON.parse(cli(['coverage', '--json']).out) as ReturnType; + expect(c.apis.map(a => a.api)).toEqual(['appstoreconnect', 'androidpublisher', 'playdeveloperreporting']); + expect(c.apis[0]!.operations).toBe(Object.keys(APPLE_OPS).length); + expect(c.resources.reduce((n, r) => n + r.operations, 0)).toBe(Object.keys(APPLE_OPS).length + Object.keys(PLAY_OPS).length); + }); +}); + +describe('coverage scan', () => { + test('call sites map to operations, the most specific template wins', () => { + const src = [ + "const v = await c.asc('PATCH', `/v1/appStoreVersions/${v.id}`, body);", + 'const all = await c.all(`/v1/apps/${appId}/appStoreVersions?filter[platform]=IOS&limit=50`);', + "await play.call('PUT', `${play.API}/edits/${id}/tracks/${track}`, t);", + "await g.json('POST', `${app}/crashRateMetricSet:query`, q); // androidpublisher", + "await play.call('POST', `${API}/edits/${e.id}:commit${o.commitQuery ?? ''}`);", + "const x = { method: 'POST', path: '/v1/betaTesterInvitations' };", + "await c.uploadAsset('appScreenshots', rel, f);", + "await c.asc('POST', `/v1/${type}`, body);", + ].join('\n'); + const sites = scanSource('demo', src); + const w = wrappedOps(sites, APPLE_OPS as never, PLAY_OPS as never); + expect(Object.keys(w.apple).sort()).toEqual(['appScreenshots_createInstance', 'appScreenshots_updateInstance', 'appStoreVersions_updateInstance', + 'apps_appStoreVersions_getToManyRelated', 'betaTesterInvitations_createInstance']); + expect(Object.keys(w.play).sort()).toEqual(['androidpublisher.edits.commit', 'androidpublisher.edits.tracks.update', 'playdeveloperreporting.vitals.crashrate.query']); + expect(templateRegex('v1beta1/{+name}:query', 'name=apps/*/anrRateMetricSet').test('v1beta1/apps/X/crashRateMetricSet:query')).toBe(false); + }); + test('another ${base} in a file that never talks to Google is not a Play call', () => { + expect(scanSource('shots/x', 'const u = `${base}/frames/${n}.png`;')).toEqual([]); + }); + test('storebound commands already wrap a good share, reported per operation', () => { + const r = rows(); + expect(r.filter(x => x.wrapped).length).toBeGreaterThan(100); + expect(r.find(x => x.id === 'apps_getCollection')!.wrapped).toContain('apple/bundle'); + expect(search(r, 'crashrate query').map(x => x.id)).toEqual(['playdeveloperreporting.vitals.crashrate.query']); + }); +}); + +describe('sending: retries and pagination', () => { + const json = (body: unknown, status = 200, headers: Record = {}) => + new Response(JSON.stringify(body), { status, headers: { 'content-type': 'application/json', ...headers } }); + + test('429 with Retry-After and 5xx are retried with backoff, then the error has the API text', async () => { + const waits: number[] = []; + const answers = [json({}, 429, { 'retry-after': '3' }), json({}, 503), json({ data: [] }, 200, { 'x-rate-limit': 'user-hour-lim:3600;user-hour-rem:3599;' })]; + const seen: Record[] = []; + const r = await send(buildRequest(op('apple', 'apps_getCollection'), {}), () => 'Bearer t', + { fetch: async (_u, i) => { seen.push(i.headers as Record); return answers.shift()!; }, sleep: async ms => { waits.push(ms); } }); + expect(waits).toEqual([3000, 2000]); + expect(r).toEqual({ status: 200, json: { data: [] }, rateLimit: 'user-hour-lim:3600;user-hour-rem:3599;' }); + expect(seen[0]!.Authorization).toBe('Bearer t'); + expect(backoffMs(1)).toBe(1000); + expect(backoffMs(10)).toBe(30_000); + expect(backoffMs(1, '120')).toBe(60_000); + const fail = send(buildRequest(op('apple', 'apps_getInstance'), { id: '1' }), () => 'Bearer t', + { fetch: async () => json({ errors: [{ status: '404', detail: 'not\nfound' }] }, 404), sleep: async () => {} }); + expect(fail).rejects.toThrow('GET /v1/apps/1 -> 404 {"errors":[{"status":"404","detail":"not\\nfound"}]}'); + }); + test('Apple pages follow links.next on the same host; included is de-duplicated', async () => { + const B = 'https://api.appstoreconnect.apple.com/v1/apps'; + const pages: Record = { + [B + '?limit=2']: { data: [{ type: 'apps', id: '1' }, { type: 'apps', id: '2' }], included: [{ type: 'builds', id: 'b' }], links: { self: 's', next: B + '?cursor=2' } }, + [B + '?cursor=2']: { data: [{ type: 'apps', id: '3' }], included: [{ type: 'builds', id: 'b' }, { type: 'builds', id: 'c' }], links: { self: 's2' } }, + }; + const urls: string[] = []; + const r = await sendAll(buildRequest(op('apple', 'apps_getCollection'), { limit: 2 }), () => 'Bearer t', { fetch: async u => { urls.push(u); return json(pages[u]); } }); + expect(urls).toEqual([B + '?limit=2', B + '?cursor=2']); + expect(r.pages).toBe(2); + const j = r.json as { data: { id: string }[]; included: { id: string }[] }; + expect(j.data.map(d => d.id)).toEqual(['1', '2', '3']); + expect(j.included.map(d => d.id)).toEqual(['b', 'c']); + const req = buildRequest(op('apple', 'apps_getCollection'), {}); + expect(() => nextRequest(req, { links: { next: 'https://evil.example.com/v1/apps?cursor=1' } })).toThrow('another host'); + }); + test('Google pageToken and token paging', async () => { + const urls: string[] = []; + const tracks = [{ a: [1], nextPageToken: 'n1' }, { a: [2], nextPageToken: 'n2' }, { a: [3] }]; + const r = await sendAll(buildRequest(op('play', 'playdeveloperreporting.apps.search'), { pageSize: 1 }), () => 'Bearer t', { fetch: async u => { urls.push(u); return json(tracks.shift()); } }); + expect(urls[1]).toBe('https://playdeveloperreporting.googleapis.com/v1beta1/apps:search?pageSize=1&pageToken=n1'); + expect(r.json).toEqual({ a: [1, 2, 3] }); + const reviews = [{ reviews: [{ reviewId: 'r1' }], tokenPagination: { nextPageToken: 't1' } }, { reviews: [{ reviewId: 'r2' }], tokenPagination: {} }]; + const ru: string[] = []; + const rv = await sendAll(buildRequest(op('play', 'androidpublisher.reviews.list'), { packageName: 'p' }), () => 'Bearer t', { fetch: async u => { ru.push(u); return json(reviews.shift()); } }); + expect(ru[1]).toEndWith('/reviews?token=t1'); + expect(rv.json).toEqual({ reviews: [{ reviewId: 'r1' }, { reviewId: 'r2' }] }); + expect(mergePages({ x: [1], k: 'a' }, { x: [2], k: 'b', nextPageToken: 'z' })).toEqual({ x: [1, 2], k: 'a' }); + }); + test('a server that never stops paging is cut off', async () => { + const r = sendAll(buildRequest(op('play', 'playdeveloperreporting.apps.search'), {}), () => 'Bearer t', + { maxPages: 3, fetch: async () => json({ apps: [1], nextPageToken: 'again' }) }); + expect(r).rejects.toThrow('more than 3 pages'); + }); +}); diff --git a/tests/desktop-d3.test.ts b/tests/desktop-d3.test.ts index 46358f10..a1486988 100644 --- a/tests/desktop-d3.test.ts +++ b/tests/desktop-d3.test.ts @@ -150,7 +150,7 @@ describe('full CLI coverage: new methods', () => { describe('the owner flag', () => { const saved = { ...process.env }; afterEach(() => { for (const k of ['STOREBOUND_SERVE', 'STOREBOUND_OWNER_CONFIRMED']) { if (saved[k] === undefined) delete process.env[k]; else process.env[k] = saved[k]; } }); - const ctx = { loaded: {} as never, args: { has: (n: string) => n === 'yes', get: () => undefined, str: (_: string, d: string) => d, num: (_: string, d: number) => d, list: () => [], _: [] } }; + const ctx = { loaded: {} as never, args: { has: (n: string) => n === 'yes', get: () => undefined, str: (_: string, d: string) => d, num: (_: string, d: number) => d, list: () => [], many: () => [], _: [] } }; test('under serve: no by default, even with --yes; yes only with the owner flag', async () => { process.env.STOREBOUND_SERVE = '1'; delete process.env.STOREBOUND_OWNER_CONFIRMED; diff --git a/tools/ci.ts b/tools/ci.ts index 4faebb87..b2e8a4a1 100644 --- a/tools/ci.ts +++ b/tools/ci.ts @@ -12,6 +12,8 @@ const tauri = join(root, 'apps/desktop/src-tauri'); const cargo = process.env.STOREBOUND_CI_RUST === '0' ? null : Bun.which('cargo'); const steps: [string, string[], string?][] = [ ['adapters', ['bun', 'tools/gen-adapters.ts', '--check']], + // the App Store Connect / Google Play operation tables, the wrapped-by scan and docs/api-coverage.md match specs/ and cli/ + ['api tables', ['bun', 'tools/gen-api.ts', '--check']], // one desktop version: package.json desktopVersion = apps/desktop/package.json = tauri.conf.json = Cargo.toml / .lock ['desktop version', ['bun', 'tools/desktop-version.ts']], ['tests', ['bun', 'test']], diff --git a/tools/gen-adapters.ts b/tools/gen-adapters.ts index 953fd4b2..640ef253 100644 --- a/tools/gen-adapters.ts +++ b/tools/gen-adapters.ts @@ -74,6 +74,7 @@ export function generate(root: string): Map { '- CLI: `storebound ` (`storebound help`); config `storebound.config.ts`, credentials in env or `.storebound/`.', '- MCP: `storebound mcp` (stdio). MCP 2026-07-28 + 2025-11-25. Write tools default to `dry_run: true`; submit / release / cancel / delete / send are not exposed.', '- Readiness: `storebound check` (offline), `storebound validate` (read-only, both stores).', + '- Every endpoint: `storebound api apple|play ` (skill store-api). GETs run; writes are dry unless the owner adds `--yes` in a terminal; MCP has the read-only `api_get`.', ].join('\n'); // 4. AGENTS.md (Codex, Cursor, Copilot, Windsurf, OpenCode, ...) diff --git a/tools/gen-api.ts b/tools/gen-api.ts new file mode 100644 index 00000000..31eaaf12 --- /dev/null +++ b/tools/gen-api.ts @@ -0,0 +1,341 @@ +#!/usr/bin/env bun +// Generates the operation tables of every App Store Connect and Google Play API endpoint from the pinned specs/: +// cli/api/apple.gen.ts App Store Connect API (Apple's OpenAPI document) +// cli/api/play.gen.ts Google Play Android Developer API v3 + Play Developer Reporting API v1beta1 (discovery docs) +// cli/api/wrapped.gen.ts which operations storebound's own commands already call (a scan of cli/) +// docs/api-coverage.md the full table: every operation, its gate (read / write / owner-only) and its wrapper +// +// bun tools/gen-api.ts write the files +// bun tools/gen-api.ts --check exit 1 when a committed file is stale (CI) +// +// Compact on purpose: one row of strings per operation and generic call helpers in cli/api/client.ts, no function per +// endpoint, so the npm package stays small. Types come from the rows (cli/api/types.ts derives path / query params, +// request and response shapes from the literal strings). +import { createHash } from 'node:crypto'; +import { readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs'; +import { join, relative } from 'node:path'; +import { gateOf, resourceOf, type GateKind } from '../cli/api/gate'; + +const ROOT = join(import.meta.dir, '..'); +// eslint-disable-next-line @typescript-eslint/no-explicit-any +type J = any; + +export interface Sources { + apple: { file: string; title: string; version: string; url: string; downloaded: string; sha256: string }; + play: { file: string; title: string; revision: string; url: string; downloaded: string; sha256: string }[]; +} + +const sha256 = (s: string | Buffer): string => createHash('sha256').update(s).digest('hex'); +const q = (s: string): string => `'${s.replace(/\\/g, '\\\\').replace(/'/g, "\\'")}'`; + +// ---------------------------------------------------------------------------------------------------------- Apple + +export type AppleRow = [method: string, path: string, query: string, request: string, response: string]; + +/** The resource `type` a JSON:API schema's `data` carries ("" when it has none), with [] when data is a list. */ +function dataType(spec: J, schema: J): string { + const s = deref(spec, schema); + const data = deref(spec, s?.properties?.data); + if (!data) return ''; + if (data.type === 'array') { + const item = deref(spec, data.items); + return (item?.properties?.type?.enum?.[0] ?? '') + '[]'; + } + return data.properties?.type?.enum?.[0] ?? ''; +} + +function deref(spec: J, s: J): J { + for (let i = 0; s && s.$ref && i < 10; i++) { + const parts = String(s.$ref).replace(/^#\//, '').split('/'); + s = parts.reduce((o: J, k) => o?.[k], spec); + } + return s; +} + +export function appleRows(spec: J): Record { + const rows: [string, AppleRow][] = []; + for (const [path, item] of Object.entries(spec.paths)) { + for (const method of ['get', 'post', 'put', 'patch', 'delete']) { + const op = item[method]; + if (!op) continue; + const params = [...(item.parameters ?? []), ...(op.parameters ?? [])].map(p => deref(spec, p)); + const query = params.filter(p => p.in === 'query').map(p => p.name + (p.required ? '!' : '')); + let request = ''; + const reqSchema = op.requestBody?.content?.['application/json']?.schema; + if (reqSchema) request = dataType(spec, reqSchema) || 'json'; + let response = 'none'; + const ok = Object.keys(op.responses ?? {}).filter(c => /^2\d\d$/.test(c)).sort()[0]; + const content = ok ? op.responses[ok].content ?? deref(spec, op.responses[ok]).content : undefined; + if (content) { + const json = content['application/json']; + if (json) { + const t = dataType(spec, json.schema); + response = !t ? 'json' : t.endsWith('[]') ? `many:${t.slice(0, -2)}` : `one:${t}`; + } else response = 'raw:' + Object.keys(content).sort()[0]; + } + rows.push([op.operationId, [method.toUpperCase(), path, query.join(' '), request, response]]); + } + } + rows.sort((a, b) => (a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0)); + return Object.fromEntries(rows); +} + +// ---------------------------------------------------------------------------------------------------------- Google + +/** [method, path (with {param} / {+param}), query params ("name", "name!" required, "name*" repeated), request schema, + * response schema, flags: m = media upload, d = media download, p = pageToken paging, t = token paging, the shape of + * each {+param} ("name=apps/* /crashRateMetricSet" without the space, * one segment; several joined by spaces)]. */ +export type PlayRow = [method: string, path: string, query: string, request: string, response: string, flags: string, shapes: string]; + +export function playRows(doc: J): Record { + const rows: [string, PlayRow][] = []; + const walk = (r: J) => { + for (const m of Object.values(r.methods ?? {})) { + const query = Object.entries(m.parameters ?? {}).filter(([, p]) => p.location === 'query') + .map(([n, p]) => n + (p.required ? '!' : '') + (p.repeated ? '*' : '')).sort(); + const resp = m.response?.$ref ? doc.schemas?.[m.response.$ref] : undefined; + let flags = ''; + if (m.mediaUpload) flags += 'm'; + if (m.supportsMediaDownload) flags += 'd'; + if (m.parameters?.pageToken?.location === 'query' && resp?.properties?.nextPageToken) flags += 'p'; + if (m.parameters?.token?.location === 'query' && resp?.properties?.tokenPagination) flags += 't'; + // {+name} holds slashes; its pattern (^apps/[^/]+/crashRateMetricSet$) tells the vitals metric sets apart + const shapes = Object.entries(m.parameters ?? {}).filter(([n, p]) => p.location === 'path' && p.pattern && m.path.includes(`{+${n}}`)) + .map(([n, p]) => `${n}=${String(p.pattern).replace(/^\^|\$$/g, '').split('[^/]+').join('*')}`).sort(); + rows.push([m.id, [m.httpMethod, doc.servicePath + m.path, query.join(' '), m.request?.$ref ?? '', m.response?.$ref ?? '', flags, shapes.join(' ')]]); + } + for (const s of Object.values(r.resources ?? {})) walk(s); + }; + walk(doc); + rows.sort((a, b) => (a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0)); + return Object.fromEntries(rows); +} + +// ---------------------------------------------------------------------------------------------------------- wrapped + +/** Literal prefixes the commands use for Google URLs, mapped to the path form of the Play tables. */ +const PLAY_PREFIXES: [RegExp, string][] = [ + [/^\$\{play\.UPLOAD\}|^\$\{UPLOAD\}/, 'androidpublisher/v3/applications/X'], + [/^\$\{play\.API\}|^\$\{API\}|^\$\{base\}/, 'androidpublisher/v3/applications/X'], + [/^https:\/\/androidpublisher\.googleapis\.com\/(upload\/)?/, ''], + [/^\$\{app\}/, 'v1beta1/apps/X'], + [/^\$\{REPORTING_API\}/, 'v1beta1'], + [/^https:\/\/playdeveloperreporting\.googleapis\.com\//, ''], +]; + +export interface CallSite { store: 'apple' | 'play'; method: string; path: string; file: string } + +/** API calls in one source file: path literals with the HTTP method next to them (GET for the read helpers). */ +export function scanSource(file: string, text: string): CallSite[] { + const out: CallSite[] = []; + const start = String.raw`(?:\/v\d\/|\$\{(?:play\.)?(?:API|UPLOAD)\}|\$\{base\}|\$\{app\}|\$\{REPORTING_API\}|https:\/\/(?:androidpublisher|playdeveloperreporting)\.googleapis\.com\/|\/apps:search)`; + // a template literal may hold ${...} with quotes inside (`${x ?? ''}`); a plain string may not + const lit = new RegExp(String.raw`\x60(${start}(?:\$\{[^}]*\}|[^\x60$]|\$(?!\{))*)\x60|'(${start}[^'\n]*)'`, 'g'); + for (const m of text.matchAll(lit)) { + const before = text.slice(Math.max(0, m.index - 120), m.index); + const meth = /'(GET|POST|PATCH|PUT|DELETE)'[^'`]*$/.exec(before.split('\n').slice(-2).join('\n')); + const method = meth ? meth[1]! : 'GET'; + // a trailing ${...} glued to a word is a query suffix (`:commit${o.commitQuery ?? ''}`), not part of the path + let raw = (m[1] ?? m[2]!).replace(/(?<=[A-Za-z])\$\{[^}]*\}$/, '').replace(/\$\{[^}]*\}/g, s => (PLAY_PREFIXES.some(([re]) => re.test(s)) ? s : 'X')); + raw = raw.replace(/[?].*$/, '').replace(/\$\{[^}]*$/, ''); + if (raw.startsWith('/v')) { + if (/^\/v\d\/X/.test(raw)) continue; // `/v1/${type}`: resource not known statically + out.push({ store: 'apple', method, path: raw, file }); + continue; + } + if (raw.startsWith('/apps:search')) { out.push({ store: 'play', method, path: 'v1beta1' + raw, file }); continue; } + if (!/androidpublisher|playdeveloperreporting|play\.API|REPORTING_API/.test(text)) continue; // another `${base}` + for (const [re, rep] of PLAY_PREFIXES) { + if (!re.test(raw)) continue; + const rest = raw.replace(re, ''); + if (rest.replace(/^\//, '')) out.push({ store: 'play', method, path: (rep + (rep && !rest.startsWith('/') && !rest.startsWith(':') ? '/' : '') + rest).replace(/^\//, ''), file }); + break; + } + } + // c.uploadAsset('appScreenshots', ...): reserve (POST /v1/) and commit (PATCH /v1//{id}) + for (const m of text.matchAll(/uploadAsset\(\s*'([A-Za-z]+)'/g)) { + out.push({ store: 'apple', method: 'POST', path: `/v1/${m[1]}`, file }, { store: 'apple', method: 'PATCH', path: `/v1/${m[1]}/X`, file }); + } + return out; +} + +const esc = (s: string) => s.replace(/[.*+?^$()|[\]\\]/g, '\\$&'); + +/** Path template -> regex over a scanned path (X for any expression); `shapes` narrows {+param}s. */ +export function templateRegex(path: string, shapes = ''): RegExp { + const shape = new Map(shapes.split(' ').filter(Boolean).map(s => [s.slice(0, s.indexOf('=')), s.slice(s.indexOf('=') + 1)] as const)); + const body = path.replace(/^\//, '').split(/(\{\+?[^}]+\})/).map(part => { + const m = /^\{(\+?)([^}]+)\}$/.exec(part); + if (!m) return esc(part); + if (!m[1]) return '[^/:]+'; + const s = shape.get(m[2]!); + return s ? s.split('*').map(esc).join('[^/:]+') : '.+'; + }).join(''); + return new RegExp('^' + body + '$'); +} + +export function wrappedOps(sites: CallSite[], apple: Record, play: Record): { apple: Record; play: Record } { + const res = { apple: {} as Record, play: {} as Record }; + const index = (rows: Record) => Object.entries(rows).map(([id, r]) => ({ id, method: r[0], re: templateRegex(r[1], (r as string[])[6] ?? ''), fixed: r[1].split('{')[0]!.length })); + const tables = { apple: index(apple), play: index(play) }; + for (const s of sites) { + const path = s.path.replace(/^\//, ''); + // the most specific template wins (longest fixed prefix): /v1/apps/X matches apps_getInstance, not a {+name} catch-all + const hits = tables[s.store].filter(o => o.method === s.method && o.re.test(path)).sort((a, b) => b.fixed - a.fixed); + const best = hits[0]; + if (!best) continue; + const list = (res[s.store][best.id] ??= []); + if (!list.includes(s.file)) list.push(s.file); + } + for (const store of ['apple', 'play'] as const) { + res[store] = Object.fromEntries(Object.entries(res[store]).sort(([a], [b]) => (a < b ? -1 : 1)).map(([k, v]) => [k, v.sort()])); + } + return res; +} + +function listTs(dir: string): string[] { + const out: string[] = []; + for (const name of readdirSync(dir).sort()) { + const p = join(dir, name); + if (statSync(p).isDirectory()) { if (name !== 'api') out.push(...listTs(p)); } + else if (name.endsWith('.ts') && !name.endsWith('.d.ts')) out.push(p); + } + return out; +} + +export function scanCli(root = ROOT): CallSite[] { + return listTs(join(root, 'cli')).flatMap(p => scanSource(relative(join(root, 'cli'), p).replace(/\.ts$/, ''), readFileSync(p, 'utf8'))); +} + +// ---------------------------------------------------------------------------------------------------------- output + +const HEAD = (what: string) => `// GENERATED by tools/gen-api.ts from ${what}. Do not edit: run \`bun tools/gen-api.ts\` (CI checks it is fresh).\n`; + +export function appleFile(src: Sources['apple'], rows: Record): string { + const lines = Object.entries(rows).map(([id, r]) => ` ${id}: [${r.map(q).join(', ')}],`); + return HEAD(`specs/${src.file} (${src.title} ${src.version}, ${src.url}, downloaded ${src.downloaded})`) + +`// One row per operation: [method, path, query parameters ("name", "name!" when required; arrays are comma-joined), +// request body resource type ("type", "type[]" for a relationship list, "json" for another body, "" for none), +// response ("many:type" | "one:type" | "json" | "raw:" for another body, sent as Accept | "none")]. +export const APPLE_SPEC = { title: ${q(src.title)}, version: ${q(src.version)}, sha256: ${q(src.sha256)}, base: 'https://api.appstoreconnect.apple.com' } as const; + +export const APPLE_OPS = { +${lines.join('\n')} +} as const; +`; +} + +export function playFile(srcs: Sources['play'], docs: J[], rows: Record): string { + const apis = docs.map((d, i) => ` ${d.name}: { title: ${q(srcs[i]!.title)}, version: ${q(d.version)}, revision: ${q(d.revision)}, root: ${q(d.rootUrl)}, scope: ${q(Object.keys(d.auth?.oauth2?.scopes ?? {})[0] ?? '')}, sha256: ${q(srcs[i]!.sha256)} },`); + const lines = Object.entries(rows).map(([id, r]) => ` ${q(id)}: [${r.map(q).join(', ')}],`); + return HEAD(srcs.map(s => `specs/${s.file} (${s.title}, revision ${s.revision}, ${s.url}, downloaded ${s.downloaded})`).join(' and ')) + +`// One row per method: [HTTP method, path ({p} one segment, {+p} may hold slashes), query parameters ("name", "name!" +// required, "name*" repeated), request schema, response schema, flags (m media upload, d media download, p pageToken +// paging, t token paging)]. The API is the first part of the id. +export const PLAY_APIS = { +${apis.join('\n')} +} as const; + +export const PLAY_OPS = { +${lines.join('\n')} +} as const; +`; +} + +export function wrappedFile(w: ReturnType): string { + const block = (o: Record) => Object.entries(o).map(([k, v]) => ` ${q(k)}: ${q(v.join(' '))},`).join('\n'); + return HEAD('a scan of the API calls in cli/ (outside cli/api)') + +`// Operation id -> the source modules (cli/.ts) of storebound commands that already call it. +export const WRAPPED: { apple: Record; play: Record } = { + apple: { +${block(w.apple)} + }, + play: { +${block(w.play)} + }, +}; +`; +} + +export function coverageDoc(srcs: Sources, apple: Record, play: Record, w: ReturnType): string { + const label: Record = { read: 'read', write: 'write (dry by default)', owner: 'owner only (typed confirm)' }; + const all = [ + ...Object.entries(apple).map(([id, r]) => ({ store: 'apple' as const, id, method: r[0], path: r[1] })), + ...Object.entries(play).map(([id, r]) => ({ store: 'play' as const, id, method: r[0], path: r[1] })), + ]; + const sections: string[] = []; + const summary: string[] = ['| API | operations | GET | other | wrapped by a command | owner only |', '|---|---:|---:|---:|---:|---:|']; + const groups: [string, typeof all][] = [ + [`App Store Connect API ${srcs.apple.version}`, all.filter(o => o.store === 'apple')], + ...srcs.play.map(s => [`${s.title} (revision ${s.revision})`, all.filter(o => o.store === 'play' && o.id.startsWith(s.file.split('_')[0]! + '.'))] as [string, typeof all]), + ]; + for (const [title, ops] of groups) { + const wrappedSet = (o: (typeof all)[number]) => w[o.store][o.id]; + summary.push(`| ${title} | ${ops.length} | ${ops.filter(o => o.method === 'GET').length} | ${ops.filter(o => o.method !== 'GET').length} | ${ops.filter(wrappedSet).length} | ${ops.filter(o => gateOf(o.store, o.id, o.method) === 'owner').length} |`); + const byRes = new Map(); + for (const o of ops) { const r = resourceOf(o); byRes.set(r, [...(byRes.get(r) ?? []), o]); } + const rows = [...byRes.entries()].sort(([a], [b]) => (a < b ? -1 : 1)).flatMap(([res, list]) => [ + `| **${res}** (${list.length}) | | | | |`, + ...list.map(o => `| \`${o.id}\` | ${o.method} | \`${o.path}\` | ${label[gateOf(o.store, o.id, o.method)]} | ${(wrappedSet(o) ?? []).join(', ')} |`), + ]); + sections.push(`## ${title}\n\n${byRes.size} resources, ${ops.length} operations.\n\n| operation | method | path | gate | wrapped by (cli/…) |\n|---|---|---|---|---|\n${rows.join('\n')}\n`); + } + return `# API coverage + + + +Every operation of the App Store Connect API and the Google Play Developer APIs is callable with +\`storebound api apple|play [--param k=v ...]\`. "Wrapped by" names the storebound modules whose +high-level commands already call the operation. Gates: **read** runs right away; **write** prints the exact request and +only sends with \`--yes\` in an interactive terminal; **owner only** (submit, release, delete, cancel, prices, testers, +review replies, experiments) also asks you to type the operation id, and is never reachable through MCP or the desktop app. + +Specs: Apple [${srcs.apple.title} ${srcs.apple.version}](${srcs.apple.url}) (downloaded ${srcs.apple.downloaded}); ${srcs.play.map(s => `[${s.title}](${s.url}) revision ${s.revision}`).join('; ')}. + +${summary.join('\n')} + +${sections.join('\n')}`; +} + +export interface Generated { path: string; text: string } + +export function generate(root = ROOT): Generated[] { + const srcs = JSON.parse(readFileSync(join(root, 'specs/SOURCES.json'), 'utf8')) as Sources; + const read = (f: string) => { + const buf = readFileSync(join(root, 'specs', f)); + return { buf, sum: sha256(buf) }; + }; + const a = read(srcs.apple.file); + if (a.sum !== srcs.apple.sha256) throw new Error(`specs/${srcs.apple.file}: sha256 ${a.sum} does not match specs/SOURCES.json`); + const appleSpec = JSON.parse(a.buf.toString('utf8')); + const docs = srcs.play.map(s => { + const r = read(s.file); + if (r.sum !== s.sha256) throw new Error(`specs/${s.file}: sha256 ${r.sum} does not match specs/SOURCES.json`); + return JSON.parse(r.buf.toString('utf8')); + }); + const apple = appleRows(appleSpec); + const play = Object.assign({}, ...docs.map(playRows)) as Record; + const w = wrappedOps(scanCli(root), apple, play); + return [ + { path: 'cli/api/apple.gen.ts', text: appleFile(srcs.apple, apple) }, + { path: 'cli/api/play.gen.ts', text: playFile(srcs.play, docs, play) }, + { path: 'cli/api/wrapped.gen.ts', text: wrappedFile(w) }, + { path: 'docs/api-coverage.md', text: coverageDoc(srcs, apple, play, w) }, + ]; +} + +if (import.meta.main) { + const check = process.argv.includes('--check'); + let stale = 0; + for (const g of generate()) { + const p = join(ROOT, g.path); + let cur = ''; + try { cur = readFileSync(p, 'utf8'); } catch { /* new */ } + if (cur === g.text) continue; + if (check) { console.error(`gen-api: ${g.path} is stale: run bun tools/gen-api.ts`); stale++; continue; } + writeFileSync(p, g.text); + console.log(`gen-api: wrote ${g.path} (${(g.text.length / 1024).toFixed(0)} KB)`); + } + if (stale) process.exit(1); + if (check) console.log('gen-api: generated API tables are fresh'); +} From 73cb7b3009f0cc89052828921553f45e0259a365 Mon Sep 17 00:00:00 2001 From: CRT Date: Sun, 11 Oct 2026 15:42:48 +0000 Subject: [PATCH 4/8] Signing, builds, uploads and an originality check apple signing status|ensure: bundle id capabilities, a distribution certificate from a key made locally (kept in .storebound/signing, never printed), App Store profiles installed for Xcode; Developer ID 403 explained. apple build / apple upload: xcodebuild archive + export with a generated ExportOptions.plist, next build number, App Store Connect API build upload (or altool), processing wait. Native, Capacitor, React Native, Flutter, Unity projects. play build / play upload: Gradle bundleRelease with the upload key passed through the environment, next versionCode read back from the AAB, testing tracks only. originality: offline Guideline 4.3 check (name, listing text, icon and screenshot perceptual hashes, project structure). New skill build-and-sign; zero new dependencies. --- .cursor/rules/storebound.mdc | 1 + .github/copilot-instructions.md | 1 + AGENTS.md | 1 + CHANGELOG.md | 28 ++ GEMINI.md | 1 + README.md | 15 +- cli/apple/build.ts | 148 +++++++++++ cli/apple/signing.ts | 232 ++++++++++++++++ cli/apple/upload.ts | 163 ++++++++++++ cli/index.ts | 8 +- cli/lib/config.ts | 15 ++ cli/lib/credentials.ts | 32 ++- cli/lib/csr.ts | 57 ++++ cli/lib/gradle.ts | 180 +++++++++++++ cli/lib/imagehash.ts | 138 ++++++++++ cli/lib/originality.ts | 267 +++++++++++++++++++ cli/lib/plist.ts | 125 +++++++++ cli/lib/runner.ts | 2 +- cli/lib/signing.ts | 173 ++++++++++++ cli/lib/xcode.ts | 189 +++++++++++++ cli/lib/zip.ts | 52 ++++ cli/mcp-tools.ts | 8 + cli/originality.ts | 53 ++++ cli/play/build.ts | 91 +++++++ cli/play/next-version-code.ts | 15 +- cli/play/upload.ts | 78 ++++++ skills/appstore-first-release/SKILL.md | 21 +- skills/build-and-sign/SKILL.md | 92 +++++++ skills/play-first-release/SKILL.md | 13 +- skills/portfolio-originality/SKILL.md | 16 +- templates/credentials.example.json | 4 + tests/build-fixtures.ts | 64 +++++ tests/build-sign.test.ts | 353 +++++++++++++++++++++++++ tests/fixtures/build/Info.bplist | Bin 0 -> 407 bytes tests/fixtures/build/Info.plist | 33 +++ tests/originality.test.ts | 145 ++++++++++ 36 files changed, 2786 insertions(+), 28 deletions(-) create mode 100644 cli/apple/build.ts create mode 100644 cli/apple/signing.ts create mode 100644 cli/apple/upload.ts create mode 100644 cli/lib/csr.ts create mode 100644 cli/lib/gradle.ts create mode 100644 cli/lib/imagehash.ts create mode 100644 cli/lib/originality.ts create mode 100644 cli/lib/plist.ts create mode 100644 cli/lib/signing.ts create mode 100644 cli/lib/xcode.ts create mode 100644 cli/lib/zip.ts create mode 100644 cli/originality.ts create mode 100644 cli/play/build.ts create mode 100644 cli/play/upload.ts create mode 100644 skills/build-and-sign/SKILL.md create mode 100644 tests/build-fixtures.ts create mode 100644 tests/build-sign.test.ts create mode 100644 tests/fixtures/build/Info.bplist create mode 100644 tests/fixtures/build/Info.plist create mode 100644 tests/originality.test.ts diff --git a/.cursor/rules/storebound.mdc b/.cursor/rules/storebound.mdc index 2c41da63..32db6e6c 100644 --- a/.cursor/rules/storebound.mdc +++ b/.cursor/rules/storebound.mdc @@ -45,6 +45,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - `skills/app-previews/SKILL.md`: Make App Store app preview videos and a Google Play promo video for a mobile app or game from real footage (gameplay or app flows) - `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game - `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text +- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal - `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly - `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` - `skills/play-first-release/SKILL.md`: Step-by-step first (and later) Google Play release of a mobile app or game diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ecfa9e79..394d79c3 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -47,6 +47,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t | `app-previews` | Make App Store app preview videos and a Google Play promo video for a mobile app or game from real footage (gameplay or app flows) | | `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game | | `aso-basics` | App store optimization basics for a mobile app's or game's text | +| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal | | `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly | | `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` | | `play-first-release` | Step-by-step first (and later) Google Play release of a mobile app or game | diff --git a/AGENTS.md b/AGENTS.md index 19cf225e..d40c3428 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -46,6 +46,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - `skills/app-previews/SKILL.md`: Make App Store app preview videos and a Google Play promo video for a mobile app or game from real footage (gameplay or app flows) - `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game - `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text +- `skills/build-and-sign/SKILL.md`: Sign, build and upload a mobile app or game from the terminal - `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly - `skills/migrate-from-fastlane/SKILL.md`: Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` - `skills/play-first-release/SKILL.md`: Step-by-step first (and later) Google Play release of a mobile app or game diff --git a/CHANGELOG.md b/CHANGELOG.md index ba686186..88f1685a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,34 @@ ## Unreleased +- Signing through the App Store Connect API: `apple signing status` (read-only; also an MCP tool) and + `apple signing ensure` (dry first, asks once). Bundle id capabilities from `apple.signing.capabilities` (added, + never removed), an Apple Distribution certificate when this machine holds no key for a valid one (RSA 2048 key + and CSR made in TypeScript, key kept 0600 in `.storebound/signing/`, never printed; `--keychain` imports key and + certificate), App Store profiles per bundle id (app + `apple.signing.extraBundleIds`) reused while active or + created, installed for Xcode 16+ (`~/Library/Developer/Xcode/UserData/Provisioning Profiles`) and older Xcode + (`~/Library/MobileDevice/Provisioning Profiles`). A 403 on a Developer ID certificate is explained (Account Holder + only), as are the certificate limit and a key without the Admin role. +- `apple build`: finds the workspace / project and scheme (native, Capacitor, React Native, Flutter with + `flutter build ios --config-only`, Unity-iPhone), takes the next free build number from App Store Connect, + writes ExportOptions.plist (`method` app-store-connect, `destination` export, team, signing style, profiles) and + runs xcodebuild archive and -exportArchive with the API key; full logs in `build/ios/`, the IPA checked at the end. +- `apple upload`: the IPA through the App Store Connect API build upload (Build Uploads, API 4.1: reserve, upload + parts, commit with the MD5, poll) or `--via altool` (`altool --upload-package` with the API key); the build number + is checked against App Store Connect first, then storebound waits until the build is VALID (exit 0), INVALID / + FAILED (1) or the timeout (7). Dry first, asks. +- `play build`: Gradle `bundleRelease` (Flutter: `flutter build appbundle`; Capacitor / React Native `android/`, + Unity exports with `launcher/`) with the next free versionCode and the upload key from `ANDROID_KEYSTORE*` (env or + `.storebound/credentials.json`), handed to Gradle as injected signing properties through the environment, never on + the command line. The versionCode is read back from the AAB's manifest. `play upload --track internal|alpha|beta`: + versionCode checked, `--dry` read-only, a real run asks; production stays `play release --production draft`. +- `originality --against ` (also an MCP tool): offline Guideline 4.3 check against the owner's other apps: + name and listing text similarity, icon and screenshot perceptual hashes (dHash + pHash; PNG decoded in TypeScript, + JPEG / WebP through ffmpeg when installed), project structure (file layout, identical files), an overall score, + near-duplicate flags and suggestions; exit 1 when a pair is flagged. The portfolio-originality skill uses it. +- New skill `build-and-sign`; appstore-first-release and play-first-release use the new commands. Zero new + dependencies: plist (XML + binary), ZIP, aapt2 manifest and PNG readers are small TypeScript modules. + - New logo: a glossy indigo box with an upward arrow (`brand/master/logo-mark.png`, `brand/README.md`). Every logo file comes from it through `tools/brand-assets.py`: desktop app icons (PNG sizes, `.icns`, a `.ico` with its own image per size, Windows tiles), the site's favicon.ico, maskable web app icons with a manifest, apple-touch-icon, diff --git a/GEMINI.md b/GEMINI.md index dd0810f0..d2808586 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -46,6 +46,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t | `app-previews` | Make App Store app preview videos and a Google Play promo video for a mobile app or game from real footage (gameplay or app flows) | | `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game | | `aso-basics` | App store optimization basics for a mobile app's or game's text | +| `build-and-sign` | Sign, build and upload a mobile app or game from the terminal | | `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly | | `migrate-from-fastlane` | Move a mobile app or game from fastlane (deliver, supply, snapshot / screengrab, Appfile, Deliverfile) to storebound with `storebound import fastlane` | | `play-first-release` | Step-by-step first (and later) Google Play release of a mobile app or game | diff --git a/README.md b/README.md index 4940806f..1080461b 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ your own click. |---|---|---|---|---| | 1 | **Set up** | `init --profile app\|game\|subscription-app` (config, `store/*.md`, declarations, App Privacy and privacy templates per profile), `install --agent `, `check` | Play: service account + API access invite; App Store: API team key (`play-first-release`, `appstore-first-release`) | developer accounts; Paid Applications agreement, banking and tax; Play payments profile | | 2 | **App records and bundle id** | `apple bundle` registers the bundle id, `apple status` finds the app record | App Store Connect > New App (no API); Play Console > Create app; the very first AAB upload when Play needs it from the Console | the declarations you accept when creating the Play app | -| 3 | **Builds and testers** | `play next-version-code`, `play release app.aab` (internal track), `apple next-build`, `xcodebuild` archive + upload with the API key (the skill has the commands), `apple encryption`, `apple testflight groups / what-to-test / info / distribute` (internal groups) | Play internal testers list, Apple sandbox testers (`play-first-release`, `testflight`) | `apple testflight testers` (Apple emails the invitations), external groups and Beta App Review (`distribute --submit-review`) | +| 3 | **Builds and testers** | `play next-version-code`, `play build`, `play upload --track internal`, `apple signing ensure`, `apple build`, `apple upload` (waits for processing), `apple encryption`, `apple testflight groups / what-to-test / info / distribute` (internal groups) | Play internal testers list, Apple sandbox testers (`play-first-release`, `testflight`) | `apple testflight testers` (Apple emails the invitations), external groups and Beta App Review (`distribute --submit-review`) | | 4 | **In-app products and subscriptions** | `play products` (regional prices from USD + your overrides, activated), `apple iap` (consumable, non-consumable, non-renewing; localizations, price schedule, availability), `apple iap-review`, `apple subscriptions` (groups, levels, equalized prices, intro and promotional offers, offer codes), `play subscriptions` (base plans, regional prices, offers), `catalog diff` (both stores against one catalog) | Play license testers, Apple sandbox testers, "Add for Review" of the first IAPs and subscriptions into the version's submission, Play promo codes (`store-iap-setup`, `store-subscriptions`) | custom offer codes (`apple subscriptions --codes` asks first) | | 5 | **Store listings, every language** | `play listing` (title, short / full description, contact email + website, promo video URL), `apple listing --version x --build N` (name, subtitle, description, keywords, promo text, URLs, privacy URL, manual release), `whats-new`, `check` (limits), `check --aso` | Play store settings: category and tags (`play-first-release`) | | | 6 | **Play questionnaires** | `play data-safety`: the whole Data safety form from `dataSafety` in the config (CSV import through the API) | Policy and programs > App content, answers prepared in `store/declarations.md` (`store-declarations`): privacy policy, app access with the demo account (`review-access`), delete-account URL (`account-deletion`), ads, content rating (IARC), target audience and content, advertising ID, news, government, financial and health features; Data safety summary check | the answers themselves are your statements: the agent asks when the code does not prove them | @@ -167,6 +167,7 @@ Read from environment variables, or from `.storebound/credentials.json` in your | `PLAY_SERVICE_ACCOUNT` | path to the Google Cloud service account JSON key (or the JSON itself) with access to your app in Play Console | | `ASC_KEY_ID`, `ASC_ISSUER_ID` | App Store Connect API team key (Users and Access > Integrations) | | `ASC_P8` | path to `AuthKey_.p8` (default `~/.appstoreconnect/private_keys/AuthKey_.p8`) | +| `ANDROID_KEYSTORE`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD` | upload key for `play build` (path to the .jks / .p12 and its passwords; handed to Gradle through the environment) | | `reviewContact` | (file only) App Review contact name / phone / email | | `reviewDemoAccount` / `REVIEW_DEMO_USER`, `REVIEW_DEMO_PASSWORD` | demo account for App Review (`reviewAccess.signInRequired`); never in the config or the repo, masked in logs | @@ -210,6 +211,7 @@ run in the background with a log (`storebound shots render > .storebound/render. | `catalog diff [--store] [--threshold 10]` | API, read-only | one catalog vs both stores: missing / extra / mismatched products and subscriptions, US and override prices, locales, offers, per-region price differences between the stores; exit 1 on mismatches | | `check --aso` | local | keyword audit: App Store keyword field rules, Play stuffing / claims | | `validate [--apple] [--play]` | API, read-only | readiness report with ordered blockers plus the local renders checks (`--no-local` skips); exit 1 while any blocker is left | +| `originality --against [--json]` | local, read-only | Guideline 4.3 check vs your other apps: name, listing text, icon and screenshot perceptual hashes, project structure; scores, near-duplicate flags, suggestions; exit 1 when flagged | | `whats-new [--since ]` | local | draft player-facing release notes from git log into both listing files | | `privacy-manifest --ios ` | local | PrivacyInfo.xcprivacy, required-reason APIs, SDKs without manifests | | `desktop [--download]` | local | open the storebound desktop app (in an app folder: add or select it there); not installed: the download for this system, `--download` saves it to ~/Downloads after checking its signature (never installs) | @@ -228,6 +230,8 @@ run in the background with a log (`storebound shots render > .storebound/render. | `play products` | API | one-time products: regional prices from `convertRegionPrices` + your overrides, activate | | `play subscriptions [--csv]` | API | subscriptions: listings + benefits, one auto-renewing base plan, regional prices, intro and extra offers, activate (plan first, asks) | | `play data-safety` | API | Data safety form (CSV import); `--csv` writes the file | +| `play build [--version-code N] [--flavor f]` | local + API read | Gradle `bundleRelease` (Flutter `flutter build appbundle`; Capacitor, React Native, Unity export found) with the next free versionCode and the upload key from env / `.storebound` (passed through the environment, never argv); AAB checked and copied to `build/android/` | +| `play upload [] --track internal\|alpha\|beta` | API | AAB to a testing track with release notes; versionCode checked first; `--dry` is read-only, a real run asks | | `play release ` | API | upload + tracks (`--internal completed --production draft`, `--production inProgress --fraction 0.05`), release notes | | `play rollout` | API | `--fraction x`, `--halt`, `--resume`, `--complete` (asks first, except halt) | | `play next-version-code` | API, read-only | next free versionCode | @@ -250,6 +254,10 @@ run in the background with a log (`storebound shots render > .storebound/render. | `apple review-details` | API | App Review contact, demo account (from `.storebound/`, masked), notes (+ sign-in steps, where account deletion is) | | `apple encryption` | API | export compliance answer from `apple.usesNonExemptEncryption` (never guessed) | | `apple release --phased on\|pause\|resume\|complete`, `--manual-release` | API | phased release, release an approved version (resume / complete / release ask first) | +| `apple signing status` | API, read-only | bundle id capabilities, distribution certificates (with / without a private key on this Mac), App Store profiles per bundle id, installed or not | +| `apple signing ensure [--keychain] [--no-install]` | API | missing capabilities, a distribution certificate from a key made here (kept 0600 in `.storebound/signing/`, never printed), App Store profiles installed for Xcode; dry first, asks; Developer ID needs the Account Holder (403 explained) | +| `apple build [--version x.y.z] [--build-number N]` | local + API read | xcodebuild archive + exportArchive with a generated ExportOptions.plist (app-store-connect, team, signing style, profiles) and the API key; next build number; Capacitor, React Native, Flutter, Unity projects found | +| `apple upload [] [--via api\|altool]` | API | IPA through the App Store Connect API build upload (or altool), build number checked, waits until VALID (exit 0 / 1 / 7); dry first, asks | | `apple next-build` | API, read-only | next safe build number | | `apple status` | API | versions, builds, IAPs, submissions; `--wait-review` (exit 0 / 1 / 7); `--cancel-submission ` | | `apple ppo status \| create --variant b \| upload --variant b` | API | Product Page Optimization test from `shots` variants: treatments, localizations, screenshot sets | @@ -363,7 +371,8 @@ navigation. |---|---| | `migrate-from-fastlane` | `storebound import fastlane`: ids, listings, languages and screenshots from fastlane; keys and accounts stay out | | `play-first-release` | Google Play from zero to "In review" | -| `appstore-first-release` | App Store from API key to "Waiting for review", incl. xcodebuild with the API key | +| `appstore-first-release` | App Store from API key to "Waiting for review" | +| `build-and-sign` | API signing (capabilities, certificate, profiles), `apple build` / `apple upload`, `play build` / `play upload`, for native, Capacitor, React Native, Flutter and Unity projects | | `testflight` | beta groups, testers from a CSV that never enters git, What to Test, Test Information, Beta App Review | | `store-iap-setup` | in-app products on both stores (consumable, non-consumable, non-renewing), prices and the price sheet CSV, catalog diff, testers, the first-IAP-with-version rule | | `store-subscriptions` | subscription groups, levels, base plans, prices, intro and promotional offers, offer codes, disclosure and Terms (3.1.2), first submission | @@ -385,7 +394,7 @@ navigation. | `whats-new` | player-facing release notes from git, localized, within store limits | | `review-rejections` | triage a rejection (fix / clarify / push back / appeal), reply template, the guidelines apps and games hit | | `ads-mediation-checks` | AdMob, AppLovin MAX and LevelPlay: ids, debug tools, adapters, app-ads.txt, SKAdNetwork, no-fill (`ads-levelplay-checks` stays as a pointer) | -| `portfolio-originality` | Guideline 4.3 gate for developers shipping many similar apps or games | +| `portfolio-originality` | Guideline 4.3 gate for developers shipping many similar apps or games, with `storebound originality` scores | ## MCP server diff --git a/cli/apple/build.ts b/cli/apple/build.ts new file mode 100644 index 00000000..7b96fe3b --- /dev/null +++ b/cli/apple/build.ts @@ -0,0 +1,148 @@ +// Archive and export an App Store IPA with xcodebuild, no Xcode UI. +// storebound apple build [--version 1.2.0] [--build-number N] [--scheme S] [--workspace W | --project P] +// [--configuration Release] [--out build/ios] [--dry] [--json] +// Finds the workspace / project and scheme (native, Capacitor ios/App, React Native ios/, Flutter ios/Runner, +// Unity Unity-iPhone), takes the next safe build number from App Store Connect (apple next-build) unless +// --build-number is given, writes /ExportOptions.plist (method app-store-connect, team, signing style and the +// profiles from apple.signing), runs xcodebuild archive and -exportArchive with the API key +// (-allowProvisioningUpdates -authenticationKey*), and leaves /export/.ipa for `storebound apple upload`. +// Full xcodebuild output goes to /xcodebuild-*.log; the terminal gets the result lines. +// Local only: nothing is sent to App Store Connect except reads (build numbers, team id, profiles). +import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs'; +import { homedir } from 'node:os'; +import { join, relative } from 'node:path'; +import { ascKeyFile } from '../lib/credentials'; +import type { Ctx } from '../lib/ctx'; +import { need } from '../lib/ctx'; +import { done, log, printJson, warn } from '../lib/log'; +import { pump } from '../lib/runner'; +import { parseMobileprovision, toXmlPlist } from '../lib/plist'; +import { nextBuildNumber } from '../lib/release'; +import { exportOptions, profileDirs } from '../lib/signing'; +import { archiveArgs, type AscAuth, exportArgs, flutterConfigArgs, ipaInfo, pickXcode, scanXcode, showCmd } from '../lib/xcode'; +import { ascClient } from './asc'; +import { findBundleId } from './signing'; + +const TAG = 'build'; + +/** Installed App Store profiles for a bundle id, newest expiry first: { uuid, name, team }. */ +export function installedProfiles(bundleId: string, teamId: string | null, home = homedir()): { uuid: string; name: string; team: string; expires: string }[] { + const out: { uuid: string; name: string; team: string; expires: string }[] = []; + for (const d of profileDirs(home)) { + let files: string[] = []; + try { files = readdirSync(d).filter(f => f.endsWith('.mobileprovision')); } catch { continue; } + for (const f of files) { + try { + const p = parseMobileprovision(readFileSync(join(d, f))); + const ent = p.Entitlements as Record | undefined; + const appId = String(ent?.['application-identifier'] ?? ''); + const team = String((p.TeamIdentifier as string[] | undefined)?.[0] ?? ''); + const store = !p.ProvisionedDevices && !p.ProvisionsAllDevices && ent?.['get-task-allow'] !== true; + if (!store || appId !== `${team}.${bundleId}` || (teamId && team !== teamId)) continue; + if (Date.parse(String(p.ExpirationDate)) < Date.now()) continue; + if (!out.some(x => x.uuid === p.UUID)) out.push({ uuid: String(p.UUID), name: String(p.Name), team, expires: String(p.ExpirationDate) }); + } catch { /* not a profile */ } + } + } + return out.sort((a, b) => Date.parse(b.expires) - Date.parse(a.expires)); +} + +async function runLogged(argv: string[], cwd: string, logFile: string, show: string, env?: Record): Promise { + log(TAG, `$ ${show}`); + log(TAG, `full output: ${logFile}`); + const p = Bun.spawn(argv, { cwd, stdout: 'pipe', stderr: 'pipe', env: { ...process.env, LANG: 'en_US.UTF-8', LC_ALL: 'en_US.UTF-8', ...env } }); + const chunks: string[] = []; + const keep = /(\berror:|\*\* (ARCHIVE|EXPORT|BUILD) (SUCCEEDED|FAILED) \*\*|requires a provisioning profile|No signing certificate|Signing for .* requires|Exported .* to)/; + const each = (line: string): void => { chunks.push(line); if (keep.test(line)) log(TAG, line.trim().slice(0, 300)); }; + await Promise.all([pump(p.stdout, 'stdout', each), pump(p.stderr, 'stderr', each)]); + const code = await p.exited; + writeFileSync(logFile, chunks.join('\n')); + if (code !== 0) throw new Error(`${argv[0]} ${argv[1] ?? ''} failed (exit ${code}); last lines:\n${chunks.slice(-15).join('\n')}\nfull log: ${logFile}`); +} + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const bundleId = need(config.apple?.bundleId, 'apple.bundleId'); + const cfg = config.apple?.build ?? {}; + const signing = config.apple?.signing ?? {}; + const style = signing.style ?? 'automatic'; + const dry = a.has('dry'); + const json = a.has('json'); + const target = pickXcode(scanXcode(root), { ...cfg, workspace: a.get('workspace') ?? cfg.workspace, project: a.get('project') ?? cfg.project, scheme: a.get('scheme') ?? cfg.scheme }); + const configuration = a.str('configuration', cfg.configuration ?? 'Release'); + const out = resolve(a.get('out') ?? cfg.out ?? 'build/ios'); + const version = a.get('version'); + if (version && !/^\d+(\.\d+){0,2}$/.test(version)) throw new Error('--version: x.y.z'); + + // reads: build number and team id from App Store Connect (only if not given) + let build = a.get('build-number'); + let teamId = signing.teamId ?? null; + if (!build || !teamId) { + try { + const c = await ascClient(root, bundleId, config.apple?.appId); + if (!build) { + const builds = await c.all(`/v1/builds?filter[app]=${await c.app()}&limit=200&fields[builds]=version`); + build = nextBuildNumber(builds.map(b => String(b.attributes.version))); + log(TAG, `${builds.length} builds on App Store Connect: next build number ${build}`); + } + if (!teamId) teamId = (await findBundleId(c, bundleId))?.attributes?.seedId ?? null; + } catch (e) { + if (!dry) throw new Error(`${(e as Error).message}\n(pass --build-number N and set apple.signing.teamId to build without App Store Connect reads)`); + warn(TAG, `App Store Connect not readable (${(e as Error).message.split('\n')[0]?.slice(0, 120)}): dry run continues with placeholders`); + } + } + if (build && !/^\d+(\.\d+){0,2}$/.test(build)) throw new Error('--build-number: digits, e.g. 42 or 1.0.42'); + const buildNo = build ?? ''; + + const ids = [bundleId, ...(signing.extraBundleIds ?? [])]; + const profiles: Record = {}; + if (style === 'manual') for (const id of ids) { + const p = installedProfiles(id, teamId)[0]; + if (p) profiles[id] = p.uuid; else if (!dry) throw new Error(`no installed App Store profile for ${id}: storebound apple signing ensure`); + else warn(TAG, `no installed App Store profile for ${id} (storebound apple signing ensure)`); + } + const opts = exportOptions({ teamId: teamId ?? '', style, profiles: style === 'manual' ? (Object.keys(profiles).length ? profiles : { [bundleId]: '' }) : undefined }); + const plist = toXmlPlist(opts); + const archivePath = join(out, `${target.scheme}.xcarchive`); + const exportPath = join(out, 'export'); + const authPreview: AscAuth = { keyPath: '$ASC_P8', keyId: '$ASC_KEY_ID', issuerId: '$ASC_ISSUER_ID' }; + const auth = style === 'automatic' ? authPreview : null; + const steps = [ + ...(target.framework === 'flutter' ? [showCmd(flutterConfigArgs(buildNo, version), null)] : []), + showCmd(archiveArgs({ target, root, configuration, archivePath, version, build: buildNo, teamId: teamId ?? undefined, auth }), auth), + showCmd(exportArgs(archivePath, join(out, 'ExportOptions.plist'), exportPath, auth), auth), + ]; + const plan = { framework: target.framework, workspace: target.workspace ?? null, project: target.project ?? null, scheme: target.scheme, configuration, + version: version ?? '(project value)', build: buildNo, teamId, signingStyle: style, exportOptions: opts, out: relative(root, out) || '.', steps, notes: target.notes }; + if (dry) { + if (json) { printJson(plan); return; } + log(TAG, `${target.framework}: ${target.workspace ?? target.project} scheme ${target.scheme} (${configuration}), build ${buildNo}${version ? `, version ${version}` : ''}, signing ${style}`); + for (const n of target.notes) log(TAG, n); + for (const s of steps) log(TAG, `would run: ${s}`); + console.log(`\n${relative(root, join(out, 'ExportOptions.plist'))}:\n${plist}`); + done(TAG, 'build planned (dry run)'); + return; + } + if (process.platform !== 'darwin' || !Bun.which('xcodebuild')) throw new Error('apple build needs macOS with Xcode (xcode-select --install is not enough: the full Xcode app)'); + for (const n of target.notes) log(TAG, n); + mkdirSync(out, { recursive: true }); + writeFileSync(join(out, 'ExportOptions.plist'), plist); + const key = style === 'automatic' ? ascKeyFile(root) : null; + const realAuth: AscAuth | null = key ? { keyPath: key.keyPath, keyId: key.keyId, issuerId: key.issuerId } : null; + try { + if (target.framework === 'flutter') await runLogged(flutterConfigArgs(build!, version), root, join(out, 'flutter-config.log'), showCmd(flutterConfigArgs(build!, version), null)); + const arch = archiveArgs({ target, root, configuration, archivePath, version, build: build!, teamId: teamId ?? undefined, auth: realAuth }); + await runLogged(arch, root, join(out, 'xcodebuild-archive.log'), showCmd(arch, realAuth)); + const exp = exportArgs(archivePath, join(out, 'ExportOptions.plist'), exportPath, realAuth); + await runLogged(exp, root, join(out, 'xcodebuild-export.log'), showCmd(exp, realAuth)); + } finally { key?.cleanup(); } + const ipa = existsSync(exportPath) ? readdirSync(exportPath).find(f => f.endsWith('.ipa')) : undefined; + if (!ipa) throw new Error(`export finished but no .ipa in ${exportPath}`); + const info = ipaInfo(join(exportPath, ipa)); + if (info.bundleId !== bundleId) warn(TAG, `the IPA's bundle id is ${info.bundleId}, the config says ${bundleId}`); + if (info.build !== build) warn(TAG, `the IPA has build ${info.build}, not ${build}: the project sets CFBundleVersion itself (use $(CURRENT_PROJECT_VERSION) in Info.plist)`); + const result = { ipa: join(exportPath, ipa), bundleId: info.bundleId, version: info.version, build: info.build }; + if (json) printJson(result); + done(TAG, `${relative(root, result.ipa)}: ${info.bundleId} ${info.version} (${info.build}). Next: storebound apple upload ${relative(root, result.ipa)} --dry`); +} diff --git a/cli/apple/signing.ts b/cli/apple/signing.ts new file mode 100644 index 00000000..7d1a75f9 --- /dev/null +++ b/cli/apple/signing.ts @@ -0,0 +1,232 @@ +// Code signing through the App Store Connect API: bundle id capabilities, the distribution certificate and the +// provisioning profiles, so `apple build` can sign without anyone opening Xcode's Accounts settings. +// storebound apple signing status [--json] read-only: capabilities, certificates (with / without a +// private key on this machine), profiles, what is installed +// storebound apple signing ensure [--dry] [--yes] [--keychain [path]] [--no-install] [--json] +// adds missing capabilities (apple.signing.capabilities), creates a distribution certificate when this machine +// holds no key for any valid one (RSA 2048 key generated here, kept 0600 in .storebound/signing/, never printed; +// --keychain also imports key + certificate into the login keychain or the given one), creates or reuses an +// App Store profile per bundle id (apple.bundleId + apple.signing.extraBundleIds) and installs it for Xcode. +// Every write is shown first (--dry shows only that) and asks once before anything is created. Developer ID +// certificates need the Account Holder: the API's 403 is explained. Pure planning: cli/lib/signing.ts. +import { chmodSync, existsSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs'; +import { homedir } from 'node:os'; +import { join } from 'node:path'; +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { buildCsr, csrContent, newSigningKey, spkiOfKey } from '../lib/csr'; +import { done, log, printJson, warn } from '../lib/log'; +import { + type ApiCert, type ApiProfile, type AppleSigning, capabilitySpecs, CERT_LIMIT, certificateReq, certSha1, certSpki, type CertType, + explainCertError, parseIdentities, pickCertificate, planCapabilities, planProfile, profileDirs, type ProfileType, +} from '../lib/signing'; +import { textTable } from '../lib/table'; +import { type Asc, ascClient, type J } from './asc'; +import { describeReq, execute, type Req } from './jsonapi'; + +const TAG = 'signing'; +const USAGE = 'usage: storebound apple signing status | ensure [--dry] [--keychain [path]] [--no-install]'; + +export const signingDir = (root: string): string => join(root, '.storebound', 'signing'); + +/** SPKIs of the private keys in .storebound/signing (file name = certificate id once created). */ +function localKeys(root: string): Map { + const dir = signingDir(root); + const out = new Map(); + if (!existsSync(dir)) return out; + for (const f of readdirSync(dir).filter(f => f.endsWith('.key'))) { + try { out.set(spkiOfKey(readFileSync(join(dir, f), 'utf8')), f); } catch { warn(TAG, `${f}: not a private key, ignored`); } + } + return out; +} + +/** SHA-1s of code signing identities in the keychain search list (macOS; empty elsewhere). Read-only. */ +function keychainIdentities(): Set { + if (process.platform !== 'darwin' || !Bun.which('security')) return new Set(); + const r = Bun.spawnSync(['security', 'find-identity', '-v', '-p', 'codesigning'], { stdout: 'pipe', stderr: 'pipe' }); + return new Set(parseIdentities(r.stdout.toString()).map(i => i.sha1)); +} + +export async function findBundleId(c: Asc, identifier: string): Promise { + const r = await c.asc('GET', `/v1/bundleIds?filter[identifier]=${encodeURIComponent(identifier)}&include=bundleIdCapabilities&limit=200`); + const hit = (r.data as J[]).find(b => b.attributes.identifier === identifier) ?? null; + if (hit) hit.capabilities = (r.included ?? []).filter((x: J) => x.type === 'bundleIdCapabilities' && (hit.relationships?.bundleIdCapabilities?.data ?? []).some((d: J) => d.id === x.id)) + .map((x: J) => x.attributes.capabilityType as string); + return hit; +} + +async function profilesOf(c: Asc, bundleIdId: string, type: ProfileType): Promise { + const ps = await c.all(`/v1/bundleIds/${bundleIdId}/profiles?limit=200`); + const out: ApiProfile[] = []; + for (const p of ps.filter((p: J) => p.attributes.profileType === type)) { + const certs = await c.all(`/v1/profiles/${p.id}/relationships/certificates?limit=200`); + out.push({ id: p.id, attributes: p.attributes, certIds: certs.map((x: J) => x.id) }); + } + return out; +} + +const installedAt = (uuid: string | undefined): string[] => (uuid ? profileDirs(homedir()).map(d => join(d, `${uuid}.mobileprovision`)).filter(existsSync) : []); + +function install(p: ApiProfile): string[] { + const content = p.attributes.profileContent; + if (!content || !p.attributes.uuid) throw new Error(`profile ${p.attributes.name}: no content to install`); + const out: string[] = []; + for (const d of profileDirs(homedir())) { + mkdirSync(d, { recursive: true }); + const f = join(d, `${p.attributes.uuid}.mobileprovision`); + writeFileSync(f, Buffer.from(content, 'base64')); + out.push(f); + } + return out; +} + +function keychainImport(keyFile: string, cerFile: string, keychain: string | null): void { + if (process.platform !== 'darwin') throw new Error('--keychain: macOS only (on other systems keep the key in .storebound/signing)'); + const kc = keychain ? ['-k', keychain] : []; + for (const cmd of [['security', 'import', keyFile, ...kc, '-t', 'priv', '-f', 'openssl', '-T', '/usr/bin/codesign', '-T', '/usr/bin/productbuild'], ['security', 'import', cerFile, ...kc, '-t', 'cert']]) { + const r = Bun.spawnSync(cmd, { stdout: 'pipe', stderr: 'pipe' }); + const msg = (r.stdout.toString() + r.stderr.toString()).trim(); + if (r.exitCode !== 0 && !/already exists/i.test(msg)) throw new Error(`security import failed: ${msg.slice(0, 300)}`); + } + log(TAG, `key and certificate imported into ${keychain ?? 'the default keychain'}`); +} + +export interface SigningState { + bundleId: string; teamId: string | null; registered: boolean; + capabilities: { present: string[]; missing: string[]; extra: string[] }; + certificate: { type: CertType; chosen: string | null; why: string; onTeam: number; withKey: number; limit: number | null }; + profiles: { bundleId: string; name: string | null; uuid: string | null; state: string; installed: boolean; why: string }[]; +} + +export async function run(ctx: Ctx): Promise { + const { config, root } = ctx.loaded; + const a = ctx.args; + const sub = a._[0]; + if (sub !== 'status' && sub !== 'ensure') throw new Error(USAGE); + const bundleId = need(config.apple?.bundleId, 'apple.bundleId'); + const s: AppleSigning = config.apple?.signing ?? {}; + const certType: CertType = s.certificateType ?? 'DISTRIBUTION'; + const profileType: ProfileType = s.profileType ?? 'IOS_APP_STORE'; + const dry = a.has('dry'); + const json = a.has('json'); + const c = await ascClient(root, bundleId, config.apple?.appId); + + // --- read everything first (read-only) + const ids = [bundleId, ...(s.extraBundleIds ?? [])]; + const bundles = new Map(); + for (const id of ids) bundles.set(id, await findBundleId(c, id)); + const main = bundles.get(bundleId); + const capPlan = main ? planCapabilities(main.id, main.capabilities ?? [], capabilitySpecs(s)) : { create: [], present: [], extra: [] }; + const certs: ApiCert[] = await c.all(`/v1/certificates?filter[certificateType]=${certType}&limit=200`); + const keys = localKeys(root); + const identities = keychainIdentities(); + const hasKey = (x: ApiCert): boolean => { + const content = x.attributes.certificateContent; + if (!content) return false; + const spki = certSpki(content); + return (!!spki && keys.has(spki)) || identities.has(certSha1(content)); + }; + const choice = pickCertificate(certs, certType, hasKey); + const profiles = new Map | null }>(); + for (const id of ids) { + const b = bundles.get(id); + if (!b) { profiles.set(id, { list: [], plan: null }); continue; } + const list = await profilesOf(c, b.id, profileType); + profiles.set(id, { list, plan: choice.cert ? planProfile(list, { bundleId: id, bundleIdId: b.id, certId: choice.cert.id, type: profileType }) : null }); + } + const state: SigningState = { + bundleId, teamId: s.teamId ?? main?.attributes?.seedId ?? null, registered: !!main, + capabilities: { present: capPlan.present, missing: capabilitySpecs(s).filter(w => !capPlan.present.includes(w.type)).map(w => w.type), extra: capPlan.extra }, + certificate: { type: certType, chosen: choice.cert?.attributes.name ?? choice.cert?.attributes.displayName ?? null, why: choice.why, + onTeam: certs.filter(x => Date.parse(x.attributes.expirationDate ?? '') > Date.now()).length, withKey: choice.usable.length, limit: CERT_LIMIT[certType] ?? null }, + profiles: ids.map(id => { + const p = profiles.get(id)!; + if (!bundles.get(id)) return { bundleId: id, name: null, uuid: null, state: 'bundle id not registered', installed: false, why: 'register it first (storebound apple bundle for the app; extensions in Certificates, Identifiers & Profiles)' }; + const r = p.plan?.reuse; + return { bundleId: id, name: r?.attributes.name ?? null, uuid: r?.attributes.uuid ?? null, state: r ? 'ACTIVE' : 'needs a new profile', + installed: installedAt(r?.attributes.uuid).length > 0, why: p.plan?.why ?? 'waits for a usable certificate' }; + }), + }; + + if (sub === 'status') { + if (json) { printJson(state); return; } + log(TAG, `${bundleId}: ${main ? `registered, team ${state.teamId ?? '?'}` : 'NOT registered (storebound apple bundle)'}`); + log(TAG, `capabilities: ${state.capabilities.present.join(', ') || 'none configured'}${state.capabilities.missing.length ? `; missing ${state.capabilities.missing.join(', ')}` : ''}${state.capabilities.extra.length ? `; also on the bundle id: ${state.capabilities.extra.join(', ')}` : ''}`); + log(TAG, `certificate ${certType}: ${choice.why} (${state.certificate.onTeam} valid on the team${state.certificate.limit ? `, limit ${state.certificate.limit}` : ''})`); + for (const x of choice.expiring) warn(TAG, `${x.attributes.name ?? x.id} expires ${x.attributes.expirationDate?.slice(0, 10)}: make a new one soon (storebound apple signing ensure)`); + console.log(textTable(['bundle id', 'profile', 'state', 'installed', ''], state.profiles.map(p => [p.bundleId, p.name ?? '', p.state, p.installed ? 'yes' : 'no', p.why]))); + done(TAG, 'status read'); + return; + } + + // --- ensure: plan, show, ask once, then write + if (!main) throw new Error(`bundle id ${bundleId} is not registered: storebound apple bundle --dry, then without --dry`); + const missingExtra = ids.filter(id => !bundles.get(id)); + if (missingExtra.length) throw new Error(`not registered: ${missingExtra.join(', ')} (register extension bundle ids in Certificates, Identifiers & Profiles first)`); + const needCert = !choice.cert; + const plan: string[] = [ + ...capPlan.create.map(r => describeReq(r)), + ...(needCert ? [describeReq(certificateReq(certType, ''))] : []), + ...ids.flatMap(id => { + const p = profiles.get(id)!.plan; + return !p || p.create ? [`POST /v1/profiles {name=..., profileType="${profileType}"} # ${id}: ${p?.why ?? 'with the new certificate'}`] : []; + }), + ]; + if (needCert && state.certificate.limit && state.certificate.onTeam >= state.certificate.limit) + warn(TAG, `the team already has ${state.certificate.onTeam} valid ${certType} certificates (limit ${state.certificate.limit}): Apple will refuse a new one until one is revoked (owner decision, developer.apple.com > Certificates)`); + if (json && dry) { printJson({ ...state, plan }); return; } + for (const line of plan) log(TAG, `${dry ? 'would ' : ''}${line}`); + if (!plan.length) log(TAG, 'nothing to create on App Store Connect'); + if (dry) { + for (const p of state.profiles) if (p.uuid && !p.installed && !a.has('no-install')) log(TAG, `would install profile ${p.name} (${p.uuid}) for Xcode`); + done(TAG, `signing checked (dry run): ${plan.length} write(s)`); + return; + } + if (plan.length && !(await confirm(ctx, `Create ${plan.length} item(s) on the Apple Developer team (${[capPlan.create.length && `${capPlan.create.length} capabilities`, needCert && `a ${certType} certificate`, plan.length - capPlan.create.length - (needCert ? 1 : 0) && 'provisioning profiles'].filter(Boolean).join(', ')})?`))) return; + + await execute(c.asc, capPlan.create, { dry: false, tag: TAG }); + let cert = choice.cert; + if (needCert) { + const dir = signingDir(root); + mkdirSync(dir, { recursive: true, mode: 0o700 }); + const { key } = newSigningKey(); + const pending = join(dir, `pending-${Date.now()}.key`); + writeFileSync(pending, key.export({ type: 'pkcs1', format: 'pem' }).toString(), { mode: 0o600 }); + chmodSync(pending, 0o600); + let created: J; + try { + const csr = buildCsr(key, { commonName: `storebound ${config.app.name}`.slice(0, 64) }); + created = (await c.asc('POST', '/v1/certificates', certificateReq(certType, csrContent(csr)).body)).data; + } catch (e) { + rmSync(pending, { force: true }); + const why = explainCertError(e, certType); + throw new Error(why ? `${(e as Error).message}\n\n${why}` : (e as Error).message); + } + const keyFile = join(dir, `${created.id}.key`), cerFile = join(dir, `${created.id}.cer`); + renameSync(pending, keyFile); + writeFileSync(cerFile, Buffer.from(created.attributes.certificateContent, 'base64'), { mode: 0o600 }); + log(TAG, `certificate ${created.attributes.name ?? created.id} created (expires ${String(created.attributes.expirationDate).slice(0, 10)}); key and certificate in .storebound/signing/ (gitignored, back them up)`); + if (a.has('keychain')) keychainImport(keyFile, cerFile, a.get('keychain') === 'true' ? null : a.get('keychain')!); + else warn(TAG, 'xcodebuild signs with identities from the keychain: re-run with --keychain to import it there (or import the .key + .cer yourself)'); + cert = created; + } + for (const id of ids) { + const b = bundles.get(id)!; + const list = profiles.get(id)!.list; + const p = planProfile(list, { bundleId: id, bundleIdId: b.id, certId: cert!.id, type: profileType }); + let prof: ApiProfile; + if (p.create) { + const r = (await c.asc('POST', p.create.path, p.create.body)).data; + prof = { id: r.id, attributes: r.attributes }; + log(TAG, `${id}: profile "${prof.attributes.name}" created (${prof.attributes.uuid})`); + } else { + prof = p.reuse!; + if (!prof.attributes.profileContent) prof = { ...prof, attributes: (await c.asc('GET', `/v1/profiles/${prof.id}`)).data.attributes }; + log(TAG, `${id}: ${p.why}`); + } + if (!a.has('no-install')) for (const f of install(prof)) log(TAG, `${id}: installed ${f.replace(homedir(), '~')}`); + } + if (json) printJson({ ...state, plan, done: true }); + done(TAG, 'signing ready (storebound apple build --dry shows the ExportOptions.plist it will use)'); +} + diff --git a/cli/apple/upload.ts b/cli/apple/upload.ts new file mode 100644 index 00000000..97124fde --- /dev/null +++ b/cli/apple/upload.ts @@ -0,0 +1,163 @@ +// Upload an IPA to App Store Connect and wait until Apple has processed the build. +// storebound apple upload [] [--via api|altool] [--no-wait] [--timeout 60m] [--dry] [--yes] [--json] +// Default IPA: the newest in /export. The bundle id, version and build number come from +// the IPA's Info.plist; the upload is refused when that build number is already on App Store Connect for the app +// (`apple next-build` / `apple build` pick a free one). +// --via api (default): the App Store Connect API build upload (Build Uploads, API 4.1+): POST /v1/buildUploads, +// reserve /v1/buildUploadFiles, PUT the parts, commit with the MD5, then poll the upload state. Same API key, no +// Xcode needed, works on any OS. +// --via altool: `xcrun altool --upload-package` with the API key (Xcode's own uploader; macOS). +// Both are listed by Apple (App Store Connect Help > Upload builds); neither is deprecated. Then the build is polled +// until processingState is VALID (exit 0), INVALID / FAILED (exit 1) or the timeout (exit 7). +// An upload is a write: --dry shows the plan; a real run asks first (--yes in scripts). +import { closeSync, existsSync, openSync, readdirSync, readSync, statSync } from 'node:fs'; +import { basename, join, relative } from 'node:path'; +import { ascKeyFile } from '../lib/credentials'; +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { done, log, printJson, warn } from '../lib/log'; +import { compareBuild, nextBuildNumber, nextPollDelay, parseDuration, WAIT_EXIT } from '../lib/release'; +import { altoolArgs, BUILD_DONE, buildUploadReqs, ipaInfo, showCmd, UPLOAD_DONE, uploadProblems } from '../lib/xcode'; +import { type Asc, ascClient, type J } from './asc'; +import { describeReq } from './jsonapi'; + +const TAG = 'upload'; + +function md5File(path: string): string { + const h = new Bun.CryptoHasher('md5'); + const fd = openSync(path, 'r'); + try { + const buf = Buffer.alloc(8 * 1048576); + for (let n; (n = readSync(fd, buf, 0, buf.length, null)) > 0;) h.update(buf.subarray(0, n)); + } finally { closeSync(fd); } + return h.digest('hex'); +} + +function slice(path: string, offset: number, length: number): Buffer { + const fd = openSync(path, 'r'); + try { const b = Buffer.alloc(length); readSync(fd, b, 0, length, offset); return b; } finally { closeSync(fd); } +} + +async function apiUpload(c: Asc, appId: string, ipa: string, info: ReturnType, deadline: number): Promise { + const size = statSync(ipa).size; + const reqs = buildUploadReqs(appId, info, basename(ipa), size); + const up = (await c.asc('POST', reqs.upload.path, reqs.upload.body)).data; + log(TAG, `build upload ${up.id} created`); + const file = (await c.asc('POST', reqs.file(up.id).path, reqs.file(up.id).body)).data; + const ops = (file.attributes.uploadOperations ?? []) as J[]; + log(TAG, `uploading ${(size / 1048576).toFixed(1)} MB in ${ops.length} part(s)`); + let sent = 0; + for (const [i, op] of ops.entries()) { + const headers: Record = {}; + for (const h of op.requestHeaders ?? []) headers[h.name] = h.value; + for (let attempt = 1; ; attempt++) { + const r = await fetch(op.url, { method: op.method, headers, body: new Uint8Array(slice(ipa, op.offset, op.length)) }); + if (r.ok) break; + if (attempt >= 4 || (r.status < 500 && r.status !== 429)) throw new Error(`part ${i + 1}/${ops.length} -> ${r.status}`); + await Bun.sleep(2000 * attempt); + } + sent += op.length; + if ((i + 1) % 10 === 0 || i === ops.length - 1) log(TAG, `${i + 1}/${ops.length} parts (${Math.round((sent / size) * 100)}%)`); + } + const commit = reqs.commit(file.id, md5File(ipa)); + await c.asc('PATCH', commit.path, commit.body); + log(TAG, 'file committed; waiting for App Store Connect to accept the upload'); + for (let delay: number | null = null; ;) { + const u = (await c.asc('GET', `/v1/buildUploads/${up.id}`)).data; + const st = u.attributes?.state ?? {}; + const p = uploadProblems(st); + for (const w of p.warnings) warn(TAG, w); + if (UPLOAD_DONE.has(st.state)) { + if (st.state === 'FAILED') throw new Error(`upload rejected: ${p.errors.join('; ') || 'no reason given'}`); + log(TAG, 'upload accepted'); + return; + } + if (Date.now() > deadline) throw Object.assign(new Error(`upload still ${st.state ?? 'pending'} at the timeout`), { exit: WAIT_EXIT.timeout }); + delay = nextPollDelay(delay, { first: 15_000, max: 60_000 }); + log(TAG, `upload ${st.state ?? 'pending'}, next check in ${Math.round(delay / 1000)} s`); + await Bun.sleep(delay); + } +} + +async function altoolUpload(root: string, ipa: string): Promise { + if (process.platform !== 'darwin' || !Bun.which('xcrun')) throw new Error('--via altool needs macOS with Xcode; use --via api elsewhere'); + const k = ascKeyFile(root); + try { + const argv = altoolArgs(ipa, k); + log(TAG, `$ ${showCmd(argv, k)}`); + const r = Bun.spawnSync(argv, { stdout: 'pipe', stderr: 'pipe' }); + const outText = (r.stdout.toString() + '\n' + r.stderr.toString()).trim(); + if (r.exitCode !== 0) throw new Error(`altool failed (exit ${r.exitCode}): ${outText.split('\n').filter(l => /error|fail/i.test(l)).slice(0, 8).join('\n') || outText.slice(-800)}`); + const id = /"?delivery-uuid"?\s*[:=]\s*"?([0-9a-f-]{36})/i.exec(outText)?.[1]; + log(TAG, `altool: upload done${id ? ` (delivery ${id})` : ''}`); + } finally { k.cleanup(); } +} + +/** Polls the build until processed. */ +async function waitProcessing(c: Asc, appId: string, info: ReturnType, deadline: number): Promise { + const q = new URLSearchParams({ 'filter[app]': appId, 'filter[version]': info.build, 'filter[preReleaseVersion.version]': info.version, 'filter[preReleaseVersion.platform]': 'IOS', limit: '5' }); + for (let delay: number | null = null; ;) { + const b = ((await c.asc('GET', `/v1/builds?${q}`)).data as J[])[0]; + const state = b?.attributes?.processingState ?? 'NOT_YET_VISIBLE'; + if (BUILD_DONE.has(state)) return state; + if (Date.now() > deadline) return 'TIMEOUT'; + delay = nextPollDelay(delay, { first: 30_000, max: 120_000 }); + log(TAG, `build ${info.build}: ${state}, next check in ${Math.round(delay / 1000)} s`); + await Bun.sleep(delay); + } +} + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const bundleId = need(config.apple?.bundleId, 'apple.bundleId'); + const via = a.str('via', 'api'); + if (via !== 'api' && via !== 'altool') throw new Error('--via api | altool'); + let ipa = a._.find(x => x.endsWith('.ipa')); + if (!ipa) { + const dir = join(resolve(config.apple?.build?.out ?? 'build/ios'), 'export'); + const found = existsSync(dir) ? readdirSync(dir).filter(f => f.endsWith('.ipa')).map(f => join(dir, f)).sort((x, y) => statSync(y).mtimeMs - statSync(x).mtimeMs) : []; + if (!found[0]) throw new Error(`usage: storebound apple upload (nothing in ${relative(root, dir)}; storebound apple build makes one)`); + ipa = found[0]; + } else ipa = resolve(ipa); + const info = ipaInfo(ipa); + if (info.bundleId !== bundleId) throw new Error(`${relative(root, ipa)} is ${info.bundleId}, the config says ${bundleId}`); + const size = statSync(ipa).size; + const dry = a.has('dry'); + const json = a.has('json'); + const wait = !a.has('no-wait'); + const timeout = parseDuration(a.str('timeout', '60m')); + + const c = await ascClient(root, bundleId, config.apple?.appId); + const appId = await c.app(); + const builds = await c.all(`/v1/builds?filter[app]=${appId}&limit=200&fields[builds]=version`); + const numbers = builds.map(b => String(b.attributes.version)); + const next = nextBuildNumber(numbers); + if (numbers.includes(info.build)) throw new Error(`build ${info.build} is already on App Store Connect: rebuild with --build-number ${next} (storebound apple build)`); + if (numbers.length && compareBuild(info.build, next) < 0) warn(TAG, `build ${info.build} is lower than the highest uploaded one (next free: ${next}); Apple accepts it only if this version train has no higher build`); + const reqs = buildUploadReqs(appId, info, basename(ipa), size); + const plan = via === 'api' + ? [describeReq(reqs.upload), describeReq(reqs.file('')), `PUT the file parts to the upload URLs Apple returns`, describeReq(reqs.commit('', '')), 'GET /v1/buildUploads/ until COMPLETE'] + : [showCmd(altoolArgs(ipa, { keyPath: '$ASC_P8', keyId: '$ASC_KEY_ID', issuerId: '$ASC_ISSUER_ID' }), null)]; + if (wait) plan.push(`GET /v1/builds?filter[version]=${info.build} until processingState is VALID (timeout ${a.str('timeout', '60m')})`); + const summary = { ipa: relative(root, ipa), bundleId: info.bundleId, version: info.version, build: info.build, sizeMB: Math.round(size / 104857.6) / 10, via, plan }; + if (dry) { + if (json) { printJson(summary); return; } + log(TAG, `${summary.ipa}: ${info.bundleId} ${info.version} (${info.build}), ${summary.sizeMB} MB, build number free`); + for (const p of plan) log(TAG, `would ${p}`); + done(TAG, 'upload planned (dry run)'); + return; + } + if (!(await confirm(ctx, `Upload ${info.bundleId} ${info.version} (${info.build}) to App Store Connect? It shows up in TestFlight once processed.`))) return; + const deadline = Date.now() + timeout; + if (via === 'api') { + try { await apiUpload(c, appId, ipa, info, deadline); } catch (e) { if ((e as { exit?: number }).exit) { warn(TAG, (e as Error).message); process.exit((e as { exit: number }).exit); } throw e; } + } else await altoolUpload(root, ipa); + if (!wait) { if (json) printJson({ ...summary, uploaded: true }); done(TAG, `build ${info.build} uploaded; storebound apple status shows when it is VALID`); return; } + const state = await waitProcessing(c, appId, info, deadline); + if (json) printJson({ ...summary, uploaded: true, processingState: state }); + if (state === 'VALID') { done(TAG, `build ${info.build} is VALID. Next: storebound apple encryption --build ${info.build}, apple testflight distribute --build ${info.build} --group --dry`); return; } + if (state === 'TIMEOUT') { warn(TAG, `build ${info.build} not processed after ${a.str('timeout', '60m')}; check again with storebound apple status`); process.exit(WAIT_EXIT.timeout); } + warn(TAG, `build ${info.build} is ${state}: Apple emails the reason (ITMS-xxxxx) to the team; fix it and upload a new build number`); + process.exit(1); +} diff --git a/cli/index.ts b/cli/index.ts index 5644e5f7..210d0e9e 100755 --- a/cli/index.ts +++ b/cli/index.ts @@ -29,6 +29,7 @@ const COMMANDS: Record Promise, string]> = { 'catalog': [() => import('./catalog'), 'diff: cross-store parity of products + subscriptions (missing / extra / mismatched, prices per region, offers); read-only, exit 1 on mismatches'], 'prices': [() => import('./prices'), 'export | import a CSV of product x store x region prices (diff first, asks before writing; Apple future-dated changes)'], 'reviews': [() => import('./reviews'), 'list | draft (local reply drafts in .storebound/replies) | send (approved drafts only, asks first)'], + 'originality': [() => import('./originality'), 'Guideline 4.3 check vs your other apps (--against ): listing text, name, icon and screenshot perceptual hashes, project structure; scores, flags, suggestions; offline, exit 1 on a near-duplicate'], 'whats-new': [() => import('./whats-new'), 'draft user-facing release notes from git log into the listing files (--since )'], 'play products': [() => import('./play/products'), 'one-time products: create / update, regional prices, activate'], 'play subscriptions': [() => import('./play/subscriptions'), 'auto-renewable subscriptions: listings, base plan, regional prices, intro offer, activate (--csv prices sheet; asks first)'], @@ -36,6 +37,8 @@ const COMMANDS: Record Promise, string]> = { 'play images': [() => import('./play/images'), 'icon, feature graphic, phone / 7" / 10" screenshots per language; --variant '], 'play data-safety': [() => import('./play/data-safety'), 'Data safety form (CSV import through the API)'], 'play release': [() => import('./play/release'), 'upload an AAB and put it on tracks with release notes'], + 'play build': [() => import('./play/build'), 'gradle bundleRelease (Flutter: flutter build appbundle) with the next free versionCode and the upload key from env / .storebound; --dry'], + 'play upload': [() => import('./play/upload'), 'upload an AAB to a testing track (--track internal|alpha|beta), versionCode checked first; --dry read-only, asks first'], 'play status': [() => import('./play/status'), 'tracks, listings, products (read-only)'], 'play rollout': [() => import('./play/rollout'), 'staged rollout: --fraction x | --halt | --resume | --complete (asks first)'], 'play next-version-code': [() => import('./play/next-version-code'), 'next free versionCode (prints the number)'], @@ -50,6 +53,9 @@ const COMMANDS: Record Promise, string]> = { 'apple status': [() => import('./apple/status'), 'versions, builds, IAPs, review submissions (--wait-review, --cancel-submission )'], 'apple previews': [() => import('./apple/previews'), 'app preview videos per locale (MD5-idempotent, poster frame time code); --dry'], 'apple release': [() => import('./apple/release'), 'phased release on|pause|resume|complete, --manual-release (asks first)'], + 'apple signing': [() => import('./apple/signing'), 'status | ensure: bundle id capabilities, distribution certificate (key kept in .storebound/signing), App Store profiles installed for Xcode; --dry, asks first'], + 'apple build': [() => import('./apple/build'), 'xcodebuild archive + exportArchive (ExportOptions.plist generated, next build number, API key signing); Capacitor, React Native, Flutter, Unity; --dry'], + 'apple upload': [() => import('./apple/upload'), 'upload an IPA (App Store Connect API build upload, or --via altool), build number checked, waits for processing; --dry, asks first'], 'apple next-build': [() => import('./apple/next-build'), 'next safe build number (prints the number)'], 'apple encryption': [() => import('./apple/encryption'), 'export compliance answer for builds, from the config'], 'apple ppo': [() => import('./apple/ppo'), 'Product Page Optimization: status | create --variant b | upload --variant b | start | stop (asks first)'], @@ -74,7 +80,7 @@ ${Object.entries(PLAIN).map(([k, [, d]]) => ` ${k.padEnd(25)} ${d}`).join('\n') ${Object.entries(COMMANDS).map(([k, [, d]]) => ` ${k.padEnd(25)} ${d}`).join('\n')} common options: --config --dry (no writes) --only --yes (skip confirmations) -credentials: PLAY_SERVICE_ACCOUNT, ASC_KEY_ID, ASC_ISSUER_ID, ASC_P8, REVIEW_DEMO_USER / REVIEW_DEMO_PASSWORD (env or .storebound/credentials.json) +credentials: PLAY_SERVICE_ACCOUNT, ASC_KEY_ID, ASC_ISSUER_ID, ASC_P8, ANDROID_KEYSTORE(_PASSWORD) / ANDROID_KEY_ALIAS / ANDROID_KEY_PASSWORD, REVIEW_DEMO_USER / REVIEW_DEMO_PASSWORD (env or .storebound/credentials.json) docs: README.md and the skills/ folder of the toolchain`); } diff --git a/cli/lib/config.ts b/cli/lib/config.ts index b4ef28b0..207daf02 100644 --- a/cli/lib/config.ts +++ b/cli/lib/config.ts @@ -5,6 +5,10 @@ import { dirname, isAbsolute, join, resolve } from 'node:path'; import { validateCapture, validateRecord } from '../shots/devices'; import { validateSubscriptions } from './subscriptions'; import { type TfConfig, validateTestflight } from './testflight'; +import { type AppleSigning, validateSigning } from './signing'; +import { type AppleBuildConfig, validateAppleBuild } from './xcode'; +import { type PlayBuildConfig, validatePlayBuild } from './gradle'; +import { type OriginalityConfig, validateOriginality } from './originality'; /** consumable / non_consumable: both stores. non_renewing: Apple NON_RENEWING_SUBSCRIPTION (access for a fixed time, * you track the expiry); Google Play has no such type, so it becomes a one-time product your app consumes when the @@ -436,6 +440,8 @@ export interface ShipConfig { /** Cloud Storage bucket of the Play Console report exports, e.g. "pubsite_prod_rev_" (Play Console > * Download reports > Statistics > Copy Cloud Storage URI). Used by `storebound analytics snapshot`. */ reportsBucket?: string; + /** `storebound play build`: Gradle project folder, module, flavor (found automatically when unset). */ + build?: PlayBuildConfig; }; apple?: { bundleId: string; appId?: string; primaryLocale?: string; listing?: string; info?: AppleAppInfo; reviewShots?: string; @@ -458,6 +464,10 @@ export interface ShipConfig { iphoneMedium?: boolean; /** TestFlight beta groups, the tester CSV (in .storebound/) and Test Information (`storebound apple testflight`). */ testflight?: TfConfig; + /** Certificates, profiles and capabilities through the API (`storebound apple signing`), signing style of `apple build`. */ + signing?: AppleSigning; + /** `storebound apple build`: workspace / project, scheme, configuration, output folder (found automatically when unset). */ + build?: AppleBuildConfig; }; products?: Product[]; /** Auto-renewable subscriptions (`storebound apple subscriptions`, `storebound play subscriptions`). */ @@ -476,6 +486,9 @@ export interface ShipConfig { renders?: string; shots?: ShotsConfig; icons?: IconsConfig; + /** `storebound originality`: the owner's other apps to compare with (folders with a storebound.config.ts, or a + * workspace folder holding several), and the score above which a pair is flagged. */ + originality?: OriginalityConfig; } /** Platforms of the app (app identity): app.platforms, else from the store sections. */ @@ -539,6 +552,7 @@ export function validateConfig(c: unknown): string[] { if (cfg.play && !ID_RE.test(cfg.play.packageName ?? '')) e.push('play.packageName: not a package name (com.example.game)'); if (cfg.play?.video && !/^https:\/\/(www\.youtube\.com\/watch\?v=[\w-]{6,}|youtu\.be\/[\w-]{6,})$/.test(cfg.play.video)) e.push('play.video: a plain YouTube video URL (https://www.youtube.com/watch?v=... or https://youtu.be/...), no playlist, channel or extra parameters'); + e.push(...validatePlayBuild(cfg.play?.build), ...validateOriginality(cfg.originality)); if (cfg.play?.reportsBucket && !/^(gs:\/\/)?pubsite_prod(_rev)?_\d+\/?$/.test(cfg.play.reportsBucket)) e.push('play.reportsBucket: the Play reports bucket, e.g. "pubsite_prod_rev_" (Play Console > Download reports > Copy Cloud Storage URI)'); if (cfg.apple) { @@ -548,6 +562,7 @@ export function validateConfig(c: unknown): string[] { if (enc !== undefined && typeof enc !== 'boolean') e.push('apple.usesNonExemptEncryption: true | false'); if (cfg.apple.screenshotTypes && !cfg.apple.screenshotTypes.every(t => /^APP_[A-Z0-9_]+$/.test(t))) e.push('apple.screenshotTypes: display types like APP_IPHONE_67'); e.push(...validateTestflight(cfg.apple.testflight)); + e.push(...validateSigning(cfg.apple.signing), ...validateAppleBuild(cfg.apple.build)); } if (cfg.ads?.appAdsTxt && !cfg.ads.appAdsTxt.every(l => typeof l === 'string' && l.split(',').length >= 3)) e.push('ads.appAdsTxt: lines like "example-network.com, pub-123, DIRECT, abc123"'); diff --git a/cli/lib/credentials.ts b/cli/lib/credentials.ts index 7f5309f0..859b53cf 100644 --- a/cli/lib/credentials.ts +++ b/cli/lib/credentials.ts @@ -7,8 +7,8 @@ // "reviewDemoAccount": { "username": "", "password": "" } } // The demo account for App Review can also come from env: REVIEW_DEMO_USER, REVIEW_DEMO_PASSWORD. // 3. ASC_P8 only: ~/.appstoreconnect/private_keys/AuthKey_.p8 (where Xcode / altool keep it) -import { existsSync, readFileSync } from 'node:fs'; -import { homedir } from 'node:os'; +import { chmodSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { homedir, tmpdir } from 'node:os'; import { join } from 'node:path'; export interface ServiceAccount { client_email: string; private_key: string; token_uri?: string } @@ -80,3 +80,31 @@ export const maskUser = (u: string): string => { return at > 0 ? `${u[0]}***${u.slice(at)}` : `${u[0] ?? ''}***`; }; export const maskSecret = (s: string): string => (s ? '********' : '(empty)'); + +/** The App Store Connect key as a file, for tools that want a path (xcodebuild -authenticationKeyPath, altool). + * A path in ASC_P8 (or the usual ~/.appstoreconnect location) is used as is; inline PEM content goes to a private + * temporary folder (0700 / 0600) that `cleanup` removes. Commands show the path as $ASC_P8. */ +export function ascKeyFile(root: string): { keyPath: string; keyId: string; issuerId: string; cleanup: () => void } { + const k = ascKey(root); + const raw = value(root, 'ASC_P8') ?? join(homedir(), '.appstoreconnect/private_keys', `AuthKey_${k.keyId}.p8`); + if (!/BEGIN PRIVATE KEY/.test(raw)) return { keyPath: raw.replace(/^~(?=\/)/, homedir()), keyId: k.keyId, issuerId: k.issuerId, cleanup: () => {} }; + const dir = mkdtempSync(join(tmpdir(), 'storebound-key-')); + chmodSync(dir, 0o700); + const keyPath = join(dir, `AuthKey_${k.keyId}.p8`); + writeFileSync(keyPath, k.pem, { mode: 0o600 }); + return { keyPath, keyId: k.keyId, issuerId: k.issuerId, cleanup: () => rmSync(dir, { recursive: true, force: true }) }; +} + +export interface AndroidSigning { storeFile: string; storePassword: string; keyAlias: string; keyPassword: string } + +/** Android upload key for `play build` (env or .storebound/credentials.json): ANDROID_KEYSTORE (path to the .jks / + * .keystore), ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, ANDROID_KEY_PASSWORD (default: the keystore password). + * null when no keystore is set (the project's own signingConfig signs then, e.g. Flutter's key.properties). */ +export function androidSigning(root: string): AndroidSigning | null { + const storeFile = value(root, 'ANDROID_KEYSTORE'); + if (!storeFile) return null; + const storePassword = value(root, 'ANDROID_KEYSTORE_PASSWORD'), keyAlias = value(root, 'ANDROID_KEY_ALIAS'); + if (!storePassword || !keyAlias) throw new Error('ANDROID_KEYSTORE is set but ANDROID_KEYSTORE_PASSWORD / ANDROID_KEY_ALIAS are not (env or .storebound/credentials.json)'); + const abs = storeFile.replace(/^~(?=\/)/, homedir()); + return { storeFile: abs.startsWith('/') ? abs : join(root, abs), storePassword, keyAlias, keyPassword: value(root, 'ANDROID_KEY_PASSWORD') ?? storePassword }; +} diff --git a/cli/lib/csr.ts b/cli/lib/csr.ts new file mode 100644 index 00000000..edead90c --- /dev/null +++ b/cli/lib/csr.ts @@ -0,0 +1,57 @@ +// A certificate signing request (PKCS #10, RFC 2986) built with node:crypto and a minimal DER encoder: no openssl, +// no Keychain Access. The private key is generated here and only ever written to a 0600 file in .storebound/signing/ +// (and, when asked, imported into a keychain); the CSR carries only the public key. +import { createPrivateKey, createPublicKey, generateKeyPairSync, type KeyObject, sign } from 'node:crypto'; + +function derLen(n: number): Buffer { + if (n < 0x80) return Buffer.from([n]); + const bytes: number[] = []; + for (let v = n; v > 0; v = Math.floor(v / 256)) bytes.unshift(v & 255); + return Buffer.from([0x80 | bytes.length, ...bytes]); +} +export const der = (tag: number, ...parts: Buffer[]): Buffer => { const body = Buffer.concat(parts); return Buffer.concat([Buffer.from([tag]), derLen(body.length), body]); }; +const seq = (...p: Buffer[]) => der(0x30, ...p); +const set = (...p: Buffer[]) => der(0x31, ...p); + +/** DER object identifier from its arcs, e.g. [2, 5, 4, 3] (commonName). */ +export function oid(arcs: number[]): Buffer { + const [a, b, ...rest] = arcs as [number, number, ...number[]]; + const out = [40 * a + b]; + for (const n of rest) { + const groups: number[] = []; + for (let v = n; ; v = Math.floor(v / 128)) { groups.unshift(v & 127); if (v < 128) break; } + out.push(...groups.map((g, i) => (i < groups.length - 1 ? g | 128 : g))); + } + return der(0x06, Buffer.from(out)); +} + +const OID = { commonName: [2, 5, 4, 3], countryName: [2, 5, 4, 6], emailAddress: [1, 2, 840, 113549, 1, 9, 1], sha256WithRSA: [1, 2, 840, 113549, 1, 1, 11] }; + +export interface CsrSubject { commonName: string; country?: string; email?: string } + +/** PEM CSR for the key. Subject: CN (and C / emailAddress when given; Apple ignores them for API-made certificates). */ +export function buildCsr(key: KeyObject, subject: CsrSubject): string { + const rdn = (o: number[], value: Buffer) => set(seq(oid(o), value)); + const name = seq( + ...(subject.email ? [rdn(OID.emailAddress, der(0x16, Buffer.from(subject.email, 'ascii')))] : []), + rdn(OID.commonName, der(0x0c, Buffer.from(subject.commonName, 'utf8'))), + ...(subject.country ? [rdn(OID.countryName, der(0x13, Buffer.from(subject.country, 'ascii')))] : []), + ); + const spki = createPublicKey(key).export({ type: 'spki', format: 'der' }); + const info = seq(der(0x02, Buffer.from([0])), name, spki, der(0xa0)); + const sig = sign('sha256', info, key); + const csr = seq(info, seq(oid(OID.sha256WithRSA), der(0x05)), der(0x03, Buffer.from([0]), sig)); + return `-----BEGIN CERTIFICATE REQUEST-----\n${csr.toString('base64').match(/.{1,64}/g)!.join('\n')}\n-----END CERTIFICATE REQUEST-----\n`; +} + +/** New RSA 2048 key (Apple's signing certificates use RSA 2048) as PKCS #8 PEM plus its KeyObject. */ +export function newSigningKey(): { pem: string; key: KeyObject } { + const { privateKey } = generateKeyPairSync('rsa', { modulusLength: 2048 }); + return { pem: privateKey.export({ type: 'pkcs8', format: 'pem' }).toString(), key: privateKey }; +} + +/** The CSR's base64 body (what the App Store Connect API takes as csrContent). */ +export const csrContent = (pem: string): string => pem.replace(/-----[^-]+-----/g, '').replace(/\s+/g, ''); + +/** SPKI (DER, base64) of a private key PEM: matches a certificate's public key. */ +export const spkiOfKey = (pem: string): string => createPublicKey(createPrivateKey(pem)).export({ type: 'spki', format: 'der' }).toString('base64'); diff --git a/cli/lib/gradle.ts b/cli/lib/gradle.ts new file mode 100644 index 00000000..bfc42d93 --- /dev/null +++ b/cli/lib/gradle.ts @@ -0,0 +1,180 @@ +// Android release builds: find the Gradle project (native, Capacitor, React Native, Flutter, Unity export), the +// bundle task, the signing environment (the upload key from env / .storebound, handed to Gradle as injected +// properties through ORG_GRADLE_PROJECT_* variables, so passwords never appear on a command line), and read +// package / versionCode / versionName back from the built AAB (its manifest is protocol buffers, aapt2 format). +import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs'; +import { join, relative } from 'node:path'; +import type { AndroidSigning } from './credentials'; +import { zipEntries, zipRead } from './zip'; + +export interface PlayBuildConfig { + /** Gradle project folder (with gradlew / settings.gradle), relative to the config. Default: android/, else the root. */ + dir?: string; + /** Application module. Default app (Unity export: launcher). */ + module?: string; + /** Product flavor, e.g. "prod" -> bundleProdRelease. */ + flavor?: string; +} + +export function validatePlayBuild(b: PlayBuildConfig | undefined): string[] { + if (!b) return []; + const e: string[] = []; + if (b.module !== undefined && !/^[A-Za-z0-9_-]+(:[A-Za-z0-9_-]+)*$/.test(b.module)) e.push('play.build.module: a Gradle module name like app'); + if (b.flavor !== undefined && !/^[A-Za-z][A-Za-z0-9]*$/.test(b.flavor)) e.push('play.build.flavor: a product flavor name like prod'); + return e; +} + +export type AndroidFramework = 'flutter' | 'capacitor' | 'react-native' | 'unity' | 'native'; + +export interface GradleTarget { framework: AndroidFramework; dir: string; module: string; task: string; notes: string[] } + +const isGradleDir = (d: string): boolean => ['settings.gradle', 'settings.gradle.kts'].some(f => existsSync(join(d, f))); + +/** Finds the Gradle project. `root` is the folder of storebound.config.ts. */ +export function pickGradle(root: string, cfg: PlayBuildConfig = {}): GradleTarget { + const notes: string[] = []; + const framework: AndroidFramework = existsSync(join(root, 'pubspec.yaml')) ? 'flutter' + : ['capacitor.config.ts', 'capacitor.config.json', 'capacitor.config.js'].some(f => existsSync(join(root, f))) ? 'capacitor' + : (() => { try { const p = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')); return !!(p.dependencies?.['react-native'] ?? p.devDependencies?.['react-native']); } catch { return false; } })() ? 'react-native' + : 'native'; + const dirs = cfg.dir ? [join(root, cfg.dir)] : [join(root, 'android'), root]; + let dir = dirs.find(isGradleDir); + if (!dir) throw new Error(`no Gradle project (settings.gradle) in ${dirs.map(d => relative(root, d) || '.').join(' or ')}: set play.build.dir${framework === 'capacitor' ? ' (or npx cap add android)' : ''}`); + const unity = existsSync(join(dir, 'launcher')) && existsSync(join(dir, 'unityLibrary')); + const fw: AndroidFramework = unity ? 'unity' : framework; + const module = cfg.module ?? (unity ? 'launcher' : 'app'); + if (!existsSync(join(dir, ...module.split(':')))) throw new Error(`module "${module}" not found in ${relative(root, dir) || '.'} (set play.build.module)`); + const flavor = cfg.flavor ? cfg.flavor[0]!.toUpperCase() + cfg.flavor.slice(1) : ''; + if (fw === 'capacitor') notes.push('Capacitor: run npx cap sync android after the web build so the bundle has the current web assets'); + if (fw === 'unity') notes.push('Unity: export the Gradle project from Unity (Build Settings > Android > Export Project) before each build'); + if (fw === 'flutter') notes.push('Flutter: built with flutter build appbundle (build number = versionCode)'); + if (!existsSync(join(dir, process.platform === 'win32' ? 'gradlew.bat' : 'gradlew'))) notes.push('no Gradle wrapper (gradlew) in the project: using gradle from PATH'); + return { framework: fw, dir, module, task: `:${module}:bundle${flavor}Release`, notes }; +} + +/** Command line of the release bundle build. Version code / name go in as injected properties (the same ones Android + * Studio uses) and as -PversionCode / -PversionName for build files that read those. */ +export function gradleArgs(t: GradleTarget, o: { versionCode?: number; versionName?: string; flavor?: string; hasWrapper: boolean }): string[] { + if (t.framework === 'flutter') + return ['flutter', 'build', 'appbundle', '--release', ...(o.flavor ? ['--flavor', o.flavor] : []), ...(o.versionCode ? ['--build-number', String(o.versionCode)] : []), ...(o.versionName ? ['--build-name', o.versionName] : [])]; + return [o.hasWrapper ? (process.platform === 'win32' ? 'gradlew.bat' : './gradlew') : 'gradle', t.task, '--no-daemon', '--console=plain', + ...(o.versionCode ? [`-Pandroid.injected.version.code=${o.versionCode}`, `-PversionCode=${o.versionCode}`] : []), + ...(o.versionName ? [`-Pandroid.injected.version.name=${o.versionName}`, `-PversionName=${o.versionName}`] : [])]; +} + +/** Environment that hands the upload key to the Android Gradle plugin (injected signing properties). */ +export function signingEnv(s: AndroidSigning | null): Record { + if (!s) return {}; + return { + 'ORG_GRADLE_PROJECT_android.injected.signing.store.file': s.storeFile, + 'ORG_GRADLE_PROJECT_android.injected.signing.store.password': s.storePassword, + 'ORG_GRADLE_PROJECT_android.injected.signing.key.alias': s.keyAlias, + 'ORG_GRADLE_PROJECT_android.injected.signing.key.password': s.keyPassword, + }; +} + +/** AABs written since `since` (ms) below the folders a build writes to. Newest first. */ +export function findBundles(dirs: string[], since: number): string[] { + const out: { f: string; t: number }[] = []; + const walk = (d: string, depth: number): void => { + let names: string[]; + try { names = readdirSync(d); } catch { return; } + for (const n of names) { + const p = join(d, n); + let st; + try { st = statSync(p); } catch { continue; } + if (st.isDirectory()) { if (depth > 0 && n !== 'intermediates' && n !== 'tmp') walk(p, depth - 1); } + else if (n.endsWith('.aab') && st.mtimeMs >= since) out.push({ f: p, t: st.mtimeMs }); + } + }; + for (const d of dirs) walk(d, 6); + return out.sort((a, b) => b.t - a.t).map(x => x.f); +} + +// ---- AAB manifest (aapt2 protobuf XmlNode) ---- + +type Field = { no: number; wire: number; v: number | Buffer }; + +function fields(b: Buffer): Field[] | null { + const out: Field[] = []; + let i = 0; + const varint = (): number => { + let r = 0, mul = 1; + for (let k = 0; k < 10; k++) { + if (i >= b.length) throw new Error('eof'); + const x = b[i++]!; + r += (x & 127) * mul; + if (!(x & 128)) return r; + mul *= 128; + } + throw new Error('varint'); + }; + try { + while (i < b.length) { + const key = varint(), no = Math.floor(key / 8), wire = key & 7; + if (no === 0) return null; + if (wire === 0) out.push({ no, wire, v: varint() }); + else if (wire === 2) { const n = varint(); if (i + n > b.length) return null; out.push({ no, wire, v: b.subarray(i, i + n) }); i += n; } + else if (wire === 5) { i += 4; } else if (wire === 1) { i += 8; } else return null; + } + } catch { return null; } + return i === b.length ? out : null; +} + +/** Attributes (name -> raw value) of every element in an aapt2 proto XML, element name first. */ +function elements(b: Buffer, out: { name: string; attrs: Record }[] = [], depth = 0): { name: string; attrs: Record }[] { + // XmlNode { XmlElement element = 1; string text = 2; ... } XmlElement { ns 1; string name = 4; XmlAttribute attribute = 5; XmlNode child = 6 } + // XmlAttribute { string namespace_uri = 1; string name = 2; string value = 3; ...; Item compiled_item = 6 } + if (depth > 64) return out; + const node = fields(b); + const el = node?.find(f => f.no === 1 && f.wire === 2); + if (!el) return out; + const ef = fields(el.v as Buffer) ?? []; + const name = (ef.find(f => f.no === 4)?.v as Buffer | undefined)?.toString('utf8') ?? ''; + const attrs: Record = {}; + for (const a of ef.filter(f => f.no === 5 && f.wire === 2)) { + const af = fields(a.v as Buffer) ?? []; + const an = (af.find(f => f.no === 2)?.v as Buffer | undefined)?.toString('utf8'); + let av = (af.find(f => f.no === 3)?.v as Buffer | undefined)?.toString('utf8') ?? ''; + if (!av) { + // compiled_item { Prim prim = 7 { int_decimal_value = 6 ... } } or { Str str = 2 { value = 1 } } + const item = fields((af.find(f => f.no === 6)?.v as Buffer | undefined) ?? Buffer.alloc(0)) ?? []; + const prim = fields((item.find(f => f.no === 7)?.v as Buffer | undefined) ?? Buffer.alloc(0)) ?? []; + const n = prim.find(f => f.wire === 0); + const str = fields((item.find(f => f.no === 2)?.v as Buffer | undefined) ?? Buffer.alloc(0)) ?? []; + av = n ? String(n.v) : (str.find(f => f.no === 1)?.v as Buffer | undefined)?.toString('utf8') ?? ''; + } + if (an) attrs[an] = av; + } + out.push({ name, attrs }); + for (const c of ef.filter(f => f.no === 6 && f.wire === 2)) elements(c.v as Buffer, out, depth + 1); + return out; +} + +export interface AabInfo { packageName: string; versionCode: number; versionName?: string; minSdk?: number; targetSdk?: number } + +/** Package, versionCode and versionName of an Android App Bundle (base/manifest/AndroidManifest.xml). */ +export function aabInfo(aab: string | Buffer): AabInfo { + const e = zipEntries(aab).find(x => x.name === 'base/manifest/AndroidManifest.xml'); + if (!e) throw new Error('not an Android App Bundle (no base/manifest/AndroidManifest.xml)'); + const els = elements(zipRead(aab, e)); + const m = els.find(x => x.name === 'manifest'); + if (!m?.attrs.package || !m.attrs.versionCode) throw new Error('AAB manifest without package / versionCode'); + const sdk = els.find(x => x.name === 'uses-sdk')?.attrs; + return { packageName: m.attrs.package, versionCode: Number(m.attrs.versionCode), versionName: m.attrs.versionName || undefined, + minSdk: sdk?.minSdkVersion ? Number(sdk.minSdkVersion) : undefined, targetSdk: sdk?.targetSdkVersion ? Number(sdk.targetSdkVersion) : undefined }; +} + +/** Builds an aapt2-style proto manifest (tests and fixtures). */ +export function encodeProtoManifest(els: { name: string; attrs: Record }[]): Buffer { + const vint = (n: number): Buffer => { const o: number[] = []; do { let x = n % 128; n = Math.floor(n / 128); if (n) x |= 128; o.push(x); } while (n); return Buffer.from(o); }; + const ld = (no: number, b: Buffer): Buffer => Buffer.concat([vint(no * 8 + 2), vint(b.length), b]); + const s = (no: number, t: string) => ld(no, Buffer.from(t, 'utf8')); + const element = (i: number): Buffer => { + const e = els[i]!; + const attrs = Object.entries(e.attrs).map(([k, v]) => ld(5, Buffer.concat([s(1, 'http://schemas.android.com/apk/res/android'), s(2, k), s(3, v)]))); + const child = i + 1 < els.length ? [ld(6, ld(1, element(i + 1)))] : []; + return Buffer.concat([s(4, e.name), ...attrs, ...child]); + }; + return ld(1, element(0)); +} diff --git a/cli/lib/imagehash.ts b/cli/lib/imagehash.ts new file mode 100644 index 00000000..d29b91ee --- /dev/null +++ b/cli/lib/imagehash.ts @@ -0,0 +1,138 @@ +// Perceptual image hashes without dependencies: a PNG decoder in TypeScript (node:zlib inflates), a 32 x 32 grey +// thumbnail, then dHash (gradients, 64 bit) and pHash (DCT low frequencies, 64 bit). JPEG / WebP go through ffmpeg +// when it is installed (one grey 32 x 32 frame on stdout), else they are skipped with a reason. Two images whose +// hashes differ in few bits look alike to a person (and to a reviewer comparing store pages). +import { readFileSync } from 'node:fs'; +import { inflateSync } from 'node:zlib'; + +export interface Gray { w: number; h: number; px: Float64Array } + +/** Decodes a PNG to grey (alpha composited over white). 1-16 bit, every color type, Adam7 interlacing included. */ +export function decodePng(buf: Buffer): Gray { + if (buf.readUInt32BE(0) !== 0x89504e47) throw new Error('not a PNG'); + let w = 0, h = 0, depth = 0, ctype = 0, interlace = 0; + let palette: Buffer | null = null, trns: Buffer | null = null; + const idat: Buffer[] = []; + for (let p = 8; p + 8 <= buf.length;) { + const len = buf.readUInt32BE(p), type = buf.toString('latin1', p + 4, p + 8), data = buf.subarray(p + 8, p + 8 + len); + if (type === 'IHDR') { w = data.readUInt32BE(0); h = data.readUInt32BE(4); depth = data[8]!; ctype = data[9]!; interlace = data[12]!; } + else if (type === 'PLTE') palette = data; + else if (type === 'tRNS') trns = data; + else if (type === 'IDAT') idat.push(data); + else if (type === 'IEND') break; + p += 12 + len; + } + if (!w || !h) throw new Error('PNG without IHDR'); + if (w * h > 40_000_000) throw new Error('PNG too large to hash'); + const channels = { 0: 1, 2: 3, 3: 1, 4: 2, 6: 4 }[ctype]; + if (!channels) throw new Error(`PNG color type ${ctype} not supported`); + const raw = inflateSync(Buffer.concat(idat)); + const bpp = Math.max(1, (channels * depth) >> 3); + const out = new Float64Array(w * h); + const max = (1 << depth) - 1; + let off = 0; + + const pass = (x0: number, y0: number, dx: number, dy: number): void => { + const pw = Math.ceil((w - x0) / dx), ph = Math.ceil((h - y0) / dy); + if (pw <= 0 || ph <= 0) return; + const stride = Math.ceil((pw * channels * depth) / 8); + let prev = new Uint8Array(stride); + for (let y = 0; y < ph; y++) { + const ft = raw[off]!; + const line = new Uint8Array(raw.subarray(off + 1, off + 1 + stride)); + off += 1 + stride; + for (let i = 0; i < stride; i++) { + const a = i >= bpp ? line[i - bpp]! : 0, b = prev[i]!, c = i >= bpp ? prev[i - bpp]! : 0; + let v = line[i]!; + if (ft === 1) v += a; else if (ft === 2) v += b; else if (ft === 3) v += (a + b) >> 1; + else if (ft === 4) { const pp = a + b - c, pa = Math.abs(pp - a), pb = Math.abs(pp - b), pc = Math.abs(pp - c); v += pa <= pb && pa <= pc ? a : pb <= pc ? b : c; } + line[i] = v & 255; + } + const sample = (x: number, ch: number): number => { + if (depth === 8) return line[x * channels + ch]!; + if (depth === 16) { const i = (x * channels + ch) * 2; return (line[i]! << 8) | line[i + 1]!; } + const bit = (x * channels + ch) * depth; + return (line[bit >> 3]! >> (8 - depth - (bit & 7))) & max; + }; + for (let x = 0; x < pw; x++) { + let r: number, g: number, bl: number, al = 1; + if (ctype === 3) { + const i = sample(x, 0); + r = palette![i * 3]! / 255; g = palette![i * 3 + 1]! / 255; bl = palette![i * 3 + 2]! / 255; + if (trns && i < trns.length) al = trns[i]! / 255; + } else if (ctype === 0 || ctype === 4) { r = g = bl = sample(x, 0) / max; if (ctype === 4) al = sample(x, 1) / max; } + else { r = sample(x, 0) / max; g = sample(x, 1) / max; bl = sample(x, 2) / max; if (ctype === 6) al = sample(x, 3) / max; } + const lum = 0.299 * r + 0.587 * g + 0.114 * bl; + out[(y0 + y * dy) * w + x0 + x * dx] = (lum * al + (1 - al)) * 255; + } + prev = line; + } + }; + if (interlace) for (const [x0, y0, dx, dy] of [[0, 0, 8, 8], [4, 0, 8, 8], [0, 4, 4, 8], [2, 0, 4, 4], [0, 2, 2, 4], [1, 0, 2, 2], [0, 1, 1, 2]] as const) pass(x0, y0, dx, dy); + else pass(0, 0, 1, 1); + return { w, h, px: out }; +} + +/** Area-average resize of a grey image. */ +export function resize(g: Gray, W: number, H: number): Gray { + const out = new Float64Array(W * H); + for (let Y = 0; Y < H; Y++) for (let X = 0; X < W; X++) { + const x0 = Math.floor((X * g.w) / W), x1 = Math.max(x0 + 1, Math.floor(((X + 1) * g.w) / W)); + const y0 = Math.floor((Y * g.h) / H), y1 = Math.max(y0 + 1, Math.floor(((Y + 1) * g.h) / H)); + let s = 0; + for (let y = y0; y < y1; y++) for (let x = x0; x < x1; x++) s += g.px[y * g.w + x]!; + out[Y * W + X] = s / ((x1 - x0) * (y1 - y0)); + } + return { w: W, h: H, px: out }; +} + +/** 64-bit hashes as 16 hex characters. */ +export interface ImageHash { d: string; p: string } + +const toHex = (bits: number[]): string => { let s = ''; for (let i = 0; i < 64; i += 4) s += ((bits[i]! << 3) | (bits[i + 1]! << 2) | (bits[i + 2]! << 1) | bits[i + 3]!).toString(16); return s; }; + +export function dHash(g: Gray): string { + const s = resize(g, 9, 8); + const bits: number[] = []; + for (let y = 0; y < 8; y++) for (let x = 0; x < 8; x++) bits.push(s.px[y * 9 + x]! < s.px[y * 9 + x + 1]! ? 1 : 0); + return toHex(bits); +} + +export function pHash(g: Gray): string { + const N = 32, s = resize(g, N, N); + const cos = Array.from({ length: 8 }, (_, u) => Array.from({ length: N }, (_, x) => Math.cos(((2 * x + 1) * u * Math.PI) / (2 * N)))); + const coef: number[] = []; + for (let u = 0; u < 8; u++) for (let v = 0; v < 8; v++) { + let sum = 0; + for (let y = 0; y < N; y++) for (let x = 0; x < N; x++) sum += s.px[y * N + x]! * cos[u]![y]! * cos[v]![x]!; + coef.push(sum); + } + const ac = coef.slice(1).sort((a, b) => a - b); + const median = ac[Math.floor(ac.length / 2)]!; + return toHex(coef.map((c, i) => (i === 0 ? 0 : c > median ? 1 : 0))); +} + +export const hashGray = (g: Gray): ImageHash => ({ d: dHash(g), p: pHash(g) }); + +export function hamming(a: string, b: string): number { + let n = 0; + for (let i = 0; i < a.length; i++) { let x = parseInt(a[i]!, 16) ^ parseInt(b[i]!, 16); while (x) { n += x & 1; x >>= 1; } } + return n; +} + +/** 1 = same picture, about 0.5 = unrelated. The mean of both hashes. */ +export const imageSimilarity = (a: ImageHash, b: ImageHash): number => 1 - (hamming(a.d, b.d) + hamming(a.p, b.p)) / 128; + +/** Hash of an image file: PNG in TypeScript, anything else through ffmpeg (null with a reason when that is missing). */ +export function hashFile(path: string): { hash: ImageHash | null; reason?: string } { + try { + const buf = readFileSync(path); + if (buf.length > 8 && buf.readUInt32BE(0) === 0x89504e47) return { hash: hashGray(decodePng(buf)) }; + const ffmpeg = Bun.which('ffmpeg'); + if (!ffmpeg) return { hash: null, reason: 'not a PNG and ffmpeg is not installed' }; + const r = Bun.spawnSync([ffmpeg, '-v', 'error', '-i', path, '-frames:v', '1', '-vf', 'scale=32:32:flags=area,format=gray', '-f', 'rawvideo', '-'], { stdout: 'pipe', stderr: 'pipe', timeout: 20_000 }); + const px = r.stdout; + if (r.exitCode !== 0 || px.length !== 1024) return { hash: null, reason: `ffmpeg could not read it (${r.stderr.toString().trim().split('\n')[0]?.slice(0, 120) ?? r.exitCode})` }; + return { hash: hashGray({ w: 32, h: 32, px: Float64Array.from(px) }) }; + } catch (e) { return { hash: null, reason: (e as Error).message }; } +} diff --git a/cli/lib/originality.ts b/cli/lib/originality.ts new file mode 100644 index 00000000..a64ad45a --- /dev/null +++ b/cli/lib/originality.ts @@ -0,0 +1,267 @@ +// Originality check against the owner's other apps (App Store Guideline 4.3 "spam", Google Play repetitive content): +// listing text, icon, screenshots and project structure of this app vs each other app, offline. Every axis is a +// 0-1 likeness (1 = the same), the overall score weighs the axes that both apps have, and a pair is flagged as a +// near-duplicate above the threshold or when one axis alone is nearly identical. Suggestions follow the +// portfolio-originality skill: deepen one axis until it is clearly different, or merge the idea into the other app. +import { createHash } from 'node:crypto'; +import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs'; +import { join, relative } from 'node:path'; +import type { ShipConfig } from './config'; +import { parseAppStoreListing, parsePlayListing } from './copy'; +import { hashFile, type ImageHash, imageSimilarity } from './imagehash'; +import { findIcon } from './project-files'; + +export interface OriginalityConfig { + /** Other apps: folders with a storebound.config.ts, or workspace folders holding several (one level down). */ + against?: string[]; + /** Overall score from which a pair counts as a near-duplicate (0-1). Default 0.7. */ + threshold?: number; +} + +export function validateOriginality(o: OriginalityConfig | undefined): string[] { + if (!o) return []; + const e: string[] = []; + if (o.against && (!Array.isArray(o.against) || o.against.some(x => typeof x !== 'string' || !x))) e.push('originality.against: a list of folders'); + if (o.threshold !== undefined && !(o.threshold > 0 && o.threshold < 1)) e.push('originality.threshold: between 0 and 1 (e.g. 0.7)'); + return e; +} + +export const DEFAULT_THRESHOLD = 0.7; +/** One axis alone at or above this likeness flags the pair too. */ +export const AXIS_FLAG = { text: 0.8, name: 0.85, icon: 0.85, screenshots: 0.8, structure: 0.85 } as const; +const WEIGHTS = { text: 0.3, icon: 0.2, screenshots: 0.3, structure: 0.2 } as const; + +// ---- text ---- + +const STOP = new Set(('a an and are as at be but by for from has have in is it its of on or our so that the their them this to us was we were will ' + + 'with you your yours all any can more most new no not now one only just get got out up very than then there these those into over each ' + + 'app apps game games play free').split(' ')); + +export const words = (s: string): string[] => (s.toLowerCase().normalize('NFKC').match(/[\p{L}\p{N}]+/gu) ?? []).filter(w => w.length > 1 && !STOP.has(w)); + +function cosine(a: string[], b: string[]): number { + if (!a.length || !b.length) return 0; + const ta = new Map(), tb = new Map(); + for (const w of a) ta.set(w, (ta.get(w) ?? 0) + 1); + for (const w of b) tb.set(w, (tb.get(w) ?? 0) + 1); + let dot = 0, na = 0, nb = 0; + for (const [w, n] of ta) { na += n * n; dot += n * (tb.get(w) ?? 0); } + for (const n of tb.values()) nb += n * n; + return dot / Math.sqrt(na * nb); +} + +const shingles = (w: string[], k = 3): Set => { const s = new Set(); for (let i = 0; i + k <= w.length; i++) s.add(w.slice(i, i + k).join(' ')); return s; }; + +export function jaccard(a: Set, b: Set): number { + if (!a.size && !b.size) return 0; + let n = 0; + for (const x of a) if (b.has(x)) n++; + return n / (a.size + b.size - n); +} + +/** Bigram (character pair) Dice coefficient of two short strings (app names). */ +export function nameSimilarity(a: string, b: string): number { + const norm = (s: string) => s.toLowerCase().normalize('NFKC').replace(/[^\p{L}\p{N}]+/gu, ''); + const x = norm(a), y = norm(b); + if (!x || !y) return 0; + if (x === y) return 1; + const bi = (s: string) => { const m = new Map(); for (let i = 0; i < s.length - 1; i++) { const k = s.slice(i, i + 2); m.set(k, (m.get(k) ?? 0) + 1); } return m; }; + const A = bi(x), B = bi(y); + let inter = 0; + for (const [k, n] of A) inter += Math.min(n, B.get(k) ?? 0); + const total = Math.max(1, x.length - 1 + y.length - 1); + return (2 * inter) / total; +} + +/** Listing text likeness: word frequency cosine (same promises and vocabulary) and 3-word shingle overlap (copied + * sentences), 0.6 / 0.4. */ +export function textSimilarity(a: string, b: string): { score: number; cosine: number; shingles: number } { + const wa = words(a), wb = words(b); + const c = cosine(wa, wb), s = jaccard(shingles(wa), shingles(wb)); + return { score: 0.6 * c + 0.4 * s, cosine: c, shingles: s }; +} + +// ---- fingerprint ---- + +export interface AppFingerprint { + name: string; + dir: string; + ids: string[]; + /** Listing text of the primary language (name, subtitle, keywords, descriptions). */ + text: string; + icon: ImageHash | null; + shots: ImageHash[]; + /** Relative file paths (folder layout) and content hashes of the project's own files. */ + paths: Set; + contents: Set; + notes: string[]; +} + +const SKIP = new Set(['node_modules', '.git', 'build', 'dist', 'Pods', 'DerivedData', '.gradle', '.storebound', '.dart_tool', 'Library', 'Temp', 'Logs', + 'obj', '.idea', '.vscode', 'renders', '.next', '.expo', 'coverage', 'www', 'public']); +export const MAX_FILES = 20_000; +const MAX_HASH_BYTES = 4_000_000; + +/** Folder layout and content hashes of a project, bounded (MAX_FILES). Store renders and build output are left out: + * screenshots have their own axis, build output is not the developer's work. */ +export function projectStructure(root: string): { paths: Set; contents: Set; truncated: boolean } { + const paths = new Set(), contents = new Set(); + let count = 0, truncated = false; + const walk = (d: string): void => { + let names: string[]; + try { names = readdirSync(d).sort(); } catch { return; } + for (const n of names) { + if (count >= MAX_FILES) { truncated = true; return; } + if (n.startsWith('.') && n !== '.github') continue; + const p = join(d, n); + let st; + try { st = statSync(p); } catch { continue; } + if (st.isDirectory()) { if (!SKIP.has(n) && !n.endsWith('.xcarchive')) walk(p); continue; } + count++; + // names that carry the app's identity (bundle id folders, app names) are normalized away by keeping the extension and depth + paths.add(relative(root, p).split(/[\\/]/).map((seg, i, all) => (i === all.length - 1 ? seg.toLowerCase() : seg.toLowerCase().replace(/[^a-z]+/g, '-'))).join('/')); + if (st.size > 0 && st.size <= MAX_HASH_BYTES) { try { contents.add(createHash('md5').update(readFileSync(p)).digest('hex')); } catch { /* unreadable */ } } + } + }; + walk(root); + return { paths, contents, truncated }; +} + +function primaryText(config: ShipConfig, root: string, notes: string[]): string { + const parts: string[] = [config.app.name]; + const read = (rel: string): string | null => { try { return readFileSync(join(root, rel), 'utf8'); } catch { return null; } }; + if (config.apple) { + const md = read(config.apple.listing ?? 'store/appstore.md'); + if (md) try { + const all = parseAppStoreListing(md); + const loc = config.apple.primaryLocale ?? (all['en-US'] ? 'en-US' : Object.keys(all)[0]); + const c = loc ? all[loc] : undefined; + if (c) parts.push(c.name ?? '', c.subtitle ?? '', (c.keywords ?? '').replace(/,/g, ' '), c.promotionalText ?? '', c.description ?? ''); + } catch (e) { notes.push(`App Store listing not readable: ${(e as Error).message.slice(0, 120)}`); } + else notes.push('no App Store listing file'); + } + if (config.play) { + const md = read(config.play.listing ?? 'store/listing.md'); + if (md) try { + const all = parsePlayListing(md, config.app.name); + const c = all.find(x => x.lang === (config.play!.defaultLanguage ?? 'en-US')) ?? all[0]; + if (c) parts.push(c.title, c.short, c.full); + } catch (e) { notes.push(`Play listing not readable: ${(e as Error).message.slice(0, 120)}`); } + else notes.push('no Play listing file'); + } + return parts.filter(Boolean).join('\n'); +} + +function screenshotFiles(config: ShipConfig, root: string): string[] { + const dir = join(root, config.renders ?? config.shots?.out ?? 'store/renders'); + if (!existsSync(dir)) return []; + const langs = readdirSync(dir).filter(n => { try { return statSync(join(dir, n)).isDirectory(); } catch { return false; } }); + const lang = langs.find(l => l === config.languages[0]?.id) ?? langs.find(l => l !== 'feature') ?? null; + if (!lang) return []; + const sizes = readdirSync(join(dir, lang)).map(s => join(dir, lang, s)).filter(p => { try { return statSync(p).isDirectory(); } catch { return false; } }); + const imgs = (d: string) => readdirSync(d).filter(f => /\.(png|jpe?g|webp)$/i.test(f) && !/contact|sheet|index/i.test(f)).sort().map(f => join(d, f)); + const best = sizes.map(imgs).sort((a, b) => b.length - a.length)[0] ?? imgs(join(dir, lang)); + return best.slice(0, 10); +} + +/** Everything the comparison needs from one app's folder and config. */ +export function fingerprint(config: ShipConfig, root: string): AppFingerprint { + const notes: string[] = []; + const iconPath = findIcon(config, root); + let icon: ImageHash | null = null; + if (iconPath) { const h = hashFile(iconPath); icon = h.hash; if (!h.hash) notes.push(`icon not hashed: ${h.reason}`); } else notes.push('no icon found'); + const files = screenshotFiles(config, root); + const shots: ImageHash[] = []; + for (const f of files) { const h = hashFile(f); if (h.hash) shots.push(h.hash); else notes.push(`${relative(root, f)}: ${h.reason}`); } + if (!files.length) notes.push('no rendered screenshots (shots render)'); + const st = projectStructure(root); + if (st.truncated) notes.push(`project structure: first ${MAX_FILES} files only`); + return { name: config.app.name, dir: root, ids: [config.apple?.bundleId, config.play?.packageName].filter((x): x is string => !!x), + text: primaryText(config, root, notes), icon, shots, paths: st.paths, contents: st.contents, notes }; +} + +// ---- comparison ---- + +/** Image likeness on a 0-1 scale where unrelated pictures land near 0 (raw hash similarity of unrelated images is ~0.5). */ +export const imageLikeness = (a: ImageHash, b: ImageHash): number => Math.max(0, (imageSimilarity(a, b) - 0.5) / 0.5); + +/** Mean of each screenshot's best match in the other set, both directions. */ +export function screenshotSimilarity(a: ImageHash[], b: ImageHash[]): number | null { + if (!a.length || !b.length) return null; + const best = (x: ImageHash[], y: ImageHash[]) => x.reduce((s, h) => s + Math.max(...y.map(k => imageLikeness(h, k))), 0) / x.length; + return (best(a, b) + best(b, a)) / 2; +} + +export interface Axis { score: number | null; detail: string } +export interface PairResult { + other: { name: string; dir: string; ids: string[] }; + axes: { name: Axis; text: Axis; icon: Axis; screenshots: Axis; structure: Axis }; + overall: number; + flagged: boolean; + reasons: string[]; + suggestions: string[]; +} + +const r2 = (x: number): number => Math.round(x * 100) / 100; + +export function compare(a: AppFingerprint, b: AppFingerprint, threshold = DEFAULT_THRESHOLD): PairResult { + const name = nameSimilarity(a.name, b.name); + const t = a.text && b.text ? textSimilarity(a.text, b.text) : null; + const icon = a.icon && b.icon ? imageLikeness(a.icon, b.icon) : null; + const shots = screenshotSimilarity(a.shots, b.shots); + const layout = a.paths.size && b.paths.size ? jaccard(a.paths, b.paths) : null; + const content = a.contents.size && b.contents.size ? jaccard(a.contents, b.contents) : null; + const structure = layout === null || content === null ? null : 0.4 * layout + 0.6 * content; + const axes: PairResult['axes'] = { + name: { score: r2(name), detail: `"${a.name}" vs "${b.name}"` }, + text: { score: t ? r2(t.score) : null, detail: t ? `vocabulary ${Math.round(t.cosine * 100)}%, copied phrases ${Math.round(t.shingles * 100)}%` : 'no listing text on one side' }, + icon: { score: icon === null ? null : r2(icon), detail: icon === null ? 'no icon on one side' : `perceptual hash likeness ${Math.round(icon * 100)}%` }, + screenshots: { score: shots === null ? null : r2(shots), detail: shots === null ? 'no screenshots on one side' : `${a.shots.length} vs ${b.shots.length} screenshots, best-match likeness ${Math.round(shots * 100)}%` }, + structure: { score: structure === null ? null : r2(structure), detail: structure === null ? 'no project files on one side' : `same file layout ${Math.round(layout! * 100)}%, identical files ${Math.round(content! * 100)}%` }, + }; + let wsum = 0, sum = 0; + for (const k of ['text', 'icon', 'screenshots', 'structure'] as const) { const s = axes[k].score; if (s !== null) { wsum += WEIGHTS[k]; sum += WEIGHTS[k] * s; } } + const overall = wsum ? r2(sum / wsum) : 0; + const reasons: string[] = []; + if (overall >= threshold) reasons.push(`overall ${overall} >= ${threshold}`); + for (const k of ['name', 'text', 'icon', 'screenshots', 'structure'] as const) { const s = axes[k].score; if (s !== null && s >= AXIS_FLAG[k]) reasons.push(`${k} ${s} (${axes[k].detail})`); } + return { other: { name: b.name, dir: b.dir, ids: b.ids }, axes, overall, flagged: reasons.length > 0, reasons, suggestions: suggest(axes, reasons.length > 0, overall, b.name) }; +} + +export function suggest(axes: PairResult['axes'], flagged: boolean, overall: number, other: string): string[] { + const s: string[] = []; + const hi = (k: keyof typeof axes, x: number) => (axes[k].score ?? 0) >= x; + if (hi('text', 0.6)) s.push(`Rewrite the listing around what is different from ${other} (another promise and audience), not synonyms: reviewers read both pages side by side`); + if (hi('name', 0.7)) s.push(`Pick a name that does not read as a variant of "${other}"`); + if (hi('icon', 0.7)) s.push('Make an icon with its own shape and subject, not a recolour of the other icon'); + if (hi('screenshots', 0.6)) s.push('Show different scenes and messages in the screenshots: the first screenshot should show what this app does that the other cannot'); + if (hi('structure', 0.6)) s.push(`Most project files are shared with ${other}: a template or reskin. Apple reviewers compare binaries; deepen one axis (core mechanic, progression, main task) until a user sees it in the first minute`); + if (flagged) { + s.push(`Write the differentiator: "Unlike ${other}, in this app the user ". If it needs "theme", "skin", "colours" or "levels", it is not one`); + if (overall >= 0.85) s.push(`Consider merging this into ${other} as a mode, world or event instead of a separate app (Guideline 4.3: fewer, richer apps)`); + } + return s; +} + +export interface OriginalityReport { app: { name: string; dir: string; ids: string[]; notes: string[] }; threshold: number; pairs: PairResult[]; flagged: number; others: { dir: string; notes: string[] }[] } + +export function report(self: AppFingerprint, others: AppFingerprint[], threshold = DEFAULT_THRESHOLD): OriginalityReport { + const pairs = others.map(o => compare(self, o, threshold)).sort((x, y) => y.overall - x.overall); + return { app: { name: self.name, dir: self.dir, ids: self.ids, notes: self.notes }, threshold, pairs, flagged: pairs.filter(p => p.flagged).length, + others: others.map(o => ({ dir: o.dir, notes: o.notes })) }; +} + +/** Config files of the apps to compare with: each folder itself when it holds a storebound config, else its + * sub-folders that do (a workspace). `self` (this app's folder) is left out. */ +export function findApps(folders: string[], self: string, configNames = ['storebound.config.ts', 'storebound.config.js', 'storebound.config.json']): string[] { + const cfg = (d: string) => configNames.map(n => join(d, n)).find(existsSync) ?? null; + const out: string[] = []; + for (const f of folders) { + const own = cfg(f); + if (own) { out.push(own); continue; } + let subs: string[] = []; + try { subs = readdirSync(f).map(n => join(f, n)).filter(p => { try { return statSync(p).isDirectory(); } catch { return false; } }); } catch { /* missing */ } + for (const s of subs.sort()) { const c = cfg(s); if (c) out.push(c); } + } + return [...new Set(out)].filter(p => !p.startsWith(join(self, 'storebound.config'))); +} diff --git a/cli/lib/plist.ts b/cli/lib/plist.ts new file mode 100644 index 00000000..92a1983f --- /dev/null +++ b/cli/lib/plist.ts @@ -0,0 +1,125 @@ +// Property lists without dependencies: write XML plists (ExportOptions.plist), read XML and binary plists (an IPA's +// Info.plist, the plist inside a .mobileprovision). Only the types those files use: dict, array, string, integer, +// real, true / false, date (as an ISO string) and data (as a Buffer). +export type PlistValue = string | number | boolean | Buffer | PlistValue[] | { [k: string]: PlistValue }; + +const esc = (s: string): string => s.replace(/&/g, '&').replace(//g, '>'); + +function xmlValue(v: PlistValue, ind: string): string { + if (typeof v === 'string') return `${ind}${esc(v)}`; + if (typeof v === 'boolean') return `${ind}<${v}/>`; + if (typeof v === 'number') return Number.isInteger(v) ? `${ind}${v}` : `${ind}${v}`; + if (Buffer.isBuffer(v)) return `${ind}${v.toString('base64')}`; + if (Array.isArray(v)) return v.length ? `${ind}\n${v.map(x => xmlValue(x, ind + '\t')).join('\n')}\n${ind}` : `${ind}`; + const keys = Object.keys(v).filter(k => v[k] !== undefined); + if (!keys.length) return `${ind}`; + return `${ind}\n${keys.map(k => `${ind}\t${esc(k)}\n${xmlValue(v[k]!, ind + '\t')}`).join('\n')}\n${ind}`; +} + +/** XML plist text, the format Xcode writes. */ +export function toXmlPlist(v: PlistValue): string { + return '\n\n' + + `\n${xmlValue(v, '')}\n\n`; +} + +const unesc = (s: string): string => s.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, "'") + .replace(/&#(\d+);/g, (_, n) => String.fromCodePoint(Number(n))).replace(/&#x([0-9a-f]+);/gi, (_, n) => String.fromCodePoint(parseInt(n, 16))).replace(/&/g, '&'); + +/** Parses an XML plist (tolerant of comments and whitespace). Throws on anything it does not understand. */ +export function parseXmlPlist(text: string): PlistValue { + const body = /]*>([\s\S]*)<\/plist>/.exec(text); + if (!body) throw new Error('not an XML plist'); + const toks = [...body[1]!.replace(//g, '').matchAll(/<(\/?)([a-zA-Z]+)(\/?)>|([^<]+)/g)]; + let i = 0; + const skipWs = () => { while (i < toks.length && toks[i]![4] !== undefined && !toks[i]![4]!.trim()) i++; }; + const text_ = (tag: string): string => { + let s = ''; + while (i < toks.length && !(toks[i]![1] === '/' && toks[i]![2] === tag)) { s += toks[i]![4] ?? ''; i++; } + i++; + return unesc(s); + }; + function value(): PlistValue { + skipWs(); + const t = toks[i++]; + if (!t || t[1]) throw new Error('plist: unexpected end or closing tag'); + const tag = t[2]!, selfClose = t[3] === '/'; + if (tag === 'true' || tag === 'false') { if (!selfClose) text_(tag); return tag === 'true'; } + if (selfClose) return tag === 'array' ? [] : tag === 'dict' ? {} : tag === 'data' ? Buffer.alloc(0) : ''; + if (tag === 'string' || tag === 'date') return text_(tag); + if (tag === 'integer' || tag === 'real') return Number(text_(tag).trim()); + if (tag === 'data') return Buffer.from(text_(tag).replace(/\s+/g, ''), 'base64'); + if (tag === 'array') { + const out: PlistValue[] = []; + for (;;) { skipWs(); if (toks[i]?.[1] === '/' && toks[i]![2] === 'array') { i++; return out; } out.push(value()); } + } + if (tag === 'dict') { + const out: Record = {}; + for (;;) { + skipWs(); + const k = toks[i]; + if (k?.[1] === '/' && k[2] === 'dict') { i++; return out; } + if (k?.[2] !== 'key') throw new Error('plist: expected in '); + i++; + out[text_('key')] = value(); + } + } + throw new Error(`plist: unsupported <${tag}>`); + } + return value(); +} + +/** Parses a binary plist ("bplist00"). */ +export function parseBinaryPlist(b: Buffer): PlistValue { + if (b.subarray(0, 8).toString('latin1') !== 'bplist00') throw new Error('not a binary plist'); + const t = b.subarray(b.length - 32); + const offSize = t[6]!, refSize = t[7]!; + const numObjects = Number(t.readBigUInt64BE(8)), top = Number(t.readBigUInt64BE(16)), tableOff = Number(t.readBigUInt64BE(24)); + const uint = (at: number, n: number): number => { let v = 0; for (let k = 0; k < n; k++) v = v * 256 + b[at + k]!; return v; }; + const offset = (ref: number): number => uint(tableOff + ref * offSize, offSize); + const depth = { n: 0 }; + function obj(ref: number): PlistValue { + if (ref >= numObjects) throw new Error('bplist: bad object reference'); + if (++depth.n > 512) throw new Error('bplist: too deep'); + try { + const at = offset(ref); + const m = b[at]!, hi = m >> 4, lo = m & 15; + const len = (): [number, number] => { + if (lo !== 15) return [lo, at + 1]; + const sz = 1 << (b[at + 1]! & 15); + return [uint(at + 2, sz), at + 2 + sz]; + }; + switch (hi) { + case 0: return lo === 9; // 0x08 false, 0x09 true (0x00 null -> false) + case 1: { const n = 1 << lo; return n === 8 ? Number(b.readBigInt64BE(at + 1)) : uint(at + 1, n); } + case 2: return lo === 2 ? b.readFloatBE(at + 1) : b.readDoubleBE(at + 1); + case 3: return new Date(Date.UTC(2001, 0, 1) + b.readDoubleBE(at + 1) * 1000).toISOString(); + case 4: { const [n, s] = len(); return Buffer.from(b.subarray(s, s + n)); } + case 5: { const [n, s] = len(); return b.subarray(s, s + n).toString('latin1'); } + case 6: { const [n, s] = len(); const u = Buffer.from(b.subarray(s, s + n * 2)); u.swap16(); return u.toString('utf16le'); } + case 8: return uint(at + 1, lo + 1); + case 10: { const [n, s] = len(); return Array.from({ length: n }, (_, k) => obj(uint(s + k * refSize, refSize))); } + case 13: { + const [n, s] = len(); + const out: Record = {}; + for (let k = 0; k < n; k++) out[String(obj(uint(s + k * refSize, refSize)))] = obj(uint(s + (n + k) * refSize, refSize)); + return out; + } + default: throw new Error(`bplist: unsupported object type 0x${m.toString(16)}`); + } + } finally { depth.n--; } + } + return obj(top); +} + +/** XML or binary plist bytes. */ +export function parsePlist(b: Buffer): PlistValue { + return b.subarray(0, 8).toString('latin1') === 'bplist00' ? parseBinaryPlist(b) : parseXmlPlist(b.toString('utf8')); +} + +/** The plist embedded in a .mobileprovision (a CMS envelope around an XML plist; the signature is not checked). */ +export function parseMobileprovision(b: Buffer): Record { + const s = b.toString('latin1'); + const start = s.indexOf(''); + if (start < 0 || end < 0) throw new Error('not a provisioning profile (no embedded plist)'); + return parseXmlPlist(Buffer.from(s.slice(start, end + 8), 'latin1').toString('utf8')) as Record; +} diff --git a/cli/lib/runner.ts b/cli/lib/runner.ts index bcb0d435..df46be16 100644 --- a/cli/lib/runner.ts +++ b/cli/lib/runner.ts @@ -46,7 +46,7 @@ export function childEnv(extra: Record = {}, machine = false): R return { ...base, ...extra, NO_COLOR: '1', ...(machine ? { STOREBOUND_MACHINE: '1', STOREBOUND_SERVE: '1' } : {}) }; } -async function pump(stream: ReadableStream, kind: 'stdout' | 'stderr', each: (line: string, kind: 'stdout' | 'stderr') => void): Promise { +export async function pump(stream: ReadableStream, kind: 'stdout' | 'stderr', each: (line: string, kind: 'stdout' | 'stderr') => void): Promise { const dec = new TextDecoder(); let buf = ''; const reader = stream.getReader(); diff --git a/cli/lib/signing.ts b/cli/lib/signing.ts new file mode 100644 index 00000000..8acc01fb --- /dev/null +++ b/cli/lib/signing.ts @@ -0,0 +1,173 @@ +// Code signing through the App Store Connect API (Certificates, Identifiers & Profiles), pure planning: +// bundle id capabilities, which distribution certificate to use, which provisioning profile to (re)create, where +// profiles are installed, and the ExportOptions.plist for `xcodebuild -exportArchive`. The command is +// cli/apple/signing.ts; requests are JSON:API `Req`s (printed on --dry, sent otherwise). +// API reference: https://developer.apple.com/documentation/appstoreconnectapi (Bundle IDs, Bundle ID Capabilities, +// Certificates, Profiles). +import { createHash, X509Certificate } from 'node:crypto'; +import { join } from 'node:path'; +import type { Req } from '../apple/jsonapi'; +import { one, many } from '../apple/jsonapi'; +import type { PlistValue } from './plist'; + +/** CapabilityType values of the App Store Connect API (BundleIdCapability.capabilityType). */ +export const CAPABILITY_TYPES = ['ICLOUD', 'IN_APP_PURCHASE', 'GAME_CENTER', 'PUSH_NOTIFICATIONS', 'WALLET', 'INTER_APP_AUDIO', 'MAPS', + 'ASSOCIATED_DOMAINS', 'PERSONAL_VPN', 'APP_GROUPS', 'HEALTHKIT', 'HOMEKIT', 'WIRELESS_ACCESSORY_CONFIGURATION', 'APPLE_PAY', 'DATA_PROTECTION', + 'SIRIKIT', 'NETWORK_EXTENSIONS', 'MULTIPATH', 'HOT_SPOT', 'NFC_TAG_READING', 'CLASSKIT', 'AUTOFILL_CREDENTIAL_PROVIDER', + 'ACCESS_WIFI_INFORMATION', 'NETWORK_CUSTOM_PROTOCOL', 'COREMEDIA_HLS_LOW_LATENCY', 'SYSTEM_EXTENSION_INSTALL', 'USER_MANAGEMENT', + 'APPLE_ID_AUTH'] as const; +export type CapabilityType = typeof CAPABILITY_TYPES[number]; + +/** Certificate types storebound creates: Apple Distribution (DISTRIBUTION, all platforms), the older iOS Distribution, + * and Developer ID Application (Mac apps outside the App Store; Account Holder only). */ +export const CERT_TYPES = ['DISTRIBUTION', 'IOS_DISTRIBUTION', 'DEVELOPER_ID_APPLICATION', 'DEVELOPER_ID_APPLICATION_G2'] as const; +export type CertType = typeof CERT_TYPES[number]; + +/** Profile types for store builds (Profile.profileType). */ +export const PROFILE_TYPES = ['IOS_APP_STORE', 'IOS_APP_ADHOC', 'TVOS_APP_STORE', 'MAC_APP_STORE', 'MAC_APP_DIRECT', 'MAC_CATALYST_APP_STORE'] as const; +export type ProfileType = typeof PROFILE_TYPES[number]; + +export interface CapabilitySpec { type: CapabilityType; settings?: unknown[] } + +export interface AppleSigning { + /** automatic (default): xcodebuild -allowProvisioningUpdates with the API key creates what it needs. + * manual: the certificate and profiles from `storebound apple signing ensure`, named in ExportOptions.plist. */ + style?: 'automatic' | 'manual'; + /** Team ID (10 characters). Default: the bundle id's seedId from the API. */ + teamId?: string; + /** Default DISTRIBUTION (Apple Distribution). */ + certificateType?: CertType; + /** Default IOS_APP_STORE. */ + profileType?: ProfileType; + /** Capabilities the bundle id must have (Certificates, Identifiers & Profiles), e.g. ['IN_APP_PURCHASE', 'GAME_CENTER']. */ + capabilities?: (CapabilityType | CapabilitySpec)[]; + /** Bundle ids of app extensions / widgets / watch apps in the same archive: each gets its own profile. */ + extraBundleIds?: string[]; +} + +export function validateSigning(s: AppleSigning | undefined): string[] { + if (!s) return []; + const e: string[] = []; + if (s.style && !['automatic', 'manual'].includes(s.style)) e.push('apple.signing.style: automatic | manual'); + if (s.teamId && !/^[A-Z0-9]{10}$/.test(s.teamId)) e.push('apple.signing.teamId: the 10-character Team ID'); + if (s.certificateType && !CERT_TYPES.includes(s.certificateType)) e.push(`apple.signing.certificateType: one of ${CERT_TYPES.join(', ')}`); + if (s.profileType && !PROFILE_TYPES.includes(s.profileType)) e.push(`apple.signing.profileType: one of ${PROFILE_TYPES.join(', ')}`); + for (const c of s.capabilities ?? []) { + const t = typeof c === 'string' ? c : c?.type; + if (!CAPABILITY_TYPES.includes(t as CapabilityType)) e.push(`apple.signing.capabilities: unknown capability "${String(t)}" (${CAPABILITY_TYPES.slice(0, 6).join(', ')}, ...)`); + } + for (const b of s.extraBundleIds ?? []) if (!/^[A-Za-z0-9.-]+$/.test(b)) e.push(`apple.signing.extraBundleIds: "${b}" is not a bundle id`); + return e; +} + +export const capabilitySpecs = (s: AppleSigning | undefined): CapabilitySpec[] => + (s?.capabilities ?? []).map(c => (typeof c === 'string' ? { type: c } : c)); + +/** Capabilities to add (never removes one: removing can break a shipped feature; extra ones are reported). */ +export function planCapabilities(bundleIdId: string, existing: string[], want: CapabilitySpec[]): { create: Req[]; present: string[]; extra: string[] } { + const have = new Set(existing); + const create = want.filter(w => !have.has(w.type)).map((w): Req => ({ + method: 'POST', path: '/v1/bundleIdCapabilities', note: `capability ${w.type}`, + body: { data: { type: 'bundleIdCapabilities', attributes: { capabilityType: w.type, ...(w.settings ? { settings: w.settings } : {}) }, relationships: { bundleId: one('bundleIds', bundleIdId) } } }, + })); + return { create, present: want.filter(w => have.has(w.type)).map(w => w.type), extra: existing.filter(t => !want.some(w => w.type === t)) }; +} + +export interface ApiCert { id: string; attributes: { certificateType?: string; certificateContent?: string; expirationDate?: string; displayName?: string; name?: string; serialNumber?: string; activated?: boolean } } + +/** SHA-1 of the certificate DER, upper-case hex: what `security find-identity` prints. */ +export const certSha1 = (contentB64: string): string => createHash('sha1').update(Buffer.from(contentB64, 'base64')).digest('hex').toUpperCase(); + +/** SPKI (DER, base64) of a certificate's public key, or null when it does not parse. */ +export function certSpki(contentB64: string): string | null { + try { return new X509Certificate(Buffer.from(contentB64, 'base64')).publicKey.export({ type: 'spki', format: 'der' }).toString('base64'); } catch { return null; } +} + +export interface CertChoice { cert: ApiCert | null; why: string; usable: ApiCert[]; withoutKey: ApiCert[]; expiring: ApiCert[] } + +/** A certificate is usable when it is of the wanted type, active, valid for 30 more days and this machine holds its + * private key (a key file in .storebound/signing or a code signing identity in the keychain). Newest first. */ +export function pickCertificate(certs: ApiCert[], type: CertType, hasKey: (c: ApiCert) => boolean, now = Date.now()): CertChoice { + const ofType = certs.filter(c => c.attributes.certificateType === type && c.attributes.activated !== false); + const valid = ofType.filter(c => Date.parse(c.attributes.expirationDate ?? '') > now); + const expiring = valid.filter(c => Date.parse(c.attributes.expirationDate!) - now < 30 * 86_400_000); + const usable = valid.filter(c => hasKey(c) && !expiring.includes(c)).sort((a, b) => Date.parse(b.attributes.expirationDate!) - Date.parse(a.attributes.expirationDate!)); + const withoutKey = valid.filter(c => !hasKey(c)); + const cert = usable[0] ?? null; + const why = cert ? `using ${cert.attributes.name ?? cert.attributes.displayName ?? type} (expires ${cert.attributes.expirationDate?.slice(0, 10)})` + : withoutKey.length ? `${withoutKey.length} ${type} certificate(s) on the team, but this machine has none of their private keys: a new one is needed (or import the .p12 from the Mac that made it)` + : `no valid ${type} certificate`; + return { cert, why, usable, withoutKey, expiring }; +} + +/** Apple caps distribution certificates per team (Apple Distribution: 3 per team). */ +export const CERT_LIMIT: Partial> = { DISTRIBUTION: 3, IOS_DISTRIBUTION: 3, DEVELOPER_ID_APPLICATION: 5, DEVELOPER_ID_APPLICATION_G2: 5 }; + +export function certificateReq(type: CertType, csr: string): Req { + return { method: 'POST', path: '/v1/certificates', note: `create ${type} certificate (key in .storebound/signing, never printed)`, + body: { data: { type: 'certificates', attributes: { certificateType: type, csrContent: csr } } } }; +} + +/** A 403 when creating a Developer ID certificate: only the Account Holder may create them. Explanation or null. */ +export function explainCertError(err: unknown, type: CertType): string | null { + const s = String(err); + if (/DEVELOPER_ID/.test(type) && /-> 403/.test(s)) + return 'Developer ID certificates can only be created by the Account Holder of the team. An API key (even Admin) gets 403 here. ' + + 'The Account Holder creates it once in Xcode (Settings > Accounts > Manage Certificates > + > Developer ID Application) or at ' + + 'developer.apple.com > Certificates, then exports the .p12 for this machine. App Store builds need DISTRIBUTION instead.'; + if (/-> 409/.test(s) && /maximum|limit|already/i.test(s)) + return 'The team has reached its limit of this certificate type. Revoke an unused one at developer.apple.com > Certificates (owner decision: ' + + 'builds signed with it keep working, but its profiles become invalid), or use a certificate whose key is on another Mac (export a .p12 there).'; + if (/-> 403/.test(s)) return 'The API key may not manage certificates: it needs the Admin role (Users and Access > Integrations).'; + return null; +} + +export interface ApiProfile { id: string; attributes: { name?: string; profileType?: string; profileState?: string; expirationDate?: string; uuid?: string; profileContent?: string }; certIds?: string[] } + +export const profileName = (bundleId: string, type: ProfileType, date = new Date()): string => + `storebound ${bundleId} ${type === 'IOS_APP_STORE' ? 'App Store' : type} ${date.toISOString().slice(0, 16).replace('T', ' ')}`; + +export interface ProfilePlan { reuse: ApiProfile | null; create: Req | null; why: string } + +/** Reuse an ACTIVE profile of the type that holds the certificate and is valid for 14 more days; else create one. */ +export function planProfile(existing: ApiProfile[], o: { bundleId: string; bundleIdId: string; certId: string; type: ProfileType; now?: number }): ProfilePlan { + const now = o.now ?? Date.now(); + const ok = existing.filter(p => p.attributes.profileType === o.type && p.attributes.profileState === 'ACTIVE' + && Date.parse(p.attributes.expirationDate ?? '') - now > 14 * 86_400_000 && (p.certIds ?? []).includes(o.certId)) + .sort((a, b) => Date.parse(b.attributes.expirationDate!) - Date.parse(a.attributes.expirationDate!)); + if (ok[0]) return { reuse: ok[0], create: null, why: `profile "${ok[0].attributes.name}" is active (expires ${ok[0].attributes.expirationDate?.slice(0, 10)})` }; + const stale = existing.filter(p => p.attributes.profileType === o.type); + const why = stale.length ? `${stale.length} ${o.type} profile(s), none active with this certificate (states: ${[...new Set(stale.map(p => p.attributes.profileState))].join(', ')})` : `no ${o.type} profile`; + return { reuse: null, why, create: { + method: 'POST', path: '/v1/profiles', note: `create ${o.type} profile for ${o.bundleId}`, + body: { data: { type: 'profiles', attributes: { name: profileName(o.bundleId, o.type, new Date(now)), profileType: o.type }, + relationships: { bundleId: one('bundleIds', o.bundleIdId), certificates: many('certificates', [o.certId]) } } }, + } }; +} + +/** Where provisioning profiles are installed: Xcode 16 and later read ~/Library/Developer/Xcode/UserData/Provisioning + * Profiles; older Xcode (and some tools) ~/Library/MobileDevice/Provisioning Profiles. storebound writes both. */ +export const profileDirs = (home: string): string[] => [join(home, 'Library/Developer/Xcode/UserData/Provisioning Profiles'), join(home, 'Library/MobileDevice/Provisioning Profiles')]; + +/** Lines of `security find-identity -v -p codesigning` -> SHA-1 hashes of identities with a private key. */ +export function parseIdentities(out: string): { sha1: string; name: string }[] { + return [...out.matchAll(/^\s*\d+\)\s+([0-9A-F]{40})\s+"([^"]+)"/gm)].map(m => ({ sha1: m[1]!, name: m[2]! })); +} + +export interface ExportOptionsInput { teamId: string; style: 'automatic' | 'manual'; profiles?: Record; method?: string; uploadSymbols?: boolean; certificate?: string } + +/** ExportOptions.plist for an App Store Connect export (`method` app-store-connect, Xcode 15.3+; "app-store" is the + * deprecated name). destination export: storebound uploads the IPA itself (`apple upload`), with the build number it + * chose, so Xcode must not change it (manageAppVersionAndBuildNumber false). */ +export function exportOptions(i: ExportOptionsInput): Record { + const o: Record = { + method: i.method ?? 'app-store-connect', teamID: i.teamId, signingStyle: i.style, destination: 'export', + uploadSymbols: i.uploadSymbols ?? true, manageAppVersionAndBuildNumber: false, + }; + if (i.style === 'manual') { + if (!i.profiles || !Object.keys(i.profiles).length) throw new Error('manual signing needs a provisioning profile per bundle id (storebound apple signing ensure)'); + o.provisioningProfiles = { ...i.profiles }; + o.signingCertificate = i.certificate ?? 'Apple Distribution'; + } + return o; +} diff --git a/cli/lib/xcode.ts b/cli/lib/xcode.ts new file mode 100644 index 00000000..c7ce1caa --- /dev/null +++ b/cli/lib/xcode.ts @@ -0,0 +1,189 @@ +// Xcode builds without Xcode's UI: find the workspace / project and scheme (native, Capacitor, React Native, Flutter, +// Unity-exported projects), build the xcodebuild archive and export command lines, read an IPA's Info.plist. +// Pure except scanXcode (a bounded directory walk) and ipaInfo (reads the IPA). +import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs'; +import { basename, dirname, join, relative } from 'node:path'; +import { parsePlist, type PlistValue } from './plist'; +import { zipEntries, zipRead } from './zip'; + +export type Framework = 'flutter' | 'capacitor' | 'react-native' | 'unity' | 'native'; + +export interface AppleBuildConfig { + /** .xcworkspace (CocoaPods / Flutter / React Native) relative to the config; wins over `project`. */ + workspace?: string; + /** .xcodeproj when there is no workspace. */ + project?: string; + scheme?: string; + /** Default Release. */ + configuration?: string; + /** Output folder for the archive, ExportOptions.plist, the IPA and logs. Default build/ios. */ + out?: string; +} + +export function validateAppleBuild(b: AppleBuildConfig | undefined): string[] { + if (!b) return []; + const e: string[] = []; + if (b.workspace && !b.workspace.endsWith('.xcworkspace')) e.push('apple.build.workspace: a path ending in .xcworkspace'); + if (b.project && !b.project.endsWith('.xcodeproj')) e.push('apple.build.project: a path ending in .xcodeproj'); + if (b.scheme !== undefined && !b.scheme.trim()) e.push('apple.build.scheme: empty'); + return e; +} + +/** What scanXcode found, relative to the project root. */ +export interface XcodeScan { + /** Files that tell the framework: pubspec.yaml, capacitor.config.*, package.json with react-native, Unity-iPhone.xcodeproj. */ + markers: string[]; + workspaces: string[]; + projects: string[]; + /** Shared scheme names per container (xcshareddata/xcschemes). */ + schemes: Record; + /** Folders with a Podfile and whether Pods/ exists next to it. */ + pods: { dir: string; installed: boolean }[]; +} + +const SKIP_DIRS = new Set(['node_modules', 'Pods', 'build', 'DerivedData', '.git', '.storebound', '.dart_tool', 'Library', 'Temp', '.gradle', 'dist', 'www']); + +/** Walks at most `depth` folders deep (default 4) for Xcode containers. */ +export function scanXcode(root: string, depth = 4): XcodeScan { + const s: XcodeScan = { markers: [], workspaces: [], projects: [], schemes: {}, pods: [] }; + for (const m of ['pubspec.yaml', 'capacitor.config.ts', 'capacitor.config.json', 'capacitor.config.js']) if (existsSync(join(root, m))) s.markers.push(m); + try { + const pkg = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')); + if (pkg.dependencies?.['react-native'] || pkg.devDependencies?.['react-native']) s.markers.push('package.json:react-native'); + } catch { /* no package.json */ } + const walk = (dir: string, d: number): void => { + let names: string[]; + try { names = readdirSync(dir); } catch { return; } + if (names.includes('Podfile')) s.pods.push({ dir: relative(root, dir) || '.', installed: names.includes('Pods') }); + for (const n of names) { + const p = join(dir, n); + if (n.endsWith('.xcworkspace')) { s.workspaces.push(relative(root, p)); continue; } + if (n.endsWith('.xcodeproj')) { + s.projects.push(relative(root, p)); + if (n === 'Unity-iPhone.xcodeproj') s.markers.push('Unity-iPhone.xcodeproj'); + const sd = join(p, 'xcshareddata', 'xcschemes'); + try { s.schemes[relative(root, p)] = readdirSync(sd).filter(f => f.endsWith('.xcscheme')).map(f => f.slice(0, -9)); } catch { /* none shared */ } + continue; + } + if (d <= 0 || n.startsWith('.') || SKIP_DIRS.has(n)) continue; + try { if (statSync(p).isDirectory()) walk(p, d - 1); } catch { /* unreadable */ } + } + }; + walk(root, depth); + return s; +} + +export interface XcodeTarget { framework: Framework; workspace?: string; project?: string; scheme: string; notes: string[] } + +const stem = (p: string): string => basename(p).replace(/\.(xcworkspace|xcodeproj)$/, ''); + +/** Picks the container and scheme. Config values win; else the framework's usual layout; else the only one found. */ +export function pickXcode(scan: XcodeScan, cfg: AppleBuildConfig = {}): XcodeTarget { + const notes: string[] = []; + const has = (m: string) => scan.markers.includes(m); + const framework: Framework = has('pubspec.yaml') ? 'flutter' : scan.markers.some(m => m.startsWith('capacitor.config')) ? 'capacitor' + : has('package.json:react-native') ? 'react-native' : has('Unity-iPhone.xcodeproj') ? 'unity' : 'native'; + let workspace = cfg.workspace, project = cfg.project; + if (!workspace && !project) { + const pref: Record = { + flutter: ['ios/Runner.xcworkspace', 'ios/Runner.xcodeproj'], + capacitor: ['ios/App/App.xcworkspace', 'ios/App/App.xcodeproj'], + 'react-native': [/^ios\/[^/]+\.xcworkspace$/, /^ios\/[^/]+\.xcodeproj$/], + unity: [/(^|\/)Unity-iPhone\.xcworkspace$/, /(^|\/)Unity-iPhone\.xcodeproj$/], + native: [], + }; + const all = [...scan.workspaces, ...scan.projects]; + let hit = pref[framework].map(p => all.find(x => (typeof p === 'string' ? x === p : p.test(x)))).find(Boolean); + if (!hit) { + // a workspace next to a project (CocoaPods) beats the project; a lone container is taken as is + const ws = scan.workspaces.filter(w => !w.includes('.xcodeproj/')); + if (ws.length === 1) hit = ws[0]; + else if (!ws.length && scan.projects.length === 1) hit = scan.projects[0]; + else if (ws.length + scan.projects.length === 0) throw new Error('no .xcworkspace or .xcodeproj found (set apple.build.workspace or apple.build.project; Flutter: flutter create, Capacitor: npx cap add ios, Unity: Build Settings > iOS > Build)'); + else throw new Error(`several Xcode containers (${[...ws, ...scan.projects].slice(0, 6).join(', ')}): set apple.build.workspace or apple.build.project`); + } + if (hit!.endsWith('.xcworkspace')) workspace = hit; else project = hit; + // CocoaPods: the workspace next to the project + if (project) { const w = project.replace(/\.xcodeproj$/, '.xcworkspace'); if (scan.workspaces.includes(w)) { workspace = w; project = undefined; } } + } + const container = (workspace ?? project)!; + const projOf = workspace ? scan.projects.find(p => dirname(p) === dirname(workspace!) && !/^Pods\//.test(basename(p))) : project; + const shared = projOf ? scan.schemes[projOf] ?? [] : []; + const usual: Record = { flutter: 'Runner', capacitor: 'App', 'react-native': null, unity: 'Unity-iPhone', native: null }; + const scheme = cfg.scheme ?? usual[framework] ?? (shared.includes(stem(projOf ?? container)) ? stem(projOf ?? container) : shared.length === 1 ? shared[0]! : stem(projOf ?? container)); + if (!cfg.scheme && shared.length > 1 && !usual[framework]) notes.push(`several shared schemes (${shared.join(', ')}); using "${scheme}" (set apple.build.scheme to pick another)`); + const podDir = dirname(container); + const pod = scan.pods.find(p => p.dir === podDir || (p.dir === '.' && podDir === '.')); + if (pod && !pod.installed) notes.push(`Podfile without Pods/ in ${pod.dir}: run pod install there first${framework === 'capacitor' ? ' (or npx cap sync ios)' : ''}`); + if (framework === 'capacitor') notes.push('Capacitor: run npx cap sync ios after the web build so the archive has the current web assets'); + if (framework === 'flutter') notes.push('Flutter: storebound runs flutter build ios --config-only first (build number and name, Generated.xcconfig)'); + if (framework === 'unity') notes.push('Unity: build the Xcode project from Unity (Build Settings > iOS) before each archive; signing team can stay empty in Unity'); + return { framework, ...(workspace ? { workspace } : { project }), scheme, notes }; +} + +export interface AscAuth { keyPath: string; keyId: string; issuerId: string } + +const authArgs = (a: AscAuth | null): string[] => (a ? ['-allowProvisioningUpdates', '-authenticationKeyPath', a.keyPath, '-authenticationKeyID', a.keyId, '-authenticationKeyIssuerID', a.issuerId] : []); + +export interface ArchiveInput { target: XcodeTarget; root: string; configuration: string; archivePath: string; version?: string; build: string; teamId?: string; auth: AscAuth | null } + +/** xcodebuild archive. Version / build go in as build settings (they beat the project's values). */ +export function archiveArgs(i: ArchiveInput): string[] { + return ['xcodebuild', ...(i.target.workspace ? ['-workspace', join(i.root, i.target.workspace)] : ['-project', join(i.root, i.target.project!)]), + '-scheme', i.target.scheme, '-configuration', i.configuration, '-destination', 'generic/platform=iOS', '-archivePath', i.archivePath, + ...authArgs(i.auth), 'archive', `CURRENT_PROJECT_VERSION=${i.build}`, ...(i.version ? [`MARKETING_VERSION=${i.version}`] : []), + ...(i.teamId ? [`DEVELOPMENT_TEAM=${i.teamId}`] : [])]; +} + +export function exportArgs(archivePath: string, plist: string, exportPath: string, auth: AscAuth | null): string[] { + return ['xcodebuild', '-exportArchive', '-archivePath', archivePath, '-exportOptionsPlist', plist, '-exportPath', exportPath, ...authArgs(auth)]; +} + +/** flutter build ios --config-only: writes Generated.xcconfig with the build name / number, no build, no signing. */ +export const flutterConfigArgs = (build: string, version?: string): string[] => + ['flutter', 'build', 'ios', '--release', '--config-only', '--no-codesign', '--build-number', build, ...(version ? ['--build-name', version] : [])]; + +/** A command line for logs: the API key path is shown as $ASC_P8. */ +export const showCmd = (argv: string[], auth: AscAuth | null): string => + argv.map(a => (auth && a === auth.keyPath ? '$ASC_P8' : /[\s"'$]/.test(a) ? JSON.stringify(a) : a)).join(' '); + +export interface IpaInfo { bundleId: string; version: string; build: string; minOs?: string; name?: string; platform?: string } + +/** Bundle id, CFBundleShortVersionString and CFBundleVersion from Payload/.app/Info.plist of an IPA. */ +export function ipaInfo(ipa: string | Buffer): IpaInfo { + const e = zipEntries(ipa).find(x => /^Payload\/[^/]+\.app\/Info\.plist$/.test(x.name)); + if (!e) throw new Error('not an iOS app archive (no Payload/.app/Info.plist)'); + const p = parsePlist(zipRead(ipa, e)) as Record; + const str = (k: string): string | undefined => (typeof p[k] === 'string' ? p[k] as string : undefined); + const bundleId = str('CFBundleIdentifier'), version = str('CFBundleShortVersionString'), build = str('CFBundleVersion'); + if (!bundleId || !version || !build) throw new Error('Info.plist without CFBundleIdentifier / CFBundleShortVersionString / CFBundleVersion'); + return { bundleId, version, build, minOs: str('MinimumOSVersion'), name: str('CFBundleDisplayName') ?? str('CFBundleName'), platform: (p.CFBundleSupportedPlatforms as string[] | undefined)?.[0] }; +} + +/** States of an App Store Connect build upload (BuildUploadState) and of a processed build (processingState). */ +export const UPLOAD_DONE = new Set(['COMPLETE', 'FAILED']); +export const BUILD_DONE = new Set(['VALID', 'INVALID', 'FAILED']); + +/** Requests of an App Store Connect API build upload (Build Uploads, API 4.1): the upload, then the file reservation. */ +export function buildUploadReqs(appId: string, info: IpaInfo, fileName: string, fileSize: number) { + return { + upload: { method: 'POST' as const, path: '/v1/buildUploads', note: `build ${info.build} (${info.version})`, + body: { data: { type: 'buildUploads', attributes: { cfBundleShortVersionString: info.version, cfBundleVersion: info.build, platform: 'IOS' }, + relationships: { app: { data: { type: 'apps', id: appId } } } } } }, + file: (uploadId: string) => ({ method: 'POST' as const, path: '/v1/buildUploadFiles', note: `${fileName} (${(fileSize / 1048576).toFixed(1)} MB)`, + body: { data: { type: 'buildUploadFiles', attributes: { assetType: 'ASSET', fileName, fileSize, uti: 'com.apple.ipa' }, + relationships: { buildUpload: { data: { type: 'buildUploads', id: uploadId } } } } } }), + commit: (fileId: string, md5: string) => ({ method: 'PATCH' as const, path: `/v1/buildUploadFiles/${fileId}`, note: 'commit', + body: { data: { type: 'buildUploadFiles', id: fileId, attributes: { uploaded: true, sourceFileChecksums: { file: { hash: md5, algorithm: 'MD5' } } } } } }), + }; +} + +/** altool upload (Xcode's command line uploader) with the API key. */ +export const altoolArgs = (ipa: string, auth: AscAuth): string[] => + ['xcrun', 'altool', '--upload-package', ipa, '--api-key', auth.keyId, '--api-issuer', auth.issuerId, '--p8-file-path', auth.keyPath, '--output-format', 'json']; + +/** Errors and warnings of a build upload's state (StateDetail: code, message). */ +export function uploadProblems(state: { errors?: { code?: string; message?: string; description?: string }[]; warnings?: { code?: string; message?: string; description?: string }[] } | undefined): { errors: string[]; warnings: string[] } { + const f = (x: { code?: string; message?: string; description?: string }) => [x.code, x.message ?? x.description].filter(Boolean).join(': '); + return { errors: (state?.errors ?? []).map(f), warnings: (state?.warnings ?? []).map(f) }; +} diff --git a/cli/lib/zip.ts b/cli/lib/zip.ts new file mode 100644 index 00000000..b8ec43da --- /dev/null +++ b/cli/lib/zip.ts @@ -0,0 +1,52 @@ +// Reads entries of a ZIP archive (an .ipa) without dependencies: the central directory, then one entry, stored or +// deflated (node:zlib). Enough to read Payload/.app/Info.plist; ZIP64 archives (> 4 GB) are not supported. +import { closeSync, fstatSync, openSync, readSync } from 'node:fs'; +import { inflateRawSync } from 'node:zlib'; + +export interface ZipEntry { name: string; method: number; compressedSize: number; size: number; localOffset: number } + +function readAt(fd: number, pos: number, len: number): Buffer { + const b = Buffer.alloc(len); + const n = readSync(fd, b, 0, len, pos); + return b.subarray(0, n); +} + +/** Entries of the central directory of a ZIP file (path) or buffer. */ +export function zipEntries(src: string | Buffer): ZipEntry[] { + const fd = typeof src === 'string' ? openSync(src, 'r') : -1; + try { + const size = fd >= 0 ? fstatSync(fd).size : (src as Buffer).length; + const read = (pos: number, len: number): Buffer => (fd >= 0 ? readAt(fd, pos, len) : (src as Buffer).subarray(pos, pos + len)); + const tailLen = Math.min(size, 65_557); + const tail = read(size - tailLen, tailLen); + let eocd = -1; + for (let i = tail.length - 22; i >= 0; i--) if (tail.readUInt32LE(i) === 0x06054b50) { eocd = i; break; } + if (eocd < 0) throw new Error('not a ZIP archive (no end of central directory)'); + const count = tail.readUInt16LE(eocd + 10), cdSize = tail.readUInt32LE(eocd + 12), cdOff = tail.readUInt32LE(eocd + 16); + if (cdOff === 0xffffffff) throw new Error('ZIP64 archives are not supported'); + const cd = read(cdOff, cdSize); + const out: ZipEntry[] = []; + for (let p = 0, k = 0; k < count && p + 46 <= cd.length; k++) { + if (cd.readUInt32LE(p) !== 0x02014b50) throw new Error('ZIP: bad central directory entry'); + const nameLen = cd.readUInt16LE(p + 28), extraLen = cd.readUInt16LE(p + 30), commentLen = cd.readUInt16LE(p + 32); + out.push({ name: cd.subarray(p + 46, p + 46 + nameLen).toString('utf8'), method: cd.readUInt16LE(p + 10), + compressedSize: cd.readUInt32LE(p + 20), size: cd.readUInt32LE(p + 24), localOffset: cd.readUInt32LE(p + 42) }); + p += 46 + nameLen + extraLen + commentLen; + } + return out; + } finally { if (fd >= 0) closeSync(fd); } +} + +/** The uncompressed bytes of one entry. */ +export function zipRead(src: string | Buffer, e: ZipEntry): Buffer { + const fd = typeof src === 'string' ? openSync(src, 'r') : -1; + try { + const read = (pos: number, len: number): Buffer => (fd >= 0 ? readAt(fd, pos, len) : (src as Buffer).subarray(pos, pos + len)); + const h = read(e.localOffset, 30); + if (h.readUInt32LE(0) !== 0x04034b50) throw new Error(`ZIP: bad local header for ${e.name}`); + const data = read(e.localOffset + 30 + h.readUInt16LE(26) + h.readUInt16LE(28), e.compressedSize); + if (e.method === 0) return Buffer.from(data); + if (e.method === 8) return inflateRawSync(data); + throw new Error(`ZIP: compression method ${e.method} not supported (${e.name})`); + } finally { if (fd >= 0) closeSync(fd); } +} diff --git a/cli/mcp-tools.ts b/cli/mcp-tools.ts index 9b7e2aa2..fa86d2cf 100644 --- a/cli/mcp-tools.ts +++ b/cli/mcp-tools.ts @@ -86,6 +86,14 @@ export const TOOLS: ToolDef[] = [ description: 'Read-only App Store Connect overview: versions and their states, recent builds, in-app purchases, review submissions.' }, { name: 'apple_next_build', title: 'Next iOS build number', command: ['apple', 'next-build'], write: false, network: true, description: 'Next safe CFBundleVersion: one above every build uploaded for the app.' }, + { name: 'apple_signing_status', title: 'Code signing status', command: ['apple', 'signing', 'status'], write: false, network: true, + description: 'Read-only signing overview from App Store Connect: bundle id capabilities vs apple.signing.capabilities, distribution certificates (and whether this machine holds a private key for one), App Store provisioning profiles per bundle id and whether they are installed for Xcode. Creating certificates and profiles stays a terminal command (apple signing ensure, asks first).', + args: () => ['--json'] }, + { name: 'originality', title: 'Originality check (Guideline 4.3)', command: ['originality'], write: false, network: false, + description: 'Offline comparison of this app with the owner\'s other apps (folders with a storebound.config.ts): listing text, name, icon and screenshot perceptual hashes, project structure. Scores per axis, overall, near-duplicate flags and suggestions; exit 1 when a pair is flagged. Pair with the portfolio-originality skill.', + props: { against: { type: 'string', description: 'Comma-separated folders of the other apps, or a folder holding several (default: originality.against in the config)' }, + threshold: { type: 'number', minimum: 0.05, maximum: 0.95, description: 'Overall score that counts as a near-duplicate (default 0.7)' } }, + args: i => ['--json', ...opt('against', i.against), ...opt('threshold', i.threshold)] }, { name: 'play_status', title: 'Google Play status', command: ['play', 'status'], write: false, network: true, description: 'Read-only Play overview: tracks and releases (with rollout fraction), listing languages, one-time products.' }, { name: 'play_next_version_code', title: 'Next Play versionCode', command: ['play', 'next-version-code'], write: false, network: true, diff --git a/cli/originality.ts b/cli/originality.ts new file mode 100644 index 00000000..249c2398 --- /dev/null +++ b/cli/originality.ts @@ -0,0 +1,53 @@ +// Originality check (App Store Guideline 4.3, Google Play repetitive content) against the owner's other apps. Offline. +// storebound originality [--against [,]] [--threshold 0.7] [--json] +// --against (or originality.against in the config): folders with a storebound.config.ts, or workspace folders that +// hold several apps one level down. Per other app: listing text, name, icon and screenshot perceptual hashes, project +// structure (file layout and identical files), an overall score, why a pair is flagged, and what to change. +// Exit 1 when a pair is flagged as a near-duplicate. The scoring is in cli/lib/originality.ts; the judgement +// (mechanic, content, differentiator sentence) is the portfolio-originality skill. +import { realpathSync } from 'node:fs'; +import { relative } from 'node:path'; +import { loadConfig } from './lib/config'; +import type { Ctx } from './lib/ctx'; +import { done, log, printJson, warn } from './lib/log'; +import { DEFAULT_THRESHOLD, findApps, fingerprint, report } from './lib/originality'; +import { textTable } from './lib/table'; + +const TAG = 'originality'; + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const folders = (a.list('against').length ? a.list('against') : config.originality?.against ?? []).map(f => resolve(f)); + if (!folders.length) throw new Error('nothing to compare with: --against (or originality.against in the config)'); + const threshold = a.has('threshold') ? a.num('threshold', DEFAULT_THRESHOLD) : config.originality?.threshold ?? DEFAULT_THRESHOLD; + if (!(threshold > 0 && threshold < 1)) throw new Error('--threshold: between 0 and 1'); + const self = realpathSync(root); + const configs = findApps(folders.map(f => { try { return realpathSync(f); } catch { return f; } }), self); + if (!configs.length) throw new Error(`no other app (storebound.config.ts) in ${folders.map(f => relative(root, f) || '.').join(', ')}`); + const json = a.has('json'); + if (!json) log(TAG, `${config.app.name} vs ${configs.length} app(s), offline`); + const me = fingerprint(config, root); + const others = []; + for (const p of configs) { + try { + const l = await loadConfig(p); + others.push(fingerprint(l.config, l.root)); + } catch (e) { warn(TAG, `${p}: skipped (${(e as Error).message.split('\n')[0]?.slice(0, 160)})`); } + } + const r = report(me, others, threshold); + if (json) { printJson(r); if (r.flagged) process.exitCode = 1; return; } + for (const n of me.notes) warn(TAG, `${config.app.name}: ${n}`); + const pct = (x: number | null) => (x === null ? '-' : `${Math.round(x * 100)}%`); + console.log(textTable(['app', 'overall', 'name', 'text', 'icon', 'screens', 'structure', ''], r.pairs.map(p => + [p.other.name, pct(p.overall), pct(p.axes.name.score), pct(p.axes.text.score), pct(p.axes.icon.score), pct(p.axes.screenshots.score), pct(p.axes.structure.score), p.flagged ? 'NEAR-DUPLICATE' : '']))); + for (const p of r.pairs) { + if (!p.flagged && !p.suggestions.length) continue; + console.log(`\n${p.other.name} (${relative(root, p.other.dir) || '.'})${p.flagged ? ': flagged' : ''}`); + for (const why of p.reasons) console.log(` - ${why}`); + for (const s of p.suggestions) console.log(` > ${s}`); + } + for (const o of r.others) for (const n of o.notes) log(TAG, `${relative(root, o.dir) || '.'}: ${n}`); + if (r.flagged) { warn(TAG, `${r.flagged} near-duplicate(s) at threshold ${threshold}: see the portfolio-originality skill before submitting`); process.exitCode = 1; } + done(TAG, `${r.pairs.length} pair(s) compared, ${r.flagged} flagged`); +} diff --git a/cli/play/build.ts b/cli/play/build.ts new file mode 100644 index 00000000..5abe2597 --- /dev/null +++ b/cli/play/build.ts @@ -0,0 +1,91 @@ +// Build a signed release Android App Bundle. +// storebound play build [--version-code N] [--version-name 1.2.0] [--flavor prod] [--dir android] [--module app] +// [--out build/android] [--dry] [--json] +// Finds the Gradle project (android/ of Capacitor, React Native and Flutter apps, the root of a native one, a Unity +// export with launcher/ + unityLibrary/), takes the next free versionCode from Google Play (play next-version-code) +// unless --version-code is given, runs `gradlew :app:bundleRelease` (Flutter: flutter build appbundle) and copies the +// AAB to /-.aab, checked by reading its manifest. Signing: the upload key from env or +// .storebound/credentials.json (ANDROID_KEYSTORE, ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, ANDROID_KEY_PASSWORD) +// goes to Gradle as injected signing properties through the environment, never on the command line; without it the +// project's own signingConfig signs. Local only: Play is only read (version codes). +import { copyFileSync, existsSync, mkdirSync, writeFileSync } from 'node:fs'; +import { join, relative } from 'node:path'; +import { androidSigning } from '../lib/credentials'; +import type { Ctx } from '../lib/ctx'; +import { need } from '../lib/ctx'; +import { done, log, printJson, warn } from '../lib/log'; +import { pump } from '../lib/runner'; +import { aabInfo, findBundles, gradleArgs, pickGradle, signingEnv } from '../lib/gradle'; +import { nextVersionCode } from '../lib/release'; +import { playClient } from './client'; +import { usedVersionCodes } from './next-version-code'; + +const TAG = 'build'; + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const pkg = need(config.play?.packageName, 'play.packageName'); + const cfg = config.play?.build ?? {}; + const flavor = a.get('flavor') ?? cfg.flavor; + const t = pickGradle(root, { dir: a.get('dir') ?? cfg.dir, module: a.get('module') ?? cfg.module, flavor }); + const dry = a.has('dry'); + const json = a.has('json'); + const out = resolve(a.get('out') ?? 'build/android'); + let code = a.has('version-code') ? a.num('version-code', 0) : 0; + if (a.has('version-code') && !(Number.isInteger(code) && code > 0 && code <= 2_100_000_000)) throw new Error('--version-code: 1-2100000000'); + if (!code) { + try { + const play = await playClient(root, pkg); + code = await play.read(async id => nextVersionCode(await usedVersionCodes(play, id))); + log(TAG, `next free versionCode on Google Play: ${code}`); + } catch (e) { + if (!dry) throw new Error(`${(e as Error).message}\n(pass --version-code N to build without reading Google Play)`); + warn(TAG, `Google Play not readable (${(e as Error).message.split('\n')[0]?.slice(0, 120)}): dry run continues without a versionCode`); + } + } + const versionName = a.get('version-name'); + const signing = androidSigning(root); + const hasWrapper = existsSync(join(t.dir, 'gradlew')); + const argv = gradleArgs(t, { versionCode: code || undefined, versionName, flavor, hasWrapper }); + const cwd = t.framework === 'flutter' ? root : t.dir; + const plan = { framework: t.framework, dir: relative(root, t.dir) || '.', module: t.module, task: t.framework === 'flutter' ? 'flutter build appbundle' : t.task, + versionCode: code || null, versionName: versionName ?? null, signing: signing ? `upload key from ${process.env.ANDROID_KEYSTORE ? 'env' : '.storebound/credentials.json'} (alias ${signing.keyAlias})` : 'the project\'s own signingConfig', + command: argv.join(' '), out: relative(root, out) || '.', notes: t.notes }; + if (dry) { + if (json) { printJson(plan); return; } + log(TAG, `${t.framework}: ${plan.dir} ${plan.task}, versionCode ${code || '?'}${versionName ? `, versionName ${versionName}` : ''}`); + log(TAG, `signing: ${plan.signing}`); + for (const n of t.notes) log(TAG, n); + log(TAG, `would run (in ${relative(root, cwd) || '.'}): ${plan.command}`); + done(TAG, 'build planned (dry run)'); + return; + } + if (signing && !existsSync(signing.storeFile)) throw new Error('ANDROID_KEYSTORE: the keystore file does not exist'); + if (!signing) warn(TAG, 'no ANDROID_KEYSTORE: the project\'s own release signingConfig must sign, else Play refuses the bundle'); + for (const n of t.notes) log(TAG, n); + log(TAG, `$ ${plan.command}`); + const started = Date.now(); + mkdirSync(out, { recursive: true }); + const p = Bun.spawn(argv, { cwd, stdout: 'pipe', stderr: 'pipe', env: { ...process.env, ...signingEnv(signing) } }); + const lines: string[] = []; + const each = (line: string): void => { + lines.push(line); + if (/^(> Task .*bundle|BUILD (SUCCESSFUL|FAILED)|FAILURE:|\* What went wrong|e: |error:|✓ Built)/.test(line)) log(TAG, line.trim().slice(0, 300)); + }; + await Promise.all([pump(p.stdout, 'stdout', each), pump(p.stderr, 'stderr', each)]); + const exit = await p.exited; + const logFile = join(out, 'gradle.log'); + writeFileSync(logFile, lines.join('\n')); + if (exit !== 0) throw new Error(`build failed (exit ${exit}); last lines:\n${lines.slice(-20).join('\n')}\nfull log: ${relative(root, logFile)}`); + const aab = findBundles([join(t.dir, t.module, 'build', 'outputs', 'bundle'), join(root, 'build', 'app', 'outputs', 'bundle')], started - 1000)[0]; + if (!aab) throw new Error(`build finished but no new .aab under ${relative(root, t.dir)}/${t.module}/build/outputs/bundle`); + const info = aabInfo(aab); + if (info.packageName !== pkg) warn(TAG, `the AAB's package is ${info.packageName}, the config says ${pkg}`); + if (code && info.versionCode !== code) warn(TAG, `the AAB has versionCode ${info.versionCode}, not ${code}: the build file sets it itself; read -PversionCode there or pass that number to play upload knowingly`); + const dest = join(out, `${info.packageName}-${info.versionCode}.aab`); + copyFileSync(aab, dest); + const result = { aab: dest, packageName: info.packageName, versionCode: info.versionCode, versionName: info.versionName ?? null }; + if (json) printJson(result); + done(TAG, `${relative(root, dest)}: ${info.packageName} ${info.versionName ?? ''} (${info.versionCode}). Next: storebound play upload ${relative(root, dest)} --track internal --dry`); +} diff --git a/cli/play/next-version-code.ts b/cli/play/next-version-code.ts index 6696e4e7..1e02bb9f 100644 --- a/cli/play/next-version-code.ts +++ b/cli/play/next-version-code.ts @@ -6,16 +6,21 @@ import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; import { printJson } from '../lib/log'; import { nextVersionCode } from '../lib/release'; -import { playClient } from './client'; +import { type PlayClient, playClient } from './client'; + +/** Every versionCode Play knows for the app: uploaded bundles and APKs, and the codes on every track (read-only edit). */ +export async function usedVersionCodes(play: PlayClient, id: string): Promise { + const bundles = (await play.call<{ bundles?: { versionCode: number }[] }>('GET', `${play.API}/edits/${id}/bundles`)).bundles ?? []; + const apks = (await play.call<{ apks?: { versionCode: number }[] }>('GET', `${play.API}/edits/${id}/apks`).catch(() => ({ apks: [] }))).apks ?? []; + const tracks = (await play.call<{ tracks?: { releases?: { versionCodes?: string[] }[] }[] }>('GET', `${play.API}/edits/${id}/tracks`)).tracks ?? []; + return [...bundles.map(b => b.versionCode), ...apks.map(a => a.versionCode), ...tracks.flatMap(t => (t.releases ?? []).flatMap(r => (r.versionCodes ?? []).map(Number)))]; +} export async function run(ctx: Ctx): Promise { const { config, root } = ctx.loaded; const play = await playClient(root, need(config.play?.packageName, 'play.packageName')); await play.read(async id => { - const bundles = (await play.call<{ bundles?: { versionCode: number }[] }>('GET', `${play.API}/edits/${id}/bundles`)).bundles ?? []; - const apks = (await play.call<{ apks?: { versionCode: number }[] }>('GET', `${play.API}/edits/${id}/apks`).catch(() => ({ apks: [] }))).apks ?? []; - const tracks = (await play.call<{ tracks?: { releases?: { versionCodes?: string[] }[] }[] }>('GET', `${play.API}/edits/${id}/tracks`)).tracks ?? []; - const codes = [...bundles.map(b => b.versionCode), ...apks.map(a => a.versionCode), ...tracks.flatMap(t => (t.releases ?? []).flatMap(r => r.versionCodes ?? []))]; + const codes = await usedVersionCodes(play, id); // the same code is in the bundle list and on every track it was released to: count distinct codes const distinct = new Set(codes.map(String)).size; if (ctx.args.has('json')) printJson({ next: nextVersionCode(codes), seen: distinct }); diff --git a/cli/play/upload.ts b/cli/play/upload.ts new file mode 100644 index 00000000..4012f590 --- /dev/null +++ b/cli/play/upload.ts @@ -0,0 +1,78 @@ +// Upload an Android App Bundle to a Google Play testing track. +// storebound play upload [] [--track internal|alpha|beta] [--status completed|draft] [--name text] [--dry] [--yes] [--json] +// Default AAB: the newest in build/android (storebound play build). Package and versionCode are read from the bundle; +// the upload is refused when Play already has that versionCode. Release notes: the "What's new" of every listing +// language. --dry is read-only (one throwaway edit: version codes and the track are read, the edit is deleted). +// A real run asks first (--yes in scripts). Production is not offered here: `storebound play release --production +// draft` (and the play-first-release / release-management skills) keep that the owner's step. +import { readdirSync, readFileSync, statSync } from 'node:fs'; +import { join, relative } from 'node:path'; +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { aabInfo } from '../lib/gradle'; +import { done, log, printJson } from '../lib/log'; +import { nextVersionCode } from '../lib/release'; +import { playClient } from './client'; +import { readPlayCopy } from './listing'; +import { usedVersionCodes } from './next-version-code'; + +const TAG = 'upload'; +export const UPLOAD_TRACKS = ['internal', 'alpha', 'beta'] as const; + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const pkg = need(config.play?.packageName, 'play.packageName'); + const track = a.str('track', 'internal'); + if (track === 'production') throw new Error('play upload is for testing tracks; production goes through storebound play release --production draft (the owner sends it)'); + if (!(UPLOAD_TRACKS as readonly string[]).includes(track)) throw new Error(`--track: ${UPLOAD_TRACKS.join(' | ')}`); + const status = a.str('status', 'completed'); + if (!['completed', 'draft'].includes(status)) throw new Error('--status: completed | draft'); + let aab = a._.find(x => x.endsWith('.aab')); + if (aab) aab = resolve(aab); + else { + const dir = resolve('build/android'); + let found: string[] = []; + try { found = readdirSync(dir).filter(f => f.endsWith('.aab')).map(f => join(dir, f)).sort((x, y) => statSync(y).mtimeMs - statSync(x).mtimeMs); } catch { /* none */ } + if (!found[0]) throw new Error('usage: storebound play upload --track internal (nothing in build/android; storebound play build makes one)'); + aab = found[0]; + } + const info = aabInfo(aab); + if (info.packageName !== pkg) throw new Error(`${relative(root, aab)} is ${info.packageName}, the config says ${pkg}`); + const size = statSync(aab).size; + const dry = a.has('dry'); + const json = a.has('json'); + const notes = readPlayCopy(ctx).filter(c => c.whatsNew).map(c => ({ language: c.lang, text: c.whatsNew })); + const play = await playClient(root, pkg); + const { used, current } = await play.read(async id => ({ + used: await usedVersionCodes(play, id), + current: (await play.call<{ releases?: { status: string; versionCodes?: string[] }[] }>('GET', `${play.API}/edits/${id}/tracks/${track}`).catch(() => ({ releases: [] }))).releases ?? [], + })); + if (used.includes(info.versionCode)) throw new Error(`versionCode ${info.versionCode} is already on Google Play: rebuild with --version-code ${nextVersionCode(used)} (storebound play build)`); + const summary = { aab: relative(root, aab), packageName: info.packageName, versionCode: info.versionCode, versionName: info.versionName ?? null, sizeMB: Math.round(size / 104857.6) / 10, + track, status, notes: notes.map(n => n.language), replaces: current.map(r => `${r.status} ${(r.versionCodes ?? []).join(',')}`) }; + if (dry) { + if (json) { printJson(summary); return; } + log(TAG, `${summary.aab}: ${info.packageName} ${info.versionName ?? ''} (${info.versionCode}), ${summary.sizeMB} MB, versionCode free`); + log(TAG, `would upload it and set track ${track} to ${status} ${info.versionCode}${notes.length ? `, notes in ${notes.length} language(s)` : ', no release notes'}${current.length ? ` (now on ${track}: ${summary.replaces.join('; ')})` : ''}`); + done(TAG, 'upload planned (dry run, read-only)'); + return; + } + if (!(await confirm(ctx, `Upload ${info.packageName} versionCode ${info.versionCode} and put it on the ${track} track (${status})? Testers of that track get it.`))) return; + try { + await play.edit(async id => { + log(TAG, `uploading ${summary.sizeMB} MB, this can take minutes`); + const b = await play.call<{ versionCode: number }>('POST', `${play.UPLOAD}/edits/${id}/bundles?uploadType=media`, new Uint8Array(readFileSync(aab!)), { 'Content-Type': 'application/octet-stream' }); + log(TAG, `uploaded versionCode ${b.versionCode}`); + const release: Record = { versionCodes: [String(b.versionCode)], status, ...(notes.length ? { releaseNotes: notes } : {}), ...(a.get('name') ? { name: a.get('name') } : {}) }; + await play.call('PUT', `${play.API}/edits/${id}/tracks/${track}`, { track, releases: [release] }); + log(TAG, `${track} <- ${b.versionCode} (${status})`); + }, { retries: 0 }); + } catch (e) { + if (/draft app|status draft/i.test(String(e)) && status !== 'draft') + throw new Error(`${(e as Error).message}\n\nThis app has never been published: Play only takes draft releases. Re-run with --status draft and roll it out from the Console (skill play-first-release).`); + throw e; + } + if (json) printJson({ ...summary, uploaded: true }); + done(TAG, `versionCode ${info.versionCode} on ${track}`); +} diff --git a/skills/appstore-first-release/SKILL.md b/skills/appstore-first-release/SKILL.md index 6a65f07d..2b979b7d 100644 --- a/skills/appstore-first-release/SKILL.md +++ b/skills/appstore-first-release/SKILL.md @@ -1,6 +1,6 @@ --- name: appstore-first-release -description: Step-by-step first (and later) App Store release of a mobile app or game - App Store Connect API key, bundle id, app record, signing and xcodebuild archive/upload with the API key, TestFlight, version + listing text in many locales, screenshots, age rating, App Privacy, review details, in-app purchases with the first version, and submitting for review. Use when the user wants to publish, release, upload or set up an iOS app or game on the App Store or TestFlight, or hits App Store Connect API errors. +description: Step-by-step first (and later) App Store release of a mobile app or game - App Store Connect API key, bundle id, app record, signing, build and upload with the API key (apple signing, apple build, apple upload), TestFlight, version + listing text in many locales, screenshots, age rating, App Privacy, review details, in-app purchases with the first version, and submitting for review. Use when the user wants to publish, release, upload or set up an iOS app or game on the App Store or TestFlight, or hits App Store Connect API errors. --- # App Store: first release @@ -24,17 +24,18 @@ of a first version is the owner's click. Shared agent rules: `docs/agents-core.m 4. **Local · Info.plist.** `ITSAppUsesNonExemptEncryption` with the true answer (`export-compliance` skill; `NO` only when the app uses nothing beyond OS / HTTPS encryption) so builds arrive answered; `NSUserTrackingUsageDescription` if ads use the IDFA; privacy policy reachable inside the app (guideline 5.1.1). -5. **Local · Build + upload** (Mac, no Xcode account login needed, the API key does signing): +5. **Local · Sign, build + upload** (Mac with Xcode; the API key signs, no Xcode account login needed). Details and + the manual-signing route: `build-and-sign` skill. ```sh - K="-allowProvisioningUpdates -authenticationKeyPath $ASC_P8 -authenticationKeyID $ASC_KEY_ID -authenticationKeyIssuerID $ASC_ISSUER_ID" - xcodebuild -project ios/App/App.xcodeproj -scheme App -configuration Release -destination generic/platform=iOS \ - -archivePath build/App.xcarchive MARKETING_VERSION=1.0.0 CURRENT_PROJECT_VERSION=3 $K archive - xcodebuild -exportArchive -archivePath build/App.xcarchive -exportOptionsPlist ExportOptions.plist -exportPath build/export $K + storebound apple signing status # capabilities, certificate with a key on this Mac, profiles + storebound apple build --version 1.0.0 --dry # project + scheme found, next build number, ExportOptions.plist + storebound apple build --version 1.0.0 # xcodebuild archive + exportArchive -> build/ios/export/*.ipa + storebound apple upload --dry # then without --dry (asks): API build upload, waits for VALID ``` - ExportOptions.plist: `method` app-store-connect, `destination` upload, `teamID` , `signingStyle` - automatic. `MARKETING_VERSION` / `CURRENT_PROJECT_VERSION` overrides beat the project values. Take the build - number from `storebound apple next-build` right before archiving and **note it**: every later step selects that - exact build, never "the latest". Processing takes 5-30 min (`storebound apple status` shows VALID). + `apple build` takes the build number from `storebound apple next-build` unless `--build-number N` is given, and + prints it at the end: **note it**, every later step selects that exact build, never "the latest". The generated + ExportOptions.plist uses `method` app-store-connect, `destination` export, your team and the signing style of + `apple.signing.style` (automatic by default). Processing takes 5-30 min; `apple upload` waits for it. 6. **API · TestFlight.** Put an internal group with `allBuilds: true` in `apple.testflight.groups` and run `storebound apple testflight groups`: every new build reaches the team automatically. External testers, What to Test, Test Information and Beta App Review: the testflight skill. Sandbox testers stay UI: Users and Access > Sandbox. diff --git a/skills/build-and-sign/SKILL.md b/skills/build-and-sign/SKILL.md new file mode 100644 index 00000000..3eb4058e --- /dev/null +++ b/skills/build-and-sign/SKILL.md @@ -0,0 +1,92 @@ +--- +name: build-and-sign +description: Sign, build and upload a mobile app or game from the terminal - App Store Connect API signing (bundle id capabilities, distribution certificate, provisioning profiles), xcodebuild archive and export with a generated ExportOptions.plist, IPA upload through the App Store Connect API or altool with processing wait, and the Android counterpart (Gradle bundleRelease with the upload key, AAB to a testing track). Native, Capacitor, React Native, Flutter and Unity-exported projects. Use when the user wants to build, sign, archive, export, upload or ship a new build, hits code signing or provisioning errors, or needs a build number / versionCode. +--- + +# Build, sign and upload + +The CLI is `storebound` (`storebound help`). Credentials only from env or `.storebound/credentials.json` +(gitignored): `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_P8` (Admin key for signing), `PLAY_SERVICE_ACCOUNT`, and the +Android upload key `ANDROID_KEYSTORE`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD`. +Never ask for them in chat, never print them. Shared agent rules: `docs/agents-core.md`. + +**Every write is dry first, then asks.** Certificates, profiles and uploads change the owner's developer account: +show the `--dry` output, run it for real only after a clear yes (the command asks again in the terminal; `--yes` only +when the owner said so for this run). The MCP server offers only `apple_signing_status` (read-only) from this skill. + +## iOS + +1. **Read.** `storebound apple signing status`: is the bundle id registered (else `storebound apple bundle`), which + capabilities it has vs `apple.signing.capabilities`, the distribution certificates of the team and whether this + Mac holds a private key for one (a key file in `.storebound/signing/` or an identity in the keychain), App Store + profiles per bundle id (app + `apple.signing.extraBundleIds` for extensions) and whether Xcode has them installed. +2. **Pick the style.** `apple.signing.style`: + - `automatic` (default): `xcodebuild -allowProvisioningUpdates` with the API key creates and fetches what it needs. + Nothing to do in step 3 unless capabilities are missing. Easiest for one developer on one Mac. + - `manual`: certificate and profiles from step 3, named in ExportOptions.plist. Best for CI and teams; set the app + target to manual signing with the installed profile in Xcode (Signing & Capabilities) once. +3. **Ensure.** `storebound apple signing ensure --dry`, show it, then without `--dry` after a yes: + - adds missing capabilities (never removes one; extra ones are only reported). Adding a capability makes existing + profiles invalid: `ensure` creates new ones in the same run. + - creates an Apple Distribution certificate only when no valid one has its key on this machine. The RSA key is made + locally, kept 0600 in `.storebound/signing/.key` next to `.cer`; it is never printed and never leaves the + machine. `--keychain` imports both into the login keychain (or `--keychain `) so xcodebuild can sign. + Back the key up (encrypted). Apple allows 3 distribution certificates per team: at the limit, revoking one is + the owner's decision (developer.apple.com > Certificates). + - Developer ID certificates (Mac apps outside the App Store): only the **Account Holder** can create them; the API + answers 403 for every other key, and storebound says so. The Account Holder makes it in Xcode > Settings > + Accounts > Manage Certificates and exports a .p12. + - creates or reuses an App Store profile per bundle id and installs it into + `~/Library/Developer/Xcode/UserData/Provisioning Profiles` (Xcode 16+) and `~/Library/MobileDevice/Provisioning + Profiles` (older Xcode). `--no-install` skips that. +4. **Build.** `storebound apple build --dry --version 1.4.0` shows the project it found (Capacitor `ios/App`, React + Native `ios/.xcworkspace`, Flutter `ios/Runner`, Unity `Unity-iPhone`, or `apple.build.workspace` / + `project` / `scheme`), the build number (next free one from App Store Connect, or `--build-number N`), the + ExportOptions.plist (`method` app-store-connect, `destination` export, team, style, profiles) and both xcodebuild + commands. Then run it without `--dry` (minutes; full logs in `build/ios/xcodebuild-*.log`). It ends with the IPA + path, version and build. **Note the build number**: later steps use exactly it. + - Capacitor: `npx cap sync ios` after the web build first. React Native / CocoaPods: `pod install` first (the dry + run warns when Pods/ is missing). Flutter: storebound runs `flutter build ios --config-only` with the build + number. Unity: build the Xcode project from Unity first. + - Capacitor needs a UTF-8 locale; storebound sets `LANG` / `LC_ALL` for xcodebuild. +5. **Upload.** `storebound apple upload --dry` (default: the newest IPA in `build/ios/export`): bundle id, version, + build, and a refusal when that build number is already on App Store Connect. Then without `--dry` after a yes. Default + `--via api` is the App Store Connect API build upload (Build Uploads: reserve, upload the parts, commit with the + MD5, poll the upload state; any OS). `--via altool` uses `xcrun altool --upload-package` with the API key. Apple + lists both (and Xcode / Transporter); neither is deprecated. storebound then waits until the build is VALID + (exit 0), INVALID / FAILED (exit 1, Apple emails the ITMS reason) or `--timeout` (default 60m, exit 7). Run long + uploads in the background with a log: `storebound apple upload --yes > .storebound/upload.log 2>&1 &` (only + after the owner's yes). +6. **Next.** `storebound apple encryption --build N`, `storebound apple testflight distribute --build N --group Team + --dry` (`testflight` skill), `storebound apple listing --version x.y.z --build N` (`appstore-first-release`). + +## Android + +1. **Upload key.** Generate once (`keytool -genkeypair -v -storetype PKCS12 -keystore upload.p12 -alias upload + -keyalg RSA -keysize 4096 -validity 10950`), keep it outside git, put the four `ANDROID_*` values in env or + `.storebound/credentials.json`. storebound hands them to Gradle as injected signing properties through the + environment, never on the command line. Without them the project's own `signingConfigs.release` signs (e.g. + Flutter's `key.properties`). +2. **Build.** `storebound play build --dry` shows the Gradle project (`android/` for Capacitor, React Native and + Flutter, the root for native, a Unity export with `launcher/` + `unityLibrary/`; or `play.build.dir` / `module` / + `flavor`), the task (`:app:bundleRelease`; Flutter: `flutter build appbundle`), the next free versionCode from Play + (or `--version-code N`) and where the key comes from. Then without `--dry`. The AAB lands in + `build/android/-.aab`; storebound reads the versionCode back from the bundle and warns when + the build file ignored the one it passed (read `-PversionCode` there, or `android.injected.version.code`). +3. **Upload.** `storebound play upload --track internal --dry` (read-only: checks the versionCode is free, shows + what is on the track now and the release notes languages). Then without `--dry` after a yes. Tracks: internal, + alpha (closed), beta (open). Production stays `storebound play release --version-code N --production draft` plus + the owner's click in the Console (`play-first-release`, `release-management`). A never-published app only takes + drafts: `--status draft`. + +## Gotchas + +- "No signing certificate iOS Distribution found": the certificate exists on the team but its key is on another Mac. + `apple signing status` shows this as "without key"; import that Mac's .p12, or `ensure` makes a new one. +- "Provisioning profile doesn't include the currently selected device / capability": a capability was added after the + profile was made. `apple signing ensure` (profiles are recreated when they are not ACTIVE). +- Xcode 16+ reads profiles only from `~/Library/Developer/Xcode/UserData/Provisioning Profiles`: profiles copied into + the old folder alone are not seen. +- ITMS-90189 / "bundle version must be higher": the build number is taken. `apple next-build` gives a free one; + `apple build` uses it by default. +- Play "Version code N has already been used": `play next-version-code`; `play build` uses it by default. diff --git a/skills/play-first-release/SKILL.md b/skills/play-first-release/SKILL.md index 4522c9ae..e54de0a3 100644 --- a/skills/play-first-release/SKILL.md +++ b/skills/play-first-release/SKILL.md @@ -25,12 +25,17 @@ deleting products. Sending a first release for review is the owner's action in t 3. **Local · Signing.** Generate an upload key (`keytool -genkeypair -v -storetype PKCS12 -keystore upload.p12 -alias upload -keyalg RSA -keysize 4096 -validity 10950`), keep keystore + passwords out of git and back them up (encrypted, two places). Play App Signing holds the real app key; a lost upload key can be reset via the Console. - Check the AAB signer before uploading: `keytool -printcert -jarfile app-release.aab`. + Check the AAB signer before uploading: `keytool -printcert -jarfile app-release.aab`. Put the keystore path and + passwords in `ANDROID_KEYSTORE`, `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD` (env or + `.storebound/credentials.json`) and `storebound play build` signs with it (`build-and-sign` skill). 4. **Local · Version.** versionName (e.g. 1.0.0) and a versionCode that always increases - (`storebound play next-version-code` prints the next free one; use exactly that code in later steps). Capacitor: set them in - `android/app/build.gradle` (or env-driven) before `./gradlew bundleRelease`. + (`storebound play next-version-code` prints the next free one; use exactly that code in later steps). + `storebound play build --version-name 1.0.0 --dry`, then without `--dry`: Gradle `bundleRelease` (Flutter: + `flutter build appbundle`) with the next free versionCode, AAB in `build/android/`. Capacitor, React Native, + Flutter and Unity exports are found automatically. 5. **UI or API · First upload.** The very first AAB may need the Console (Testing > Internal testing > Create new - release) so Play links the package name; after that: `storebound play release app-release.aab` (internal, completed). + release) so Play links the package name; after that: `storebound play upload --track internal --dry`, then without + `--dry` (asks first; `play release app-release.aab` does the same with more track options). Add testers (internal testing list) and **license testers** (Settings > License testing) so test purchases are free. 6. **API · Listing text.** Fill `store/listing.md` (one section per language), then `storebound play listing`. It also sets contact email + website (website = the domain serving app-ads.txt). diff --git a/skills/portfolio-originality/SKILL.md b/skills/portfolio-originality/SKILL.md index edfd6a3b..542bea76 100644 --- a/skills/portfolio-originality/SKILL.md +++ b/skills/portfolio-originality/SKILL.md @@ -1,6 +1,6 @@ --- name: portfolio-originality -description: Originality gate for studios and developers that ship many similar mobile apps or games (templates, white-label apps, reskins) - score a planned or finished app or game against your own catalogue (mechanic, content, art, metadata, screenshots), require a clear differentiator, and suggest merging thin ideas, to avoid App Store Guideline 4.3 (spam) and Play repetitive content rejections. Use before starting a new app or game, before submitting one, or after a 4.3 / "repetitive content" rejection. +description: Originality gate for studios and developers that ship many similar mobile apps or games (templates, white-label apps, reskins) - measure listing text, icon, screenshot and project similarity offline with storebound originality, score a planned or finished app or game against your own catalogue (mechanic, content, art, metadata, screenshots), require a clear differentiator, and suggest merging thin ideas, to avoid App Store Guideline 4.3 (spam) and Play repetitive content rejections. Use before starting a new app or game, before submitting one, or after a 4.3 / "repetitive content" rejection. --- # Portfolio originality (Guideline 4.3 gate) @@ -14,6 +14,17 @@ Studios with a template engine and white-label / reskinned apps hit this first. subtitle, short description, keywords, screenshot captions). - The catalogue: the same for every app or game you have published or submitted (store links are fine). +## Measure first (offline) +`storebound originality --against ` compares this app with your other apps: each folder with a +`storebound.config.ts`, or a folder holding several (one level down); or list them once in `originality.against`. +Per pair it reports a 0-100 % likeness for the **name**, the **listing text** (word frequency + copied 3-word +phrases), the **icon** and the **screenshots** (perceptual hashes: dHash + DCT pHash of the icon and of the rendered +screenshots of the first language, PNG decoded in TypeScript, JPEG / WebP through ffmpeg if installed), and the +**project structure** (same file layout, byte-identical files; build output and dependencies left out), an overall +score, why a pair is flagged (overall >= 70 % by default, `--threshold`, or one axis nearly identical) and what to +change. `--json` for agents (MCP tool `originality`); exit 1 when a pair is flagged. It measures what reviewers see +and what a template shares; it cannot judge the core mechanic or content. Feed its numbers into the scores below. + ## Score each pair (new app vs each catalogue app), 0 = identical, 2 = clearly different | axis | 0 | 1 | 2 | |---|---|---|---| @@ -38,5 +49,6 @@ If the sentence needs the words "theme", "skin", "colours" or "levels" to work, - After a 4.3 rejection: list the concrete differences in the reply (`review-rejections`); if there are none, merge. ## Output for the owner -A table per catalogue app with the five scores, the total, the differentiator sentence, and a recommendation: +A table per catalogue app with the `storebound originality` likeness per axis, the five scores, the total, the +differentiator sentence, and a recommendation: ship / ship after / merge into . diff --git a/templates/credentials.example.json b/templates/credentials.example.json index d4a11c21..28535735 100644 --- a/templates/credentials.example.json +++ b/templates/credentials.example.json @@ -3,6 +3,10 @@ "ASC_KEY_ID": "YOUR_KEY_ID", "ASC_ISSUER_ID": "00000000-0000-0000-0000-000000000000", "ASC_P8": "/absolute/path/to/AuthKey_.p8", + "ANDROID_KEYSTORE": "/absolute/path/to/upload.p12", + "ANDROID_KEYSTORE_PASSWORD": "", + "ANDROID_KEY_ALIAS": "upload", + "ANDROID_KEY_PASSWORD": "", "reviewContact": { "firstName": "", "lastName": "", "phone": "+1 555 0100", "email": "review-contact@example.com" }, "reviewDemoAccount": { "username": "", "password": "" } } diff --git a/tests/build-fixtures.ts b/tests/build-fixtures.ts new file mode 100644 index 00000000..14215bd5 --- /dev/null +++ b/tests/build-fixtures.ts @@ -0,0 +1,64 @@ +// Real (tiny) PNG, ZIP, IPA and AAB files for the build, signing and originality tests. Sanitized: example.com ids only. +import { deflateRawSync, deflateSync } from 'node:zlib'; +import { encodeProtoManifest } from '../cli/lib/gradle'; + +/** A real PNG (8 bit RGBA, RGB or grey) from a pixel function. filter 1 writes Sub-filtered rows. */ +export function encodePng(w: number, h: number, px: (x: number, y: number) => [number, number, number, number?], o: { colorType?: 0 | 2 | 6; filter?: 0 | 1 } = {}): Buffer { + const ct = o.colorType ?? 6, ch = ct === 0 ? 1 : ct === 2 ? 3 : 4; + const stride = w * ch + 1; + const raw = Buffer.alloc(stride * h); + for (let y = 0; y < h; y++) { + for (let x = 0; x < w; x++) { + const [r, g, b, a = 255] = px(x, y); + const v = ct === 0 ? [Math.round(0.299 * r + 0.587 * g + 0.114 * b)] : ct === 2 ? [r, g, b] : [r, g, b, a]; + v.forEach((c, i) => { raw[y * stride + 1 + x * ch + i] = c; }); + } + if (o.filter === 1) { + raw[y * stride] = 1; + for (let i = w * ch; i > ch; i--) raw[y * stride + i] = (raw[y * stride + i]! - raw[y * stride + i - ch]! + 256) & 255; + } + } + const table = Array.from({ length: 256 }, (_, n) => { let c = n; for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1; return c >>> 0; }); + const crc = (b: Buffer) => { let c = 0xffffffff; for (const x of b) c = table[(c ^ x) & 255]! ^ (c >>> 8); return (c ^ 0xffffffff) >>> 0; }; + const chunk = (type: string, data: Buffer) => { + const len = Buffer.alloc(4); len.writeUInt32BE(data.length); + const td = Buffer.concat([Buffer.from(type, 'latin1'), data]); + const c = Buffer.alloc(4); c.writeUInt32BE(crc(td)); + return Buffer.concat([len, td, c]); + }; + const ihdr = Buffer.alloc(13); ihdr.writeUInt32BE(w, 0); ihdr.writeUInt32BE(h, 4); ihdr[8] = 8; ihdr[9] = ct; + return Buffer.concat([Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]), chunk('IHDR', ihdr), chunk('IDAT', deflateSync(raw)), chunk('IEND', Buffer.alloc(0))]); +} + +/** A ZIP archive (deflated entries, or stored with store: true). */ +export function makeZip(entries: { name: string; data: Buffer | string; store?: boolean }[]): Buffer { + const locals: Buffer[] = [], central: Buffer[] = []; + let off = 0; + for (const e of entries) { + const data = Buffer.from(e.data), comp = e.store ? data : deflateRawSync(data), name = Buffer.from(e.name, 'utf8'); + const lh = Buffer.alloc(30); lh.writeUInt32LE(0x04034b50, 0); lh.writeUInt16LE(20, 4); lh.writeUInt16LE(e.store ? 0 : 8, 8); + lh.writeUInt32LE(comp.length, 18); lh.writeUInt32LE(data.length, 22); lh.writeUInt16LE(name.length, 26); + const ch = Buffer.alloc(46); ch.writeUInt32LE(0x02014b50, 0); ch.writeUInt16LE(20, 4); ch.writeUInt16LE(20, 6); ch.writeUInt16LE(e.store ? 0 : 8, 10); + ch.writeUInt32LE(comp.length, 20); ch.writeUInt32LE(data.length, 24); ch.writeUInt16LE(name.length, 28); ch.writeUInt32LE(off, 42); + locals.push(lh, name, comp); central.push(ch, name); + off += 30 + name.length + comp.length; + } + const cd = Buffer.concat(central); + const end = Buffer.alloc(22); end.writeUInt32LE(0x06054b50, 0); end.writeUInt16LE(entries.length, 8); end.writeUInt16LE(entries.length, 10); + end.writeUInt32LE(cd.length, 12); end.writeUInt32LE(off, 16); + return Buffer.concat([...locals, cd, end]); +} + +/** An IPA with the given Info.plist bytes. */ +export const makeIpa = (infoPlist: Buffer | string, app = 'Example.app'): Buffer => makeZip([ + { name: 'Payload/', data: '', store: true }, + { name: `Payload/${app}/Example`, data: Buffer.alloc(2048, 7) }, + { name: `Payload/${app}/Info.plist`, data: infoPlist }, +]); + +/** An AAB with an aapt2 proto manifest. */ +export const makeAab = (pkg: string, versionCode: number, versionName = '1.0.0'): Buffer => makeZip([ + { name: 'BundleConfig.pb', data: Buffer.from([8, 1]) }, + { name: 'base/manifest/AndroidManifest.xml', data: encodeProtoManifest([{ name: 'manifest', attrs: { package: pkg, versionCode: String(versionCode), versionName } }, { name: 'uses-sdk', attrs: { minSdkVersion: '24', targetSdkVersion: '35' } }]) }, + { name: 'base/dex/classes.dex', data: Buffer.alloc(512, 1) }, +]); diff --git a/tests/build-sign.test.ts b/tests/build-sign.test.ts new file mode 100644 index 00000000..45570849 --- /dev/null +++ b/tests/build-sign.test.ts @@ -0,0 +1,353 @@ +import { afterAll, describe, expect, test } from 'bun:test'; +import { createPrivateKey, createPublicKey, verify } from 'node:crypto'; +import { mkdirSync, mkdtempSync, readFileSync, rmSync, utimesSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { installedProfiles } from '../cli/apple/build'; +import { androidSigning, ascKeyFile } from '../cli/lib/credentials'; +import { buildCsr, csrContent, newSigningKey, spkiOfKey } from '../cli/lib/csr'; +import { aabInfo, findBundles, gradleArgs, pickGradle, signingEnv, validatePlayBuild } from '../cli/lib/gradle'; +import { parseBinaryPlist, parseMobileprovision, parsePlist, parseXmlPlist, toXmlPlist } from '../cli/lib/plist'; +import { + type ApiCert, type ApiProfile, certSha1, certSpki, certificateReq, explainCertError, exportOptions, parseIdentities, pickCertificate, planCapabilities, + planProfile, profileDirs, validateSigning, +} from '../cli/lib/signing'; +import { validateConfig } from '../cli/lib/config'; +import { altoolArgs, archiveArgs, buildUploadReqs, exportArgs, flutterConfigArgs, ipaInfo, pickXcode, scanXcode, showCmd, uploadProblems, type XcodeScan } from '../cli/lib/xcode'; +import { zipEntries, zipRead } from '../cli/lib/zip'; +import { makeAab, makeIpa, makeZip } from './build-fixtures'; +import { TOOLS } from '../cli/mcp-tools'; + +const ROOT = join(import.meta.dir, '..'); +const FIX = join(import.meta.dir, 'fixtures', 'build'); +const tmp = mkdtempSync(join(tmpdir(), 'sb-build-')); +afterAll(() => rmSync(tmp, { recursive: true, force: true })); +const dir = (name: string): string => { const d = join(tmp, name); mkdirSync(d, { recursive: true }); return d; }; +const touch = (base: string, rel: string, text = ''): void => { mkdirSync(join(base, rel, '..'), { recursive: true }); writeFileSync(join(base, rel), text); }; + +describe('plist', () => { + test('XML: write and read back every type', () => { + const v = { method: 'app-store-connect', n: 3, x: 1.5, ok: true, no: false, list: ['a', 'b & '], nested: { k: 'v' }, empty: {}, data: Buffer.from([0, 1, 2]) }; + const text = toXmlPlist(v); + expect(text).toContain('method\n\tapp-store-connect'); + expect(text).toContain('b & <c>'); + expect(parseXmlPlist(text)).toEqual(v); + }); + test('the fixture Info.plist, XML and binary (plutil) agree', () => { + const xml = parsePlist(readFileSync(join(FIX, 'Info.plist'))) as Record; + const bin = parseBinaryPlist(readFileSync(join(FIX, 'Info.bplist'))) as Record; + expect(xml.CFBundleIdentifier).toBe('com.example.game'); + expect(bin.CFBundleDisplayName).toBe('Example Gäme'); + expect(bin.UIDeviceFamily).toEqual([1, 2]); + expect(bin.Scale).toBe(1.5); + expect(bin.UIRequiresFullScreen).toBe(true); + expect(bin.Built).toBe('2026-10-01T12:00:00.000Z'); + expect(xml.Built).toBe('2026-10-01T12:00:00Z'); + const { Built: _a, ...x } = xml, { Built: _b, ...b } = bin; + expect(b).toEqual(x); + }); + test('mobileprovision: the plist inside the CMS envelope', () => { + const inner = toXmlPlist({ UUID: '00000000-0000-0000-0000-000000000000', Name: 'storebound com.example.game App Store', TeamIdentifier: ['TEAMID1234'], ExpirationDate: '2099-01-01T00:00:00Z', + Entitlements: { 'application-identifier': 'TEAMID1234.com.example.game', 'get-task-allow': false } }); + const p = parseMobileprovision(Buffer.concat([Buffer.from([0x30, 0x82, 0x01]), Buffer.from(inner), Buffer.from([0xa0, 0x00])])); + expect(p.Name).toBe('storebound com.example.game App Store'); + expect(() => parseMobileprovision(Buffer.from('nope'))).toThrow('not a provisioning profile'); + }); +}); + +describe('zip + IPA + AAB', () => { + test('zip entries, stored and deflated', () => { + const z = makeZip([{ name: 'a.txt', data: 'hello', store: true }, { name: 'dir/b.txt', data: 'world '.repeat(100) }]); + const es = zipEntries(z); + expect(es.map(e => e.name)).toEqual(['a.txt', 'dir/b.txt']); + expect(zipRead(z, es[1]!).toString()).toBe('world '.repeat(100)); + expect(() => zipEntries(Buffer.from('not a zip at all, sorry'))).toThrow('not a ZIP'); + }); + test('ipaInfo reads binary and XML Info.plist', () => { + const bin = makeIpa(readFileSync(join(FIX, 'Info.bplist'))); + expect(ipaInfo(bin)).toEqual({ bundleId: 'com.example.game', version: '1.4.0', build: '42', minOs: '15.0', name: 'Example Gäme', platform: 'iPhoneOS' }); + const f = join(dir('ipa'), 'Example.ipa'); + writeFileSync(f, makeIpa(readFileSync(join(FIX, 'Info.plist')))); + expect(ipaInfo(f).build).toBe('42'); + expect(() => ipaInfo(makeZip([{ name: 'x', data: 'y' }]))).toThrow('not an iOS app archive'); + }); + test('aabInfo reads the proto manifest', () => { + expect(aabInfo(makeAab('com.example.game', 1234, '2.0.1'))).toEqual({ packageName: 'com.example.game', versionCode: 1234, versionName: '2.0.1', minSdk: 24, targetSdk: 35 }); + expect(() => aabInfo(makeZip([{ name: 'x', data: 'y' }]))).toThrow('not an Android App Bundle'); + }); +}); + +describe('CSR', () => { + test('PKCS #10 with the public key, signed by the private key', () => { + const { pem, key } = newSigningKey(); + const csr = buildCsr(key, { commonName: 'storebound Example' }); + expect(csr).toStartWith('-----BEGIN CERTIFICATE REQUEST-----'); + const b64 = csrContent(csr); + expect(b64).toMatch(/^[A-Za-z0-9+/=]+$/); + const der = Buffer.from(b64, 'base64'); + // the SPKI of the key is inside, and the signature verifies over CertificationRequestInfo + const spki = createPublicKey(key).export({ type: 'spki', format: 'der' }); + expect(der.includes(spki)).toBe(true); + expect(spkiOfKey(pem)).toBe(spki.toString('base64')); + const infoLenBytes = der[5]! & 0x80 ? (der[5]! & 0x7f) : 0; + const infoStart = 4, infoLen = infoLenBytes ? der.readUIntBE(6, infoLenBytes) : der[5]!; + const info = der.subarray(infoStart, infoStart + 2 + infoLenBytes + infoLen); + const sig = der.subarray(der.length - 256); + expect(verify('sha256', info, createPublicKey(createPrivateKey(pem)), sig)).toBe(true); + if (Bun.which('openssl')) { + const f = join(dir('csr'), 'req.csr'); + writeFileSync(f, csr); + const r = Bun.spawnSync(['openssl', 'req', '-in', f, '-noout', '-verify', '-subject'], { stdout: 'pipe', stderr: 'pipe' }); + expect(r.exitCode).toBe(0); + expect(r.stdout.toString() + r.stderr.toString()).toContain('storebound Example'); + } + }); +}); + +const cert = (id: string, type: string, days: number, extra: Partial = {}): ApiCert => + ({ id, attributes: { certificateType: type, expirationDate: new Date(Date.now() + days * 86_400_000).toISOString(), name: `Apple Distribution ${id}`, certificateContent: Buffer.from(id).toString('base64'), ...extra } }); + +describe('signing plans', () => { + test('capabilities: adds the missing ones, never removes', () => { + const p = planCapabilities('B1', ['IN_APP_PURCHASE', 'PUSH_NOTIFICATIONS'], [{ type: 'IN_APP_PURCHASE' }, { type: 'GAME_CENTER' }, { type: 'ICLOUD', settings: [{ key: 'ICLOUD_VERSION', options: [{ key: 'XCODE_6' }] }] }]); + expect(p.present).toEqual(['IN_APP_PURCHASE']); + expect(p.extra).toEqual(['PUSH_NOTIFICATIONS']); + expect(p.create.map(r => (r.body as any).data.attributes.capabilityType)).toEqual(['GAME_CENTER', 'ICLOUD']); + expect((p.create[1]!.body as any).data.attributes.settings[0].key).toBe('ICLOUD_VERSION'); + expect((p.create[0]!.body as any).data.relationships.bundleId.data).toEqual({ type: 'bundleIds', id: 'B1' }); + }); + test('certificate: newest usable one with a local key, not expiring', () => { + const certs = [cert('old', 'DISTRIBUTION', 400), cert('new', 'DISTRIBUTION', 700), cert('soon', 'DISTRIBUTION', 10), cert('nokey', 'DISTRIBUTION', 900), cert('dev', 'DEVELOPMENT', 900), cert('gone', 'DISTRIBUTION', -1)]; + const has = (c: ApiCert) => c.id !== 'nokey'; + const c = pickCertificate(certs, 'DISTRIBUTION', has); + expect(c.cert?.id).toBe('new'); + expect(c.expiring.map(x => x.id)).toEqual(['soon']); + expect(c.withoutKey.map(x => x.id)).toEqual(['nokey']); + const none = pickCertificate([cert('nokey', 'DISTRIBUTION', 900)], 'DISTRIBUTION', () => false); + expect(none.cert).toBeNull(); + expect(none.why).toContain('none of their private keys'); + expect(pickCertificate([], 'DISTRIBUTION', () => true).why).toBe('no valid DISTRIBUTION certificate'); + expect(pickCertificate([cert('off', 'DISTRIBUTION', 500, { activated: false })], 'DISTRIBUTION', () => true).cert).toBeNull(); + }); + test('certificate request carries only the CSR', () => { + const r = certificateReq('DISTRIBUTION', 'MIIB'); + expect(r.body).toEqual({ data: { type: 'certificates', attributes: { certificateType: 'DISTRIBUTION', csrContent: 'MIIB' } } }); + }); + test('Developer ID 403, certificate limit and role errors are explained', () => { + expect(explainCertError(new Error('POST /v1/certificates -> 403 FORBIDDEN_ERROR'), 'DEVELOPER_ID_APPLICATION')).toContain('Account Holder'); + expect(explainCertError(new Error('POST /v1/certificates -> 403 FORBIDDEN_ERROR'), 'DISTRIBUTION')).toContain('Admin role'); + expect(explainCertError(new Error('POST /v1/certificates -> 409 You already have a current Distribution certificate or a pending request (maximum)'), 'DISTRIBUTION')).toContain('limit'); + expect(explainCertError(new Error('-> 500'), 'DISTRIBUTION')).toBeNull(); + }); + test('profile: reuse an active one with the certificate, else create', () => { + const now = Date.now(); + const p = (id: string, state: string, days: number, certIds: string[]): ApiProfile => ({ id, certIds, attributes: { name: id, profileType: 'IOS_APP_STORE', profileState: state, expirationDate: new Date(now + days * 86_400_000).toISOString(), uuid: `u-${id}` } }); + const o = { bundleId: 'com.example.game', bundleIdId: 'B1', certId: 'C1', type: 'IOS_APP_STORE' as const, now }; + expect(planProfile([p('a', 'ACTIVE', 200, ['C1']), p('b', 'ACTIVE', 300, ['C1'])], o).reuse?.id).toBe('b'); + const c = planProfile([p('x', 'INVALID', 200, ['C1']), p('y', 'ACTIVE', 300, ['C0']), p('z', 'ACTIVE', 5, ['C1'])], o); + expect(c.reuse).toBeNull(); + expect(c.why).toContain('none active with this certificate'); + const body = (c.create!.body as any).data; + expect(body.attributes.profileType).toBe('IOS_APP_STORE'); + expect(body.attributes.name).toStartWith('storebound com.example.game App Store '); + expect(body.relationships.certificates.data).toEqual([{ type: 'certificates', id: 'C1' }]); + }); + test('ExportOptions: app-store-connect, export destination, manual profiles', () => { + expect(exportOptions({ teamId: 'TEAMID1234', style: 'automatic' })).toEqual({ method: 'app-store-connect', teamID: 'TEAMID1234', signingStyle: 'automatic', destination: 'export', uploadSymbols: true, manageAppVersionAndBuildNumber: false }); + const m = exportOptions({ teamId: 'TEAMID1234', style: 'manual', profiles: { 'com.example.game': 'u-1' } }); + expect(m.provisioningProfiles).toEqual({ 'com.example.game': 'u-1' }); + expect(m.signingCertificate).toBe('Apple Distribution'); + expect(() => exportOptions({ teamId: 'T', style: 'manual' })).toThrow('signing ensure'); + expect(toXmlPlist(m)).toContain('signingStyle\n\tmanual'); + }); + test('identities, sha1, spki, profile folders', () => { + const out = ' 1) 0123456789ABCDEF0123456789ABCDEF01234567 "Apple Distribution: Example (TEAMID1234)"\n 1 valid identities found\n'; + expect(parseIdentities(out)).toEqual([{ sha1: '0123456789ABCDEF0123456789ABCDEF01234567', name: 'Apple Distribution: Example (TEAMID1234)' }]); + expect(certSha1(Buffer.from('abc').toString('base64'))).toBe('A9993E364706816ABA3E25717850C26C9CD0D89D'); + expect(certSpki('bm9wZQ==')).toBeNull(); + expect(profileDirs('/Users/you')).toEqual(['/Users/you/Library/Developer/Xcode/UserData/Provisioning Profiles', '/Users/you/Library/MobileDevice/Provisioning Profiles']); + }); + test('config validation', () => { + expect(validateSigning({ style: 'manual', teamId: 'TEAMID1234', capabilities: ['IN_APP_PURCHASE', { type: 'GAME_CENTER' }], extraBundleIds: ['com.example.game.widget'] })).toEqual([]); + const e = validateSigning({ style: 'auto' as any, teamId: 'x', certificateType: 'NOPE' as any, capabilities: ['TELEPORT' as any], extraBundleIds: ['bad id'] }).join('\n'); + for (const s of ['style', 'teamId', 'certificateType', 'TELEPORT', 'bad id']) expect(e).toContain(s); + const base = { app: { name: 'X', privacyPolicyUrl: 'https://example.com/p', supportUrl: 'https://example.com', website: 'https://example.com', contactEmail: 'a@example.com' }, languages: [{ id: 'en', apple: 'en-US', play: 'en-US' }] }; + expect(validateConfig({ ...base, apple: { bundleId: 'com.example.game', signing: { style: 'manual' }, build: { workspace: 'ios/App/App.xcworkspace', scheme: 'App' } }, play: { packageName: 'com.example.game', build: { module: 'app', flavor: 'prod' } }, originality: { against: ['..'], threshold: 0.7 } })).toEqual([]); + expect(validateConfig({ ...base, apple: { bundleId: 'com.example.game', build: { workspace: 'App.xcodeproj' } } }).join()).toContain('.xcworkspace'); + expect(validatePlayBuild({ module: 'a b', flavor: '1x' }).length).toBe(2); + expect(validateConfig({ ...base, originality: { threshold: 2 } }).join()).toContain('originality.threshold'); + }); + test('installed App Store profiles are found by bundle id and team', () => { + const home = dir('home'); + const write = (uuid: string, appId: string, extra: Record = {}) => { + const d = profileDirs(home)[0]!; + mkdirSync(d, { recursive: true }); + writeFileSync(join(d, `${uuid}.mobileprovision`), Buffer.concat([Buffer.from([0x30, 0x80]), Buffer.from(toXmlPlist({ UUID: uuid, Name: uuid, TeamIdentifier: ['TEAMID1234'], + ExpirationDate: '2099-01-01T00:00:00Z', Entitlements: { 'application-identifier': appId, 'get-task-allow': false }, ...extra } as any))])); + }; + write('store', 'TEAMID1234.com.example.game'); + write('dev', 'TEAMID1234.com.example.game', { ProvisionedDevices: ['x'] }); + write('other', 'TEAMID1234.com.example.other'); + expect(installedProfiles('com.example.game', 'TEAMID1234', home).map(p => p.uuid)).toEqual(['store']); + expect(installedProfiles('com.example.game', 'OTHERTEAM1', home)).toEqual([]); + }); +}); + +describe('xcode projects', () => { + const S = (o: Partial): XcodeScan => ({ markers: [], workspaces: [], projects: [], schemes: {}, pods: [], ...o }); + test('Capacitor, Flutter, React Native, Unity, native', () => { + expect(pickXcode(S({ markers: ['capacitor.config.ts'], workspaces: ['ios/App/App.xcworkspace'], projects: ['ios/App/App.xcodeproj', 'ios/App/Pods/Pods.xcodeproj'], pods: [{ dir: 'ios/App', installed: true }] }))) + .toMatchObject({ framework: 'capacitor', workspace: 'ios/App/App.xcworkspace', scheme: 'App' }); + expect(pickXcode(S({ markers: ['capacitor.config.json'], projects: ['ios/App/App.xcodeproj'] }))).toMatchObject({ project: 'ios/App/App.xcodeproj', scheme: 'App' }); + expect(pickXcode(S({ markers: ['pubspec.yaml'], workspaces: ['ios/Runner.xcworkspace'], projects: ['ios/Runner.xcodeproj'] }))).toMatchObject({ framework: 'flutter', workspace: 'ios/Runner.xcworkspace', scheme: 'Runner' }); + const rn = pickXcode(S({ markers: ['package.json:react-native'], workspaces: ['ios/ExampleGame.xcworkspace'], projects: ['ios/ExampleGame.xcodeproj'], schemes: { 'ios/ExampleGame.xcodeproj': ['ExampleGame', 'ExampleGame-tvOS'] }, pods: [{ dir: 'ios', installed: false }] })); + expect(rn).toMatchObject({ framework: 'react-native', workspace: 'ios/ExampleGame.xcworkspace', scheme: 'ExampleGame' }); + expect(rn.notes.join()).toContain('pod install'); + expect(pickXcode(S({ markers: ['Unity-iPhone.xcodeproj'], projects: ['Builds/iOS/Unity-iPhone.xcodeproj'] }))).toMatchObject({ framework: 'unity', project: 'Builds/iOS/Unity-iPhone.xcodeproj', scheme: 'Unity-iPhone' }); + expect(pickXcode(S({ projects: ['Example.xcodeproj'], schemes: { 'Example.xcodeproj': ['Example Release'] } }))).toMatchObject({ framework: 'native', project: 'Example.xcodeproj', scheme: 'Example Release' }); + expect(pickXcode(S({ projects: ['Example.xcodeproj'] }), { scheme: 'Mine' }).scheme).toBe('Mine'); + expect(() => pickXcode(S({}))).toThrow('no .xcworkspace'); + expect(() => pickXcode(S({ projects: ['A.xcodeproj', 'B.xcodeproj'] }))).toThrow('several Xcode containers'); + }); + test('scanXcode walks a real folder (Capacitor layout)', () => { + const d = dir('cap'); + touch(d, 'capacitor.config.ts', 'export default {}'); + touch(d, 'ios/App/App.xcodeproj/project.pbxproj'); + touch(d, 'ios/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme'); + touch(d, 'ios/App/App.xcworkspace/contents.xcworkspacedata'); + touch(d, 'ios/App/Podfile'); + touch(d, 'node_modules/x/ios/X.xcodeproj/project.pbxproj'); + const s = scanXcode(d); + expect(s.workspaces).toEqual(['ios/App/App.xcworkspace']); + expect(s.projects).toEqual(['ios/App/App.xcodeproj']); + expect(s.schemes['ios/App/App.xcodeproj']).toEqual(['App']); + expect(s.pods).toEqual([{ dir: 'ios/App', installed: false }]); + expect(pickXcode(s).notes.join()).toContain('pod install'); + }); + test('command lines: archive, export, flutter, altool; the key path is never shown', () => { + const t = { framework: 'capacitor' as const, workspace: 'ios/App/App.xcworkspace', scheme: 'App', notes: [] }; + const auth = { keyPath: '/tmp/k/AuthKey_X.p8', keyId: 'KEYID', issuerId: 'ISSUER' }; + const a = archiveArgs({ target: t, root: '/p', configuration: 'Release', archivePath: '/p/build/ios/App.xcarchive', version: '1.4.0', build: '42', teamId: 'TEAMID1234', auth }); + expect(a.slice(0, 3)).toEqual(['xcodebuild', '-workspace', '/p/ios/App/App.xcworkspace']); + expect(a).toContain('-allowProvisioningUpdates'); + expect(a.slice(-4)).toEqual(['archive', 'CURRENT_PROJECT_VERSION=42', 'MARKETING_VERSION=1.4.0', 'DEVELOPMENT_TEAM=TEAMID1234']); + expect(showCmd(a, auth)).toContain('-authenticationKeyPath $ASC_P8'); + expect(showCmd(a, auth)).not.toContain('/tmp/k'); + expect(exportArgs('/a.xcarchive', '/E.plist', '/out', null)).toEqual(['xcodebuild', '-exportArchive', '-archivePath', '/a.xcarchive', '-exportOptionsPlist', '/E.plist', '-exportPath', '/out']); + expect(flutterConfigArgs('42', '1.4.0')).toEqual(['flutter', 'build', 'ios', '--release', '--config-only', '--no-codesign', '--build-number', '42', '--build-name', '1.4.0']); + expect(altoolArgs('/x.ipa', auth).slice(0, 4)).toEqual(['xcrun', 'altool', '--upload-package', '/x.ipa']); + }); + test('API build upload requests (Build Uploads)', () => { + const r = buildUploadReqs('APPID', { bundleId: 'com.example.game', version: '1.4.0', build: '42' }, 'Example.ipa', 1048576 * 12); + expect(r.upload.body).toEqual({ data: { type: 'buildUploads', attributes: { cfBundleShortVersionString: '1.4.0', cfBundleVersion: '42', platform: 'IOS' }, relationships: { app: { data: { type: 'apps', id: 'APPID' } } } } }); + expect(r.file('U1').body.data.attributes).toEqual({ assetType: 'ASSET', fileName: 'Example.ipa', fileSize: 12582912, uti: 'com.apple.ipa' }); + expect(r.commit('F1', 'abc').body.data.attributes).toEqual({ uploaded: true, sourceFileChecksums: { file: { hash: 'abc', algorithm: 'MD5' } } }); + expect(uploadProblems({ errors: [{ code: 'ITMS-90062', message: 'version must be higher' }] }).errors).toEqual(['ITMS-90062: version must be higher']); + }); +}); + +describe('gradle projects', () => { + test('React Native / Capacitor android/, Unity export, native root, Flutter', () => { + const rn = dir('rn'); + touch(rn, 'package.json', JSON.stringify({ dependencies: { 'react-native': '0.80.0' } })); + touch(rn, 'android/settings.gradle'); touch(rn, 'android/gradlew', '#!/bin/sh'); touch(rn, 'android/app/build.gradle'); + const t = pickGradle(rn); + expect(t).toMatchObject({ framework: 'react-native', module: 'app', task: ':app:bundleRelease' }); + expect(gradleArgs(t, { versionCode: 7, versionName: '1.2.0', hasWrapper: true })).toEqual(['./gradlew', ':app:bundleRelease', '--no-daemon', '--console=plain', + '-Pandroid.injected.version.code=7', '-PversionCode=7', '-Pandroid.injected.version.name=1.2.0', '-PversionName=1.2.0']); + expect(pickGradle(rn, { flavor: 'prod' }).task).toBe(':app:bundleProdRelease'); + const unity = dir('unity'); + touch(unity, 'Export/settings.gradle'); touch(unity, 'Export/launcher/build.gradle'); touch(unity, 'Export/unityLibrary/build.gradle'); + expect(pickGradle(unity, { dir: 'Export' })).toMatchObject({ framework: 'unity', module: 'launcher', task: ':launcher:bundleRelease' }); + const native = dir('native'); + touch(native, 'settings.gradle.kts'); touch(native, 'app/build.gradle.kts'); + expect(pickGradle(native).notes.join()).toContain('no Gradle wrapper'); + const fl = dir('flutter'); + touch(fl, 'pubspec.yaml', 'name: example'); touch(fl, 'android/settings.gradle'); touch(fl, 'android/app/build.gradle'); + const ft = pickGradle(fl); + expect(gradleArgs(ft, { versionCode: 9, hasWrapper: false })).toEqual(['flutter', 'build', 'appbundle', '--release', '--build-number', '9']); + expect(() => pickGradle(dir('empty'))).toThrow('no Gradle project'); + expect(() => pickGradle(native, { module: 'mobile' })).toThrow('module "mobile" not found'); + }); + test('signing goes through the environment, never argv', () => { + const env = signingEnv({ storeFile: '/k/upload.jks', storePassword: 'pw1', keyAlias: 'upload', keyPassword: 'pw2' }); + expect(env['ORG_GRADLE_PROJECT_android.injected.signing.store.password']).toBe('pw1'); + expect(env['ORG_GRADLE_PROJECT_android.injected.signing.key.alias']).toBe('upload'); + expect(signingEnv(null)).toEqual({}); + }); + test('findBundles: only new AABs, newest first', () => { + const d = dir('out'); + touch(d, 'app/build/outputs/bundle/release/app-release.aab', 'x'); + touch(d, 'app/build/outputs/bundle/release/old.aab', 'x'); + const past = new Date(Date.now() - 3_600_000); + utimesSync(join(d, 'app/build/outputs/bundle/release/old.aab'), past, past); + expect(findBundles([join(d, 'app/build/outputs/bundle')], Date.now() - 60_000).map(f => f.split('/').pop())).toEqual(['app-release.aab']); + }); +}); + +describe('credentials for builds', () => { + test('android upload key from .storebound/credentials.json; inline ASC key goes to a private temp file', () => { + const d = dir('creds'); + touch(d, '.storebound/credentials.json', JSON.stringify({ ANDROID_KEYSTORE: 'keys/upload.jks', ANDROID_KEYSTORE_PASSWORD: 'pw', ANDROID_KEY_ALIAS: 'upload' })); + const saved = { ...process.env }; + try { + delete process.env.ANDROID_KEYSTORE; + expect(androidSigning(d)).toEqual({ storeFile: join(d, 'keys/upload.jks'), storePassword: 'pw', keyAlias: 'upload', keyPassword: 'pw' }); + expect(androidSigning(dir('nocreds'))).toBeNull(); + const { pem } = newSigningKey(); + const p8 = createPrivateKey(pem).export({ type: 'pkcs8', format: 'pem' }).toString(); + Object.assign(process.env, { ASC_KEY_ID: 'KEYID00001', ASC_ISSUER_ID: '00000000-0000-0000-0000-000000000000', ASC_P8: p8 }); + const k = ascKeyFile(d); + expect(readFileSync(k.keyPath, 'utf8')).toBe(p8); + expect(k.keyPath.split('/').pop()).toBe(['AuthKey', 'KEYID00001.p8'].join('_')); + k.cleanup(); + expect(() => readFileSync(k.keyPath)).toThrow(); + } finally { for (const key of ['ASC_KEY_ID', 'ASC_ISSUER_ID', 'ASC_P8']) if (saved[key] === undefined) delete process.env[key]; else process.env[key] = saved[key]; } + }); +}); + +describe('CLI dry runs (no store access)', () => { + const cli = (cwd: string, args: string[]) => Bun.spawnSync([process.execPath, join(ROOT, 'cli/index.ts'), ...args], { cwd, stdout: 'pipe', stderr: 'pipe', env: { ...process.env, ASC_KEY_ID: '', ASC_ISSUER_ID: '', ASC_P8: '', PLAY_SERVICE_ACCOUNT: '', HOME: dir('clihome') } }); + const project = (name: string): string => { + const d = dir(name); + touch(d, 'storebound.config.ts', `export default { app: { name: 'Example', privacyPolicyUrl: 'https://example.com/p', supportUrl: 'https://example.com', website: 'https://example.com', contactEmail: 'hi@example.com' }, + languages: [{ id: 'en', apple: 'en-US', play: 'en-US' }], apple: { bundleId: 'com.example.game', signing: { teamId: 'TEAMID1234' } }, play: { packageName: 'com.example.game' } };\n`); + touch(d, 'capacitor.config.ts', 'export default {}'); + touch(d, 'ios/App/App.xcodeproj/project.pbxproj'); + touch(d, 'android/settings.gradle'); touch(d, 'android/gradlew', '#!/bin/sh'); touch(d, 'android/app/build.gradle'); + return d; + }; + test('apple build --dry --json: plan with ExportOptions and the commands', () => { + const r = cli(project('cli-apple'), ['apple', 'build', '--dry', '--json', '--build-number', '42', '--version', '1.4.0']); + expect(r.exitCode).toBe(0); + const j = JSON.parse(r.stdout.toString()); + expect(j).toMatchObject({ framework: 'capacitor', project: 'ios/App/App.xcodeproj', scheme: 'App', build: '42', teamId: 'TEAMID1234', signingStyle: 'automatic' }); + expect(j.exportOptions.method).toBe('app-store-connect'); + expect(j.steps[0]).toContain('CURRENT_PROJECT_VERSION=42'); + expect(j.steps[0]).toContain('-authenticationKeyPath $ASC_P8'); + }); + test('play build --dry --json: task, versionCode, signing source', () => { + const r = cli(project('cli-play'), ['play', 'build', '--dry', '--json', '--version-code', '12']); + expect(r.exitCode).toBe(0); + const j = JSON.parse(r.stdout.toString()); + expect(j).toMatchObject({ framework: 'capacitor', dir: 'android', task: ':app:bundleRelease', versionCode: 12, signing: "the project's own signingConfig" }); + expect(j.command).toContain('-Pandroid.injected.version.code=12'); + }); + test('play upload refuses production', () => { + const d = project('cli-up'); + writeFileSync(join(d, 'app.aab'), makeAab('com.example.game', 3)); + const r = cli(d, ['play', 'upload', 'app.aab', '--track', 'production', '--dry']); + expect(r.exitCode).toBe(1); + expect(r.stderr.toString()).toContain('testing tracks'); + }); +}); + +describe('MCP', () => { + test('read-only tools only: signing status, originality; no build / upload / ensure', () => { + const names = TOOLS.map(t => t.name); + expect(names).toContain('apple_signing_status'); + expect(names).toContain('originality'); + for (const n of ['apple_signing_ensure', 'apple_build', 'apple_upload', 'play_build', 'play_upload']) expect(names).not.toContain(n); + for (const t of TOOLS.filter(t => ['apple_signing_status', 'originality'].includes(t.name))) expect(t.write).toBe(false); + }); +}); diff --git a/tests/fixtures/build/Info.bplist b/tests/fixtures/build/Info.bplist new file mode 100644 index 0000000000000000000000000000000000000000..9b7bc1e7b7a26e5ecaf4a1a90ec8c834dd268947 GIT binary patch literal 407 zcmYk0%TB^j5QgVeR8Wy4ASxS8+&4w=5;YnwVpu3hsc~g3Wq^~MUhKty8=t}l(D)X< zfE%B{jSJ&5Xx!LHNu13;Gk?DMr)_iQdXn@;go()H)O0j9GdmZbrwhqcdTDt@rP*?| z0Fv!~MJ*sOKX^jMdn^Pli-J7BQW;F{O99K%&)UE`>fe8#<2 ziCb-zrp6~K%(b~TJk<=mRB9ExVLDbdgYltC(@L$0*FJO5t@@nHx`Sw{G%;qww^T|` zn8^&^sLSC>$%zF~3Jl#cL>y>_%~9+H84rmI*63R%*5&oXFZio`@nySs6|`j_0*50Q zfCdKGzyV + + + + CFBundleIdentifier + com.example.game + CFBundleShortVersionString + 1.4.0 + CFBundleVersion + 42 + CFBundleDisplayName + Example Gäme + MinimumOSVersion + 15.0 + CFBundleSupportedPlatforms + + iPhoneOS + + UIRequiresFullScreen + + UIDeviceFamily + + 1 + 2 + + Scale + 1.5 + Built + 2026-10-01T12:00:00Z + Blob + AAEC + + diff --git a/tests/originality.test.ts b/tests/originality.test.ts new file mode 100644 index 00000000..a577e5d9 --- /dev/null +++ b/tests/originality.test.ts @@ -0,0 +1,145 @@ +import { afterAll, describe, expect, test } from 'bun:test'; +import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +import { decodePng, dHash, hamming, hashFile, hashGray, imageSimilarity, pHash, resize } from '../cli/lib/imagehash'; +import { compare, findApps, fingerprint, jaccard, nameSimilarity, projectStructure, report, screenshotSimilarity, textSimilarity, words } from '../cli/lib/originality'; +import { loadConfig } from '../cli/lib/config'; +import { encodePng } from './build-fixtures'; + +const ROOT = join(import.meta.dir, '..'); +const tmp = mkdtempSync(join(tmpdir(), 'sb-orig-')); +afterAll(() => rmSync(tmp, { recursive: true, force: true })); +const put = (base: string, rel: string, data: string | Buffer): void => { mkdirSync(join(base, rel, '..'), { recursive: true }); writeFileSync(join(base, rel), data); }; + +// pictures: a disc on a gradient (icon A), the same disc shifted in hue (a recolour), a striped square (another app) +const disc = (hue: number) => (x: number, y: number): [number, number, number, number] => { + const inside = (x - 32) ** 2 + (y - 30) ** 2 < 18 ** 2; + return inside ? [(200 + hue) % 256, 60, (40 + hue) % 256, 255] : [20 + x, 30 + y, 120, 255]; +}; +const stripes = (x: number, y: number): [number, number, number, number] => ((Math.floor(x / 8) + Math.floor(y / 16)) % 2 ? [240, 240, 240, 255] : [10, 80, 30, 255]); +const scene = (k: number) => (x: number, y: number): [number, number, number, number] => { + const bar = y > 20 + k * 15 && y < 40 + k * 15; + return bar ? [250, 200, 0, 255] : [30, 30 + x, 90 + k * 30, 255]; +}; + +describe('image hashes', () => { + test('PNG decoding: RGBA, RGB, grey, Sub filter, alpha over white', () => { + const rgba = decodePng(encodePng(4, 2, (x, y) => [x * 60, y * 100, 0, 255])); + expect(rgba.w).toBe(4); + expect(Math.round(rgba.px[1]!)).toBe(Math.round(0.299 * 60)); + const filtered = decodePng(encodePng(4, 2, (x, y) => [x * 60, y * 100, 0, 255], { filter: 1 })); + expect([...filtered.px]).toEqual([...rgba.px]); + expect(Math.round(decodePng(encodePng(1, 1, () => [0, 0, 0, 0])).px[0]!)).toBe(255); + expect(Math.round(decodePng(encodePng(1, 1, () => [100, 100, 100], { colorType: 0 })).px[0]!)).toBe(100); + expect(Math.round(decodePng(encodePng(1, 1, () => [0, 255, 0], { colorType: 2 })).px[0]!)).toBe(Math.round(0.587 * 255)); + expect(() => decodePng(Buffer.from('GIF89a........'))).toThrow('not a PNG'); + }); + test('same picture at another size hashes the same; a recolour is close; another picture is far', () => { + const a = hashGray(decodePng(encodePng(64, 64, disc(0)))); + const big = hashGray(decodePng(encodePng(128, 128, (x, y) => disc(0)(x / 2, y / 2)))); + const recolour = hashGray(decodePng(encodePng(64, 64, disc(25)))); + const other = hashGray(decodePng(encodePng(64, 64, stripes))); + expect(imageSimilarity(a, a)).toBe(1); + expect(imageSimilarity(a, big)).toBeGreaterThan(0.9); + expect(imageSimilarity(a, recolour)).toBeGreaterThan(0.8); + expect(imageSimilarity(a, other)).toBeLessThan(0.75); + expect(dHash(resize(decodePng(encodePng(8, 8, stripes)), 32, 32))).toHaveLength(16); + expect(pHash(decodePng(encodePng(8, 8, stripes)))).toHaveLength(16); + expect(hamming('ffff', '0000')).toBe(16); + }); + test('hashFile: PNG in TypeScript; other files say why when they cannot be read', () => { + const d = join(tmp, 'files'); + put(d, 'a.png', encodePng(16, 16, stripes)); + put(d, 'b.jpg', Buffer.from('not really a jpeg')); + expect(hashFile(join(d, 'a.png')).hash).not.toBeNull(); + const j = hashFile(join(d, 'b.jpg')); + expect(j.hash).toBeNull(); + expect(j.reason).toBeTruthy(); + }); +}); + +describe('text and structure', () => { + test('words, cosine + shingles, names', () => { + expect(words('The FREE app: Merge, match & win!')).toEqual(['merge', 'match', 'win']); + const a = 'Merge fruit tiles to grow a garden. Daily puzzles, calm music and hundreds of levels to relax.'; + const copied = 'Merge fruit tiles to grow a garden. Daily puzzles, calm music and hundreds of levels to unwind.'; + const other = 'Track your running pace and heart rate with GPS, plan intervals and share routes with friends.'; + expect(textSimilarity(a, copied).score).toBeGreaterThan(0.8); + expect(textSimilarity(a, other).score).toBeLessThan(0.1); + expect(nameSimilarity('Fruit Merge Garden', 'Fruit Merge Garden 2')).toBeGreaterThan(0.85); + expect(nameSimilarity('Fruit Merge', 'Pace Runner')).toBeLessThan(0.3); + expect(jaccard(new Set([1, 2]), new Set([2, 3]))).toBeCloseTo(1 / 3); + expect(screenshotSimilarity([], [])).toBeNull(); + }); + test('project structure skips build output and dependencies', () => { + const d = join(tmp, 'struct'); + put(d, 'src/main.ts', 'console.log(1)'); + put(d, 'node_modules/x/index.js', 'x'); + put(d, 'android/app/build/outputs/a.aab', 'x'); + put(d, '.git/HEAD', 'ref'); + const s = projectStructure(d); + expect([...s.paths]).toEqual(['src/main.ts']); + expect(s.contents.size).toBe(1); + }); +}); + +/** One app folder: config, App Store listing, icon, three screenshots, a few source files. */ +function app(dir: string, o: { name: string; bundle: string; subtitle: string; description: string; keywords: string; icon: (x: number, y: number) => [number, number, number, number]; scene: (k: number) => (x: number, y: number) => [number, number, number, number]; src: Record }): string { + put(dir, 'storebound.config.ts', `export default { app: { name: ${JSON.stringify(o.name)}, privacyPolicyUrl: 'https://example.com/p', supportUrl: 'https://example.com', website: 'https://example.com', contactEmail: 'hi@example.com' }, + languages: [{ id: 'en', apple: 'en-US' }], apple: { bundleId: '${o.bundle}' }, renders: 'store/renders' };\n`); + put(dir, 'store/appstore.md', `# listing\n\n## en-US\n\n### subtitle\n\`\`\`\n${o.subtitle}\n\`\`\`\n\n### promotionalText\n\`\`\`\n${o.subtitle}\n\`\`\`\n\n### keywords\n\`\`\`\n${o.keywords}\n\`\`\`\n\n### description\n\`\`\`\n${o.description}\n\`\`\`\n`); + put(dir, 'store/icon.png', encodePng(64, 64, o.icon)); + for (let k = 0; k < 3; k++) put(dir, `store/renders/en/phone-6.9/0${k + 1}.png`, encodePng(48, 96, o.scene(k))); + for (const [f, t] of Object.entries(o.src)) put(dir, f, t); + return dir; +} + +const engine = { 'src/engine.ts': 'export const grid = 8; // merge engine\n'.repeat(20), 'src/levels.json': JSON.stringify(Array.from({ length: 40 }, (_, i) => ({ i, goal: i * 10 }))), 'src/ui/board.ts': 'export function board() { return 1 }\n' }; + +describe('originality report', () => { + const ws = join(tmp, 'ws'); + const me = app(join(ws, 'fruit'), { name: 'Fruit Merge Garden', bundle: 'com.example.fruit', subtitle: 'Merge fruit, grow a garden', keywords: 'merge,fruit,garden,puzzle,relax', + description: 'Merge fruit tiles to grow a garden. Daily puzzles, calm music and hundreds of levels to relax after work.', icon: disc(0), scene, src: { ...engine, 'src/theme.ts': 'export const theme = "fruit";' } }); + app(join(ws, 'candy'), { name: 'Candy Merge Garden', bundle: 'com.example.candy', subtitle: 'Merge candy, grow a garden', keywords: 'merge,candy,garden,puzzle,relax', + description: 'Merge candy tiles to grow a garden. Daily puzzles, calm music and hundreds of levels to relax after work.', icon: disc(30), scene, src: { ...engine, 'src/theme.ts': 'export const theme = "candy";' } }); + app(join(ws, 'pace'), { name: 'Pace Runner', bundle: 'com.example.pace', subtitle: 'Running pace and heart rate', keywords: 'run,pace,gps,interval,heart', + description: 'Track your running pace and heart rate with GPS, plan intervals and share routes with friends.', icon: stripes, + scene: k => (x, y) => (Math.floor((x + k * 7) / 6) % 2 ? [255, 255, 255, 255] : [y * 2, 0, 0, 255]), src: { 'App/Run.swift': 'struct Run {}', 'App/Map.swift': 'struct Map {}' } }); + + test('a reskin is flagged with reasons and suggestions; a different app is not', async () => { + const self = (await loadConfig(join(me, 'storebound.config.ts'))).config; + const others = findApps([ws], me); + expect(others.map(p => p.split('/').slice(-2, -1)[0])).toEqual(['candy', 'pace']); + const fps = await Promise.all(others.map(async p => { const l = await loadConfig(p); return fingerprint(l.config, l.root); })); + const r = report(fingerprint(self, me), fps); + const candy = r.pairs.find(p => p.other.name === 'Candy Merge Garden')!; + const pace = r.pairs.find(p => p.other.name === 'Pace Runner')!; + expect(candy.flagged).toBe(true); + expect(candy.overall).toBeGreaterThan(0.7); + expect(candy.axes.screenshots.score).toBe(1); + expect(candy.axes.icon.score!).toBeGreaterThan(0.6); + expect(candy.reasons.join()).toContain('screenshots'); + expect(candy.suggestions.join('\n')).toContain('Unlike Candy Merge Garden'); + expect(pace.flagged).toBe(false); + expect(pace.overall).toBeLessThan(0.35); + expect(r.pairs[0]!.other.name).toBe('Candy Merge Garden'); + expect(r.flagged).toBe(1); + expect(compare(fps[1]!, fps[1]!).overall).toBe(1); + }); + + test('CLI: --json, exit 1 on a near-duplicate; text table otherwise', () => { + const run = (args: string[]) => Bun.spawnSync([process.execPath, join(ROOT, 'cli/index.ts'), 'originality', ...args], { cwd: me, stdout: 'pipe', stderr: 'pipe' }); + const j = run(['--against', '..', '--json']); + expect(j.exitCode).toBe(1); + const out = JSON.parse(j.stdout.toString()); + expect(out.flagged).toBe(1); + expect(out.pairs.map((p: { other: { name: string } }) => p.other.name)).toEqual(['Candy Merge Garden', 'Pace Runner']); + const only = run(["--against", "../pace"]); + expect(only.exitCode).toBe(0); + expect(only.stdout.toString()).toContain('Pace Runner'); + const none = run([]); + expect(none.exitCode).toBe(1); + expect(none.stderr.toString()).toContain('nothing to compare with'); + }); +}); From 5ad608278b902265c26d4910fd40d2ee857fed7e Mon Sep 17 00:00:00 2001 From: CRT Date: Sun, 11 Oct 2026 15:48:30 +0000 Subject: [PATCH 5/8] api: refresh the coverage tables after the build and signing commands --- cli/api/wrapped.gen.ts | 21 ++++++++++++++++----- docs/api-coverage.md | 34 +++++++++++++++++----------------- 2 files changed, 33 insertions(+), 22 deletions(-) diff --git a/cli/api/wrapped.gen.ts b/cli/api/wrapped.gen.ts index 0f7a2bf4..2e4e960e 100644 --- a/cli/api/wrapped.gen.ts +++ b/cli/api/wrapped.gen.ts @@ -78,14 +78,22 @@ export const WRAPPED: { apple: Record; play: Record; play: Record; play: Record; play: Record Date: Sun, 11 Oct 2026 15:54:02 +0000 Subject: [PATCH 6/8] Teaser remake: inbox hook, real scan and re-scan, screenshot wall, Data safety, three desktop scenes, Submit card New cut on the approved storyboard (33.75 s, every cut on the 128 BPM beat): rejection mails in a generic inbox, storebound scan typed on black with its real output (tests/fixtures/scan/teaser), the re-scan of the fixed copy (new fixture teaser-fixed) flipping five reds to green, 200 store screenshots, 764 Data safety answers, the desktop app's Portfolio, release timeline (rollout to 20%) and Checks tab, then the Submit card and the logo. 60 fps capture blended to 30 fps for motion blur, whip / mask / zoom transitions, sound design on every cut, a 1280x720 web version. tests/teaser.test.ts checks the scan text, beat grid, caption length and holds. --- media/teaser/README.md | 51 +- media/teaser/desktop.ts | 116 ++- media/teaser/icons/arrow-right-bold.svg | 1 - media/teaser/icons/check-circle-fill.svg | 1 + media/teaser/icons/magnifying-glass-bold.svg | 1 + media/teaser/icons/paper-plane-tilt-fill.svg | 1 + media/teaser/icons/pencil-simple-bold.svg | 1 + media/teaser/icons/terminal-window-bold.svg | 1 + media/teaser/icons/tray-bold.svg | 1 + media/teaser/icons/user-bold.svg | 1 - media/teaser/icons/warning-octagon-fill.svg | 1 + media/teaser/icons/x-circle-fill.svg | 1 + media/teaser/index.html | 468 ++++----- media/teaser/music.js | 166 +++- media/teaser/render.ts | 93 +- media/teaser/script.js | 307 +++--- media/teaser/teaser.js | 922 ++++++++++-------- .../Planner.xcodeproj/project.pbxproj | 13 + .../scan/teaser-fixed/Planner/Ads.swift | 11 + .../scan/teaser-fixed/Planner/Info.plist | 12 + .../scan/teaser-fixed/Planner/LoginView.swift | 25 + .../Planner/PrivacyInfo.xcprivacy | 19 + .../scan/teaser-fixed/Planner/ProStore.swift | 10 + .../teaser-fixed/Planner/SettingsView.swift | 10 + tests/fixtures/scan/teaser-fixed/Podfile.lock | 9 + tests/fixtures/scan/teaser-fixed/README.md | 8 + .../scan/teaser-fixed/store/appstore.md | 23 + .../scan/teaser-fixed/storebound.config.ts | 18 + tests/teaser.test.ts | 84 ++ tools/site-icons.ts | 5 +- 30 files changed, 1431 insertions(+), 949 deletions(-) delete mode 100644 media/teaser/icons/arrow-right-bold.svg create mode 100644 media/teaser/icons/check-circle-fill.svg create mode 100644 media/teaser/icons/magnifying-glass-bold.svg create mode 100644 media/teaser/icons/paper-plane-tilt-fill.svg create mode 100644 media/teaser/icons/pencil-simple-bold.svg create mode 100644 media/teaser/icons/terminal-window-bold.svg create mode 100644 media/teaser/icons/tray-bold.svg delete mode 100644 media/teaser/icons/user-bold.svg create mode 100644 media/teaser/icons/warning-octagon-fill.svg create mode 100644 media/teaser/icons/x-circle-fill.svg create mode 100644 tests/fixtures/scan/teaser-fixed/Planner.xcodeproj/project.pbxproj create mode 100644 tests/fixtures/scan/teaser-fixed/Planner/Ads.swift create mode 100644 tests/fixtures/scan/teaser-fixed/Planner/Info.plist create mode 100644 tests/fixtures/scan/teaser-fixed/Planner/LoginView.swift create mode 100644 tests/fixtures/scan/teaser-fixed/Planner/PrivacyInfo.xcprivacy create mode 100644 tests/fixtures/scan/teaser-fixed/Planner/ProStore.swift create mode 100644 tests/fixtures/scan/teaser-fixed/Planner/SettingsView.swift create mode 100644 tests/fixtures/scan/teaser-fixed/Podfile.lock create mode 100644 tests/fixtures/scan/teaser-fixed/README.md create mode 100644 tests/fixtures/scan/teaser-fixed/store/appstore.md create mode 100644 tests/fixtures/scan/teaser-fixed/storebound.config.ts create mode 100644 tests/teaser.test.ts diff --git a/media/teaser/README.md b/media/teaser/README.md index 99dc227c..7f851289 100644 --- a/media/teaser/README.md +++ b/media/teaser/README.md @@ -1,40 +1,55 @@ -# storebound teaser (about 50 s social video) +# storebound teaser (about 34 s social video) -A scripted terminal animation, not a screen recording. Every frame is a pure function of time, rendered from an -HTML/CSS/JS timeline in headless Chrome and encoded with ffmpeg. The music is original and synthesized from scratch in -the same browser (Web Audio `OfflineAudioContext`): no samples, no downloaded audio, nothing to license. +A scripted motion piece, not a screen recording. Every frame is a pure function of time, rendered from an +HTML/CSS/JS timeline in headless Chrome and encoded with ffmpeg. The music and the sound design are original and +synthesized from scratch in the same browser (Web Audio `OfflineAudioContext`): no samples, no downloaded audio, +nothing to license. + +| s | scene | +|---|---| +| 0.00-3.28 | hook: a generic, made-up inbox; three rejection mails stack up, then "Rejected. Again." | +| 3.28-11.25 | hard cut to black: `storebound scan` is typed; the real output: SDKs with file:line, five findings with guideline and fix, the camera on each | +| 11.25-14.06 | the re-scan after the fixes: the five reds flip green, 0 blockers | +| 14.06-16.88 | the store screenshot wall (the demo game's real renders), 200 store screenshots | +| 16.88-19.69 | the declarations proposal from the scan, Data safety answers ticking, 764 answers | +| 19.69-28.13 | the desktop app (real frames, fixture data): Portfolio across studios · release timeline, rollout filling to 20% · Checks, rejection risks turning green | +| 28.13-30.94 | "It never presses Submit. You do." over a Submit button | +| 30.94-33.75 | logo, storebound.dev, Open source · macOS · Windows · Linux | | file | what | |---|---| -| `script.js` | the timeline: tempo (128 BPM, 26 bars = 48.75 s), scenes, terminal lines, prices, languages, blockers, the desktop steps | -| `desktop.ts` | the desktop scene's frames: apps/desktop's Vite dev server in fixture mode (`VITE_FIXTURES=1`, example.com-style data), captured headlessly in dark at 1280x800 @2x, plus `boxes.json` (cursor targets) -> `out/desktop/` | +| `script.js` | the timeline: 128 BPM, scenes in beats (every cut on the beat), captions, the inbox, the scan lines, the desktop camera, the sound cues | +| `desktop.ts` | the desktop scenes' frames: apps/desktop's Vite dev server in fixture mode (`VITE_FIXTURES=1`, example.com-style data), captured headlessly in dark at 1280x800 @2x with the dev markers hidden, plus `boxes.json` (cursor and callout targets) -> `out/desktop/` | | `index.html` + `teaser.js` | the picture; `window.teaser.seek(t)` sets every element for time `t` | -| `music.js` | the music: arp, kick, hats, clap, offbeat bass, pad, impacts on the cuts, key clicks, riser | -| `render.ts` | frames -> ffmpeg (H.264 high, yuv420p, 30 fps), music -> loudnorm (-14 LUFS, -1.5 dBTP), mux, posters | -| `icons/` | the mouse cursor and the blocker-list icons: Phosphor files copied unchanged by `bun tools/site-icons.ts` (no hand-written SVG; CI checks it) | +| `music.js` | music (F minor: tense intro, silence for the typed command, the groove from Enter, a calm bar under Submit, the logo hit) and sound design: mail blips, key clicks, a whoosh into every whip / mask / zoom, a hit on every cut, ticks on findings, rising chimes on fixes | +| `render.ts` | frames at 60 fps blended to 30 fps (motion blur) -> ffmpeg (H.264 high, yuv420p), sound -> loudnorm (-14 LUFS, -1.5 dBTP), mux, posters, the 1280x720 web version | +| `icons/` | the mouse cursor and the UI icons: Phosphor files copied unchanged by `bun tools/site-icons.ts` (no hand-written SVG; CI checks it) | | `poster.jpg` | end card still (1920x1080, small) | -The terminal text is modelled on real storebound output for the demo game (`examples/demo-game`, placeholder ids, -dry runs); the price table values are illustrative. The store art is the demo game's real renders. The desktop scene -shows real frames of the desktop app on its fixture data in a CSS window; only the confirm dialog is drawn (in the app it -is a native OS dialog), with the app's own wording and the dry run of the diff in the frame behind it. +The scan text is the real `storebound scan` output of `tests/fixtures/scan/teaser` (five classic App Review +rejections) and, after the fixes, of `tests/fixtures/scan/teaser-fixed`; `tests/teaser.test.ts` runs both scans and +checks every line the video shows, the beat grid, the caption lengths (at most 7 words) and holds (at least 1.2 s), and +that every scene holds at least 2.5 s. Each fix line shows a verbatim piece of the real fix. The mail list is fictional: +no real names or addresses, no mail-app branding. The desktop scenes are real frames of the app on its fixture data; +the "after" Checks frame is the same tab with the fixture's scan answering no findings. ## Render Needs Bun, ffmpeg and Playwright (repo devDependency; Playwright's Chromium or an installed Google Chrome). ```sh -# optional, for sharp store art: the demo renders (otherwise crops of docs/img/showcase.jpg are used) +# optional, for the real screenshot wall: the demo renders (otherwise crops of docs/img/showcase.jpg are used) cd examples/demo-game && bun serve.ts & bun ../../cli/index.ts shots capture && bun ../../cli/index.ts shots fonts && bun ../../cli/index.ts shots render # from the repo root -bun media/teaser/render.ts # both formats + music, about 12 min (captures out/desktop/ first when missing) +bun media/teaser/render.ts # both formats, sound, posters, web version: about 15 min bun media/teaser/render.ts --desktop # capture the desktop app frames again (after a UI change) -bun media/teaser/render.ts --only v # vertical only (h = horizontal) +bun media/teaser/render.ts --only v # vertical only (h = horizontal; the web version is made from h) bun media/teaser/render.ts --stills 2,12.5,30 # PNG stills in out/stills for a quick layout check bun media/teaser/render.ts --serve --port 8750 # live preview: /index.html?w=1080&h=1920&play=1 (or &t=12.5) ``` Outputs (gitignored) in `media/teaser/out/`: `teaser-1080x1920.mp4` (X / TikTok / Reels), `teaser-1920x1080.mp4` -(X / YouTube), `-silent` variants, `poster-*.jpg`, `music.wav`. +(X / YouTube), `teaser-web.mp4` (1280x720, about 3.5 MB, for the site) with `poster-web.jpg`, `-silent` variants, +`poster-*.jpg`, `music.wav`. -Vertical layout keeps captions and key text inside the central 80% and leaves the bottom ~22% free for app overlays. +The vertical layout keeps captions inside the centre 80% and the bottom ~22% free of key text for app overlays. diff --git a/media/teaser/desktop.ts b/media/teaser/desktop.ts index 860d4513..1a5883c5 100644 --- a/media/teaser/desktop.ts +++ b/media/teaser/desktop.ts @@ -1,7 +1,14 @@ #!/usr/bin/env bun -// Real desktop-app frames for the teaser's desktop scene: the Vite dev server of apps/desktop in fixture mode -// (VITE_FIXTURES=1: example.com-style fixture data, no Tauri, no store accounts), captured headlessly, dark theme. -// Writes media/teaser/out/desktop/*.jpg plus boxes.json (where the cursor goes, as fractions of the frame). +// Real desktop-app frames for the teaser's three desktop scenes: the Vite dev server of apps/desktop in fixture mode +// (VITE_FIXTURES=1: example.com-style fixture data, no Tauri, no store accounts), captured headlessly, dark theme, +// with the two dev-build markers hidden (they are not in a release build). +// Writes media/teaser/out/desktop/*.jpg plus boxes.json (cursor and callout targets, as fractions of the frame). +// portfolio.jpg Portfolio: every app of every studio, grouped by studio +// releases.jpg Prism Puddle's release timeline, both stores rolling out at 20% +// releases-empty.jpg the same frame with the rollout bars' fill and "20%" hidden (the video fills the bar) +// checks.jpg the Checks tab: the "Rejection risks" card with its findings +// checks-clean.jpg the same tab after the fixes: the fixture's scan answer with no findings (the app's own +// "No rejection risks found" state; the fixture module is served with an empty findings list) // render.ts runs it when out/desktop/ is missing; run it by hand after a UI change: bun media/teaser/desktop.ts import { mkdirSync, writeFileSync } from 'node:fs'; import { join } from 'node:path'; @@ -29,65 +36,80 @@ export async function captureDesktop(): Promise { await Bun.sleep(250); } const browser = await launch(ROOT, { headless: true }); - const ctx = await browser.newContext({ viewport: VIEW, deviceScaleFactor: 2, colorScheme: 'dark', reducedMotion: 'reduce' }); - const page = await ctx.newPage(); - const errors: string[] = []; - page.on('pageerror', (e: unknown) => errors.push(String(e))); const boxes: Record = {}; - const box = async (name: string, loc: any): Promise => { + const errors: string[] = []; + + const session = async (clean: boolean) => { + const ctx = await browser.newContext({ viewport: VIEW, deviceScaleFactor: 2, colorScheme: 'dark', reducedMotion: 'reduce' }); + if (clean) { + // after the fixes: the fixture's scan of Prism Puddle answers with no findings (the UI is unchanged) + await ctx.route(/\/src\/dev\/fixtures\.ts/, async (route: any) => { + const res = await route.fetch(); + const src = await res.text(); + const body = src.replace(/findings:\s*SCAN_PRISM,\s*counts:\s*scanCounts\(SCAN_PRISM\)/, 'findings: [], counts: scanCounts([])'); + if (body === src) errors.push('fixtures.ts: the Prism Puddle scan entry moved (desktop.ts clean capture)'); + await route.fulfill({ response: res, body }); + }); + } + const page = await ctx.newPage(); + page.on('pageerror', (e: unknown) => errors.push(String(e))); + return { ctx, page }; + }; + const open = async (page: any, start: string): Promise => { + await page.goto(`${base}/?start=${encodeURIComponent(start)}&theme=dark&lang=en`); + await page.waitForLoadState('networkidle'); + await page.addStyleTag({ content: '.brand small, .dev-pill { display: none !important; }' }); + await page.waitForTimeout(1200); + }; + const box = async (page: any, name: string, loc: any): Promise => { const b = await loc.first().boundingBox(); if (!b) throw new Error(`no box for ${name}`); boxes[name] = { x: b.x / VIEW.width, y: b.y / VIEW.height, w: b.width / VIEW.width, h: b.height / VIEW.height }; }; - const open = async (start: string): Promise => { - await page.goto(`${base}/?start=${encodeURIComponent(start)}&theme=dark&lang=en`); - await page.waitForLoadState('networkidle'); - // the two dev-build markers ("DEV" by the name, the "DEV FIXTURES" pill) are not in a release build - await page.addStyleTag({ content: '.brand small, .dev-pill { display: none !important; }' }); - await page.waitForTimeout(900); - }; - const shot = async (name: string): Promise => { + const shot = async (page: any, name: string): Promise => { await page.mouse.move(VIEW.width - 2, VIEW.height - 2); - await page.waitForTimeout(150); - await page.screenshot({ path: join(OUT, `${name}.jpg`), type: 'jpeg', quality: 92 }); + await page.waitForTimeout(200); + await page.screenshot({ path: join(OUT, `${name}.jpg`), type: 'jpeg', quality: 93 }); }; - await open('portfolio'); - await shot('portfolio'); + const a = await session(false); + await open(a.page, 'portfolio'); + await box(a.page, 'studios', a.page.locator('.fchips')); + await box(a.page, 'table', a.page.locator('table').first()); + await shot(a.page, 'portfolio'); - await open('app:releases'); - await box('console', page.getByRole('button', { name: /App Store Connect/ })); - await shot('releases'); - - await open('app:growth'); - const chart = page.locator('#tabpanel .lchart-plot').first(); - await box('chart', chart); - await shot('growth'); - const c = boxes.chart!; - const hx = (c.x + c.w * 0.68) * VIEW.width, hy = (c.y + c.h * 0.5) * VIEW.height; - await page.mouse.move(hx, hy, { steps: 4 }); - await page.waitForTimeout(400); - boxes.hover = { x: hx / VIEW.width, y: hy / VIEW.height, w: 0, h: 0 }; - await page.screenshot({ path: join(OUT, 'growth-hover.jpg'), type: 'jpeg', quality: 92 }); - - await open('palette'); - await shot('palette'); - - await open('app:prices'); - await page.getByRole('button', { name: /Compare store\/prices.csv/ }).click(); - await page.waitForTimeout(5200); // the "compared" result toast closes by itself after 4.5 s - await page.getByText(/against the stores/).first().evaluate((el: HTMLElement) => { + await open(a.page, 'app:releases'); + // the release timeline (both stores, rollout bars) at the top of the frame + await a.page.locator('.tl-lane').first().evaluate((el: HTMLElement) => { el.scrollIntoView({ block: 'start' }); - document.getElementById('content')?.scrollBy({ top: -24 }); + document.getElementById('content')?.scrollBy({ top: -150 }); }); - await page.waitForTimeout(300); - await box('apply', page.getByRole('button', { name: /^Apply \d+ changes/ })); - await shot('prices-diff'); + await a.page.waitForTimeout(300); + await box(a.page, 'roll', a.page.locator('.tl-roll').first()); + await box(a.page, 'roll2', a.page.locator('.tl-roll').nth(1)); + await box(a.page, 'timeline', a.page.locator('.tl-lane').first()); + await shot(a.page, 'releases'); + await a.page.addStyleTag({ content: '.tl-roll .rbar rect:not(.track) { display: none !important; } .tl-roll .pct { visibility: hidden !important; }' }); + await a.page.waitForTimeout(150); + await shot(a.page, 'releases-empty'); + + await open(a.page, 'app:checks'); + await box(a.page, 'scan', a.page.locator('.card').first()); + await box(a.page, 'finding', a.page.locator('.card').first().locator('.li').first()); + await box(a.page, 'scanAgain', a.page.locator('.card').first().locator('.btn').first()); + await shot(a.page, 'checks'); + await a.ctx.close(); + + const b = await session(true); + await open(b.page, 'app:checks'); + await box(b.page, 'scanClean', b.page.locator('.card').first()); + await shot(b.page, 'checks-clean'); + await b.ctx.close(); writeFileSync(join(OUT, 'boxes.json'), `${JSON.stringify(boxes, null, 1)}\n`); await browser.close(); if (errors.length) throw new Error(`page errors:\n ${[...new Set(errors)].join('\n ')}`); - log(`6 frames + boxes.json -> ${OUT}`); + log(`5 frames + boxes.json -> ${OUT}`); } finally { vite.kill(); } diff --git a/media/teaser/icons/arrow-right-bold.svg b/media/teaser/icons/arrow-right-bold.svg deleted file mode 100644 index f7bab32e..00000000 --- a/media/teaser/icons/arrow-right-bold.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/media/teaser/icons/check-circle-fill.svg b/media/teaser/icons/check-circle-fill.svg new file mode 100644 index 00000000..ee1317cf --- /dev/null +++ b/media/teaser/icons/check-circle-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/media/teaser/icons/magnifying-glass-bold.svg b/media/teaser/icons/magnifying-glass-bold.svg new file mode 100644 index 00000000..0a90a2fb --- /dev/null +++ b/media/teaser/icons/magnifying-glass-bold.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/media/teaser/icons/paper-plane-tilt-fill.svg b/media/teaser/icons/paper-plane-tilt-fill.svg new file mode 100644 index 00000000..c0381c08 --- /dev/null +++ b/media/teaser/icons/paper-plane-tilt-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/media/teaser/icons/pencil-simple-bold.svg b/media/teaser/icons/pencil-simple-bold.svg new file mode 100644 index 00000000..83e2db01 --- /dev/null +++ b/media/teaser/icons/pencil-simple-bold.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/media/teaser/icons/terminal-window-bold.svg b/media/teaser/icons/terminal-window-bold.svg new file mode 100644 index 00000000..5309a417 --- /dev/null +++ b/media/teaser/icons/terminal-window-bold.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/media/teaser/icons/tray-bold.svg b/media/teaser/icons/tray-bold.svg new file mode 100644 index 00000000..1f544bf6 --- /dev/null +++ b/media/teaser/icons/tray-bold.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/media/teaser/icons/user-bold.svg b/media/teaser/icons/user-bold.svg deleted file mode 100644 index 0adad1ad..00000000 --- a/media/teaser/icons/user-bold.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/media/teaser/icons/warning-octagon-fill.svg b/media/teaser/icons/warning-octagon-fill.svg new file mode 100644 index 00000000..b93dce1e --- /dev/null +++ b/media/teaser/icons/warning-octagon-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/media/teaser/icons/x-circle-fill.svg b/media/teaser/icons/x-circle-fill.svg new file mode 100644 index 00000000..7952fafa --- /dev/null +++ b/media/teaser/icons/x-circle-fill.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/media/teaser/index.html b/media/teaser/index.html index c27658f2..c476e2f0 100644 --- a/media/teaser/index.html +++ b/media/teaser/index.html @@ -6,268 +6,268 @@ storebound teaser

-
+
-
-
- your AI agentprism-puddle · scripted demo
-
-
- -
-

Regional prices API

-

USD base · Play converts per region · your overrides

-
regioncurremove_adsdrops_500
-
-
- -
-

Store listings API0/14

-

title · short + full description · keywords · per language

-
-
- -
-

Store questionnaires

-

API where the stores have one · a skill where they do not

-
-
- -
-
- -
- -
-
storebound
-
-
- Owner action: Apply the price sheet -

Apply the price sheet · Prism Puddle

-

This is your decision: it changes what users get on the store right away. storebound does it only because you press the button below.

-

-          
CancelYes: Apply the price sheet
-
-
+
+
+
Inbox3
+
Flagged
Sent
Drafts
Archive
-
- - +
+

Inbox

0 new +
+
+
+
+ +
+ +
+
+
+
5
rejection risks
+
+ +
+
0 store screenshots
+
$ storebound shots render
-
-
storebound never presses Submit.
-
Submit for review
-
your click.YOU
-
Play: Send changes for review · App Store: Submit for Review
+
+
storebound scandeclarations proposal
+
Data safetyGoogle Play
+
0 answers
- -
- storebound logo +
+
+
+ +
+
Submit for Review
+
+ +
+
storebound
-
From zero to “Submit for review”
on Google Play and the App Store.
storebound.dev
-
open source · MIT
-
Desktop app for macOS, Windows, Linux
-
$bunx storebound init
-
+
Open source · macOS · Windows · Linux
+
+
+ + +
+
diff --git a/media/teaser/music.js b/media/teaser/music.js index e605dd48..355f386f 100644 --- a/media/teaser/music.js +++ b/media/teaser/music.js @@ -1,8 +1,10 @@ -// Original teaser music, synthesized from nothing with the Web Audio API (OfflineAudioContext): no samples, no -// downloaded audio. 128 BPM, F minor, tight 16th arpeggio, kick / hats / clap, offbeat bass, a pad, impacts on every -// scene cut (script.js CUTS), key clicks on every typed character, a riser into the end card. Deterministic (seeded). +// Original teaser music and sound design, synthesized from nothing with the Web Audio API (OfflineAudioContext): no +// samples, no downloaded audio. 128 BPM, F minor: a tense intro under the inbox, a hard cut to near silence for the +// typed command, the groove from the Enter key on, a calm bar under the Submit button, the hit on the logo. On top: +// mail blips, key clicks, a whoosh into every whip / mask / zoom and a hit on every cut (script.js CUTS), ticks on +// every finding, rising chimes on every fix, ticks for the screenshot wall and the Data safety rows. Deterministic. // renderWav() returns a 32-bit float stereo WAV (48 kHz) as base64; render.ts masters it with ffmpeg loudnorm. -import { BAR, BEAT, CUTS, DURATION, keyTimes, scene } from './script.js'; +import { B, BAR, BEAT, CUTS, DESKTOP, DURATION, ENTER_AT, keyTimes, scene, TICKS } from './script.js'; const SR = 48000; const midi = m => 440 * Math.pow(2, (m - 69) / 12); @@ -13,9 +15,8 @@ function rng(seed) { // mulberry32 // chords per bar (root midi in octave 3, intervals) const CH = { Fm: [53, [0, 3, 7]], Db: [49, [0, 4, 7]], Ab: [56, [0, 4, 7]], Eb: [51, [0, 4, 7]] }; -// prompt · config · prices · languages · questionnaires · shots · validate · desktop · submit · brand (script.js SCENES) -const BARS = ['Ab', 'Eb', 'Fm', 'Db', 'Ab', 'Eb', 'Fm', 'Db', 'Ab', 'Eb', 'Fm', 'Db', 'Ab', 'Eb', 'Fm', - 'Db', 'Ab', 'Eb', 'Fm', 'Eb', 'Eb', 'Db', 'Eb', 'Fm', 'Eb', 'Fm']; +// 18 bars: hook (0-1) · command + scan (1-5) · fixed, shots, decl (6-10) · desktop (10-14) · submit (15-16) · brand (16-17) +const BARS = ['Fm', 'Db', 'Fm', 'Db', 'Ab', 'Eb', 'Fm', 'Db', 'Ab', 'Eb', 'Fm', 'Db', 'Ab', 'Eb', 'Fm', 'Db', 'Eb', 'Fm']; const ARP = [0, 2, 4, 3, 5, 4, 2, 3, 0, 2, 4, 6, 5, 4, 3, 2]; export async function renderMusic() { @@ -54,25 +55,56 @@ export async function renderMusic() { } const arpVerb = ctx.createGain(); arpVerb.gain.value = 0.18; arpLP.connect(arpVerb); arpVerb.connect(verbIn); - // arp filter: closed intro, open drop, wide on the riser, dark under the Submit card, bright on the brand + // arp filter: closed under the inbox, open from the Enter key, wide into the Submit card, dark under it, bright on the logo const f = arpLP.frequency; - const at = s => scene(s).start; - f.setValueAtTime(420, 0); - f.exponentialRampToValueAtTime(2400, at('config') - 0.02); - f.setValueAtTime(3000, at('config')); - f.linearRampToValueAtTime(3400, at('submit') - BAR); - f.exponentialRampToValueAtTime(7000, at('submit') - 0.01); - f.setValueAtTime(900, at('submit')); - f.exponentialRampToValueAtTime(1800, at('brand') - 0.01); - f.setValueAtTime(4200, at('brand')); - f.setValueAtTime(4200, at('brand') + BAR * 2); - f.exponentialRampToValueAtTime(800, DURATION); + const sub = scene('submit').start, brand = scene('brand').start; + f.setValueAtTime(380, 0); + f.exponentialRampToValueAtTime(900, B(7) - 0.01); + f.setValueAtTime(2600, ENTER_AT); + f.linearRampToValueAtTime(3400, sub - BAR); + f.exponentialRampToValueAtTime(7000, sub - 0.01); + f.setValueAtTime(900, sub); + f.exponentialRampToValueAtTime(1800, brand - 0.01); + f.setValueAtTime(4200, brand); + f.exponentialRampToValueAtTime(900, DURATION); const env = (g, t, a, peak, d, end = 0.0005) => { g.gain.setValueAtTime(0, t); g.gain.linearRampToValueAtTime(peak, t + a); g.gain.exponentialRampToValueAtTime(end, t + a + d); }; const noiseSrc = (t, dur, off = R() * 1.5) => { const s = ctx.createBufferSource(); s.buffer = noise; s.start(t, off, dur); return s; }; + // sound effects bus (balanced under the music, before the master compressor) + const sfx = ctx.createGain(); sfx.gain.value = 0.85; sfx.connect(master); + const sfxVerb = ctx.createGain(); sfxVerb.gain.value = 0.35; sfxVerb.connect(verbIn); + function blip(t, m, g, len = 0.18, type = 'sine', pan = 0) { + const o = ctx.createOscillator(); o.type = type; o.frequency.value = midi(m); + const p = ctx.createStereoPanner(); p.pan.value = pan; + const v = ctx.createGain(); env(v, t, 0.003, g, len); o.connect(v); v.connect(p); p.connect(sfx); p.connect(sfxVerb); + o.start(t); o.stop(t + len + 0.05); + } + /** A mail arriving: a soft two-tone notification blip and a short swish. */ + function mail(t) { blip(t, 84, 0.12, 0.16); blip(t + 0.075, 91, 0.1, 0.3); whoosh(t - 0.12, 0.14, 0.08, 1200, 6000); } + /** A finding landing: a low, slightly sour thud with a click on top. */ + function bad(t) { + blip(t, 41, 0.3, 0.28, 'triangle'); blip(t, 47, 0.12, 0.2, 'square'); + const n = noiseSrc(t, 0.03); const hp = ctx.createBiquadFilter(); hp.type = 'highpass'; hp.frequency.value = 2500; + const v = ctx.createGain(); env(v, t, 0.001, 0.25, 0.03); n.connect(hp); hp.connect(v); v.connect(sfx); + } + /** A fix: rising bell chimes (Ab major pentatonic), the fifth one brighter. */ + const GOOD = [68, 70, 72, 75, 80]; + function good(t, i) { blip(t, GOOD[i], 0.13, 0.5, 'sine', -0.3 + i * 0.15); blip(t, GOOD[i] + 12, 0.05, 0.35, 'triangle', 0.2); if (i === 4) { blip(t + 0.09, 84, 0.1, 0.8); blip(t + 0.09, 87, 0.07, 0.8); } } + /** A small UI pop (callouts). */ + function pop(t) { const o = ctx.createOscillator(); o.type = 'sine'; o.frequency.setValueAtTime(520, t); o.frequency.exponentialRampToValueAtTime(1300, t + 0.07); + const v = ctx.createGain(); env(v, t, 0.002, 0.14, 0.09); o.connect(v); v.connect(sfx); o.start(t); o.stop(t + 0.15); } + /** A tick (screenshot tiles, checkboxes). */ + function tick(t, g = 0.08, f0 = 3200) { const n = noiseSrc(t, 0.015); const bp = ctx.createBiquadFilter(); bp.type = 'bandpass'; bp.frequency.value = f0; bp.Q.value = 4; + const v = ctx.createGain(); env(v, t, 0.0006, g, 0.012); n.connect(bp); bp.connect(v); v.connect(sfx); } + /** A mouse click. */ + function click(t) { tick(t, 0.22, 2400); tick(t + 0.055, 0.12, 1800); } + /** A sub drop for the hard cut. */ + function thud(t, g = 0.7) { const o = ctx.createOscillator(); o.type = 'sine'; o.frequency.setValueAtTime(70, t); o.frequency.exponentialRampToValueAtTime(30, t + 0.6); + const v = ctx.createGain(); env(v, t, 0.004, g, 0.7); o.connect(v); v.connect(master); o.start(t); o.stop(t + 0.8); } + // ---- voices ---- function kick(t, g = 1) { const o = ctx.createOscillator(); o.type = 'sine'; @@ -167,57 +199,83 @@ export async function renderMusic() { const v = ctx.createGain(); env(v, t, 0.0008, g * (0.7 + R() * 0.6), 0.012); n.connect(bp); bp.connect(v); v.connect(p); p.connect(master); } - // ---- arrangement ---- - const sub = scene('submit').start, brand = scene('brand').start, drop = scene('config').start; - const rollBar = scene('submit').start - BAR; // last bar before the Submit card + // ---- arrangement ---- + const cut = scene('scan').start; // the hook's hard cut to black + const drop = ENTER_AT; // the Enter key: the groove starts + const roll = sub - BAR; // the bar before the Submit card + const music = ctx.createGain(); music.gain.value = 1; // the arrangement's gain: silent for the typed command + duck.disconnect(); duck.connect(music); drums.disconnect(); drums.connect(music); music.connect(master); + music.gain.setValueAtTime(1, 0); music.gain.setValueAtTime(1, cut - 0.01); music.gain.linearRampToValueAtTime(0.0, cut + 0.005); + music.gain.setValueAtTime(0.0, drop - 0.02); music.gain.linearRampToValueAtTime(1, drop); duck.gain.setValueAtTime(1, 0); const last = BARS.length - 1; for (let b = 0; b <= last; b++) { const t0 = b * BAR, name = BARS[b], [root, iv] = CH[name]; const tones = [0, iv[1], iv[2], 12, 12 + iv[1], 12 + iv[2], 24].map(x => root + 12 + x); - const main = t0 >= drop && t0 < sub, end = b === last, calm = t0 >= sub && t0 < brand; - const groove = main || (t0 >= brand && !end); - // pad - if (!end) pad(t0, BAR, [root, root + iv[1], root + iv[2], root + 12], calm ? 0.06 : t0 < drop ? 0.045 : 0.035, calm ? 1100 : 1500); + const calmBar = t0 >= sub && t0 < brand, end = b === last, intro = t0 < cut; + if (!end) pad(t0, BAR, [root, root + iv[1], root + iv[2], root + 12], calmBar ? 0.06 : intro ? 0.05 : 0.035, calmBar ? 1100 : intro ? 900 : 1500); + else pad(t0, BAR * 0.9, [root, root + iv[1], root + iv[2], root + 12], 0.05, 1600); for (let s = 0; s < 16; s++) { const t = t0 + s * BEAT / 4; - const beat = s % 4 === 0, off = s % 4 === 2; - const cutDrums = t0 === rollBar && s >= 8; // drums drop out for the last half bar of the riser - // arp + const beat = s % 4 === 0, off = s % 4 === 2, calm = t >= sub && t < brand; + const groove = t >= drop - 0.001 && t < sub && !(t >= roll + BAR / 2); if (!end) { - if (calm) { if (s % 2 === 0) arpNote(t, tones[ARP[s]] ?? root, 0.09, 0.3); } - else arpNote(t, tones[ARP[s]] ?? root, t0 < drop ? 0.08 : 0.11, 0.16); + if (calm) { if (s % 2 === 0) arpNote(t, tones[ARP[s]] ?? root, 0.08, 0.3); } + else if (t < cut) arpNote(t, tones[ARP[s]] ?? root, 0.07, 0.14); + else if (t >= drop) arpNote(t, tones[ARP[s]] ?? root, 0.1, 0.16); } - if (groove && !cutDrums) { + if (intro && s % 2 === 0) hat(t, s % 4 === 0 ? 0.05 : 0.025, 0.1); + if (intro && beat) { const o = ctx.createOscillator(); o.type = 'sine'; o.frequency.setValueAtTime(58, t); o.frequency.exponentialRampToValueAtTime(40, t + 0.2); + const v = ctx.createGain(); env(v, t, 0.004, 0.35, 0.3); o.connect(v); v.connect(drums); o.start(t); o.stop(t + 0.4); } + if (groove) { if (beat) kick(t); - if (off) { hat(t, 0.14, 0.2); bass(t, root - 12); } - else if (!beat) hat(t, 0.045, -0.2); - if (t0 >= drop + BAR * 2 && (s === 4 || s === 12)) clap(t); + if (off) { hat(t, 0.13, 0.2); bass(t, root - 12); } else if (!beat) hat(t, 0.04, -0.2); + if (t >= drop + BAR && (s === 4 || s === 12)) clap(t, 0.32); } - if (calm && off) hat(t, 0.05, 0.15); - if (b === 1 && s >= 8 && s % 2 === 0) hat(t, 0.02 + 0.06 * (s - 8) / 8, 0); // intro tick-in + if (calm && off) hat(t, 0.045, 0.15); } } // snare roll + riser into the Submit card - for (let i = 0; i < 8; i++) snare(rollBar + i * BEAT / 4, 0.04 + 0.1 * i / 7); - for (let i = 0; i < 16; i++) snare(rollBar + BAR / 2 + i * BEAT / 8, 0.14 + 0.18 * i / 15); - riser(rollBar, BAR); - riser(brand - BAR / 2, BAR / 2, 0.05); - whoosh(drop - BAR / 2, BAR / 2, 0.25); - // hits on the cuts + for (let i = 0; i < 8; i++) snare(roll + i * BEAT / 4, 0.04 + 0.09 * i / 7); + for (let i = 0; i < 16; i++) snare(roll + BAR / 2 + i * BEAT / 8, 0.12 + 0.16 * i / 15); + riser(roll, BAR, 0.06); + riser(brand - BAR / 2, BAR / 2, 0.045); + + // ---- sound design on the cuts ---- + // the hook: mails, then the two slams; the hard cut drops to silence with a sub thud + for (const t of TICKS.filter(x => x.kind === 'mail').map(x => x.t)) mail(t); + impact(B(3), true); stab(B(3), 'Db', 0.07); snare(B(3), 0.3); + impact(B(4), true); stab(B(4), 'Fm', 0.09); kick(B(4), 1); clap(B(4), 0.4); + riser(B(5), B(2) - 0.02, 0.035); + thud(cut, 0.55); + // the Enter key + click(drop - 0.01); impact(drop, true); stab(drop, 'Fm', 0.07); + // every later cut: a whoosh into it and a hit on it for (const c of CUTS) { - const big = c === sub || c === brand; - if (!big && c !== drop) whoosh(c - 0.32, 0.32, 0.16, 800, 6000); - impact(c, big || c === drop); + if (c.kind === 'hard' || c.t === drop) continue; + const big = c.id === 'submit' || c.id === 'brand'; + if (c.kind.startsWith('whip')) whoosh(c.t - 0.3, 0.32, 0.2, 700, 7500); + else if (c.kind === 'iris' || c.kind === 'wipe') whoosh(c.t - 0.22, 0.42, 0.14, 300, 3500); + else if (c.kind === 'zoom') whoosh(c.t - 0.36, 0.36, 0.22, 400, 9000); + impact(c.t, big); } - stab(drop, 'Fm', 0.06); - stab(sub, 'Db', 0.1); - stab(brand, 'Fm', 0.1); - stab(last * BAR, 'Fm', 0.11); - impact(last * BAR, true); - kick(last * BAR, 1); - // key clicks - for (const t of keyTimes()) key(t, t < drop ? 0.16 : 0.07); + stab(sub, 'Db', 0.09); + stab(brand, 'Fm', 0.1); kick(brand, 1); + // ticks: SDKs and the risks line (soft), findings (bad), fixes (good), callouts (pop) + for (const x of TICKS) { + if (x.kind === 'soft') tick(x.t, 0.12, 2600); + else if (x.kind === 'bad') bad(x.t); + else if (x.kind === 'good') good(x.t, x.step); + else if (x.kind === 'pop') pop(x.t); + } + // the screenshot wall (tiles pop for 1.5 s) and the Data safety rows + const shots = scene('shots').start, decl = scene('decl').start; + for (let i = 0; i < 26; i++) tick(shots + 0.14 + i * 0.058, 0.05 + 0.03 * Math.sin(i), 2800 + (i % 5) * 300); + for (let i = 0; i < 7; i++) { tick(decl + 0.95 + i * 0.16, 0.12, 2000); blip(decl + 0.95 + i * 0.16, 79 + (i % 3) * 2, 0.035, 0.08); } + // the mouse click on "Scan again" in the desktop Checks tab + click(scene('desk3').start + DESKTOP.desk3.cursor[1][0] + 0.02); + // key clicks: the typed command loud (the only sound there), the re-scan softer + for (const t of keyTimes()) key(t, t < drop ? 0.24 : 0.08); const buf = await ctx.startRendering(); const n = Math.round(DURATION * SR); diff --git a/media/teaser/render.ts b/media/teaser/render.ts index fe946f0b..bb2b5553 100644 --- a/media/teaser/render.ts +++ b/media/teaser/render.ts @@ -1,13 +1,14 @@ #!/usr/bin/env bun // Renders the storebound teaser: frames from index.html (Playwright, headless Chrome) piped into ffmpeg, plus the -// original music (music.js, OfflineAudioContext in the same browser), mastered to about -14 LUFS. -// bun media/teaser/render.ts both formats, music, posters -> media/teaser/out/ -// bun media/teaser/render.ts --only v vertical only (v = 1080x1920, h = 1920x1080) +// original music and sound design (music.js, OfflineAudioContext in the same browser), mastered to about -14 LUFS. +// Frames are captured at 60 fps and blended in pairs down to 30 fps (a 180° shutter), so fast moves get real motion blur. +// bun media/teaser/render.ts both formats, sound, posters, web version -> media/teaser/out/ +// bun media/teaser/render.ts --only v vertical only (v = 1080x1920, h = 1920x1080; the web version needs h) // bun media/teaser/render.ts --stills 1,9.5,30 PNG stills only (out/stills/), quick layout check // bun media/teaser/render.ts --desktop capture the desktop app frames again first (desktop.ts) // bun media/teaser/render.ts --serve preview server: open /index.html?w=1080&h=1920&play=1 // Needs ffmpeg and Playwright (devDependency; Playwright's Chromium or an installed Google Chrome). -import { existsSync, mkdirSync, statSync } from 'node:fs'; +import { existsSync, mkdirSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs'; import { join } from 'node:path'; import { launch } from '../../cli/shots/browser'; import { captureDesktop } from './desktop'; @@ -19,29 +20,38 @@ const ASSETS = join(OUT, 'assets'); const args = process.argv.slice(2); const opt = (k: string): string | undefined => { const i = args.indexOf(`--${k}`); return i >= 0 ? args[i + 1] : undefined; }; const FORMATS = [{ id: 'v', w: 1080, h: 1920 }, { id: 'h', w: 1920, h: 1080 }].filter(f => !opt('only') || opt('only') === f.id); +const CAPTURE_FPS = 60; const log = (m: string): void => console.log(`${new Date().toISOString().slice(11, 19)} [teaser] ${m}`); -function sh(cmd: string[], input?: Uint8Array): void { +function sh(cmd: string[], input?: Uint8Array): string { const r = Bun.spawnSync(cmd, { stdin: input, stdout: 'pipe', stderr: 'pipe' }); if (r.exitCode !== 0) throw new Error(`${cmd.slice(0, 3).join(' ')} failed:\n${r.stderr.toString().slice(-2000)}`); + return r.stderr.toString(); } -const ff = (...a: string[]): void => sh(['ffmpeg', '-hide_banner', '-loglevel', 'error', '-y', ...a]); +const ff = (...a: string[]): string => sh(['ffmpeg', '-hide_banner', '-loglevel', 'error', '-y', ...a]); -/** Screenshots used by the store-art scene: the demo game's real renders, or crops of docs/img/showcase.jpg. */ +/** The screenshot wall: the demo game's real store renders (4 languages, two sets), or crops of docs/img/showcase.jpg. */ function prepAssets(): void { - mkdirSync(ASSETS, { recursive: true }); - const names = ['en-01', 'en-02', 'en-03', 'en-04', 'tr-01', 'ja-01', 'ar-01']; + const dir = join(ASSETS, 'grid'); + rmSync(dir, { recursive: true, force: true }); + mkdirSync(dir, { recursive: true }); const renders = join(ROOT, 'examples/demo-game/store/renders'); - const src = (n: string): string => { const [l, k] = n.split('-'); return join(renders, l!, 'play', `${k}.png`); }; - if (names.every(n => existsSync(src(n)))) { - for (const n of names) ff('-i', src(n), '-vf', 'scale=720:1280:flags=lanczos', '-q:v', '2', join(ASSETS, `${n}.jpg`)); - log('assets: demo game renders (examples/demo-game/store/renders)'); - } else { + const files: string[] = []; + for (const set of ['', 'b/']) for (const lang of ['en', 'tr', 'ja', 'ar']) for (const n of ['01', '02', '03', '04']) { + const src = join(renders, `${set}${lang}`, 'play', `${n}.png`); + if (!existsSync(src)) continue; + const name = `${set ? 'b-' : ''}${lang}-${n}.jpg`; + ff('-i', src, '-vf', 'scale=360:640:flags=lanczos', '-q:v', '3', join(dir, name)); + files.push(name); + } + if (files.length) log(`assets: ${files.length} demo game renders (examples/demo-game/store/renders)`); + else { // showcase.jpg: 7 panes (en 01-04, tr, ja, ar hero), 263 x 571 each, 283 px apart, from (20, 20) const show = join(ROOT, 'docs/img/showcase.jpg'); - names.forEach((n, i) => ff('-i', show, '-vf', `crop=263:468:${20 + i * 283}:20,scale=720:1280:flags=lanczos`, '-q:v', '2', join(ASSETS, `${n}.jpg`))); - log('assets: demo renders not found, using crops of docs/img/showcase.jpg (run the demo\'s `shots render` for sharper art)'); + for (let i = 0; i < 7; i++) { const name = `show-${i}.jpg`; ff('-i', show, '-vf', `crop=263:468:${20 + i * 283}:20,scale=360:640:flags=lanczos`, '-q:v', '3', join(dir, name)); files.push(name); } + log('assets: demo renders not found, using crops of docs/img/showcase.jpg (run the demo\'s `shots render` for the real wall)'); } + writeFileSync(join(ASSETS, 'grid.json'), `${JSON.stringify(files)}\n`); } function serve(): ReturnType { @@ -51,7 +61,7 @@ function serve(): ReturnType { const p = decodeURIComponent(new URL(req.url).pathname).replace(/^\/+/, '') || 'index.html'; if (p.includes('..')) return new Response('no', { status: 400 }); // the logo comes from the repo's brand/ folder (tools/brand-assets.py), not a copy - const f = Bun.file(p.startsWith('brand/') ? join(DIR, '../..', p) : join(DIR, p)); + const f = Bun.file(p.startsWith('brand/') ? join(ROOT, p) : join(DIR, p)); return f.size ? new Response(f) : new Response('not found', { status: 404 }); }, }); @@ -60,7 +70,6 @@ function serve(): ReturnType { async function main(): Promise { mkdirSync(OUT, { recursive: true }); prepAssets(); - // the desktop scene's frames: the real app in fixture mode (desktop.ts); --desktop captures them again if (args.includes('--desktop') || !existsSync(join(OUT, 'desktop/boxes.json'))) await captureDesktop(); const server = serve(); const base = `http://127.0.0.1:${server.port}/index.html`; @@ -71,9 +80,11 @@ async function main(): Promise { const stills = opt('stills'); for (const f of FORMATS) { const page = await browser.newPage({ viewport: { width: f.w, height: f.h }, deviceScaleFactor: 1 }); - page.on('pageerror', (e: Error) => console.error('page error:', e.message)); + const errors: string[] = []; + page.on('pageerror', (e: Error) => errors.push(e.message)); + page.on('response', (r: any) => { if (r.status() >= 400 && !r.url().endsWith('/favicon.ico')) errors.push(`${r.status()} ${r.url()}`); }); await page.goto(`${base}?w=${f.w}&h=${f.h}`); - await page.waitForFunction('window.teaser'); // teaser.js loads out/desktop/boxes.json first + await page.waitForFunction('window.teaser', null, { timeout: 30_000 }); await page.evaluate('window.teaser.ready'); const { DURATION, FPS } = await page.evaluate('({ DURATION: teaser.DURATION, FPS: teaser.FPS })') as { DURATION: number; FPS: number }; const shot = async (t: number): Promise => { @@ -82,47 +93,50 @@ async function main(): Promise { }; if (stills) { mkdirSync(join(OUT, 'stills'), { recursive: true }); - for (const t of stills.split(',').map(Number)) { - await Bun.write(join(OUT, 'stills', `${f.id}-${t.toFixed(2)}.png`), await shot(t)); - } + for (const t of stills.split(',').map(Number)) await Bun.write(join(OUT, 'stills', `${f.id}-${t.toFixed(2)}.png`), await shot(t)); log(`${f.id}: ${stills.split(',').length} stills in out/stills`); + if (errors.length) throw new Error(`page errors:\n ${errors.join('\n ')}`); await page.close(); continue; } - const frames = Math.round(DURATION * FPS); + // 60 fps capture, then each pair of frames is averaged into one 30 fps frame (motion blur on fast moves) + const frames = Math.round(DURATION * CAPTURE_FPS); const silent = join(OUT, `teaser-${f.w}x${f.h}-silent.mp4`); - const enc = Bun.spawn(['ffmpeg', '-hide_banner', '-loglevel', 'error', '-y', '-f', 'image2pipe', '-framerate', String(FPS), '-c:v', 'png', '-i', '-', - '-c:v', 'libx264', '-profile:v', 'high', '-preset', 'slow', '-crf', '17', '-pix_fmt', 'yuv420p', '-r', String(FPS), + const enc = Bun.spawn(['ffmpeg', '-hide_banner', '-loglevel', 'error', '-y', '-f', 'image2pipe', '-framerate', String(CAPTURE_FPS), '-c:v', 'png', '-i', '-', + '-vf', `tmix=frames=2:weights='1 1',select='not(mod(n\\,2))',setpts=N/${FPS}/TB`, '-r', String(FPS), + '-c:v', 'libx264', '-profile:v', 'high', '-preset', 'slow', '-crf', '16', '-pix_fmt', 'yuv420p', '-g', String(FPS * 2), '-movflags', '+faststart', silent], { stdin: 'pipe', stdout: 'inherit', stderr: 'inherit' }); const t0 = Date.now(); for (let i = 0; i < frames; i++) { - enc.stdin.write(await shot(i / FPS)); - if (i % 60 === 0 || i === frames - 1) { + // frame i shows t = (i + 1) / 60 blended with i / 60: the pair (2k, 2k+1) becomes output frame k + enc.stdin.write(await shot(i / CAPTURE_FPS)); + if (i % 120 === 0 || i === frames - 1) { const el = (Date.now() - t0) / 1000; log(`${f.id}: frame ${i + 1}/${frames} · ${el.toFixed(0)}s · eta ${((frames - i - 1) * el / (i + 1)).toFixed(0)}s`); } } await enc.stdin.end(); if (await enc.exited !== 0) throw new Error('ffmpeg encode failed'); + if (errors.length) throw new Error(`page errors:\n ${[...new Set(errors)].join('\n ')}`); ff('-ss', String(DURATION - 0.5), '-i', silent, '-frames:v', '1', '-q:v', '3', join(OUT, `poster-${f.w}x${f.h}.jpg`)); log(`${f.id}: ${silent} (${(statSync(silent).size / 1e6).toFixed(1)} MB)`); await page.close(); } if (stills || args.includes('--no-audio')) return; - // music + // music + sound design const page = await browser.newPage(); await page.goto(base); - log('music: rendering (OfflineAudioContext)'); + log('sound: rendering (OfflineAudioContext)'); const wav = await page.evaluate(`import('./music.js').then(m => m.renderWav())`) as { base64: string; peak: number; seconds: number }; - log(`music: ${wav.seconds.toFixed(2)} s, raw peak ${wav.peak.toFixed(3)}`); + log(`sound: ${wav.seconds.toFixed(2)} s, raw peak ${wav.peak.toFixed(3)}`); const raw = join(OUT, 'music-raw.wav'), music = join(OUT, 'music.wav'); await Bun.write(raw, Buffer.from(wav.base64, 'base64')); const dur = wav.seconds; - // two-pass loudnorm to -14 LUFS / -1 dBTP, then a 2 s fade out + // two-pass loudnorm to -14 LUFS / -1.5 dBTP, then a short fade out const m = Bun.spawnSync(['ffmpeg', '-hide_banner', '-i', raw, '-af', 'loudnorm=I=-14:TP=-1.5:LRA=11:print_format=json', '-f', 'null', '-'], { stderr: 'pipe' }); const j = JSON.parse(m.stderr.toString().match(/\{[\s\S]*?\}/)![0]) as Record; - ff('-i', raw, '-af', `loudnorm=I=-14:TP=-1.5:LRA=11:measured_I=${j.input_i}:measured_TP=${j.input_tp}:measured_LRA=${j.input_lra}:measured_thresh=${j.input_thresh}:offset=${j.target_offset}:linear=true,afade=t=out:st=${(dur - 2).toFixed(2)}:d=2,aresample=48000`, + ff('-i', raw, '-af', `loudnorm=I=-14:TP=-1.5:LRA=11:measured_I=${j.input_i}:measured_TP=${j.input_tp}:measured_LRA=${j.input_lra}:measured_thresh=${j.input_thresh}:offset=${j.target_offset}:linear=true,afade=t=out:st=${(dur - 1.2).toFixed(2)}:d=1.2,aresample=48000`, '-c:a', 'pcm_s16le', '-ar', '48000', '-ac', '2', music); for (const f of FORMATS) { const silent = join(OUT, `teaser-${f.w}x${f.h}-silent.mp4`), out = join(OUT, `teaser-${f.w}x${f.h}.mp4`); @@ -130,6 +144,19 @@ async function main(): Promise { ff('-i', silent, '-i', music, '-map', '0:v', '-map', '1:a', '-c:v', 'copy', '-c:a', 'aac', '-b:a', '192k', '-ar', '48000', '-ac', '2', '-shortest', '-movflags', '+faststart', out); log(`${out} (${(statSync(out).size / 1e6).toFixed(1)} MB)`); } + + // web version for the site: 1280x720 H.264, about 3.5 MB (two-pass), plus its poster + const h = join(OUT, 'teaser-1920x1080.mp4'); + if (existsSync(h)) { + const web = join(OUT, 'teaser-web.mp4'), pass = join(OUT, 'web-pass'); + const kbps = Math.floor((3.5e6 * 8) / dur / 1000) - 96; + const common = ['-vf', 'scale=1280:720:flags=lanczos', '-c:v', 'libx264', '-profile:v', 'high', '-preset', 'slow', '-b:v', `${kbps}k`, '-maxrate', `${Math.round(kbps * 1.8)}k`, '-bufsize', `${kbps * 3}k`, '-pix_fmt', 'yuv420p', '-g', '60', '-passlogfile', pass]; + ff('-i', h, ...common, '-pass', '1', '-an', '-f', 'mp4', '/dev/null'); + ff('-i', h, ...common, '-pass', '2', '-c:a', 'aac', '-b:a', '96k', '-ac', '2', '-movflags', '+faststart', web); + for (const x of readdirSync(OUT)) if (x.startsWith('web-pass')) rmSync(join(OUT, x)); + ff('-ss', String(dur - 0.5), '-i', web, '-frames:v', '1', '-q:v', '4', join(OUT, 'poster-web.jpg')); + log(`${web} (${(statSync(web).size / 1e6).toFixed(2)} MB, ${kbps} kbps video) + poster-web.jpg`); + } } finally { await browser.close(); server.stop(true); diff --git a/media/teaser/script.js b/media/teaser/script.js index e986657a..76bec82e 100644 --- a/media/teaser/script.js +++ b/media/teaser/script.js @@ -1,166 +1,167 @@ -// Teaser timeline: the single source of truth for the picture (teaser.js) and the music (music.js). -// Everything is a pure function of time, so a frame at t always looks the same and the hits land on the cuts. -// The terminal text is scripted, modelled on real storebound output for the demo game (examples/demo-game, -// placeholder ids, dry runs). Nothing here talks to a store. +// Teaser timeline: the single source of truth for the picture (teaser.js) and the sound (music.js). +// Every frame is a pure function of time; every cut sits on a beat of the 128 BPM grid, and the sound effects (whoosh, +// tick, hit) are placed from the same numbers, so they land on the cuts. +// +// The scan text is the real `storebound scan` output of tests/fixtures/scan/teaser (before) and teaser-fixed (after +// the five fixes); tests/teaser.test.ts runs the scan and checks every line shown here against it. export const BPM = 128; -export const BEAT = 60 / BPM; // 0.46875 s -export const BAR = BEAT * 4; // 1.875 s +export const BEAT = 60 / BPM; // 0.46875 s +export const BAR = BEAT * 4; // 1.875 s export const FPS = 30; -export const BARS = 26; -export const DURATION = BARS * BAR; // 48.75 s +export const B = n => n * BEAT; // beats -> seconds +export const BEATS = 72; // 18 bars +export const DURATION = B(BEATS); // 33.75 s -/** Scenes in bars; start/end in seconds are derived below. */ -const SCENE_BARS = [ - ['prompt', 2], - ['config', 2], - ['prices', 2], - ['languages', 2], - ['questionnaires', 2], - ['shots', 3], - ['validate', 2], - ['desktop', 6], // the desktop app: real UI frames (desktop.ts), see DESKTOP below - ['submit', 2], - ['brand', 3], -]; -let acc = 0; -export const SCENES = SCENE_BARS.map(([id, bars]) => { - const s = { id, start: acc * BAR, end: (acc + bars) * BAR, bars }; - acc += bars; - return s; -}); +/** Scenes in beats (start, end). Cuts: the hook's hard cut, then whips and masks on the beat. */ +export const SCENES = [ + { id: 'hook', from: 0, to: 7, in: null }, // inbox, rejection mails stack, "Rejected. Again." + { id: 'scan', from: 7, to: 24, in: 'hard' }, // black, the terminal types `storebound scan`, the output + { id: 'fixed', from: 24, to: 30, in: 'whip-left' }, // the re-scan after the fixes: reds flip green, 0 blockers + { id: 'shots', from: 30, to: 36, in: 'iris' }, // store screenshots wall + { id: 'decl', from: 36, to: 42, in: 'whip-up' }, // declarations proposal -> Data safety answers + { id: 'desk1', from: 42, to: 48, in: 'wipe' }, // desktop: Portfolio across studios + { id: 'desk2', from: 48, to: 54, in: 'whip-left' }, // desktop: release timeline, rollout to 20% + { id: 'desk3', from: 54, to: 60, in: 'whip-left' }, // desktop: Checks, rejection risks turn green + { id: 'submit', from: 60, to: 66, in: 'zoom' }, // "It never presses Submit. You do." + { id: 'brand', from: 66, to: 72, in: 'iris' }, // logo, storebound.dev, platforms +].map(s => ({ ...s, start: B(s.from), end: B(s.to) })); export const scene = id => SCENES.find(s => s.id === id); - -export const PROMPT = 'ship Prism Puddle to Google Play and the App Store'; -export const PROMPT_AT = 0.35; // seconds -export const PROMPT_CPS = 21; // the user types -export const CMD_CPS = 62; // the agent types - -export const LANGS = ['en-US', 'tr-TR', 'de-DE', 'fr-FR', 'es-ES', 'es-419', 'it-IT', 'pt-BR', 'ja-JP', 'ko-KR', 'zh-CN', 'ru-RU', 'ar', 'hi-IN']; - -// Price rows for the flicker panel: illustrative local price points for a 2.99 / 0.99 USD pair (Play converts from -// USD per region; TR is a config override, as in templates/storebound.config.ts). -export const PRICES = [ - ['US', 'USD', '2.99', '0.99'], - ['TR', 'TRY', '99.99', '34.99'], - ['DE', 'EUR', '2.99', '0.99'], - ['GB', 'GBP', '2.79', '0.89'], - ['JP', 'JPY', '450', '150'], - ['BR', 'BRL', '14.90', '4.90'], - ['IN', 'INR', '249', '79'], - ['KR', 'KRW', '4,100', '1,300'], - ['MX', 'MXN', '59.00', '19.00'], - ['ID', 'IDR', '45,000', '15,000'], - ['SA', 'SAR', '10.99', '3.69'], - ['FR', 'EUR', '2.99', '0.99'], - ['CA', 'CAD', '3.99', '1.39'], - ['AU', 'AUD', '4.49', '1.49'], -]; - -export const BLOCKERS = [ - ['apple', 'build 12 is PROCESSING'], - ['apple', 'ja: missing keywords'], - ['apple', 'remove_ads: MISSING_METADATA'], - ['apple', 'no app price schedule'], - ['play', 'tr-TR: no listing'], - ['play', 'drops_500: not on Play'], - ['play', 'no release on any track'], -]; -export const BLOCKERS_AT = 0.45; // first blocker line, relative to the validate scene -export const BLOCKER_GAP = 0.05; -export const FIX_AT = 1.05; // first flip to ok -export const FIX_GAP = 0.26; +/** Transition length (seconds) per kind; the incoming scene starts at the cut, the outgoing one leaves before it. */ +export const TRANS = { hard: 0, 'whip-left': 0.34, 'whip-up': 0.34, iris: 0.42, wipe: 0.42, zoom: 0.36 }; /** - * Terminal lines per scene. at = seconds after the scene start. - * kind: cmd (typed by the agent), out (printed), note (agent comment), ok / bad (coloured output). + * Captions: one display font, at most 7 words. at / to in seconds (absolute). *word* = highlighted. + * Every caption holds at least 1.2 s (tests/teaser.test.ts). */ -const T = { - prompt: [ - { at: 2.85, kind: 'note', text: 'agent using storebound · dry runs first' }, - ], - config: [ - { at: 0.0, kind: 'cmd', text: 'bunx storebound init' }, - { at: 0.45, kind: 'out', text: '[init] create storebound.config.ts' }, - { at: 0.55, kind: 'out', text: '[init] create store/listing.md' }, - { at: 0.65, kind: 'out', text: '[init] create store/appstore.md' }, - { at: 0.75, kind: 'out', text: '[init] create store/declarations.md' }, - { at: 0.85, kind: 'out', text: '[init] create store/app-privacy.md' }, - { at: 0.95, kind: 'out', text: '[init] create store/privacy-policy.html' }, - { at: 1.875, kind: 'cmd', text: 'bunx storebound check' }, - { at: 2.3, kind: 'out', text: '[check] config ok: storebound.config.ts' }, - { at: 2.42, kind: 'out', text: '[check] play listing: 14 languages' }, - { at: 2.54, kind: 'out', text: '[check] appstore listing: 14 locales' }, - { at: 2.66, kind: 'out', text: '[check] data safety: 764 CSV rows' }, - { at: 2.78, kind: 'out', text: '[check] shots copy: 14 languages x 4 scenes' }, - ], - prices: [ - { at: 0.0, kind: 'cmd', text: 'bunx storebound play products --dry' }, - { at: 0.62, kind: 'out', text: '[play] 1/2 remove_ads: create · 173 regions (dry)' }, - { at: 0.9, kind: 'out', text: '[play] 2/2 drops_500: create · 173 regions (dry)' }, - { at: 1.4, kind: 'cmd', text: 'bunx storebound apple iap --dry' }, - { at: 1.95, kind: 'out', text: '[apple] 1/2 remove_ads: missing (dry)' }, - { at: 2.07, kind: 'out', text: '[apple] 2/2 drops_500: missing (dry)' }, - ], - languages: [ - { at: 0.0, kind: 'cmd', text: 'bunx storebound play listing --dry' }, - { at: 0.6, kind: 'out', text: `[play] 14 listings: ${LANGS.slice(0, 4).join(', ')} ...` }, - ...LANGS.map((l, i) => ({ at: 0.8 + i * 0.13, kind: 'out', text: `[play] ${String(i + 1).padStart(2)}/14 ${l}` })), - ], - questionnaires: [ - { at: 0.0, kind: 'cmd', text: 'bunx storebound play data-safety --dry' }, - { at: 0.62, kind: 'out', text: '[play] data safety: 6 data types declared' }, - { at: 0.95, kind: 'cmd', text: 'bunx storebound apple appinfo --dry' }, - { at: 1.55, kind: 'out', text: '[apple] categories: GAMES / GAMES_CASUAL (dry)' }, - { at: 1.67, kind: 'out', text: '[apple] age rating declaration: all NONE (dry)' }, - { at: 1.85, kind: 'note', text: '[apple] appinfo done (App Privacy is UI-only: store-declarations skill)' }, - ], - shots: [ - { at: 0.0, kind: 'cmd', text: 'bunx storebound shots render' }, - ...['play', 'tab7', 'tab10', 'ios69', 'ios65', 'ipad13', 'feature'].flatMap((d, k) => - ['en', 'tr', 'ja', 'ar'].map((l, j) => ({ at: 0.5 + (k * 4 + j) * 0.14, kind: 'out', - text: `[shots] store/renders/${l}/${d}/${d === 'feature' ? '1024x500' : '01'}.png` }))), - ], - validate: [ - { at: 0.0, kind: 'cmd', text: 'bunx storebound validate' }, - // the blocker lines are drawn by teaser.js from BLOCKERS (they change state) - ], -}; -export const TERMINAL = T; +export const CAPTIONS = [ + { id: 'rejected', at: B(3), to: B(7), lines: ['*Rejected.*', 'Again.'], hl: 'red', big: true, word: [B(3), B(4)] }, + { id: 'reads', at: B(10.5), to: B(16), lines: ['It reads', 'your project.'] }, + { id: 'finds', at: B(16), to: B(24), lines: ['Finds the rejections', 'before *Apple* does.'] }, + { id: 'fixed', at: B(24), to: B(30), lines: ['Fix it.', 'Scan *again.*'], hl: 'green' }, + { id: 'shots', at: B(30), to: B(36), lines: ['*200* store screenshots.', 'One command.'] }, + { id: 'decl', at: B(36), to: B(42), lines: ['*764* answers,', 'read from your code.'] }, + { id: 'desk1', at: B(42), to: B(48), lines: ['Every app.', 'Every *studio.*'] }, + { id: 'desk2', at: B(48), to: B(54), lines: ['Both stores.', 'One *timeline.*'] }, + { id: 'desk3', at: B(54), to: B(60), lines: ['Risks turn', '*green.*'], hl: 'green' }, + { id: 'submit', at: B(60.5), to: B(66), lines: ['It never presses *Submit.*', 'You do.'] }, +]; /** - * The desktop scene, in seconds after its start: which captured frame (out/desktop/.jpg, desktop.ts) shows, - * the camera zoom toward a point of the frame (fractions of the 1280 x 800 window), and the step label. - * The frames are the real app in fixture mode; the confirm dialog is drawn on top (the app's is a native OS dialog). + * When each caption is fully readable (every word in, before its exit), as teaser.js animates it: words pop in 0.07 s + * apart over 0.34 s (the hook's two words slam in over 0.2 s at their beats); the exit fades over the last 0.16 s + * (the hook ends on a hard cut instead). */ -export const DESKTOP = [ - { at: 0.0, frame: 'portfolio', focus: [0.42, 0.42], zoom: 1.12, step: 'Every app of every studio' }, - { at: 1.875, frame: 'releases', focus: [0.6, 0.38], zoom: 1.45, step: 'Both stores on one release track' }, - { at: 3.75, frame: 'growth', focus: 'hover', zoom: 1.5, step: 'Growth and health, charted' }, - { at: 5.625, frame: 'palette', focus: [0.25, 0.45], zoom: 1.35, step: '⌘K: jump anywhere' }, - { at: 6.8, frame: 'prices-diff', focus: 'apply', zoom: 1.4, step: 'Every write: dry run first' }, - { at: 7.95, frame: 'prices-diff', focus: 'apply', zoom: 1.4, dialog: true, step: 'Then your Apply, in a system dialog' }, - { at: 9.375, frame: 'releases', focus: [0.58, 0.22], zoom: 1.3, step: 'Submit for review stays in the console' }, -]; -/** Cursor waypoints of the desktop scene: [at, target, click]; targets name a boxes.json entry or a dialog button. */ -export const DESK_CURSOR = [ - [3.95, 'off'], [4.55, 'hover'], [6.9, 'hover'], [7.55, 'apply', true], [8.5, 'dialog-ok'], [8.75, 'dialog-ok', true], - [9.5, 'dialog-ok'], [10.25, 'console'], -]; -export const DESK_HOVER_AT = 4.6; // the chart tooltip shows (growth -> growth-hover) -export const DESK_DIALOG = [7.95, 9.0]; // the dialog is up (after the Apply click, until the Yes click) -export const DESK_LINK_AT = 10.35; // "Submit for review · your click" by the console button - -/** Seconds at which each typed character lands (for key clicks in the music). */ -export function keyTimes() { - const out = []; - for (let i = 0; i < PROMPT.length; i++) out.push(PROMPT_AT + i / PROMPT_CPS); - for (const s of SCENES) for (const l of T[s.id] ?? []) { - if (l.kind !== 'cmd') continue; - for (let i = 0; i < l.text.length; i++) out.push(s.start + l.at + i / CMD_CPS); - } - return out; +export function captionTimes() { + return CAPTIONS.map(c => { + const words = c.lines.join(' ').replace(/\*/g, ''); + const from = c.big ? c.word[c.word.length - 1] + 0.2 : c.at + 0.34 + 0.07 * (words.split(' ').length - 1); + const to = c.big ? c.to : c.to - 0.16; + return { id: c.id, words, count: words.split(' ').length, at: c.at, from, to, hold: to - from }; + }); } -/** Seconds of the scene cuts that get a hit (every scene after the first). */ -export const CUTS = SCENES.slice(1).map(s => s.start); +// ---------- hook: a generic, made-up inbox (no real product, no real names or addresses) ---------- +export const MAIL_SUBJECT = "There's an issue with your Prism Puddle submission"; +export const MAILS = [ + { at: B(0.5), date: 'Mon', guideline: 'Guideline 2.1 · Information Needed' }, + { at: B(1.25), date: 'Wed', guideline: 'Guideline 5.1.1(v) · Data Collection and Storage' }, + { at: B(2), date: '9:41 AM', guideline: 'Guideline 4.8 · Login Services' }, +]; +/** Earlier, unrelated mails under the rejections (generic, fictional). */ +export const OLD_MAILS = [ + { from: 'Team Calendar', subject: 'Sprint review moved to Thursday', preview: 'The demo slot is now 3 pm. Bring the build.', date: 'Sun' }, + { from: 'Build Server', subject: 'Prism Puddle 1.0 (12) uploaded', preview: 'Processing finished. The build is ready to submit.', date: 'Sat' }, + { from: 'Design', subject: 'Final icon + screenshots', preview: 'All sizes exported, see the shared folder.', date: 'Fri' }, +]; + +// ---------- terminal: `storebound scan` ---------- +export const CMD = 'storebound scan'; +export const TYPE_AT = B(7.6); +export const TYPE_CPS = 15; +export const ENTER_AT = B(10); + +/** Real output lines (tests/teaser.test.ts checks each against the scan of the fixture). at = seconds (absolute). */ +export const SCAN_HEAD = [ + { at: B(10.15), text: 'storebound scan · storebound.config.ts', kind: 'head' }, + { at: B(10.4), text: 'stack: iOS (native) · targets: iOS · 11 files', kind: 'dim' }, +]; +export const SDK_AT = B(11); +export const SDKS = [ + { at: B(11.5), name: 'Google AdMob', what: 'ads, tracking-capable', dep: 'CocoaPods Google-Mobile-Ads-SDK 11.10.0', where: 'Podfile.lock:2' }, + { at: B(12.25), name: 'Google Sign-In', what: 'auth', dep: 'CocoaPods GoogleSignIn 7.1.0', where: 'Podfile.lock:3' }, +]; +export const RISKS_AT = B(13.25); +export const RISKS_LINE = 'Rejection risks: 2 blocker, 3 high, 0 medium, 0 low'; +/** The five findings. fix = a verbatim fragment of the real fix (the full text is in the CLI output). */ +export const FINDINGS = [ + { at: B(14), sev: 'BLOCKER', guideline: '2.1(a)', title: 'Sign-in is required but there is no demo account for App Review', + where: 'storebound.config.ts:12', fix: 'Create a demo account that sees every feature', skill: 'review-access', short: 'Demo account for App Review' }, + { at: B(16), sev: 'BLOCKER', guideline: '5.1.1(v)', title: 'Accounts can be created but no in-app account deletion was found', + where: 'Planner/LoginView.swift:11', fix: 'Add "Delete account" in the app', skill: 'account-deletion', short: 'In-app account deletion' }, + { at: B(18), sev: 'HIGH', guideline: '4.8', title: 'Third-party login (Google / Facebook / ...) without Sign in with Apple or another equivalent login option', + where: 'Planner/LoginView.swift:9', fix: 'Offer Sign in with Apple', skill: 'review-rejections', short: 'Sign in with Apple' }, + { at: B(20), sev: 'HIGH', guideline: '3.1.1', title: 'Restorable purchases (non-consumables or subscriptions) but no Restore Purchases path was found', + where: 'storebound.config.ts:16', fix: 'Add a visible "Restore Purchases" button', skill: 'store-iap-setup', short: 'Restore Purchases' }, + { at: B(22), sev: 'HIGH', guideline: '5.1.2(i)', title: 'Tracking-capable code without App Tracking Transparency (Google AdMob, IDFA)', + where: 'Planner/Ads.swift:7', fix: 'add NSUserTrackingUsageDescription and request ATT before the SDKs start', skill: 'ads-mediation-checks', short: 'App Tracking Transparency' }, +]; + +// ---------- fixed: the re-scan of the fixed copy (tests/fixtures/scan/teaser-fixed) ---------- +export const RESCAN_CMD = 'storebound scan'; +export const RESCAN_TYPE_AT = B(24.3); +export const FLIP_AT = [B(25.5), B(26), B(26.5), B(27), B(27.5)]; // each red row turns green +export const RESCAN_LINE = 'Rejection risks: 0 blocker, 0 high, 0 medium, 0 low'; +export const RESCAN_NONE = 'none found in the project files and config'; +export const RESCAN_LINE_AT = B(28); + +// ---------- payoff ---------- +export const SHOTS_TOTAL = 200; // examples/demo-game: 4 languages x 2 sets x 25 store images (+ 8 extra) +export const SHOTS_CMD = 'storebound shots render'; +export const DECL_TOTAL = 764; // Play Data safety CSV rows built from the config (`storebound check`) +/** Real lines of the declarations proposal (scan of the teaser fixture). */ +export const DECL_LINES = [ + { area: 'Data safety', what: 'PSL_DEVICE_ID', value: 'collect: advertising, analytics, fraud', where: 'Podfile.lock:2' }, + { area: 'Data safety', what: 'PSL_APPROX_LOCATION', value: 'collect: advertising, analytics, fraud', where: 'Podfile.lock:2' }, + { area: 'Data safety', what: 'PSL_EMAIL', value: 'collect: account, functionality', where: 'Podfile.lock:3' }, + { area: 'Data safety', what: 'PSL_USER_ACCOUNT', value: 'collect: account, functionality', where: 'Podfile.lock:3' }, +]; +export const DECL_ASK = 'ask owner encryptedInTransit'; +export const DATA_SAFETY_ROWS = [ + 'Device or other IDs', 'Approximate location', 'App interactions', 'Diagnostics', 'Name', 'Email address', 'User IDs', +]; + +// ---------- desktop: real frames (desktop.ts), camera from -> to (focus as fractions of the 1280 x 800 frame) ---------- +export const DESKTOP = { + desk1: { frame: 'portfolio', from: { f: [0.5, 0.5], z: 1.0 }, to: { f: [0.62, 0.52], z: 1.12 }, + cursor: [[0.6, 'off'], [1.25, 'studios']], callout: { at: 1.35, target: 'studios', text: '3 studios · 2 stores' } }, + desk2: { frame: 'releases', empty: 'releases-empty', from: { f: [0.55, 0.5], z: 1.0 }, to: { f: [0.72, 0.62], z: 1.22 }, + cursor: [[0.5, 'off'], [1.15, 'roll']], fill: [1.1, 2.0], callout: { at: 1.3, target: 'roll', text: 'Rollout · 20%' } }, + desk3: { frame: 'checks', clean: 'checks-clean', from: { f: [0.55, 0.55], z: 1.0 }, to: { f: [0.55, 0.6], z: 1.14 }, + cursor: [[0.5, 'off'], [1.0, 'scanAgain']], flip: 1.25, callout: { at: 1.55, target: 'scanClean', text: '0 rejection risks' } }, +}; + +// ---------- end ---------- +export const SUBMIT_HOVER = B(61.5); // the cursor stops on the button, it never clicks +export const URL = 'storebound.dev'; +export const PLATFORMS = 'Open source · macOS · Windows · Linux'; + +// ---------- sound cues (music.js) ---------- +/** Every cut that gets a hit, with the kind of transition (a whoosh leads into whips, masks and zooms). */ +export const CUTS = SCENES.slice(1).map(s => ({ t: s.start, kind: s.in, id: s.id })); +/** Ticks: mails landing, findings landing, green flips, callouts. */ +export const TICKS = [ + ...MAILS.map(m => ({ t: m.at, kind: 'mail' })), + ...SDKS.map(s => ({ t: s.at, kind: 'soft' })), + { t: RISKS_AT, kind: 'soft' }, + ...FINDINGS.map(f => ({ t: f.at, kind: 'bad' })), + ...FLIP_AT.map((t, i) => ({ t, kind: 'good', step: i })), + ...Object.entries(DESKTOP).map(([id, d]) => ({ t: scene(id).start + d.callout.at, kind: 'pop' })), +]; +/** Seconds at which each typed character lands (key clicks). */ +export function keyTimes() { + const out = []; + for (let i = 0; i < CMD.length; i++) out.push(TYPE_AT + i / TYPE_CPS); + for (let i = 0; i < RESCAN_CMD.length; i++) out.push(RESCAN_TYPE_AT + i / 24); + return out; +} diff --git a/media/teaser/teaser.js b/media/teaser/teaser.js index beeca6b2..ab88ba2e 100644 --- a/media/teaser/teaser.js +++ b/media/teaser/teaser.js @@ -1,7 +1,8 @@ // Teaser picture: every element is set from the time t alone (window.teaser.seek(t)), so frames render // deterministically, in any order. URL: ?w=1080&h=1920 (or 1920x1080) · &t=12.5 to hold a frame · &play=1 to preview. -import { BAR, BEAT, BLOCKERS, BLOCKERS_AT, BLOCKER_GAP, CMD_CPS, CUTS, DESK_CURSOR, DESK_DIALOG, DESK_HOVER_AT, DESK_LINK_AT, - DESKTOP, DURATION, FIX_AT, FIX_GAP, FPS, LANGS, PRICES, PROMPT, PROMPT_AT, PROMPT_CPS, SCENES, TERMINAL, scene } from './script.js'; +import { B, BEAT, CAPTIONS, captionTimes, CMD, DATA_SAFETY_ROWS, DECL_ASK, DECL_LINES, DECL_TOTAL, DESKTOP, DURATION, ENTER_AT, FINDINGS, + FLIP_AT, FPS, MAIL_SUBJECT, MAILS, OLD_MAILS, PLATFORMS, RESCAN_CMD, RESCAN_LINE, RESCAN_LINE_AT, RESCAN_NONE, RESCAN_TYPE_AT, + RISKS_AT, RISKS_LINE, SCAN_HEAD, SCENES, SDK_AT, SDKS, SHOTS_TOTAL, SUBMIT_HOVER, TRANS, TYPE_AT, TYPE_CPS, URL, scene } from './script.js'; const q = new URLSearchParams(location.search); const W = Number(q.get('w') ?? 1080), H = Number(q.get('h') ?? 1920); @@ -13,465 +14,574 @@ document.body.classList.add(V ? 'v' : 'h'); // ---------- easing ---------- const clamp = (x, a = 0, b = 1) => Math.min(b, Math.max(a, x)); -const prog = (t, a, d) => clamp((t - a) / d); +const prog = (t, a, d) => (d <= 0 ? (t >= a ? 1 : 0) : clamp((t - a) / d)); const eoc = p => 1 - Math.pow(1 - p, 3); +const eoq = p => 1 - Math.pow(1 - p, 5); const eic = p => p * p * p; +const eio = p => (p < 0.5 ? 4 * p * p * p : 1 - Math.pow(-2 * p + 2, 3) / 2); const eob = p => { const c1 = 1.70158, c3 = c1 + 1; return 1 + c3 * Math.pow(p - 1, 3) + c1 * Math.pow(p - 1, 2); }; const lerp = (a, b, p) => a + (b - a) * p; -const esc = s => s.replace(/&/g, '&').replace(//g, '>'); -const sceneAt = t => SCENES.find(s => t >= s.start && t < s.end) ?? SCENES[SCENES.length - 1]; +const esc = s => String(s).replace(/&/g, '&').replace(//g, '>'); +const set = (el, k, v) => { if (el.__s?.[k] !== v) { (el.__s ??= {})[k] = v; el.style[k] = v; } }; +const html = (el, v) => { if (el.__h !== v) { el.__h = v; el.innerHTML = v; } }; +const decay = (t, at, d) => (t >= at && t < at + d ? 1 - (t - at) / d : 0); -// ---------- background ---------- -const g1 = $('#bg .g1'), g2 = $('#bg .g2'), g3 = $('#bg .g3'), grid = $('#bg .grid'), flash = $('#flash'); +/** Layout per format: caption band on top, content below; the bottom ~22% of the vertical frame stays calm. */ +const L = V + ? { cy: 1010, top: 520, bottom: 1490, margin: 60 } + : { cy: 675, top: 300, bottom: 1045, margin: 160 }; + +// ---------- scenes and transitions ---------- +const sceneEls = Object.fromEntries(SCENES.map(s => [s.id, $(`#s-${s.id}`)])); +const DIAG = Math.hypot(W, H); +/** Visibility, transform, clip and blur of a scene at t, from its own entry and the next scene's entry. */ +function sceneFx(i, t) { + const s = SCENES[i], next = SCENES[i + 1]; + const enter = s.in, exit = next?.in ?? null; + const lead = k => (k && k.startsWith('whip') ? 0.08 : 0); + const tail = k => (k === 'iris' || k === 'wipe' ? TRANS[k] : k && k.startsWith('whip') ? 0.08 : 0); + if (t < s.start - lead(enter) || t >= s.end + tail(exit)) return null; + let tx = 0, ty = 0, sc = 1, blur = 0, op = 1, clip = 'none', dark = 0; + // entry + if (enter === 'whip-left' || enter === 'whip-up') { + const p = prog(t, s.start - 0.08, 0.34), e = eoq(p); + if (enter === 'whip-left') tx += (1 - e) * W * 1.05; else ty += (1 - e) * H * 1.05; + blur += (1 - eoc(p)) * 26; + } else if (enter === 'iris') { + const p = prog(t, s.start, TRANS.iris); + if (p < 1) clip = `circle(${(eio(p) * DIAG * 0.55).toFixed(1)}px at 50% 50%)`; + } else if (enter === 'wipe') { + const p = prog(t, s.start, TRANS.wipe); + if (p < 1) { const sk = H * 0.35, x = lerp(-sk, W + sk, eio(p)); clip = `polygon(0 0, ${x + sk}px 0, ${x}px 100%, 0 100%)`; } + } else if (enter === 'zoom') { + const p = prog(t, s.start, TRANS.zoom); + sc *= lerp(0.8, 1, eoc(p)); op *= eoc(p); blur += (1 - p) * 12; + } + // exit + if (exit === 'whip-left' || exit === 'whip-up') { + const p = prog(t, s.end - 0.22, 0.3), e = eic(p); + if (exit === 'whip-left') tx -= e * W * 1.05; else ty -= e * H * 1.05; + blur += p * 26; + } else if (exit === 'iris' || exit === 'wipe') { + const p = prog(t, s.end - 0.1, TRANS[exit] + 0.1); + sc *= 1 + 0.07 * eio(p); dark = 0.5 * p; + } else if (exit === 'zoom') { + const p = prog(t, s.end - 0.26, 0.26); + sc *= 1 + 0.8 * eic(p); op *= 1 - eic(p); blur += eic(p) * 16; + } + return { tx, ty, sc, blur, op, clip, dark }; +} +function scenes(t) { + SCENES.forEach((s, i) => { + const el = sceneEls[s.id], fx = sceneFx(i, t); + if (!fx) { set(el, 'opacity', '0'); set(el, 'visibility', 'hidden'); return; } + set(el, 'visibility', 'visible'); + set(el, 'opacity', String(fx.op)); + set(el, 'transform', `translate(${fx.tx.toFixed(1)}px, ${fx.ty.toFixed(1)}px) scale(${fx.sc.toFixed(4)})`); + set(el, 'filter', [fx.blur > 0.3 ? `blur(${fx.blur.toFixed(1)}px)` : '', fx.dark > 0.01 ? `brightness(${(1 - fx.dark).toFixed(3)})` : ''].join(' ').trim() || 'none'); + set(el, 'clipPath', fx.clip); + }); +} +const active = t => SCENES.find(s => t >= s.start && t < s.end) ?? SCENES[SCENES.length - 1]; + +// ---------- background, flash ---------- +const g1 = $('#bg .g1'), g2 = $('#bg .g2'), g3 = $('#bg .g3'), grid = $('#bg .grid'), flash = $('#flash'), bg = $('#bg'); +const HITS = [ + { t: B(3), a: 0.5, c: '#ff3b3b' }, { t: B(4), a: 0.6, c: '#ff3b3b' }, { t: ENTER_AT, a: 0.5, c: '#ffffff' }, + ...SCENES.slice(2).map(s => ({ t: s.start, a: s.id === 'brand' ? 0.55 : 0.28, c: '#ffffff' })), + ...FINDINGS.map(f => ({ t: f.at, a: 0.18, c: '#ff3b3b' })), +]; function background(t) { + set(bg, 'opacity', t >= scene('scan').start ? '1' : '0'); let pulse = 0; - for (const c of CUTS) if (t >= c) pulse = Math.max(pulse, 1 - prog(t, c, 0.6)); - const beat = 1 - prog((t % BEAT), 0, BEAT * 0.6); - g1.style.transform = `translate(${W * 0.15 + Math.sin(t * 0.31) * 140 - 450}px, ${H * 0.28 + Math.cos(t * 0.23) * 120 - 450}px) scale(${1 + pulse * 0.18})`; - g2.style.transform = `translate(${W * 0.85 + Math.cos(t * 0.27) * 160 - 380}px, ${H * 0.72 + Math.sin(t * 0.35) * 140 - 380}px)`; - g3.style.transform = `translate(${W * 0.7 + Math.sin(t * 0.19) * 200 - 320}px, ${H * 0.1 + Math.cos(t * 0.29) * 100 - 320}px)`; - g1.style.opacity = String(0.8 + 0.2 * beat * (t > SCENES[1].start ? 1 : 0.3)); - grid.style.transform = `translate(${(t * 18) % 64}px, ${(t * 26) % 64}px)`; - let f = 0; - for (const c of CUTS) if (t >= c && t < c + 0.14) f = Math.max(f, (c === scene('brand').start || c === scene('submit').start ? 0.45 : 0.2) * (1 - (t - c) / 0.14)); - flash.style.opacity = String(f); + for (const h of HITS) pulse = Math.max(pulse, decay(t, h.t, 0.6) * h.a); + g1.style.transform = `translate(${W * 0.2 + Math.sin(t * 0.33) * 160 - 550}px, ${H * 0.3 + Math.cos(t * 0.25) * 140 - 550}px) scale(${1 + pulse * 0.3})`; + g2.style.transform = `translate(${W * 0.85 + Math.cos(t * 0.29) * 180 - 450}px, ${H * 0.75 + Math.sin(t * 0.37) * 150 - 450}px)`; + const red = t >= scene('scan').start && t < scene('fixed').start + 1.5 ? clamp((t - FINDINGS[0].at) / 1.5) * (1 - prog(t, FLIP_AT[0], 1.5)) : 0; + g3.style.background = `radial-gradient(circle, rgba(255,90,95,${(0.22 * red).toFixed(3)}), rgba(255,90,95,0) 62%)`; + g3.style.transform = `translate(${W * 0.75 - 400}px, ${H * 0.45 - 400}px)`; + grid.style.transform = `translate(${(t * 20) % 96}px, ${(t * 28) % 96}px)`; + let f = 0, c = '#fff'; + for (const h of HITS) { const v = decay(t, h.t, 0.18) * h.a; if (v > f) { f = v; c = h.c; } } + set(flash, 'opacity', f.toFixed(3)); + set(flash, 'background', c); } // ---------- captions ---------- -// lines: array of [text, at] ; words wrapped in *...* are highlighted. at = seconds after the caption start. -const CAPS = [ - { id: 'prompt', lines: [['One prompt.', 0.15], ['Two *stores.*', 1.35]] }, - { id: 'config', lines: [['One *config.*', 0.05]], sub: ['storebound.config.ts + store/*.md', 0.55] }, - { id: 'prices', lines: [['IAP *prices.*', 0.05], ['Every region.', 0.55]] }, - { id: 'languages', lines: [['Listings in', 0.05], ['*14* languages.', 0.45]] }, - { id: 'questionnaires', lines: [['Every', 0.05], ['*questionnaire.*', 0.3]], sub: ['Data safety · age rating · App Privacy', 0.9] }, - { id: 'shots', lines: [['Store art,', 0.05], ['*rendered.*', 0.4]], sub: ['real renders · Prism Puddle demo', 1.0] }, - { id: 'validate', lines: [['Blockers', 0.05], ['#count', 0.3]], sub: ['read-only check · in fix order', 0.8] }, - { id: 'desktop', lines: [['And a', 0.05], ['*desktop* app.', 0.3]], sub: ['macOS · Windows · Linux', 0.9] }, -]; -const capEl = $('#caption'); -let capId = null, capWords = [], capSub = null, capCount = null; +const capEl = $('#cap'); +let capId = null, capWords = []; function buildCaption(c) { - const base = V ? 112 : 108; - capEl.style.fontSize = `${base}px`; - capEl.innerHTML = c.lines.map(([text]) => text === '#count' - ? '7' - : `${text.split(' ').map(w => w.startsWith('*') ? `${esc(w.replace(/\*/g, ''))}` : `${esc(w)}`).join(' ')}`).join('') - + (c.sub ? `${esc(c.sub[0])}` : ''); - // fit: the widest line must fit the caption box - const avail = capEl.clientWidth; + capEl.className = [c.big ? 'big' : '', c.hl ?? ''].join(' '); + capEl.style.fontSize = ''; + const one = !V && !c.big && c.lines.join(' ').length <= 30; + const lines = one ? [c.lines.join(' ')] : c.lines; + capEl.innerHTML = lines.map(l => `${l.split(' ').map(w => `${esc(w.replace(/\*/g, ''))}`).join(' ')}`).join(''); + // fit: the widest line stays inside the centre 80% (safe area) + const avail = capEl.clientWidth, base = parseFloat(getComputedStyle(capEl).fontSize); const widest = Math.max(...[...capEl.querySelectorAll('.line')].map(l => l.scrollWidth)); if (widest > avail) capEl.style.fontSize = `${Math.floor(base * avail / widest)}px`; capWords = []; - [...capEl.querySelectorAll('.line')].forEach((l, i) => { - [...l.querySelectorAll('.w')].forEach((w, j) => capWords.push({ el: w, at: c.lines[i][1] + j * 0.07 })); - }); - capSub = c.sub ? { el: capEl.querySelector('.sub'), at: c.sub[1] } : null; - capCount = capEl.querySelector('[data-count]'); + [...capEl.querySelectorAll('.line')].forEach((l, i) => [...l.querySelectorAll('.w')].forEach((w, j) => { + const at = c.big ? c.word[i] : c.at + capWords.length * 0.07; + capWords.push({ el: w, at }); + })); } function captions(t) { - const s = sceneAt(t); - const c = CAPS.find(x => x.id === s.id); - if (!c) { capEl.style.opacity = '0'; return; } + const c = CAPTIONS.find(x => t >= x.at && t < x.to); + if (!c) { set(capEl, 'opacity', '0'); return; } if (capId !== c.id) { capId = c.id; buildCaption(c); } - const r = t - s.start; - const out = prog(t, s.end - 0.16, 0.16); - capEl.style.opacity = String(1 - out); - capEl.style.transform = `translateY(${-50 * eic(out)}px)`; + const hard = c.id === 'rejected'; // the hook ends on a hard cut + const out = hard ? 0 : prog(t, c.to - 0.16, 0.16); + set(capEl, 'opacity', String(1 - out)); + let shake = 0; for (const w of capWords) { - const p = prog(r, w.at, 0.3); - w.el.style.opacity = String(clamp(p * 4)); - w.el.style.transform = `translateY(${(1 - eob(p)) * 0.45}em) scale(${1 + 0.3 * (1 - eoc(p))})`; - } - if (capSub) { - const p = prog(r, capSub.at, 0.3); - capSub.el.style.opacity = String(p); - capSub.el.style.transform = `translateY(${(1 - eoc(p)) * 20}px)`; - } - if (capCount) { - const n = BLOCKERS.length - fixedCount(r); - capCount.textContent = n === 0 ? '0' : String(n); - capCount.classList.toggle('g', n === 0); - const last = n < BLOCKERS.length ? FIX_AT + (BLOCKERS.length - n - 1) * FIX_GAP : -9; - const pop = 1 - prog(r, last, 0.18); - const base = prog(r, 0.3, 0.3); - capCount.style.transform = `translateY(${(1 - eob(base)) * 0.45}em) scale(${(1 + 0.3 * (1 - eoc(base))) * (1 + (n === 0 ? 0.35 : 0.18) * pop)})`; - capCount.style.opacity = String(clamp(base * 4)); - capCount.style.color = n === 0 ? 'var(--green)' : '#f87171'; + const p = prog(t, w.at, c.big ? 0.2 : 0.34); + if (c.big) { + shake = Math.max(shake, decay(t, w.at + 0.05, 0.3)); + set(w.el, 'opacity', String(clamp(p * 3))); + set(w.el, 'transform', `scale(${lerp(2.4, 1, eoc(p)).toFixed(3)})`); + set(w.el, 'filter', p < 1 ? `blur(${((1 - p) * 14).toFixed(1)}px)` : 'none'); + } else { + set(w.el, 'opacity', String(clamp(p * 3))); + set(w.el, 'transform', `translateY(${((1 - eob(p)) * 0.42).toFixed(3)}em) scale(${(1 + 0.25 * (1 - eoc(p))).toFixed(3)})`); + set(w.el, 'filter', p < 1 ? `blur(${((1 - eoc(p)) * 10).toFixed(1)}px)` : 'none'); + } } + const sx = c.big ? Math.sin(t * 97) * 14 * shake : 0, sy = c.big ? Math.cos(t * 83) * 10 * shake : 0; + set(capEl, 'transform', c.big ? `translate(${sx.toFixed(1)}px, calc(-50% + ${sy.toFixed(1)}px))` : `translateY(${(-40 * eic(out)).toFixed(1)}px)`); } -const fixedCount = r => r < FIX_AT ? 0 : Math.min(BLOCKERS.length, Math.floor((r - FIX_AT) / FIX_GAP) + 1); -// ---------- terminal ---------- -const term = $('#term'), pin = $('#term .pin'), linesEl = $('#term .lines'); -const TERM_SCENES = ['prompt', 'config', 'prices', 'languages', 'questionnaires', 'shots', 'validate']; -const PANEL_FOR = { prices: '#prices', languages: '#langs', questionnaires: '#quest' }; -const cursor = ''; -const fmtOut = text => { - const m = text.match(/^\[(\w+)\](.*)$/s); - if (!m) return esc(text); - let rest = esc(m[2]).replace(/\(dry\)/g, '(dry)'); - return `[${m[1]}]${rest}`; +// ---------- hook: inbox ---------- +const list = $('#inbox .list'), hookCam = $('#s-hook .cam'), hookDim = $('#s-hook .dim'), unread = $('#inbox .cnt'); +const ROW_H = V ? 236 : 168; +const mailRow = (m, rej) => { + const el = document.createElement('div'); + el.className = `mrow${rej ? '' : ' old'}`; + el.innerHTML = rej + ? `App Store Connect${esc(m.date)} + ${esc(MAIL_SUBJECT)}Hello, Thank you for submitting… ${esc(m.guideline)}` + : `${esc(m.from)}${esc(m.date)} + ${esc(m.subject)}${esc(m.preview)}`; + list.appendChild(el); + return el; }; -let lastLines = '', lastPin = '', panelTopCache = null; -function terminal(t) { - const s = sceneAt(t); - const on = TERM_SCENES.includes(s.id); - if (!on) { term.style.opacity = '0'; return; } - const r = t - s.start; - // enter + punch on every cut - const enter = s.id === 'prompt' ? eoc(prog(t, 0, 0.35)) : 1; - const punch = s.id === 'prompt' ? 0 : 1 - eoc(prog(r, 0, 0.28)); - const dim = s.id === 'shots' ? 0.72 * eoc(prog(r, 0.35, 0.35)) : 0; - term.style.opacity = String(enter * (1 - dim)); - term.style.transform = `translateY(${(1 - enter) * 60}px) scale(${(0.94 + 0.06 * enter) * (1 + 0.035 * punch)})`; - - // pinned user prompt - const n = clamp(Math.floor((t - PROMPT_AT) * PROMPT_CPS), 0, PROMPT.length); - const typing = n < PROMPT.length; - const blink = Math.floor(t * 2.6) % 2 === 0; - const pinHtml = `> ${esc(PROMPT.slice(0, n))}${s.id === 'prompt' && (typing || blink) ? cursor : ''}`; - if (pinHtml !== lastPin) { pin.innerHTML = pinHtml; lastPin = pinHtml; } - - // scene lines - const out = []; - let busy = false; - for (const l of TERMINAL[s.id] ?? []) { - if (r < l.at) break; - if (l.kind === 'cmd') { - const k = Math.min(l.text.length, Math.floor((r - l.at) * CMD_CPS) + 1); - busy = k < l.text.length; - out.push(`
$ ${esc(l.text.slice(0, k))}${busy ? cursor : ''}
`); - } else if (l.kind === 'note') out.push(`
${fmtOut(l.text)}
`); - else out.push(`
${fmtOut(l.text)}
`); +const oldRows = OLD_MAILS.map(m => ({ el: mailRow(m, false), at: -1 })); +const newRows = MAILS.map(m => ({ el: mailRow(m, true), at: m.at })); +function hook(t) { + if (t >= scene('hook').end) return; + const slots = r => MAILS.filter(m => m.at > r.at).reduce((n, m) => n + eoc(prog(t, m.at, 0.3)), 0); + for (const r of [...oldRows.map((r, i) => ({ ...r, base: i })), ...newRows.map(r => ({ ...r, base: 0 }))]) { + const y = (r.base + slots(r)) * ROW_H; + if (r.at < 0) { set(r.el, 'transform', `translateY(${y.toFixed(1)}px)`); continue; } + const p = prog(t, r.at, 0.3); + set(r.el, 'opacity', String(clamp(p * 2.5))); + set(r.el, 'transform', `translateY(${(y - (1 - eoc(p)) * ROW_H * 0.7).toFixed(1)}px)`); + set(r.el, 'zIndex', String(10 + MAILS.findIndex(m => m.at === r.at))); + set(r.el.querySelector('.hi'), 'opacity', (0.95 * (1 - prog(t, r.at + 0.2, 1.0))).toFixed(3)); } - if (s.id === 'validate') { - const fixed = fixedCount(r); - BLOCKERS.forEach(([store, msg], i) => { - if (r < BLOCKERS_AT + i * BLOCKER_GAP) return; - const ok = i < fixed; - out.push(`
${String(i + 1).padStart(2)}. ${ok ? 'ok ' : 'BLOCKER'} [${store}] ${esc(msg)}
`); - }); - const winAt = FIX_AT + BLOCKERS.length * FIX_GAP + 0.05; - if (r >= winAt) out.push('
[validate] no blockers
'); - if (r >= winAt + 0.2) out.push('
(UI-only steps are not visible to the API: App Privacy, Play App content)
'); - } - const last = out.length ? out[out.length - 1] : ''; - const idle = !busy && s.id !== 'prompt' && (blink || r < 0.05); - const html = out.join('') + (idle && !last.includes('cur') ? `
${cursor}
` : ''); - // visible height: up to the panel when one is shown - const panel = PANEL_FOR[s.id]; - const body = linesEl.parentElement; - const top = term.offsetTop + body.offsetTop + linesEl.offsetTop; - const bottom = panel && r > 0.4 ? panelTop(panel) - 14 : term.offsetTop + term.offsetHeight - 22; - const lh = parseFloat(getComputedStyle(linesEl).lineHeight) || 40; - linesEl.style.height = `${Math.max(lh, Math.floor((bottom - top) / lh) * lh)}px`; - if (html !== lastLines) { linesEl.innerHTML = html; lastLines = html; } - linesEl.scrollTop = linesEl.scrollHeight; -} -function panelTop(sel) { - panelTopCache ??= {}; - if (panelTopCache[sel] === undefined) { - const el = $(sel); - panelTopCache[sel] = parseFloat(getComputedStyle(el).top); - } - return panelTopCache[sel]; + const n = MAILS.filter(m => t >= m.at).length; + html(unread, `${n} new`); + let shake = 0; + for (const m of MAILS) shake = Math.max(shake, decay(t, m.at + 0.1, 0.22)); + const slam = eoc(prog(t, B(3), 0.2)); + const z = 1 + 0.035 * t + 0.06 * slam; + set(hookCam, 'transform', `translate(${(Math.sin(t * 90) * 7 * shake).toFixed(1)}px, ${(Math.cos(t * 70) * 5 * shake).toFixed(1)}px) scale(${z.toFixed(4)})`); + set(hookCam, 'filter', slam > 0 ? `blur(${(slam * 7).toFixed(1)}px)` : 'none'); + set(hookDim, 'opacity', (0.74 * slam).toFixed(3)); } -// ---------- panels ---------- -const pricesEl = $('#prices'), langsEl = $('#langs'), questEl = $('#quest'); -langsEl.querySelector('.chips').innerHTML = LANGS.map(l => `${l}`).join(''); -const chips = [...langsEl.querySelectorAll('.chip')]; -const QUEST = [ - ['Play Data safety', 'the whole form, from the config', 'api'], - ['App Store age rating', 'categories, content rights too', 'api'], - ['Export compliance', 'your answer, set once in the config', 'api'], - ['Play content rating (IARC)', 'the skill walks your agent through it', 'ui'], - ['App Privacy labels + Publish', 'the skill walks your agent through it', 'ui'], - ['The answers themselves', 'your statements · the agent asks', 'you'], +// ---------- scan: the terminal ---------- +const term = $('#term'), scanCam = $('#s-scan .cam'); +const CW = V ? 840 : 1560; +term.innerHTML = [ + '', + ' ', + ...SCAN_HEAD.map((l, i) => `${esc(l.text)}`), + ' ', + `SDKs`, + ...SDKS.map((s, i) => ` ${esc(s.name)} · ${esc(s.what)}\n ${esc(s.where)} ${esc(s.dep)}`), + ' ', + `${esc(RISKS_LINE).replace(/(2 blocker, 3 high)/, '$1')}`, + ...FINDINGS.map((f, i) => `` + + `${i + 1}. ${f.sev}${esc(f.guideline)} · App Store` + + `${esc(f.title)}` + + `at ${esc(f.where)}` + + `fix: ${f.fix.match(/^[a-z]/) ? '… ' : ''}${esc(f.fix)} …`), +].join(''); +const tl = Object.fromEntries([...term.querySelectorAll('[data-k]')].map(e => [e.dataset.k, e])); +const timed = [...term.querySelectorAll('[data-at]')].map(e => ({ el: e, at: Number(e.dataset.at), fd: e.classList.contains('fd') })); +const box = el => ({ y: el.offsetTop, h: el.offsetHeight }); +/** Camera keys: [time, element key, zoom]. The camera eases to each key over 0.42 s, starting a little before. */ +const ZF = V ? 1.14 : 1.1; +const SCAN_CAM = [ + [scene('scan').start, 'prompt', V ? 1.9 : 1.7], + [ENTER_AT, 'head0', ZF + 0.04], + [SDK_AT, 'sdk0', ZF], + [RISKS_AT, 'risks', ZF], + ...FINDINGS.map((f, i) => [f.at, `f${i}`, ZF]), ]; -// Phosphor icons (icons/, copied unchanged by tools/site-icons.ts), shown as CSS masks in the pill colour -const ICON = { - api: '', - ui: '', - you: '', -}; -const BG = { api: 'var(--api-bg)', ui: 'var(--ui-bg)', you: 'var(--you-bg)' }; -questEl.querySelector('.rows').innerHTML = QUEST.map(([nm, ds, k]) => - `
${ICON[k]}
${esc(nm)}
${esc(ds)}
${k.toUpperCase()}
`).join(''); -const qrows = [...questEl.querySelectorAll('.row')]; -const tbody = pricesEl.querySelector('tbody'), psum = pricesEl.querySelector('.sum'); -let lastPrices = ''; - -function panelIn(el, r, at) { - const p = prog(r, at, 0.32); - el.style.opacity = String(clamp(p * 2)); - el.style.transform = `translateY(${(1 - eob(p)) * 90}px) scale(${0.96 + 0.04 * eoc(p)})`; -} -function panels(t) { - const s = sceneAt(t), r = t - s.start; - for (const el of [pricesEl, langsEl, questEl]) el.style.opacity = '0'; - if (s.id === 'prices') { - panelIn(pricesEl, r, 0.45); - const flick = r < 3.05; - const k = flick ? Math.max(0, Math.floor((r - 0.7) / 0.085)) : 0; - const rows = Array.from({ length: 5 }, (_, i) => PRICES[(k + i) % PRICES.length]); - const html = rows.map(([reg, cur, a, b], i) => - `${reg}${reg === 'TR' ? 'OVERRIDE' : ''}${cur}${a}${b}`).join(''); - if (html !== lastPrices) { tbody.innerHTML = html; lastPrices = html; } - psum.textContent = flick ? `${String(Math.min(173, Math.max(1, Math.floor((r - 0.7) * 72)))).padStart(3)} / 173 regions` : 'Play: 173 regions · App Store: equalized from the USA'; - } else if (s.id === 'languages') { - panelIn(langsEl, r, 0.45); - let n = 0; - chips.forEach((c, i) => { - const at = 0.8 + i * 0.13; - const on = r >= at; - if (on) n++; - c.classList.toggle('on', on); - const p = prog(r, at, 0.2); - c.style.transform = `scale(${on ? 1 + 0.25 * (1 - eoc(p)) : 1})`; - }); - langsEl.querySelector('.count').textContent = `${n}/14`; - } else if (s.id === 'questionnaires') { - panelIn(questEl, r, 0.3); - qrows.forEach((row, i) => { - const p = prog(r, 0.55 + i * 0.36, 0.28); - row.style.opacity = String(p); - row.style.transform = `translateX(${(1 - eob(p)) * 60}px)`; - const ico = row.querySelector('.ico'); - ico.style.transform = `scale(${p >= 1 ? 1 + 0.3 * (1 - eoc(prog(r, 0.55 + i * 0.36 + 0.28, 0.2))) : eob(p)})`; - }); +let camBoxes = null; +function scanCamAt(t) { + camBoxes ??= Object.fromEntries(SCAN_CAM.map(([, k]) => [k, box(tl[k])])); + const pos = k => { const b = camBoxes[k]; return b.y + b.h / 2; }; + let y = pos(SCAN_CAM[0][1]), z = SCAN_CAM[0][2], typing = 1; + for (let i = 1; i < SCAN_CAM.length; i++) { + const [at, k, zz] = SCAN_CAM[i]; + const p = eio(prog(t, at - 0.12, 0.42)); + y = lerp(y, pos(k), p); z = lerp(z, zz, p); + if (i === 1) typing = 1 - p; } + // while typing the command sits centred; afterwards the column is centred + const cmdW = (CMD.length + 2) * (V ? 31 : 30) * 0.6; + const sx = lerp(W / 2, (W - cmdW * z) / 2, typing), ax = lerp(CW / 2, 0, typing); + return { tx: sx - ax * z, ty: L.cy - y * z, z }; +} +function scan(t) { + const s = scene('scan'); + if (t < s.start - 0.1 || t > s.end + 0.2) return; + const n = clamp(Math.floor((t - TYPE_AT) * TYPE_CPS), 0, CMD.length); + const caret = t < ENTER_AT ? (n < CMD.length || Math.floor(t * 2.4) % 2 === 0) : false; + html(tl.prompt, `$ ${esc(CMD.slice(0, n))}${caret ? '' : ''}`); + set(tl.prompt, 'opacity', '1'); + let focus = -1; + FINDINGS.forEach((f, i) => { if (t >= f.at - 0.1) focus = i; }); + for (const l of timed) { + const p = prog(t, l.at, l.fd ? 0.28 : 0.2); + set(l.el, 'opacity', String(clamp(p * 2))); + set(l.el, 'transform', `translateX(${((1 - eoc(p)) * (l.fd ? 60 : 30)).toFixed(1)}px)`); + if (l.fd) { + const i = Number(l.el.dataset.k.slice(1)); + const g = l.el.querySelector('.glow'); + set(g, 'opacity', (i === focus ? 1 - 0.4 * prog(t, l.at + 0.3, 0.4) : 0.18 * p).toFixed(3)); + set(l.el, 'filter', i === focus || focus < 0 ? 'none' : 'brightness(.62)'); + } + } + const c = scanCamAt(t); + // a small push-in on every finding as it lands (about the focus line) + let punch = 0; + for (const f of FINDINGS) punch = Math.max(punch, Math.sin(Math.PI * prog(t, f.at - 0.05, 0.9)) * 0.035); + const k = 1 + punch; + set(scanCam, 'transform', `translate(${(c.tx * k - (W / 2) * (k - 1)).toFixed(1)}px, ${(c.ty * k - L.cy * (k - 1)).toFixed(1)}px) scale(${(c.z * k).toFixed(4)})`); } -// ---------- store art ---------- -const shotsEl = $('#shots'), sizesEl = $('#sizes'); -const FAN = ['en-01', 'en-02', 'en-03', 'en-04']; -const BIG = [['en-01', 'English'], ['tr-01', 'Türkçe'], ['ja-01', '日本語'], ['ar-01', 'العربية']]; -const SIZES = ['Play phone', '7" tablet', '10" tablet', 'iPhone 6.9"', 'iPhone 6.5"', 'iPad 13"', 'feature graphic']; -const L = V - ? { cx: 540, cy: 1040, w: 300, off: [-330, -110, 110, 330], rot: [-9, -3, 3, 9], dy: [36, 0, 0, 36], bw: 390, bcy: 1000, ly: 1318 } - : { cx: 1360, cy: 540, w: 290, off: [-330, -110, 110, 330], rot: [-9, -3, 3, 9], dy: [30, 0, 0, 30], bw: 330, bcy: 515, ly: 790 }; -const RATIO = 1920 / 1080; -shotsEl.innerHTML = FAN.map(f => `
`).join('') - + `
${BIG.map(([f]) => ``).join('')}
` - + '
'; -sizesEl.innerHTML = SIZES.map(s => `${esc(s)}`).join(''); -const fanEls = [...shotsEl.querySelectorAll('.card.fan')], bigEl = shotsEl.querySelector('.card.big'), bigImgs = [...bigEl.querySelectorAll('img')]; -const langEl = shotsEl.querySelector('.lang'), sizeEls = [...sizesEl.querySelectorAll('.sz')]; -for (const c of fanEls) { c.style.width = `${L.w}px`; c.style.height = `${L.w * RATIO}px`; } -bigEl.style.width = `${L.bw}px`; bigEl.style.height = `${L.bw * RATIO}px`; - -function place(el, cx, cy, w, h, rot, sc, op) { - el.style.transform = `translate(${cx - w / 2}px, ${cy - h / 2}px) rotate(${rot}deg) scale(${sc})`; - el.style.opacity = String(op); +// ---------- fixed: re-scan, reds flip green ---------- +const frows = $('#frows'), rescan = $('#rescan'), counter = $('#counter'), cN = $('#counter .n'), cLab = $('#counter .lab'); +const FR = V ? { x: 60, w: 960, top: 690, h: 112, gap: 18 } : { x: 150, w: 920, top: 330, h: 118, gap: 22 }; +frows.innerHTML = FINDINGS.map((f, i) => `
+ + + ${esc(f.short)}${esc(f.guideline)} · ${esc(f.where)} + ${f.sev}FIXED
`).join(''); +const frowEls = [...frows.querySelectorAll('.frow')]; +if (V) Object.assign(rescan.style, { left: '60px', top: '560px', width: '960px', fontSize: '29px' }); +else Object.assign(rescan.style, { left: '1150px', top: '340px', width: '660px', fontSize: '25px' }); +rescan.innerHTML = `${esc(RESCAN_LINE)}` + + (V ? '' : ` ${esc(RESCAN_NONE)}`); +if (V) Object.assign(counter.style, { left: '0', width: '100%', top: '1340px' }); +else Object.assign(counter.style, { left: '1150px', width: '660px', top: '560px' }); +cN.style.fontSize = V ? '120px' : '230px'; cLab.style.fontSize = V ? '40px' : '50px'; +if (V) { counter.style.display = 'flex'; counter.style.justifyContent = 'center'; counter.style.alignItems = 'baseline'; counter.style.gap = '24px'; } +function fixed(t) { + const s = scene('fixed'); + if (t < s.start - 0.3 || t > s.end + 0.5) return; + const n = clamp(Math.floor((t - RESCAN_TYPE_AT) * 24), 0, RESCAN_CMD.length); + const p = rescan.querySelector('[data-k="p"]'), r = rescan.querySelector('[data-k="r"]'), none = rescan.querySelector('[data-k="n"]'); + html(p, `$ ${esc(RESCAN_CMD.slice(0, n))}${n < RESCAN_CMD.length || t < FLIP_AT[0] - 0.2 ? '' : ''}`); + set(p, 'opacity', '1'); + const rp = prog(t, RESCAN_LINE_AT, 0.25); + set(r, 'opacity', String(rp)); set(r, 'transform', `translateX(${((1 - eoc(rp)) * 30).toFixed(1)}px)`); + if (none) { const np = prog(t, RESCAN_LINE_AT + 0.15, 0.25); set(none, 'opacity', String(np)); } + let left = FINDINGS.length; + frowEls.forEach((el, i) => { + const enter = prog(t, s.start + 0.05 + i * 0.06, 0.3); + const f = prog(t, FLIP_AT[i], 0.32); + if (t >= FLIP_AT[i]) left--; + const pop = decay(t, FLIP_AT[i], 0.3); + set(el, 'opacity', String(enter)); + set(el, 'transform', `translateY(${((1 - eoc(enter)) * 40).toFixed(1)}px) scale(${(1 + 0.035 * pop).toFixed(4)})`); + set(el, 'borderColor', f > 0.5 ? 'rgba(61,220,132,.55)' : 'rgba(255,90,95,.4)'); + set(el.querySelector('.t-good'), 'opacity', String(eoc(f))); + set(el.querySelector('.t-bad'), 'opacity', String(1 - eoc(f))); + set(el.querySelector('.bad'), 'transform', `scale(${(1 - eic(f)).toFixed(3)}) rotate(${(-90 * f).toFixed(1)}deg)`); + set(el.querySelector('.good'), 'transform', `scale(${eob(f).toFixed(3)})`); + set(el.querySelector('.good'), 'opacity', String(clamp(f * 3))); + const c2 = el.querySelector('.c2'); + set(c2, 'clipPath', `inset(0 ${((1 - eoc(f)) * 100).toFixed(1)}% 0 0)`); + }); + const zero = left === 0; + html(cN, String(left)); + html(cLab, zero ? 'blockers' : 'rejection risks'); + set(cN, 'color', zero ? 'var(--green)' : 'var(--red)'); + let pop = 0; + FLIP_AT.forEach((a, i) => { pop = Math.max(pop, decay(t, a, 0.25) * (i === 4 ? 1.6 : 1)); }); + const ce = prog(t, s.start + 0.25, 0.35); + set(counter, 'opacity', String(ce)); + set(cN, 'transform', `scale(${(1 + 0.22 * pop).toFixed(3)})`); + set(cN, 'display', 'inline-block'); + set(cN, 'textShadow', zero ? `0 0 ${(40 + 60 * pop).toFixed(0)}px rgba(61,220,132,.6)` : '0 0 40px rgba(255,90,95,.4)'); } + +// ---------- shots: the screenshot wall ---------- +const wall = $('#wall'), shotNum = $('#shotcount .num'), shotCount = $('#shotcount'), shotCmd = $('#shotcmd'); +const GRID = await fetch('out/assets/grid.json').then(r => { if (!r.ok) throw new Error('out/assets/grid.json missing (bun media/teaser/render.ts prepares it)'); return r.json(); }); +const WALL = V ? { cols: 7, rows: 7, tw: 210, th: 373, gap: 22 } : { cols: 11, rows: 4, tw: 200, th: 356, gap: 22 }; +const tiles = []; +{ + const ww = WALL.cols * (WALL.tw + WALL.gap), wh = WALL.rows * (WALL.th + WALL.gap); + let k = 0; + for (let r = 0; r < WALL.rows; r++) for (let c = 0; c < WALL.cols; c++) { + const el = document.createElement('div'); + el.className = 'tile'; + const x = c * (WALL.tw + WALL.gap) - ww / 2 + (r % 2 ? WALL.tw * 0.25 : 0), y = r * (WALL.th + WALL.gap) - wh / 2; + Object.assign(el.style, { left: `${x}px`, top: `${y}px`, width: `${WALL.tw}px`, height: `${WALL.th}px`, backgroundImage: `url(out/assets/grid/${GRID[(k * 7) % GRID.length]})` }); + wall.appendChild(el); + const d = Math.hypot(x + WALL.tw / 2, (y + WALL.th / 2) * 0.8); + tiles.push({ el, d: d + ((k * 37) % 11) * 18 }); + k++; + } + const order = [...tiles].sort((a, b) => a.d - b.d); + order.forEach((tl2, i) => { tl2.at = 0.12 + (i / order.length) * 1.45; }); +} +if (V) { Object.assign(shotCmd.style, { left: '50%', top: '500px' }); Object.assign(shotCount.style, { left: '50%', top: '1300px', fontSize: '58px' }); } +else { Object.assign(shotCmd.style, { left: '50%', top: '290px' }); Object.assign(shotCount.style, { left: '50%', top: '880px', fontSize: '56px' }); } function shots(t) { - const s = sceneAt(t), r = t - s.start; - const on = s.id === 'shots'; - shotsEl.style.display = on ? '' : 'none'; - sizesEl.style.display = on ? '' : 'none'; - if (!on) return; - const h = L.w * RATIO; - const spread = eoc(prog(r, 1.95, 0.35)); - fanEls.forEach((el, i) => { - const p = prog(r, 0.3 + i * 0.2, 0.5); - const e = eob(p); - const dir = i < 2 ? -1 : 1; - const x0 = L.cx + dir * (V ? 700 : 900), y0 = L.cy + (V ? 1100 : 800); - const fx = L.cx + L.off[i] + dir * 70 * spread, fy = L.cy + L.dy[i] + Math.sin(t * 2 + i) * 6; - place(el, lerp(x0, fx, e), lerp(y0, fy, e), L.w, h, lerp(dir * 40, L.rot[i] + dir * 4 * spread, e), 1 - 0.12 * spread, clamp(p * 3) * (1 - 0.45 * spread)); - }); - // big card cycling the hero screenshot through four languages - const bp = prog(r, 1.95, 0.42); - const bh = L.bw * RATIO; - const idx = r < 2.5 ? 0 : r < 2.95 ? 1 : r < 3.4 ? 2 : 3; - const sw = [2.5, 2.95, 3.4].map(a => 1 - Math.min(1, Math.abs(r - a) / 0.09)).reduce((a, b) => Math.max(a, b), 0); - place(bigEl, L.cx, L.bcy + (1 - eob(bp)) * 500 + Math.sin(t * 1.6) * 5, L.bw, bh, (1 - eoc(bp)) * 12, (0.7 + 0.3 * eob(bp)), clamp(bp * 3)); - bigEl.style.transform += ` scaleX(${1 - 0.18 * sw})`; - bigImgs.forEach((im, i) => { im.style.opacity = i === idx ? '1' : '0'; }); - langEl.textContent = BIG[idx][1]; - const lp = prog(r, 2.2, 0.25); - langEl.style.opacity = String(lp); - langEl.style.left = `${L.cx}px`; langEl.style.top = `${L.ly}px`; - langEl.style.transform = `translateX(-50%) scale(${(1 + 0.2 * sw) * (0.6 + 0.4 * eob(lp))})`; - // sizes - sizeEls.forEach((el, i) => { - const at = 3.75 + i * 0.16; - const p = prog(r, at, 0.22); - el.style.opacity = String(clamp(p * 3)); - el.style.transform = `translateY(${(1 - eob(p)) * 30}px) scale(${1 + 0.2 * (1 - eoc(p))})`; - el.classList.toggle('on', r >= at); - }); + const s = scene('shots'); + if (t < s.start - 0.1 || t > s.end + 0.6) return; + const r = t - s.start; + let shown = 0; + for (const tile of tiles) { + const p = prog(r, tile.at, 0.26); + if (p > 0) shown++; + set(tile.el, 'opacity', String(clamp(p * 2))); + set(tile.el, 'transform', `translateZ(${((1 - eoc(p)) * 260).toFixed(1)}px) scale(${lerp(0.72, 1, eob(p)).toFixed(3)})`); + } + const z = lerp(1.12, 0.98, eio(prog(r, 0, s.end - s.start + 0.4))); + set(wall, 'transform', `translate(-50%, -50%) translateY(${(-60 * r).toFixed(1)}px) perspective(2200px) rotateX(20deg) rotateZ(-11deg) scale(${z.toFixed(4)})`); + const frac = shown / tiles.length; + html(shotNum, String(Math.round(SHOTS_TOTAL * eoc(clamp(r / 1.65)) * (frac > 0 ? 1 : 0)))); + const cp = prog(r, 0.1, 0.35), np = prog(r, 0.35, 0.35); + set(shotCmd, 'opacity', String(cp)); set(shotCmd, 'transform', `translate(-50%, ${((1 - eoc(cp)) * 20).toFixed(1)}px)`); + const pop = decay(r, 1.65, 0.3); + set(shotCount, 'opacity', String(np)); set(shotCount, 'transform', `translate(-50%, ${((1 - eoc(np)) * 30).toFixed(1)}px) scale(${(1 + 0.12 * pop).toFixed(3)})`); } -// ---------- desktop app ---------- -// Real frames of apps/desktop in fixture mode (out/desktop/*.jpg, 1280 x 800 at 2x, desktop.ts) in a CSS window, with -// a camera that zooms toward the step's point, the Phosphor cursor, and the confirm dialog drawn on top. +// ---------- declarations ---------- +const prop = $('#prop'), form = $('#form'), declNum = $('#declcount .num'), declCount = $('#declcount'); +const PROP_LINES = [...DECL_LINES.map(d => ({ k: 'detected', w: d.what, v: d.value, loc: d.where })), { k: 'ask owner', w: DECL_ASK.replace('ask owner ', ''), v: '?', loc: '', ask: true }]; +prop.querySelector('.body').innerHTML = PROP_LINES.map(l => `${esc(l.k)} ${esc(l.w)}${l.loc ? ` ${esc(l.loc)}` : ` ${esc(l.v)}`}`).join(''); +const ROW = V ? 54 : 62; +form.querySelector('.body').innerHTML = DATA_SAFETY_ROWS.map(r => `
${esc(r)}detected
`).join(''); +if (V) { + Object.assign(prop.style, { left: '60px', width: '960px', top: '540px' }); + Object.assign(form.style, { left: '60px', width: '960px', top: '890px' }); + Object.assign(declCount.style, { left: '50%', top: '1372px', fontSize: '50px' }); +} else { + Object.assign(prop.style, { left: '130px', width: '860px', top: '320px' }); + Object.assign(form.style, { left: '1040px', width: '750px', top: '300px' }); + Object.assign(declCount.style, { left: '560px', top: '820px', fontSize: '56px' }); +} +const propLns = [...prop.querySelectorAll('.ln')], formRows = [...form.querySelectorAll('.row')]; +function decl(t) { + const s = scene('decl'); + if (t < s.start - 0.4 || t > s.end + 0.5) return; + const r = t - s.start; + const ce = eoc(prog(r, 0, 0.4)); + set(prop, 'transform', `translateY(${((1 - ce) * 40).toFixed(1)}px)`); set(prop, 'opacity', String(ce)); + const fe = eoc(prog(r, 0.35, 0.4)); + set(form, 'transform', `translateY(${((1 - fe) * 40).toFixed(1)}px)`); set(form, 'opacity', String(fe)); + propLns.forEach((el, i) => { const p = prog(r, 0.2 + i * 0.16, 0.22); set(el, 'opacity', String(p)); set(el, 'transform', `translateX(${((1 - eoc(p)) * 30).toFixed(1)}px)`); }); + formRows.forEach((el, i) => { + const p = prog(r, 0.95 + i * 0.16, 0.24); + set(el.querySelector('.fill'), 'opacity', String(eoc(p))); + set(el.querySelector('.pi'), 'transform', `scale(${eob(p).toFixed(3)})`); + set(el.querySelector('.box'), 'borderColor', p > 0 ? 'var(--green)' : 'var(--line-2)'); + set(el.querySelector('.tag'), 'opacity', String(p)); + set(el, 'color', p > 0.5 ? '#fff' : 'var(--ink-2)'); + }); + const np = prog(r, 0.95, 1.3); + html(declNum, String(Math.round(DECL_TOTAL * eoc(np)))); + const dp = prog(r, 0.8, 0.3), pop = decay(r, 2.25, 0.3); + set(declCount, 'opacity', String(dp)); + set(declCount, 'transform', `translate(${V ? '-50%' : '0'}, ${((1 - eoc(dp)) * 30).toFixed(1)}px) scale(${(1 + 0.12 * pop).toFixed(3)})`); +} + +// ---------- desktop: real frames in a window, slow camera, one callout ---------- const BOXES = await fetch('out/desktop/boxes.json').then(r => { if (!r.ok) throw new Error('out/desktop/boxes.json missing (bun media/teaser/desktop.ts)'); return r.json(); }); -const FW = 1280, FH = 800; -const DW = V ? { x: 40, y: 640, w: 1000 } : { x: 880, y: 226, w: 940 }; -const TB = 40, VW = DW.w, VH = DW.w * FH / FW; -const deskEl = $('#desk'), win = $('#desk .win'), viewEl = $('#desk .view'), cam = $('#desk .cam'), shade = $('#desk .shade'), - dlg = $('#desk .dlg'), stepEl = $('#desk .step'), linkEl = $('#desk .link'), dcur = $('#dcur'); -win.style.left = `${DW.x}px`; win.style.top = `${DW.y}px`; win.style.width = `${VW}px`; -viewEl.style.width = `${VW}px`; viewEl.style.height = `${VH}px`; -const FRAMES = ['portfolio', 'releases', 'growth', 'growth-hover', 'palette', 'prices-diff']; -cam.innerHTML = FRAMES.map(f => ``).join(''); -const frameEls = Object.fromEntries([...cam.querySelectorAll('img')].map(im => [im.dataset.f, im])); -// the dialog's dry run restates the diff rows of the prices-diff frame (fixture data) -dlg.querySelector('pre').textContent = [ - 'Dry run (storebound prices import --dry):', - 'coins_small Google Play TR TRY 21.99 -> 24.99', - 'coins_small Google Play BR R$3.99 -> R$4.49', - 'coins_small App Store TR TRY 29.99 -> 24.99', - 'no_ads App Store BR R$14.90 -> R$12.90', -].join('\n'); -if (V) { stepEl.style.left = '0'; stepEl.style.right = '0'; stepEl.style.textAlign = 'center'; stepEl.style.top = `${DW.y + TB + VH + 56}px`; } -else { stepEl.style.left = '120px'; stepEl.style.top = '790px'; } -const focusOf = f => (typeof f === 'string' ? (b => [b.x + b.w / 2, b.y + b.h / 2])(BOXES[f]) : f); -/** Camera for a step: scale and offset of the frame inside the view, the focus kept on screen, no empty edge. */ -function camFor(st, p) { - const z = lerp(1, st.zoom, p), S = (VW / FW) * z; - const [fx, fy] = focusOf(st.focus); - const ox = clamp(VW / 2 - fx * FW * S, VW - FW * S, 0), oy = clamp(VH / 2 - fy * FH * S, VH - FH * S, 0); +const WIN = V ? { x: 40, y: 520, w: 1000, h: 950 } : { x: 210, y: 285, w: 1500, h: 760 }; +const VIEW = { w: WIN.w, h: WIN.h - 44 }; +const S0 = Math.max(VIEW.w / 1280, VIEW.h / 800); +const desk = {}; +for (const [id, d] of Object.entries(DESKTOP)) { + const el = $(`#s-${id}`); + const img = f => ``; + el.innerHTML = `
+
storebound
+
+ ${img(d.empty ?? d.frame)} + ${d.empty ? `
${img(d.frame)}
${img(d.frame)}
` : ''} + ${d.clean ? `
${img(d.clean)}
` : ''} +
+
${esc(d.callout.text)}
`; + desk[id] = { el, d, win: el.querySelector('.win'), cam: el.querySelector('.cam'), c1: el.querySelector('.c1'), c2: el.querySelector('.c2'), + cl: el.querySelector('.cl'), line: el.querySelector('.scanline'), ring: el.querySelector('.ring'), callout: el.querySelector('.callout') }; +} +const pct = v => `${(v * 100).toFixed(3)}%`; +/** Camera of a desktop scene at r seconds: image scale and offset inside the window view. */ +function deskCam(d, r, len) { + const p = eio(clamp(r / len)); + // the vertical window shows a portrait crop of the landscape app: a gentler push, and the Checks card kept whole-ish + const zk = V ? 0.45 : 1, fxv = V && d.clean ? 0.6 : null; + const z = 1 + (lerp(d.from.z, d.to.z, p) - 1) * zk, fx = fxv ?? lerp(d.from.f[0], d.to.f[0], p), fy = lerp(d.from.f[1], d.to.f[1], p); + const S = S0 * z; + const ox = clamp(VIEW.w / 2 - fx * 1280 * S, VIEW.w - 1280 * S, 0), oy = clamp(VIEW.h / 2 - fy * 800 * S, VIEW.h - 800 * S, 0); return { S, ox, oy }; } -let deskCam = { S: VW / FW, ox: 0, oy: 0 }; -/** A point of the frame (fractions) in stage pixels, through the current camera. */ -const framePt = (fx, fy) => [DW.x + deskCam.ox + fx * FW * deskCam.S, DW.y + TB + deskCam.oy + fy * FH * deskCam.S]; -function deskTarget(name) { - if (name === 'off') return [DW.x + VW + 120, DW.y + TB + VH + 160]; - if (name === 'dialog-ok') { const b = dlg.querySelector('.ok').getBoundingClientRect(); return [b.left + b.width * 0.9, b.top + b.height * 0.7]; } - const b = BOXES[name]; - return framePt(b.x + b.w * (b.w ? 0.9 : 1), b.y + b.h * (b.h ? 0.75 : 1)); +/** A boxes.json entry in stage pixels for the current camera (plus the window's own transform, applied by the caller). */ +const stageBox = (b, c) => ({ x: WIN.x + c.ox + b.x * 1280 * c.S, y: WIN.y + 44 + c.oy + b.y * 800 * c.S, w: b.w * 1280 * c.S, h: b.h * 800 * c.S }); +const cursorEl = $('#cursor'), clickEl = $('#click'); +let cursorShown = false; +function cursorAt(x, y, op, press = 0) { + cursorShown = op > 0; + set(cursorEl, 'opacity', String(op)); + set(cursorEl, 'transform', `translate(${(x - 10).toFixed(1)}px, ${(y - 10).toFixed(1)}px) scale(${(1 - 0.14 * press).toFixed(3)})`); } function desktop(t) { - const s = sceneAt(t), r = t - s.start; - if (s.id !== 'desktop') { deskEl.style.opacity = '0'; deskEl.style.display = 'none'; return; } - deskEl.style.display = ''; deskEl.style.opacity = '1'; - // window in, a punch on every step - const ip = prog(r, 0.0, 0.45); - const si = DESKTOP.findLastIndex(x => r >= x.at), st = DESKTOP[Math.max(0, si)]; - const punch = si > 0 && !st.dialog ? 1 - eoc(prog(r, st.at, 0.25)) : 0; - win.style.opacity = String(clamp(ip * 2.5)); - win.style.transform = `translateY(${(1 - eob(ip)) * 120}px) scale(${(0.9 + 0.1 * eoc(ip)) * (1 + 0.02 * punch)})`; - // frames: a quick crossfade on each cut; the chart tooltip fades in when the cursor gets there - const prev = DESKTOP[si - 1]; - const fade = prev && prev.frame !== st.frame ? prog(r, st.at, 0.16) : 1; - const frameName = x => (x.frame === 'growth' && r >= DESK_HOVER_AT ? 'growth-hover' : x.frame); - for (const [f, im] of Object.entries(frameEls)) { - im.style.opacity = f === frameName(st) ? '1' : prev && f === frameName(prev) && fade < 1 ? '1' : '0'; - im.style.zIndex = f === frameName(st) ? '2' : '1'; + for (const [id, k] of Object.entries(desk)) { + const s = scene(id), d = k.d, r = t - s.start, len = s.end - s.start; + if (t < s.start - 0.2 || t > s.end + 0.5) continue; + const c = deskCam(d, r, len + 0.3); + set(k.cam, 'transform', `translate(${c.ox.toFixed(2)}px, ${c.oy.toFixed(2)}px) scale(${(c.S).toFixed(5)})`); + if (k.c1) { + const p = eio(prog(r, d.fill[0], d.fill[1] - d.fill[0])); + for (const [el, b] of [[k.c1, BOXES.roll], [k.c2, BOXES.roll2]]) { + set(el, 'clipPath', `inset(${pct(b.y)} ${pct(1 - b.x - b.w * p)} ${pct(1 - b.y - b.h)} ${pct(b.x)})`); + } + } + if (k.cl) { + const p = eio(prog(r, d.flip, 0.5)); + set(k.cl, 'clipPath', `inset(0 0 ${pct(1 - p)} 0)`); + set(k.line, 'opacity', String(p > 0 && p < 1 ? 1 : 0)); + set(k.line, 'top', `${(p * 800 - 3).toFixed(1)}px`); + } + // the window itself: a gentle settle + const we = eoc(prog(r, 0, 0.6)); + set(k.win, 'transform', `scale(${lerp(0.97, 1, we).toFixed(4)})`); + // callout + ring on the target + const b = BOXES[d.callout.target]; + const sb = stageBox(b, c); + const cp = prog(r, d.callout.at, 0.34); + const ring = k.ring; + set(ring, 'opacity', String(clamp(cp * 2))); + // the ring stays inside the window + const rx0 = Math.max(sb.x - 10, WIN.x + 8), ry0 = Math.max(sb.y - 10, WIN.y + 52); + const rx1 = Math.min(sb.x + sb.w + 10, WIN.x + WIN.w - 8), ry1 = Math.min(sb.y + sb.h + 10, WIN.y + WIN.h - 8); + set(ring, 'left', `${rx0.toFixed(1)}px`); set(ring, 'top', `${ry0.toFixed(1)}px`); + set(ring, 'width', `${(rx1 - rx0).toFixed(1)}px`); set(ring, 'height', `${(ry1 - ry0).toFixed(1)}px`); + set(ring, 'transform', `scale(${lerp(1.15, 1, eoc(cp)).toFixed(3)})`); + let text = d.callout.text; + if (d.fill) text = `Rollout · ${Math.round(20 * eio(prog(r, d.fill[0], d.fill[1] - d.fill[0])))}%`; + html(k.callout, esc(text)); + const cw = k.callout.offsetWidth; + const cx = clamp(sb.x + sb.w / 2, W * 0.1 + cw / 2, W * 0.9 - cw / 2); + const above = sb.y - 30 > WIN.y + 90; + const cy = above ? sb.y - 26 : sb.y + sb.h + 26 + 70; + set(k.callout, 'opacity', String(clamp(cp * 2.5))); + set(k.callout, 'left', `${cx.toFixed(1)}px`); set(k.callout, 'top', `${cy.toFixed(1)}px`); + set(k.callout, 'transform', `translate(-50%, -100%) scale(${lerp(0.5, 1, eob(cp)).toFixed(3)})`); } - if (frameEls[frameName(st)]) frameEls[frameName(st)].style.opacity = String(fade); - const growthTip = st.frame === 'growth' ? prog(r, DESK_HOVER_AT, 0.15) : 0; - if (st.frame === 'growth' && r >= DESK_HOVER_AT) { frameEls.growth.style.opacity = '1'; frameEls['growth-hover'].style.opacity = String(growthTip); } - // camera: ease into the step's zoom (a fresh frame starts from the whole window) - const keep = prev && prev.frame === st.frame; - const from = keep ? camFor(prev, 1) : camFor(st, 0), to = camFor(st, 1); - const cp = eoc(prog(r, st.at + 0.1, 0.9)); - deskCam = { S: lerp(from.S, to.S, cp), ox: lerp(from.ox, to.ox, cp), oy: lerp(from.oy, to.oy, cp) }; - cam.style.transform = `translate(${deskCam.ox}px, ${deskCam.oy}px) scale(${deskCam.S})`; - // the confirm dialog - const dIn = prog(r, DESK_DIALOG[0], 0.3), dOut = prog(r, DESK_DIALOG[1] + 0.12, 0.2); - const dv = clamp(dIn * 3) * (1 - dOut); - shade.style.opacity = String(dv); - dlg.style.opacity = String(dv); - dlg.style.transform = `translate(-50%, -50%) scale(${(V ? 1.25 : 1.05) * (0.85 + 0.15 * eob(dIn)) * (1 - 0.06 * dOut)})`; - // step label - const sp = prog(r, st.at + 0.05, 0.3); - stepEl.innerHTML = `${String(si + 1).padStart(2, '0')}${esc(st.step)}`; - stepEl.style.opacity = String(clamp(sp * 2) * (1 - prog(t, s.end - 0.16, 0.16))); - stepEl.style.transform = `translateY(${(1 - eoc(sp)) * 24}px)`; - // cursor - const k = DESK_CURSOR.findLastIndex(([a]) => r >= a); - if (k < 0) dcur.style.opacity = '0'; - else { - const [a0, n0] = DESK_CURSOR[k], nx = DESK_CURSOR[k + 1]; - const p0 = deskTarget(n0); - let [x, y] = p0; - if (nx) { const p1 = deskTarget(nx[1]); const mp = eoc(clamp((r - a0) / (nx[0] - a0))); x = lerp(p0[0], p1[0], mp); y = lerp(p0[1], p1[1], mp); } - const click = DESK_CURSOR.filter(c => c[2]).reduce((m, c) => Math.max(m, 1 - Math.min(1, Math.abs(r - c[0]) / 0.12)), 0); - dcur.style.opacity = String(clamp((r - DESK_CURSOR[0][0]) * 5)); - dcur.style.transform = `translate(${x - 10}px, ${y - 10}px) scale(${1 - 0.18 * click})`; +} +/** The cursor: in the desktop scenes and over the Submit button. */ +function cursor(t) { + const s = active(t); + set(clickEl, 'opacity', '0'); + if (desk[s.id]) { + const k = desk[s.id], d = k.d, r = t - s.start; + const c = deskCam(d, r, s.end - s.start + 0.3); + const [[a0], [a1, target]] = d.cursor; + const b = stageBox(BOXES[target], c); + const tx = b.x + b.w * (target === 'roll' ? 0.35 : 0.5), ty = b.y + b.h * 0.6; + const sx = W * 0.92, sy = WIN.y + WIN.h * 0.95; + const p = eio(prog(r, a0, a1 - a0)); + const arc = Math.sin(Math.PI * p) * 70; + const x = lerp(sx, tx, p) + arc * 0.4, y = lerp(sy, ty, p) - arc; + const op = prog(r, a0 - 0.15, 0.15) * (1 - prog(t, s.end - 0.12, 0.12)); + let press = 0; + if (id3(s.id)) { + press = decay(r, a1 + 0.02, 0.22); + const cp = prog(r, a1 + 0.02, 0.4); + if (cp > 0 && cp < 1) { + set(clickEl, 'opacity', String(0.9 * (1 - cp))); + set(clickEl, 'transform', `translate(${tx.toFixed(1)}px, ${ty.toFixed(1)}px) scale(${lerp(0.3, 1.4, eoc(cp)).toFixed(3)})`); + } + } + cursorAt(x, y, op, press); + return; } - // "Submit for review · your click" by the console button - const lp = prog(r, DESK_LINK_AT, 0.35); - const cb = BOXES.console, [bx, by] = framePt(cb.x + cb.w, cb.y + cb.h); - linkEl.style.opacity = String(clamp(lp * 3)); - linkEl.style.left = `${Math.min(bx, DW.x + VW - 12)}px`; linkEl.style.top = `${by + 26}px`; - linkEl.style.transform = `translateX(-100%) scale(${0.6 + 0.4 * eob(lp)})`; -} - -// ---------- end cards ---------- -const submitEl = $('#submit'), btn = $('#submit .btn'), ring = $('#submit .ring'), kick = $('#submit .kick'), - yours = $('#submit .yours'), fine = $('#submit .fine'), cur = $('#cursor'); -const brandEl = $('#brand'); -const brandParts = [...brandEl.children]; -function pop(el, r, at, dist = 50, d = 0.35) { - const p = prog(r, at, d); - el.style.opacity = String(clamp(p * 2.5)); - el.style.transform = `translateY(${(1 - eob(p)) * dist}px) scale(${0.85 + 0.15 * eob(p)})`; -} -function endCards(t) { - const s = sceneAt(t), r = t - s.start; - submitEl.style.opacity = s.id === 'submit' ? '1' : '0'; - brandEl.style.opacity = s.id === 'brand' ? '1' : '0'; - cur.style.opacity = '0'; if (s.id === 'submit') { - pop(kick, r, 0.0, 30); - const bp = prog(r, 0.08, 0.42); - btn.style.opacity = String(clamp(bp * 3)); - const hover = eoc(prog(r, 1.25, 0.2)); - btn.style.transform = `scale(${(0.4 + 0.6 * eob(bp)) * (1 + 0.04 * hover)})`; - btn.style.filter = `brightness(${1 + 0.18 * hover})`; - const rp = ((r - 0.5) % BEAT) / BEAT; - ring.style.opacity = r > 0.5 ? String(0.7 * (1 - rp)) : '0'; - ring.style.transform = `scale(${1 + 0.12 * eoc(rp)})`; - pop(yours, r, 0.95, 70, 0.4); - pop(fine, r, 1.55, 30); - // the cursor comes close and waits: the click stays yours - const b = btn.getBoundingClientRect(); - const tx = b.left + b.width * 0.78, ty = b.top + b.height * 0.72; - const cp = eoc(prog(r, 0.55, 0.8)); - const wob = Math.sin(r * 5) * 4 * prog(r, 1.35, 0.3); - cur.style.opacity = String(clamp((r - 0.55) * 4)); - cur.style.transform = `translate(${lerp(tx + 380, tx, cp) + wob}px, ${lerp(ty + 420, ty, cp) + wob * 0.6}px)`; - } else if (s.id === 'brand') { - const [mark, word, tag, url, meta, desk, inst] = brandParts; - const mp = prog(r, 0.0, 0.45); - mark.style.opacity = String(clamp(mp * 3)); - mark.style.transform = `scale(${eob(mp)}) rotate(${(1 - eoc(mp)) * -25}deg)`; - pop(word, r, 0.15, 60); - pop(tag, r, 0.5, 40); - pop(url, r, 0.85, 40); - pop(meta, r, 1.05, 30); - pop(desk, r, 1.2, 30); - pop(inst, r, 1.4, 30); - const beat = 1 - prog(((r + 1e-6) % BEAT), 0, BEAT * 0.5); - url.style.textShadow = `0 0 ${20 + 30 * beat * (r > 0.85 ? 1 : 0)}px rgba(129,140,248,${0.35 + 0.35 * beat})`; + const btn = $('#sbtn').getBoundingClientRect(); + const tx = btn.left + btn.width * 0.62, ty = btn.top + btn.height * 0.62; + const a0 = s.start + 0.35; + const p = eio(prog(t, a0, SUBMIT_HOVER - a0)); + const arc = Math.sin(Math.PI * p) * 80; + // it stops on the button and waits: no click + const hes = Math.sin(Math.max(0, t - SUBMIT_HOVER) * 3.2) * 6 * prog(t, SUBMIT_HOVER, 0.4); + cursorAt(lerp(W * 0.9, tx, p) + arc * 0.3 + hes, lerp(H * 0.95, ty, p) - arc, prog(t, a0, 0.15) * (1 - prog(t, s.end - 0.15, 0.15))); + return; + } + if (cursorShown) cursorAt(0, 0, 0); +} +const id3 = id => id === 'desk3'; + +// ---------- submit + brand ---------- +const sbtn = $('#sbtn'), shov = $('#sbtn .hov'); +if (V) sbtn.style.top = '980px'; else sbtn.style.top = '560px'; +const brandWrap = $('#s-brand .wrap'); +brandWrap.querySelector('.url').textContent = URL; +brandWrap.querySelector('.plat').textContent = PLATFORMS; +if (!V) { brandWrap.querySelector('.mark').style.width = brandWrap.querySelector('.mark').style.height = '200px'; brandWrap.querySelector('.word').style.fontSize = '130px'; } +function endCards(t) { + const s = scene('submit'); + if (t >= s.start - 0.1 && t < s.end + 0.5) { + const r = t - s.start, e = eob(prog(r, 0.05, 0.45)); + const hov = prog(t, SUBMIT_HOVER, 0.15); + set(sbtn, 'transform', `translate(-50%, 0) scale(${(lerp(0.7, 1, e) * (1 + 0.03 * hov)).toFixed(4)})`); + set(sbtn, 'opacity', String(clamp(prog(r, 0.05, 0.2)))); + set(shov, 'opacity', String(hov)); + } + const b = scene('brand'); + if (t >= b.start - 0.1) { + const r = t - b.start; + set(brandWrap, 'transform', `translateY(-50%) scale(${lerp(1.0, 1.04, clamp(r / 4)).toFixed(4)})`); + [...brandWrap.children].forEach((el, i) => { + const p = prog(r, 0.08 + i * 0.16, i === 0 ? 0.5 : 0.36); + set(el, 'opacity', String(clamp(p * 2))); + set(el, 'transform', i === 0 ? `scale(${lerp(0.4, 1, eob(p)).toFixed(3)}) rotate(${((1 - eoc(p)) * -12).toFixed(2)}deg)` : `translateY(${((1 - eoc(p)) * 40).toFixed(1)}px)`); + set(el, 'filter', p < 1 ? `blur(${((1 - eoc(p)) * 12).toFixed(1)}px)` : 'none'); + }); } } -// ---------- seek ---------- function seek(t) { - t = clamp(t, 0, DURATION - 1e-6); + scenes(t); background(t); - captions(t); - terminal(t); - panels(t); + hook(t); + scan(t); + fixed(t); shots(t); + decl(t); desktop(t); endCards(t); + cursor(t); + captions(t); } const ready = (async () => { await document.fonts.ready; - await Promise.all([...document.images].map(im => im.decode().catch(() => { throw new Error(`image failed: ${im.src}`); }))); + const imgs = [...document.images, ...GRID.map(f => Object.assign(new Image(), { src: `out/assets/grid/${f}` }))]; + await Promise.all(imgs.map(im => im.decode().catch(() => { throw new Error(`image failed: ${im.src}`); }))); seek(0); })(); -window.teaser = { ready, seek, DURATION, FPS, BAR, W, H }; +window.teaser = { ready, seek, DURATION, FPS, W, H, BEAT, captionTimes }; if (q.has('t')) ready.then(() => seek(Number(q.get('t')))); if (q.has('play')) ready.then(() => { diff --git a/tests/fixtures/scan/teaser-fixed/Planner.xcodeproj/project.pbxproj b/tests/fixtures/scan/teaser-fixed/Planner.xcodeproj/project.pbxproj new file mode 100644 index 00000000..5343a49f --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/Planner.xcodeproj/project.pbxproj @@ -0,0 +1,13 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + objects = { + C1B2C3D4E5F6000000000002 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = Planner/Info.plist; + PRODUCT_BUNDLE_IDENTIFIER = com.example.planner; + }; + }; + }; +} diff --git a/tests/fixtures/scan/teaser-fixed/Planner/Ads.swift b/tests/fixtures/scan/teaser-fixed/Planner/Ads.swift new file mode 100644 index 00000000..1fedbf7a --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/Planner/Ads.swift @@ -0,0 +1,11 @@ +import AdSupport +import AppTrackingTransparency +import GoogleMobileAds + +enum Ads { + static func start() { + ATTrackingManager.requestTrackingAuthorization { _ in + GADMobileAds.sharedInstance().start(completionHandler: nil) + } + } +} diff --git a/tests/fixtures/scan/teaser-fixed/Planner/Info.plist b/tests/fixtures/scan/teaser-fixed/Planner/Info.plist new file mode 100644 index 00000000..5ef109e7 --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/Planner/Info.plist @@ -0,0 +1,12 @@ + + + + + CFBundleDisplayName + Planner + NSUserTrackingUsageDescription + Your data is used to show ads that fit your interests. + ITSAppUsesNonExemptEncryption + + + diff --git a/tests/fixtures/scan/teaser-fixed/Planner/LoginView.swift b/tests/fixtures/scan/teaser-fixed/Planner/LoginView.swift new file mode 100644 index 00000000..a5bb6d8b --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/Planner/LoginView.swift @@ -0,0 +1,25 @@ +import AuthenticationServices +import FirebaseAuth +import GoogleSignIn +import SwiftUI + +struct LoginView: View { + var body: some View { + VStack { + SignInWithAppleButton(.signIn) { _ in } onCompletion: { _ in } + Button("Continue with Google") { + GIDSignIn.sharedInstance.signIn(withPresenting: rootViewController()) { _, _ in } + } + Button("Create account") { Task { try await AccountApi.signUp() } } + } + } +} + +enum AccountApi { + static func signUp() async throws { + _ = try await Auth.auth().createUser(withEmail: "planner@example.com", password: "example") + } + static func deleteAccount() async throws { + try await Auth.auth().currentUser?.delete() + } +} diff --git a/tests/fixtures/scan/teaser-fixed/Planner/PrivacyInfo.xcprivacy b/tests/fixtures/scan/teaser-fixed/Planner/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..0e3bf796 --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/Planner/PrivacyInfo.xcprivacy @@ -0,0 +1,19 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/tests/fixtures/scan/teaser-fixed/Planner/ProStore.swift b/tests/fixtures/scan/teaser-fixed/Planner/ProStore.swift new file mode 100644 index 00000000..814cba95 --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/Planner/ProStore.swift @@ -0,0 +1,10 @@ +import StoreKit + +enum ProStore { + static func buy(_ product: Product) async throws { + _ = try await product.purchase() + } + static func restore() async throws { + try await AppStore.sync() + } +} diff --git a/tests/fixtures/scan/teaser-fixed/Planner/SettingsView.swift b/tests/fixtures/scan/teaser-fixed/Planner/SettingsView.swift new file mode 100644 index 00000000..13bcf2a9 --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/Planner/SettingsView.swift @@ -0,0 +1,10 @@ +import SwiftUI + +struct SettingsView: View { + var body: some View { + List { + Link("Privacy policy", destination: URL(string: "https://example.com/privacy")!) + Text("Last opened: \(UserDefaults.standard.string(forKey: "lastOpen") ?? "-")") + } + } +} diff --git a/tests/fixtures/scan/teaser-fixed/Podfile.lock b/tests/fixtures/scan/teaser-fixed/Podfile.lock new file mode 100644 index 00000000..a21b254c --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/Podfile.lock @@ -0,0 +1,9 @@ +PODS: + - Google-Mobile-Ads-SDK (11.10.0) + - GoogleSignIn (7.1.0) + +DEPENDENCIES: + - Google-Mobile-Ads-SDK + - GoogleSignIn + +COCOAPODS: 1.15.2 diff --git a/tests/fixtures/scan/teaser-fixed/README.md b/tests/fixtures/scan/teaser-fixed/README.md new file mode 100644 index 00000000..aa8961c9 --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/README.md @@ -0,0 +1,8 @@ +# teaser-fixed fixture + +The teaser fixture after the five fixes the teaser video shows: an App Review demo account (kept outside the repo: in +`.storebound/credentials.json` or `REVIEW_DEMO_USER` / `REVIEW_DEMO_PASSWORD`), in-app account deletion +(`accounts.inApp`, `deleteAccount()`), Sign in with Apple next to Google Sign-In, a Restore Purchases path +(`AppStore.sync()`) and App Tracking Transparency (`requestTrackingAuthorization` plus +`NSUserTrackingUsageDescription`). With the demo account set, `storebound scan` finds no rejection risk; that re-scan +is the one the teaser video shows. Not a buildable project. diff --git a/tests/fixtures/scan/teaser-fixed/store/appstore.md b/tests/fixtures/scan/teaser-fixed/store/appstore.md new file mode 100644 index 00000000..77033ff0 --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/store/appstore.md @@ -0,0 +1,23 @@ +# Planner · App Store listing copy + +## en-US · English (U.S.) + +### subtitle +``` +Plan your week in a minute +``` + +### promotionalText +``` +Weekly planning without the clutter. +``` + +### keywords +``` +planner,week,calendar,tasks,agenda +``` + +### description +``` +Planner lays out your week in one screen. Planner Pro adds themes and widgets. +``` diff --git a/tests/fixtures/scan/teaser-fixed/storebound.config.ts b/tests/fixtures/scan/teaser-fixed/storebound.config.ts new file mode 100644 index 00000000..19ab4a8c --- /dev/null +++ b/tests/fixtures/scan/teaser-fixed/storebound.config.ts @@ -0,0 +1,18 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Planner', + profile: 'app', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + accounts: { enabled: true, inApp: 'Settings > Account > Delete account' }, + reviewAccess: { signInRequired: true, instructions: 'Sign in with the demo account.' }, + languages: [{ id: 'en', apple: 'en-US' }], + apple: { bundleId: 'com.example.planner', usesNonExemptEncryption: false }, + products: [ + { id: 'com.example.planner.pro', type: 'non_consumable', usd: 4.99, listings: { en: { title: 'Planner Pro', description: 'Themes and widgets' } } }, + ], +}; diff --git a/tests/teaser.test.ts b/tests/teaser.test.ts new file mode 100644 index 00000000..7a4004c3 --- /dev/null +++ b/tests/teaser.test.ts @@ -0,0 +1,84 @@ +// The teaser video (media/teaser): the scan text it shows is the real `storebound scan` output of the teaser fixtures, +// every cut sits on the beat grid, every caption is short and stays readable, every scene holds long enough. +import { beforeAll, describe, expect, test } from 'bun:test'; +import { join } from 'node:path'; + +const ROOT = join(import.meta.dir, '..'); +const CLI = join(ROOT, 'cli', 'index.ts'); +const FX = join(import.meta.dir, 'fixtures', 'scan'); + +interface Scene { id: string; from: number; to: number; start: number; end: number; in: string | null } +interface Finding { sev: string; guideline: string; title: string; where: string; fix: string; skill: string } +interface Teaser { + BEAT: number; DURATION: number; SCENES: Scene[]; + CAPTIONS: { id: string; lines: string[] }[]; + captionTimes(): { id: string; words: string; count: number; at: number; from: number; to: number; hold: number }[]; + SCAN_HEAD: { text: string }[]; SDKS: { name: string; what: string; dep: string; where: string }[]; + RISKS_LINE: string; FINDINGS: Finding[]; RESCAN_LINE: string; RESCAN_NONE: string; + DECL_LINES: { what: string; value: string; where: string }[]; DECL_ASK: string; CMD: string; +} +const path: string = join(ROOT, 'media/teaser/script.js'); +const T = (await import(path)) as Teaser; + +const scanText = (dir: string, demo: boolean): string => { + const env = { ...process.env, NO_COLOR: '1', REVIEW_DEMO_USER: demo ? 'demo@example.com' : '', REVIEW_DEMO_PASSWORD: demo ? 'example' : '' }; + const r = Bun.spawnSync(['bun', CLI, 'scan', '--dir', join(FX, dir)], { env, stdout: 'pipe', stderr: 'pipe' }); + // exit code 1 when blockers are found (the fixture before the fixes), 0 after + expect(r.exitCode).toBe(demo ? 0 : 1); + return r.stdout.toString() + r.stderr.toString(); +}; +let before = '', after = ''; +beforeAll(() => { before = scanText('teaser', false); after = scanText('teaser-fixed', true); }); + +describe('teaser: the scan text is real', () => { + test('command, header, SDKs and the risks line come from `storebound scan` of tests/fixtures/scan/teaser', () => { + expect(T.CMD).toBe('storebound scan'); + for (const l of T.SCAN_HEAD) expect(before).toContain(l.text); + for (const s of T.SDKS) expect(before).toMatch(new RegExp(`${s.name}\\s+${s.what.replace(/[()]/g, '\\$&')} · ${s.dep} \\(${s.where}\\)`)); + expect(before).toContain(T.RISKS_LINE); + }); + test('the five findings: severity, guideline, title, file:line, a verbatim piece of the fix, the skill', () => { + expect(T.FINDINGS).toHaveLength(5); + const blocks = before.split(/\n\s+\d\. /).slice(1); + T.FINDINGS.forEach((f, i) => { + const b = blocks[i]!; + expect(b.startsWith(`${f.sev.padEnd(7)} ${f.guideline} · App Store · ${f.title}`)).toBe(true); + expect(b).toContain(`at ${f.where}`); + expect(b).toContain(`skill: ${f.skill}`); + expect(b.match(/fix: (.*)/)![1]).toContain(f.fix); + }); + }); + test('declarations proposal lines', () => { + for (const d of T.DECL_LINES) expect(before).toContain(`detected ${d.what}: ${d.value}`); + for (const d of T.DECL_LINES) expect(before).toContain(`(${d.where})`); + expect(before).toContain(T.DECL_ASK); + }); + test('the re-scan after the fixes (tests/fixtures/scan/teaser-fixed, demo account in the environment) is clean', () => { + expect(after).toContain(T.RESCAN_LINE); + expect(after).toContain(T.RESCAN_NONE); + }); +}); + +describe('teaser: timing', () => { + const near = (x: number): boolean => Math.abs(x / T.BEAT - Math.round(x / T.BEAT)) < 1e-9; + test('scenes are contiguous, cover the video and cut on the beat', () => { + expect(T.SCENES[0]!.start).toBe(0); + for (let i = 1; i < T.SCENES.length; i++) expect(T.SCENES[i]!.start).toBe(T.SCENES[i - 1]!.end); + expect(T.SCENES.at(-1)!.end).toBeCloseTo(T.DURATION, 9); + for (const s of T.SCENES) expect(near(s.start), s.id).toBe(true); + expect(T.DURATION).toBeGreaterThan(29); + expect(T.DURATION).toBeLessThan(35); + }); + test('every scene holds at least 2.5 s', () => { + for (const s of T.SCENES) expect(s.end - s.start, s.id).toBeGreaterThanOrEqual(2.5); + }); + test('captions: at most 7 words, fully on screen for at least 1.2 s, never overlapping', () => { + const c = T.captionTimes(); + expect(c).toHaveLength(T.CAPTIONS.length); + for (const x of c) { + expect(x.count, x.words).toBeLessThanOrEqual(7); + expect(x.hold, x.words).toBeGreaterThanOrEqual(1.2); + } + for (let i = 1; i < c.length; i++) expect(c[i]!.at).toBeGreaterThanOrEqual(c[i - 1]!.to); + }); +}); diff --git a/tools/site-icons.ts b/tools/site-icons.ts index b4943399..4babd615 100644 --- a/tools/site-icons.ts +++ b/tools/site-icons.ts @@ -4,7 +4,7 @@ // App Store / Google Play marks from simple-icons (CC0 data) // apps/desktop/src/ui/store-marks the same two store marks for the desktop app (the other desktop icons come from // @phosphor-icons/react) -// media/teaser/icons Phosphor icons for the teaser video (the mouse cursor, the blocker-list icons) +// media/teaser/icons Phosphor icons for the teaser video (the mouse cursor, the inbox, finding and fix icons) // Both show them as CSS masks (site/style.css .ic-*, desktop styles.css .store-mark), so they take the text colour in // both themes and nothing is loaded from outside. The store marks only name the store next to its name; they are // trademarks of Apple Inc. and Google LLC (docs/desktop.md, the site footer). @@ -16,7 +16,8 @@ import { join } from 'node:path'; export const SITE_ICONS = ['caret-right', 'play', 'user', 'squares-four', 'briefcase'] as const; export const STORE_MARKS = ['appstore', 'googleplay'] as const; /** Teaser icons: [Phosphor weight, icon name], vendored as -.svg (the package's own file name). */ -export const TEASER_ICONS = [['fill', 'navigation-arrow'], ['bold', 'check'], ['bold', 'arrow-right'], ['bold', 'user']] as const; +export const TEASER_ICONS = [['fill', 'navigation-arrow'], ['bold', 'check'], ['fill', 'x-circle'], ['fill', 'check-circle'], ['bold', 'tray'], + ['bold', 'magnifying-glass'], ['bold', 'pencil-simple'], ['fill', 'warning-octagon'], ['fill', 'paper-plane-tilt'], ['bold', 'terminal-window']] as const; const root = new URL('..', import.meta.url).pathname; const phosphor = join(root, 'node_modules/@phosphor-icons/core'); From 9d0af72806c7acf7d112c6e5da6cb3d0281a9da9 Mon Sep 17 00:00:00 2001 From: CRT Date: Sun, 11 Oct 2026 15:58:17 +0000 Subject: [PATCH 7/8] Store operations: TestFlight wait / expire, IAP review submissions, listing pulls, release notes per language, offers, custom product pages, in-app events, reports, triage, keyword ranks, AdAttributionKit scan - apple testflight wait --build N (progress, timeout, exit 0/1/7) and expire --keep N | --older-than D (dry run, asks) - apple iap-submit: IAP / subscription / group versions into a review submission; first of a type only with the app version (--with-version), --no-submit keeps the draft; read-only MCP plan - apple listing pull, play listing pull (diff, --write), catalog pull (config proposal, never rewritten) - whats-new --languages / check / apply: one file per language, agent or hook translation, per-store limits - apple offer-codes, win-back, promoted, preorder; Play pre-registration as a guide (no API) - apple cpp and apple events: list, create, upload, submit (asks) - reports: Apple sales / finance, Play earnings / sales into .storebound/reports with summary and CSV - triage: TestFlight crash / feedback and Play error reports grouped by signature, device, OS - aso rank: iTunes Search API ranks and competitors, rate limited - ads scan: AdAttributionKit / SKAdNetwork Info.plist and source checks - tests against recorded, sanitized answers; skills, README, CHANGELOG --- .cursor/rules/storebound.mdc | 3 +- .github/copilot-instructions.md | 3 +- AGENTS.md | 3 +- CHANGELOG.md | 47 ++++ GEMINI.md | 3 +- README.md | 65 +++-- cli/ads.ts | 71 ++++++ cli/apple/asc.ts | 14 +- cli/apple/cpp.ts | 145 +++++++++++ cli/apple/events.ts | 126 ++++++++++ cli/apple/iap-submit.ts | 105 ++++++++ cli/apple/listing.ts | 54 +++- cli/apple/offer-codes.ts | 92 +++++++ cli/apple/preorder.ts | 61 +++++ cli/apple/promoted.ts | 62 +++++ cli/apple/testflight.ts | 73 +++++- cli/apple/win-back.ts | 70 ++++++ cli/aso.ts | 66 +++++ cli/catalog.ts | 66 ++++- cli/index.ts | 21 +- cli/lib/adattribution.ts | 172 +++++++++++++ cli/lib/aso-rank.ts | 63 +++++ cli/lib/build-ops.ts | 89 +++++++ cli/lib/config.ts | 18 ++ cli/lib/cpp-events.ts | 202 +++++++++++++++ cli/lib/credentials.ts | 7 + cli/lib/diff.ts | 32 +++ cli/lib/listing-pull.ts | 164 ++++++++++++ cli/lib/offers.ts | 301 ++++++++++++++++++++++ cli/lib/plist.ts | 56 +++++ cli/lib/reports.ts | 150 +++++++++++ cli/lib/review-submit.ts | 166 ++++++++++++ cli/lib/triage.ts | 122 +++++++++ cli/lib/whats-new.ts | 68 +++++ cli/lib/zip.ts | 32 +++ cli/mcp-tools.ts | 68 +++++ cli/play/listing.ts | 33 ++- cli/reports.ts | 121 +++++++++ cli/triage.ts | 96 +++++++ cli/whats-new.ts | 103 +++++++- skills/ads-mediation-checks/SKILL.md | 30 ++- skills/app-store-promotion/SKILL.md | 100 ++++++++ skills/aso-basics/SKILL.md | 14 +- skills/release-management/SKILL.md | 16 +- skills/store-analytics/SKILL.md | 20 +- skills/store-health/SKILL.md | 18 +- skills/store-iap-setup/SKILL.md | 36 ++- skills/store-subscriptions/SKILL.md | 9 +- skills/testflight/SKILL.md | 16 ++ skills/whats-new/SKILL.md | 22 +- templates/credentials.example.json | 1 + tests/helpers/store-mock.ts | 107 ++++++++ tests/store-ops-apple.test.ts | 363 +++++++++++++++++++++++++++ tests/store-ops-reports.test.ts | 202 +++++++++++++++ tests/store-ops-text.test.ts | 283 +++++++++++++++++++++ 55 files changed, 4388 insertions(+), 62 deletions(-) create mode 100644 cli/ads.ts create mode 100644 cli/apple/cpp.ts create mode 100644 cli/apple/events.ts create mode 100644 cli/apple/iap-submit.ts create mode 100644 cli/apple/offer-codes.ts create mode 100644 cli/apple/preorder.ts create mode 100644 cli/apple/promoted.ts create mode 100644 cli/apple/win-back.ts create mode 100644 cli/aso.ts create mode 100644 cli/lib/adattribution.ts create mode 100644 cli/lib/aso-rank.ts create mode 100644 cli/lib/build-ops.ts create mode 100644 cli/lib/cpp-events.ts create mode 100644 cli/lib/diff.ts create mode 100644 cli/lib/listing-pull.ts create mode 100644 cli/lib/offers.ts create mode 100644 cli/lib/plist.ts create mode 100644 cli/lib/reports.ts create mode 100644 cli/lib/review-submit.ts create mode 100644 cli/lib/triage.ts create mode 100644 cli/lib/zip.ts create mode 100644 cli/reports.ts create mode 100644 cli/triage.ts create mode 100644 skills/app-store-promotion/SKILL.md create mode 100644 tests/helpers/store-mock.ts create mode 100644 tests/store-ops-apple.test.ts create mode 100644 tests/store-ops-reports.test.ts create mode 100644 tests/store-ops-text.test.ts diff --git a/.cursor/rules/storebound.mdc b/.cursor/rules/storebound.mdc index 2c41da63..6adc17cc 100644 --- a/.cursor/rules/storebound.mdc +++ b/.cursor/rules/storebound.mdc @@ -43,6 +43,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - `skills/ads-mediation-checks/SKILL.md`: Diagnose and verify ad mediation in a mobile app or game before and after store release - `skills/app-icons/SKILL.md`: Generate every icon a mobile app or game needs from one artwork - `skills/app-previews/SKILL.md`: Make App Store app preview videos and a Google Play promo video for a mobile app or game from real footage (gameplay or app flows) +- `skills/app-store-promotion/SKILL.md`: App Store promotion tools for a mobile app or game through the App Store Connect API - `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game - `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text - `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly @@ -55,7 +56,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - `skills/review-access/SKILL.md`: Give App Store and Google Play reviewers working access to an app behind a sign-in - `skills/review-rejections/SKILL.md`: Triage and answer an App Store or Google Play rejection, policy warning or strike for a mobile app or game - `skills/review-replies/SKILL.md`: Reply to App Store and Google Play reviews of a mobile app or game the safe way -- `skills/store-analytics/SKILL.md`: Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git +- `skills/store-analytics/SKILL.md`: Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git; download App Store sales / finance reports and Play earnings / sales reports with a summary per product and currency - `skills/store-declarations/SKILL.md`: Answer the store compliance forms for a mobile app or game - `skills/store-health/SKILL.md`: Watch a released mobile app's or game's crash and ANR health on both stores - `skills/store-iap-setup/SKILL.md`: Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ecfa9e79..3f39668c 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -45,6 +45,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t | `ads-mediation-checks` | Diagnose and verify ad mediation in a mobile app or game before and after store release | | `app-icons` | Generate every icon a mobile app or game needs from one artwork | | `app-previews` | Make App Store app preview videos and a Google Play promo video for a mobile app or game from real footage (gameplay or app flows) | +| `app-store-promotion` | App Store promotion tools for a mobile app or game through the App Store Connect API | | `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game | | `aso-basics` | App store optimization basics for a mobile app's or game's text | | `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly | @@ -57,7 +58,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t | `review-access` | Give App Store and Google Play reviewers working access to an app behind a sign-in | | `review-rejections` | Triage and answer an App Store or Google Play rejection, policy warning or strike for a mobile app or game | | `review-replies` | Reply to App Store and Google Play reviews of a mobile app or game the safe way | -| `store-analytics` | Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git | +| `store-analytics` | Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git; download App Store sales / finance reports and Play earnings / sales reports with a summary per product and currency | | `store-declarations` | Answer the store compliance forms for a mobile app or game | | `store-health` | Watch a released mobile app's or game's crash and ANR health on both stores | | `store-iap-setup` | Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list | diff --git a/AGENTS.md b/AGENTS.md index 19cf225e..711b4857 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -44,6 +44,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - `skills/ads-mediation-checks/SKILL.md`: Diagnose and verify ad mediation in a mobile app or game before and after store release - `skills/app-icons/SKILL.md`: Generate every icon a mobile app or game needs from one artwork - `skills/app-previews/SKILL.md`: Make App Store app preview videos and a Google Play promo video for a mobile app or game from real footage (gameplay or app flows) +- `skills/app-store-promotion/SKILL.md`: App Store promotion tools for a mobile app or game through the App Store Connect API - `skills/appstore-first-release/SKILL.md`: Step-by-step first (and later) App Store release of a mobile app or game - `skills/aso-basics/SKILL.md`: App store optimization basics for a mobile app's or game's text - `skills/export-compliance/SKILL.md`: Answer App Store export compliance (encryption) for a mobile app or game correctly @@ -56,7 +57,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t - `skills/review-access/SKILL.md`: Give App Store and Google Play reviewers working access to an app behind a sign-in - `skills/review-rejections/SKILL.md`: Triage and answer an App Store or Google Play rejection, policy warning or strike for a mobile app or game - `skills/review-replies/SKILL.md`: Reply to App Store and Google Play reviews of a mobile app or game the safe way -- `skills/store-analytics/SKILL.md`: Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git +- `skills/store-analytics/SKILL.md`: Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git; download App Store sales / finance reports and Play earnings / sales reports with a summary per product and currency - `skills/store-declarations/SKILL.md`: Answer the store compliance forms for a mobile app or game - `skills/store-health/SKILL.md`: Watch a released mobile app's or game's crash and ANR health on both stores - `skills/store-iap-setup/SKILL.md`: Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list diff --git a/CHANGELOG.md b/CHANGELOG.md index ba686186..d9d8f08a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,53 @@ ## Unreleased +- Store operations. Every new command has `--dry` and `--json`; what customers can see, redeem or lose (submitting, + codes, offers, pre-orders, expiring builds, making a page visible) asks first in the terminal and is not an MCP + tool. API details come from the App Store Connect API 4.5.1 OpenAPI spec, Apple's and Google's reference pages and + App Store Connect Help (cited at the top of each `cli/lib/*.ts`); tests run the commands against recorded, + sanitized answers (`tests/store-ops-*.test.ts`, harness in `tests/helpers/store-mock.ts`). + - TestFlight: `apple testflight wait --build N` (polls until VALID / FAILED, progress lines, `--timeout`, exit 0 / + 1 / 7) and `apple testflight expire --keep N | --older-than D` (newest, attached and processing builds stay; + `PATCH /v1/builds/{id}` `expired: true`). + - `apple iap-submit`: IAP, subscription and subscription group versions into a review submission + (`reviewSubmissionItems` with `inAppPurchaseVersion` / `subscriptionVersion` / `subscriptionGroupVersion`, API + 4.4.1+; the deprecated `inAppPurchaseSubmissions` are not used). It applies Apple's rules: the first item of each + type only together with a new app version (`--with-version`), later ones alone once the app has an approved + version, a new subscription with its unapproved group, at most 200 items; `--no-submit` stops at the draft, + `--new-version` makes a new draft version of an approved or rejected product. MCP: the read-only plan + `apple_iap_review_plan`. + - Pulls: `apple listing pull`, `play listing pull` (live texts back into `store/*.md`, diff first, `--write` to + write) and `catalog pull` (IAP and subscription texts as a proposal diff; the config is never rewritten, + `--write` saves `.storebound/pull/catalog.json`). + - `whats-new --languages a,b,c`: one file per language in `store/whats-new/`, translated by your agent (skill) or a + `--translate ""` hook of yours (no translation service or key in the CLI); `whats-new check` (Play 500, + App Store 4000, untranslated or identical to the source) and `whats-new apply`. + - Offers: `apple offer-codes` (offer codes for one-time purchases, `inAppPurchaseOfferCodes`; custom and one-time-use + codes only with `--codes`, saved to `.storebound/offer-codes/`), `apple win-back` (win-back offers, + `winBackOffers`), `apple promoted` (promoted purchases: create disabled, order, `--enable`), `apple preorder + status | enable | end` (territory availabilities, `endAppAvailabilityPreOrders`). Google Play pre-registration and + promo codes have no API: console guide in the new `app-store-promotion` skill. + - `apple cpp list | create | upload | submit | visible` (custom product pages, screenshots from a shots variant) and + `apple events list | create | upload | submit` (in-app events with schedule, localizations, card and details + images checked against Apple's sizes). + - `reports apple-sales | apple-finance | play-earnings | play-sales`: Apple `salesReports` / `financeReports` + (vendor number from `ASC_VENDOR_NUMBER` in env or `.storebound/credentials.json`) and the Play earnings / sales + zips from the reports bucket into `.storebound/reports/`, with a summary per product and currency and a CSV. + Zero dependencies: a small ZIP reader on `node:zlib`. + - `triage`: TestFlight crash reports (signature from each crash log, text and `.ips`), TestFlight screenshot feedback + and Play error reports of the top issues, grouped by signature with devices, OS versions and builds; tester emails + are never requested. + - `aso rank`: the app's rank per keyword and storefront in the public iTunes Search API results plus the first + competitors, one request every 3.5 s (Apple allows about 20 a minute), snapshots in `.storebound/aso/`. Subtitles + are not in any public API and are not shown. + - `ads scan --ios `: AdAttributionKit / SKAdNetwork checks of Info.plist and sources (ad network ids and their + case, `AttributionCopyEndpoint`, re-engagement copies, `NSAdvertisingAttributionReportEndpoint`, attribution + windows and cooldown ranges, conversion value updates); the ads-mediation-checks skill explains each finding. + - New MCP tools (dry by default where they write local files): `apple_testflight_wait`, `apple_iap_review_plan`, + `apple_listing_pull`, `play_listing_pull`, `catalog_pull`, `whats_new_languages`, `whats_new_check`, + `whats_new_apply`, `reports`, `triage`, `aso_rank`, `ads_scan`, `apple_cpp_list | create | upload`, + `apple_events_list | create | upload`, `apple_preorder_status`. + - New logo: a glossy indigo box with an upward arrow (`brand/master/logo-mark.png`, `brand/README.md`). Every logo file comes from it through `tools/brand-assets.py`: desktop app icons (PNG sizes, `.icns`, a `.ico` with its own image per size, Windows tiles), the site's favicon.ico, maskable web app icons with a manifest, apple-touch-icon, diff --git a/GEMINI.md b/GEMINI.md index dd0810f0..0b714c18 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -44,6 +44,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t | `ads-mediation-checks` | Diagnose and verify ad mediation in a mobile app or game before and after store release | | `app-icons` | Generate every icon a mobile app or game needs from one artwork | | `app-previews` | Make App Store app preview videos and a Google Play promo video for a mobile app or game from real footage (gameplay or app flows) | +| `app-store-promotion` | App Store promotion tools for a mobile app or game through the App Store Connect API | | `appstore-first-release` | Step-by-step first (and later) App Store release of a mobile app or game | | `aso-basics` | App store optimization basics for a mobile app's or game's text | | `export-compliance` | Answer App Store export compliance (encryption) for a mobile app or game correctly | @@ -56,7 +57,7 @@ These rules apply to every AI tool that uses storebound (skills, MCP server or t | `review-access` | Give App Store and Google Play reviewers working access to an app behind a sign-in | | `review-rejections` | Triage and answer an App Store or Google Play rejection, policy warning or strike for a mobile app or game | | `review-replies` | Reply to App Store and Google Play reviews of a mobile app or game the safe way | -| `store-analytics` | Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git | +| `store-analytics` | Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git; download App Store sales / finance reports and Play earnings / sales reports with a summary per product and currency | | `store-declarations` | Answer the store compliance forms for a mobile app or game | | `store-health` | Watch a released mobile app's or game's crash and ANR health on both stores | | `store-iap-setup` | Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list | diff --git a/README.md b/README.md index 4940806f..8d019dfa 100644 --- a/README.md +++ b/README.md @@ -76,17 +76,20 @@ New personal Play developer accounts also need a closed test with 12+ testers fo every language, graphics, screenshots, app previews, in-app products and prices (also from one CSV), Play Data safety, Apple age rating, categories, content rights, price and availability, export compliance answer, App Review details with the demo account, subscriptions (Apple groups, levels, prices, introductory and promotional offers, - offer codes; Play base plans, regional prices, offers), phased release and staged rollout, TestFlight groups / testers / What to Test / Test Information, crash and - ANR vitals and App Store diagnostics, review replies, App Store analytics reports, App Store Product Page - Optimization tests. + offer codes; Play base plans, regional prices, offers), phased release and staged rollout, TestFlight groups / testers / What to Test / Test Information / build + processing / expiring builds, crash and ANR vitals and App Store diagnostics, TestFlight feedback, review replies, + App Store analytics reports, sales and finance reports, App Store Product Page Optimization tests, IAP and + subscription review submissions, offer codes for one-time purchases, win-back offers, promoted IAPs, pre-orders, + custom product pages and in-app events, and pulling live listing texts back. - **Console only** (no public API; the skill + your agent's browser, or you): creating the App Store Connect app record and the Play app, Play App content (IARC content rating, target audience, ads, advertising ID, app access, government / financial / health / news, app access with the demo account), Play category and tags, Play countries, - App Privacy labels and their Publish, adding first IAPs and subscriptions to the submission, Play promo codes, Play store listing experiments, test results of both stores' experiments. + App Privacy labels and their Publish, Play promo codes, Play pre-registration, Play store listing experiments, test results of both stores' experiments, promotional images of promoted IAPs. Play store statistics have no API either: storebound reads the monthly exports from your Play reports bucket. -- **Only you**: agreements, banking and tax, and the final Send for review / Submit for Review. Releases and - rollouts after approval, Beta App Review, tester invitations, sending review replies, applying price changes and - starting / stopping a product page test too. None of these is an MCP tool; the terminal commands ask first. +- **Only you**: agreements, banking and tax, and the final Send for review / Submit for Review (apps, IAPs, custom + product pages, in-app events). Releases and rollouts after approval, Beta App Review, tester invitations, sending + review replies, applying price changes, starting / stopping a product page test, creating offer codes, win-back + offers, switching on promoted IAPs, pre-orders and expiring builds too. None of these is an MCP tool; the terminal commands ask first. ## 5-minute quick start @@ -211,6 +214,9 @@ run in the background with a log (`storebound shots render > .storebound/render. | `check --aso` | local | keyword audit: App Store keyword field rules, Play stuffing / claims | | `validate [--apple] [--play]` | API, read-only | readiness report with ordered blockers plus the local renders checks (`--no-local` skips); exit 1 while any blocker is left | | `whats-new [--since ]` | local | draft player-facing release notes from git log into both listing files | +| `whats-new --languages en,de,tr` / `check` / `apply` | local | one file per language (`store/whats-new/`) for your agent (or a `--translate` hook of yours) to translate, per-store limits (Play 500, App Store 4000), then into both listing files | +| `catalog pull [--write]` | API, read-only + local | IAP and subscription texts on the stores vs the config: a proposal diff (`.storebound/pull/catalog.json`); the config is never rewritten | +| `ads scan --ios ` | local | AdAttributionKit / SKAdNetwork: ad network ids, postback copy endpoints, attribution windows and cooldown, conversion value updates; exit 1 on a blocker | | `privacy-manifest --ios ` | local | PrivacyInfo.xcprivacy, required-reason APIs, SDKs without manifests | | `desktop [--download]` | local | open the storebound desktop app (in an app folder: add or select it there); not installed: the download for this system, `--download` saves it to ~/Downloads after checking its signature (never installs) | | `doctor [--json]` | local | which local tools are here (ffmpeg, Chrome, playwright, Xcode, adb, git) and how to install the missing ones | @@ -224,6 +230,7 @@ run in the background with a log (`storebound shots render > .storebound/render. | command | kind | what | |---|---|---| | `play listing` | API | app details, title / short / full description per language, promo video URL (`play.video`) | +| `play listing pull [--write]` | API, read-only + local | live listings back into `store/listing.md`: diff first, writes only with `--write` | | `play images [--variant b]` | API | icon, feature graphic, phone / 7" / 10" screenshots, one edit per language | | `play products` | API | one-time products: regional prices from `convertRegionPrices` + your overrides, activate | | `play subscriptions [--csv]` | API | subscriptions: listings + benefits, one auto-renewing base plan, regional prices, intro and extra offers, activate (plan first, asks) | @@ -242,9 +249,17 @@ run in the background with a log (`storebound shots render > .storebound/render. |---|---|---| | `apple bundle` | API | register the bundle id, find the app record | | `apple listing --version x.y.z [--build N]` | API | version (manual release), the build with exactly that number, texts per locale | +| `apple listing pull [--version x.y.z] [--write]` | API, read-only + local | live texts back into `store/appstore.md`: diff first, writes only with `--write` | | `apple screenshots [--variant b]` | API | 6.9" + 6.5" (+ 13" iPad with `apple.ipad`, + 6.3" with `apple.iphoneMedium`) per locale, MD5-idempotent | | `apple previews [--poster 5]` | API | app preview videos per locale, checked first, MD5-idempotent, poster frame | | `apple iap` / `apple iap-review` | API | IAPs (consumable, non-consumable, non-renewing), localizations, price schedules, availability / review screenshots | +| `apple iap-submit [--with-version] [--no-submit]` | API | IAP / subscription / group versions into a review submission (the first of a type together with the app version); asks before adding and before submitting | +| `apple offer-codes [--codes]` | API | offer code campaigns for one-time purchases; custom and one-time-use codes only with `--codes` (asks; codes saved to `.storebound/offer-codes/`) | +| `apple win-back` | API | win-back offers for lapsed subscribers (asks: they go live on their start date) | +| `apple promoted [--enable]` | API | promoted in-app purchases: create (disabled), order, switch on (asks) | +| `apple preorder status \| enable --release-date \| end` | API | pre-orders per territory (enable / end ask first) | +| `apple cpp list \| create \| upload \| submit \| visible` | API | custom product pages from the config and a shots variant; submit / visible ask first | +| `apple events list \| create \| upload \| submit` | API | in-app events with schedule, localizations, card and details images; submit asks first | | `apple subscriptions [--csv] [--codes]` | API | groups, subscriptions, levels, localizations, availability, equalized prices + overrides + CSV (scheduled changes), introductory and promotional offers, offer code campaigns, review screenshots (plan first, asks; custom codes only with `--codes`) | | `apple appinfo` | API | categories, age rating, content rights, Free, territories | | `apple review-details` | API | App Review contact, demo account (from `.storebound/`, masked), notes (+ sign-in steps, where account deletion is) | @@ -268,6 +283,8 @@ run in the background with a log (`storebound shots render > .storebound/render. | `apple testflight what-to-test --build N` | API | "What to Test" per locale from `store/appstore.md` (`whatToTest`, else `whatsNew`) | | `apple testflight info` | API | Beta App Description, feedback email, URLs, Beta App Review contact and notes | | `apple testflight distribute --build N --group a,b [--submit-review]` | API | the build to groups; external groups and Beta App Review ask first | +| `apple testflight wait --build N [--timeout 60m]` | API, read-only | until processing ends, with progress; exit 0 VALID / 1 FAILED / 7 timeout | +| `apple testflight expire --keep N \| --older-than D` | API | expire old builds (never attached or processing ones); dry run, then asks | @@ -285,6 +302,9 @@ run in the background with a log (`storebound shots render > .storebound/render. | `analytics setup` | API | App Store analytics report request (once, Admin key) | | `analytics snapshot [--days 28]` | API + local | impressions, page views, downloads (App Store), visitors, acquisitions, installs (Play reports bucket) -> `.storebound/analytics/` | | `analytics compare` | local | snapshots vs the git history of the store files: before / after each listing change | +| `reports apple-sales \| apple-finance \| play-earnings \| play-sales` | API, read-only + local | sales / finance reports into `.storebound/reports/`, summary per product and currency, CSV export | +| `triage [--days 14]` | API, read-only | TestFlight crash and screenshot feedback, Play error reports: grouped by signature with devices, OS versions, builds | +| `aso rank [--storefronts us,de]` | network + local | App Store rank per keyword and storefront plus competitors from the public iTunes Search API (rate limited) -> `.storebound/aso/` | @@ -364,12 +384,13 @@ navigation. | `migrate-from-fastlane` | `storebound import fastlane`: ids, listings, languages and screenshots from fastlane; keys and accounts stay out | | `play-first-release` | Google Play from zero to "In review" | | `appstore-first-release` | App Store from API key to "Waiting for review", incl. xcodebuild with the API key | -| `testflight` | beta groups, testers from a CSV that never enters git, What to Test, Test Information, Beta App Review | -| `store-iap-setup` | in-app products on both stores (consumable, non-consumable, non-renewing), prices and the price sheet CSV, catalog diff, testers, the first-IAP-with-version rule | +| `testflight` | beta groups, testers from a CSV that never enters git, What to Test, Test Information, Beta App Review, waiting for processing, expiring old builds | +| `store-iap-setup` | in-app products on both stores (consumable, non-consumable, non-renewing), prices and the price sheet CSV, catalog diff, testers, review submissions through the API and the first-IAP-with-version rule | | `store-subscriptions` | subscription groups, levels, base plans, prices, intro and promotional offers, offer codes, disclosure and Terms (3.1.2), first submission | | `review-access` | demo account for reviewers (App Review fields, Play App access), never committed | | `account-deletion` | Apple 5.1.1(v) in-app deletion, Play delete-account web page and Data safety | -| `aso-basics` | keyword field, subtitle, cross-localization, Play placement without stuffing | +| `aso-basics` | keyword field, subtitle, cross-localization, Play placement without stuffing, keyword ranks via the iTunes Search API | +| `app-store-promotion` | IAP offer codes, win-back offers, promoted IAPs, pre-orders (Play pre-registration: console guide), custom product pages, in-app events | | `store-declarations` | every questionnaire: Play Data safety (API) and App content (IARC, target audience, ads, advertising ID, app access, government / financial / health), Apple App Privacy labels and age rating | | `export-compliance` | encryption answer, Info.plist key, declarations; never exempt by default | | `privacy-policy` | one policy page for all your apps with a per-app services table (templates per profile) | @@ -378,13 +399,13 @@ navigation. | `store-screenshots` | capture from any engine, copy, fonts, render, checks, gallery, variants, App Store product page tests, Play experiments, upload | | `app-previews` | app or gameplay clips, App Store previews, Play promo video, checks, upload | | `store-preflight` | run and read `check`, `check --aso`, `validate`, `privacy-manifest` before submitting | -| `release-management` | updates: Apple phased + manual release, Play staged rollout, halt / pause (not a rollback), review wait | -| `store-health` | crash / ANR vitals vs Play's bad behavior thresholds, App Store diagnostics, weekly report | +| `release-management` | updates: Apple phased + manual release, Play staged rollout, halt / pause (not a rollback), review wait, pulling console edits back | +| `store-health` | crash / ANR vitals vs Play's bad behavior thresholds, App Store diagnostics, weekly report, crash and feedback triage | | `review-replies` | reply drafts, tone, no incentives, store limits, the owner approves and sends | -| `store-analytics` | App Store analytics reports, Play reports bucket, before / after listing changes | -| `whats-new` | player-facing release notes from git, localized, within store limits | +| `store-analytics` | App Store analytics reports, Play reports bucket, before / after listing changes, sales / finance / earnings reports | +| `whats-new` | player-facing release notes from git, one file per language for your agent to translate, store limits checked | | `review-rejections` | triage a rejection (fix / clarify / push back / appeal), reply template, the guidelines apps and games hit | -| `ads-mediation-checks` | AdMob, AppLovin MAX and LevelPlay: ids, debug tools, adapters, app-ads.txt, SKAdNetwork, no-fill (`ads-levelplay-checks` stays as a pointer) | +| `ads-mediation-checks` | AdMob, AppLovin MAX and LevelPlay: ids, debug tools, adapters, app-ads.txt, SKAdNetwork, AdAttributionKit (`ads scan`), no-fill (`ads-levelplay-checks` stays as a pointer) | | `portfolio-originality` | Guideline 4.3 gate for developers shipping many similar apps or games | ## MCP server @@ -498,9 +519,9 @@ in 0.4.0. 0.5.0 made storebound app-first (profiles, app screenshot style, accou brought the full in-app catalog: subscriptions on both stores with offers and offer codes, non-renewing products and the cross-store `catalog diff`. Next, roughly in this order: -- Offer codes for one-time products (`inAppPurchaseOfferCodes`), Play prepaid base plans for `non_renewing`, win-back - offers, and a `prices export` that includes subscriptions. -- App Store custom product pages and in-app events from the same copy and renders. +- Play prepaid base plans for `non_renewing`, and a `prices export` that includes subscriptions. +- The App Asset Library (API 4.5.1) for screenshots, custom product pages and in-app events once the screenshot sets + it replaces stop working. - Play store listing experiments and their results, as soon as Google offers an API. - App preview treatments and alternate icons in Product Page Optimization tests. - The iPhone Duo screenshot classes Apple lists for apps built with the iOS 27.1 SDK (required from April 2027). @@ -541,7 +562,13 @@ Checked against each tool's own docs in October 2026: pay-as-you-go offers as a `relativeDiscount`, Play "developer determined" offers as offers without targeting plus an offer tag, the ISO 8601 strings for Play billing periods (Google lists them only in words), the Play subscription benefit length (40, from Play Console), the Data safety sign-up method ids (`PSL_ACM_*`, Google publishes none: - compare with a Console export) and the delete-account URL question id (use `dataSafety.extra`). + compare with a Console export) and the delete-account URL question id (use `dataSafety.extra`). From the store + operations (built from the App Store Connect API 4.5.1 OpenAPI spec and the cited Help pages, tested with recorded + answers, not yet run live): the first IAP of a type sent through `reviewSubmissionItems` next to the app version + (`--no-submit` leaves the draft for the UI if Apple refuses it), free IAP offer code and win-back prices without a + price point, the order request for promoted purchases, the Play earnings / sales zip names beyond the documented + prefix (storebound lists the prefix), and where Xcode stores `AttributionCopyEndpoint` (top level or inside an + `AdAttributionKit` dictionary: both are read). - **Apple IAP description**: 45 characters (App Store Connect Help, "In-app purchase information"); an older App Store marketing page says 55. storebound checks 45. diff --git a/cli/ads.ts b/cli/ads.ts new file mode 100644 index 00000000..beb39b18 --- /dev/null +++ b/cli/ads.ts @@ -0,0 +1,71 @@ +// Local AdAttributionKit / SKAdNetwork scan of an iOS project (no network, no credentials, no config needed). +// storebound ads scan --ios ios/App [--plist path/to/Info.plist] [--dry] [--json] +// Reads every app Info.plist (Pods, build output, tests and frameworks left out) plus Podfile.lock / Package.resolved +// and the Swift / Objective-C sources, then checks: ad network ids (SKAdNetworkItems, AdNetworkIdentifiers; +// lowercase, format, ad SDKs without ids), postback copy endpoints (AttributionCopyEndpoint, the re-engagement opt-in, +// NSAdvertisingAttributionReportEndpoint), AdAttributionKitConfigurations (attribution windows, cooldown) and that an +// advertised app updates its conversion value. Exit 1 on a blocker. --dry is accepted and changes nothing (read-only). +// Rules and Apple's documentation links: cli/lib/adattribution.ts; the ads-mediation-checks skill explains the fixes. +import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs'; +import { join, relative, resolve } from 'node:path'; +import type { Args } from './lib/args'; +import { type AakFinding, evaluateAdAttribution, sourceSignals } from './lib/adattribution'; +import { done, printJson } from './lib/log'; +import { parsePlist, type PlistValue } from './lib/plist'; + +const SKIP = new Set(['.git', 'build', 'DerivedData', 'node_modules', '.build', 'xcuserdata', 'Pods', 'Carthage', 'fastlane']); +const SKIP_PLIST = /(Tests?|UITests|\.bundle|\.framework|\.xcframework|\.appex|Extension|Widget|Watch)(\/|$)/i; + +function walk(dir: string, visit: (p: string) => void, depth = 0): void { + if (depth > 12) return; + let names: string[] = []; + try { names = readdirSync(dir); } catch { return; } + for (const n of names) { + if (SKIP.has(n)) continue; + const p = join(dir, n); + let st; + try { st = statSync(p); } catch { continue; } + if (st.isDirectory()) walk(p, visit, depth + 1); else visit(p); + } +} + +export async function run(args: Args): Promise { + if (args._[0] !== 'scan') throw new Error('usage: storebound ads scan --ios [--plist Info.plist] [--json]'); + const ios = args.get('ios'); + if (!ios) throw new Error('--ios '); + const root = resolve(ios); + if (!existsSync(root)) throw new Error(`${root} does not exist`); + const plists: string[] = []; + const files: { path: string; text: string }[] = []; + walk(root, p => { + const rel = relative(root, p); + if (p.endsWith('/Info.plist') && !SKIP_PLIST.test(rel)) plists.push(p); + if (/(\.swift|\.m|\.mm|Podfile\.lock|Package\.resolved|Cartfile\.resolved|project\.pbxproj)$/.test(p)) { + try { if (statSync(p).size < 4_000_000) files.push({ path: rel, text: readFileSync(p, 'utf8') }); } catch { /* unreadable */ } + } + }); + // lock files usually sit next to the project folder (ios/Podfile.lock for ios/App) + for (const extra of ['Podfile.lock', '../Podfile.lock', 'Package.resolved', '../Package.resolved']) { + const p = join(root, extra); + if (existsSync(p) && !files.some(f => resolve(root, f.path) === resolve(p))) files.push({ path: extra, text: readFileSync(p, 'utf8') }); + } + const chosen = args.get('plist') ? [resolve(args.get('plist')!)] : plists; + const signals = sourceSignals(files); + const results: { plist: string; findings: AakFinding[] }[] = []; + for (const p of chosen) { + let parsed: PlistValue; + try { parsed = parsePlist(readFileSync(p, 'utf8')); } catch (e) { results.push({ plist: relative(process.cwd(), p), findings: [{ level: 'warn', code: 'plist-read', msg: (e as Error).message }] }); continue; } + if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) continue; + results.push({ plist: relative(process.cwd(), p), findings: evaluateAdAttribution(parsed, signals) }); + } + if (!chosen.length) results.push({ plist: '(none)', findings: [{ level: signals.adSdks.length ? 'blocker' : 'info', code: 'no-plist', msg: `no app Info.plist under ${root}${signals.adSdks.length ? ` but ad SDKs (${signals.adSdks.join(', ')}) need SKAdNetworkItems / AdNetworkIdentifiers in one` : ''}` }] }); + const blockers = results.flatMap(r => r.findings).filter(f => f.level === 'blocker').length; + if (args.has('json')) printJson({ ios: root, signals, results, blockers }); + else { + console.log(`ad SDKs: ${signals.adSdks.join(', ') || 'none found'} · attribution SDKs: ${signals.mmpSdks.join(', ') || 'none'} · import AdAttributionKit: ${signals.aakImport ? 'yes' : 'no'} · conversion value updates in code: ${signals.conversionUpdates ? 'yes' : 'no'}`); + const tag = { blocker: 'BLOCKER', warn: 'warn ', ok: 'ok ', info: 'info ' } as const; + for (const r of results) { console.log(`\n${r.plist}`); for (const f of r.findings) console.log(` ${tag[f.level]} ${f.msg}`); } + } + done('ads', blockers ? `${blockers} blocker(s)` : 'no blocker'); + if (blockers) process.exitCode = 1; +} diff --git a/cli/apple/asc.ts b/cli/apple/asc.ts index 504f0472..50956ac2 100644 --- a/cli/apple/asc.ts +++ b/cli/apple/asc.ts @@ -58,6 +58,18 @@ export async function ascClient(root: string, bundleId: string, appIdHint?: stri } } + /** GET of a binary answer (sales / finance reports: application/a-gzip). null on 404 (Apple answers 404 when there + * is no report for that date: no sales, or not published yet). */ + async function bytes(path: string, accept = 'application/a-gzip'): Promise { + for (let attempt = 1; ; attempt++) { + const r = await fetch('https://api.appstoreconnect.apple.com' + path, { headers: { Authorization: 'Bearer ' + jwt(), Accept: accept } }); + if ((r.status >= 500 || r.status === 429) && attempt < 5) { await r.body?.cancel(); await Bun.sleep(2000 * attempt); continue; } + if (r.status === 404) { await r.body?.cancel(); return null; } + if (!r.ok) throw new Error(`GET ${path.replace(/\?.*$/, '')} -> ${r.status} ${errorBody(await r.text(), 600)}`); + return new Uint8Array(await r.arrayBuffer()); + } + } + /** Every item of a paged GET. */ async function all(path: string): Promise { const out: J[] = []; @@ -107,5 +119,5 @@ export async function ascClient(root: string, bundleId: string, appIdHint?: stri return res.id; } - return { asc, all, maybe, getAs, app, editableVersion, editableAppInfo, uploadAsset, keyId: k.keyId }; + return { asc, all, maybe, getAs, bytes, app, editableVersion, editableAppInfo, uploadAsset, keyId: k.keyId }; } diff --git a/cli/apple/cpp.ts b/cli/apple/cpp.ts new file mode 100644 index 00000000..39dc2af3 --- /dev/null +++ b/cli/apple/cpp.ts @@ -0,0 +1,145 @@ +// App Store custom product pages from apple.customProductPages. +// storebound apple cpp list [--json] +// storebound apple cpp create [--name "..."] [--dry] [--json] pages missing on App Store Connect + localizations +// storebound apple cpp upload --name "..." [--only en-US,tr] [--src store/renders] [--dry] screenshots (the page's variant) +// storebound apple cpp submit --name "..." [--dry] [--yes] into a review submission (the owner's step; asks) +// storebound apple cpp visible --name "..." [--off] [--dry] [--yes] show / hide an approved page (asks) +// create and upload change nothing customers see (MCP tools, dry by default). A page's screenshots come from the +// renders of its shots variant (///ios69 ...), MD5-idempotent like apple screenshots. +// Pure parts and sources: cli/lib/cpp-events.ts. +import { existsSync } from 'node:fs'; +import { join } from 'node:path'; +import type { Ctx } from '../lib/ctx'; +import { byAppleLocale, confirm, need } from '../lib/ctx'; +import { CPP_EDITABLE, CPP_LIMITS, cppCreateBody, cppLocales, type CustomProductPageDef, planCppLocales, reviewItemReq } from '../lib/cpp-events'; +import { done, log, printJson, warn } from '../lib/log'; +import { textTable } from '../lib/table'; +import { numberedImages } from '../play/images'; +import { variantRoot } from '../shots/lib'; +import { type Asc, ascClient, type J } from './asc'; +import { describeReq, execute, one, type Req } from './jsonapi'; +import { displaySets, syncScreenshotSet } from './screenshots'; + +const TAG = 'cpp'; +const USAGE = 'usage: storebound apple cpp list | create [--name n] | upload --name n | submit --name n | visible --name n [--off]'; + +interface Page { id: string; name: string; url?: string; visible?: boolean; version?: { id: string; state: string; deepLink?: string | null } } + +async function pagesOf(c: Asc, appId: string): Promise { + const out: Page[] = []; + for (const p of await c.all(`/v1/apps/${appId}/appCustomProductPages?limit=200`)) { + const vs = await c.all(`/v1/appCustomProductPages/${p.id}/appCustomProductPageVersions?limit=50`); + const v = vs.find((x: J) => CPP_EDITABLE.has(x.attributes.state)) ?? vs.at(-1); + out.push({ id: p.id, name: p.attributes.name, url: p.attributes.url, visible: p.attributes.visible, ...(v ? { version: { id: v.id, state: v.attributes.state, deepLink: v.attributes.deepLink } } : {}) }); + } + return out; +} + +/** A draft review submission of the app (READY_FOR_REVIEW), or the request that creates one. */ +async function draftSubmission(c: Asc, appId: string): Promise { + return (await c.all(`/v1/reviewSubmissions?filter[app]=${appId}&filter[platform]=IOS&filter[state]=READY_FOR_REVIEW&limit=10`))[0]?.id ?? null; +} + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const sub = a._[0]; + if (!sub) throw new Error(USAGE); + const dry = a.has('dry'); + const defs = config.apple?.customProductPages ?? []; + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + const appId = await c.app(); + const pages = await pagesOf(c, appId); + const pick = (): { def: CustomProductPageDef; page: Page | undefined } => { + const name = need(a.get('name'), '--name ""'); + const def = defs.find(d => d.name === name); + if (!def) throw new Error(`no custom product page "${name}" in apple.customProductPages`); + return { def, page: pages.find(p => p.name === name) }; + }; + + if (sub === 'list') { + const rows = [...pages.map(p => [p.name, p.visible ? 'visible' : 'hidden', p.version?.state ?? '', defs.some(d => d.name === p.name) ? 'config' : '', p.url ?? '']), + ...defs.filter(d => !pages.some(p => p.name === d.name)).map(d => [d.name, '', 'not created', 'config', ''])]; + if (a.has('json')) { printJson({ pages, missing: defs.filter(d => !pages.some(p => p.name === d.name)).map(d => d.name), limit: CPP_LIMITS.pages }); return; } + console.log(rows.length ? textTable(['page', 'visible', 'version', 'source', 'url'], rows) : 'no custom product pages'); + done(TAG, `${pages.length} of ${CPP_LIMITS.pages} custom product pages used`); + return; + } + + if (sub === 'create') { + const only = a.get('name'); + const reqs: Req[] = []; + for (const d of defs.filter(x => !only || x.name === only)) { + const locs = cppLocales(d, config.languages); + const page = pages.find(p => p.name === d.name); + if (!page) { reqs.push({ method: 'POST', path: '/v1/appCustomProductPages', note: `page "${d.name}" with ${locs.length} locale(s)`, body: cppCreateBody(appId, d, locs) }); continue; } + if (!page.version || !CPP_EDITABLE.has(page.version.state)) { log(TAG, `"${d.name}": version ${page.version?.state ?? 'missing'}, not editable (a new version: App Store Connect)`); continue; } + const have = (await c.all(`/v1/appCustomProductPageVersions/${page.version.id}/appCustomProductPageLocalizations?limit=200`)).map((l: J) => ({ id: l.id, locale: l.attributes.locale, promotionalText: l.attributes.promotionalText })); + reqs.push(...planCppLocales(page.version.id, have, locs)); + if ((d.deepLink ?? null) !== (page.version.deepLink ?? null) && d.deepLink) reqs.push({ method: 'PATCH', path: `/v1/appCustomProductPageVersions/${page.version.id}`, note: `"${d.name}" deep link`, + body: { data: { type: 'appCustomProductPageVersions', id: page.version.id, attributes: { deepLink: d.deepLink } } } }); + } + if (pages.length + reqs.filter(r => r.path === '/v1/appCustomProductPages').length > CPP_LIMITS.pages) throw new Error(`more than ${CPP_LIMITS.pages} custom product pages`); + if (a.has('json')) printJson({ dryRun: dry, requests: reqs.map(r => describeReq(r)) }); + if (!reqs.length) { done(TAG, 'custom product pages up to date'); return; } + await execute(c.asc, reqs, { dry, tag: TAG }); + done(TAG, dry ? `dry run: ${reqs.length} change(s)` : `${reqs.length} change(s); next: storebound apple cpp upload --name ""`); + return; + } + + if (sub === 'upload') { + const { def, page } = pick(); + if (!page?.version) throw new Error(`"${def.name}" is not on App Store Connect yet (storebound apple cpp create)`); + if (!CPP_EDITABLE.has(page.version.state)) throw new Error(`"${def.name}": version ${page.version.state}, screenshots can only change on an editable version`); + const src = variantRoot(resolve(a.get('src') ?? config.renders ?? config.shots?.out ?? 'store/renders'), def.variant, config.shots?.variants); + const only = a.list('only'); + const langOf = byAppleLocale(config.languages); + let sets = 0; + for (const loc of await c.all(`/v1/appCustomProductPageVersions/${page.version.id}/appCustomProductPageLocalizations?limit=200`)) { + const locale: string = loc.attributes.locale; + if (only.length && !only.includes(locale)) continue; + const lang = langOf.get(locale); + if (!lang) { warn(TAG, `${locale}: no language with apple: "${locale}", skipped`); continue; } + const existing = await c.all(`/v1/appCustomProductPageLocalizations/${loc.id}/appScreenshotSets?limit=50`); + for (const [dir, type] of Object.entries(displaySets(config.apple))) { + const d = join(src, lang.id, dir); + const files = existsSync(d) ? numberedImages(d).filter(f => f.endsWith('.png')).slice(0, 10) : []; + if (!files.length) { warn(TAG, `${locale}: nothing in ${d}, skipped`); continue; } + await syncScreenshotSet(c, { rel: 'appCustomProductPageLocalization', type: 'appCustomProductPageLocalizations', id: loc.id }, existing, type, files, `"${def.name}" ${locale} ${type}`, dry); + sets++; + } + } + done(TAG, `${sets} screenshot set(s) ${dry ? 'checked (dry run)' : 'synced'} for "${def.name}"`); + return; + } + + if (sub === 'submit') { + const { def, page } = pick(); + if (!page?.version) throw new Error(`"${def.name}" is not on App Store Connect yet (storebound apple cpp create)`); + if (!['PREPARE_FOR_SUBMISSION', 'REJECTED'].includes(page.version.state)) { done(TAG, `"${def.name}": version is ${page.version.state}, nothing to submit`); return; } + const draft = await draftSubmission(c, appId); + const create: Req = { method: 'POST', path: '/v1/reviewSubmissions', note: 'new draft review submission', body: { data: { type: 'reviewSubmissions', attributes: { platform: 'IOS' }, relationships: { app: one('apps', appId) } } } }; + const item = reviewItemReq(draft ?? '${submission}', 'appCustomProductPageVersion', page.version.id, `custom product page "${def.name}"`); + if (dry) { await execute(c.asc, [...(draft ? [] : [create]), item, { method: 'PATCH', path: `/v1/reviewSubmissions/${draft ?? '${submission}'}`, note: 'submit for App Review' }], { dry, tag: TAG }); return; } + if (!(await confirm(ctx, `Send custom product page "${def.name}" to App Review now?`))) return; + const sid = draft ?? ((await c.asc('POST', create.path, create.body)).data.id as string); + await c.asc('POST', item.path, reviewItemReq(sid, 'appCustomProductPageVersion', page.version.id, '').body); + await c.asc('PATCH', `/v1/reviewSubmissions/${sid}`, { data: { type: 'reviewSubmissions', id: sid, attributes: { submitted: true } } }); + done(TAG, `"${def.name}" submitted (review submission ${sid}); after approval: storebound apple cpp visible --name "${def.name}"`); + return; + } + + if (sub === 'visible') { + const { def, page } = pick(); + if (!page) throw new Error(`"${def.name}" is not on App Store Connect yet`); + const visible = !a.has('off'); + if (page.visible === visible) { done(TAG, `"${def.name}" is already ${visible ? 'visible' : 'hidden'}`); return; } + const req: Req = { method: 'PATCH', path: `/v1/appCustomProductPages/${page.id}`, note: `"${def.name}" ${visible ? 'visible' : 'hidden'}`, body: { data: { type: 'appCustomProductPages', id: page.id, attributes: { visible } } } }; + if (dry) { await execute(c.asc, [req], { dry, tag: TAG }); return; } + if (!(await confirm(ctx, `${visible ? 'Show' : 'Hide'} custom product page "${def.name}" on the App Store?`))) return; + await execute(c.asc, [req], { dry: false, tag: TAG }); + done(TAG, `"${def.name}" ${visible ? 'visible' : 'hidden'}${page.url ? ` (${page.url})` : ''}`); + return; + } + throw new Error(`unknown cpp command "${sub}"\n${USAGE}`); +} diff --git a/cli/apple/events.ts b/cli/apple/events.ts new file mode 100644 index 00000000..f87fbe6b --- /dev/null +++ b/cli/apple/events.ts @@ -0,0 +1,126 @@ +// App Store in-app events from apple.events. +// storebound apple events list [--json] +// storebound apple events create [--name ""] [--dry] [--json] missing events + localizations +// storebound apple events upload --name "..." [--dry] event card (16:9) + details page (9:16) images per locale +// storebound apple events submit --name "..." [--dry] [--yes] into a review submission (the owner's step; asks) +// An approved event is published by its own schedule (publishStart): sending it to review is the moment it is decided, +// so `submit` asks first and is not an MCP tool. Up to 10 published and 15 approved events per app. +// Pure parts and sources: cli/lib/cpp-events.ts. +import { existsSync, readFileSync } from 'node:fs'; +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { type AppEventDef, checkEventMedia, EVENT_EDITABLE, EVENT_LIMITS, eventCreateBody, planEventLocales, reviewItemReq } from '../lib/cpp-events'; +import { done, log, printJson, warn } from '../lib/log'; +import { textTable } from '../lib/table'; +import { imageInfo } from '../shots/spec'; +import { ascClient, type J } from './asc'; +import { describeReq, execute, one, type Req } from './jsonapi'; + +const TAG = 'events'; +const USAGE = 'usage: storebound apple events list | create [--name n] | upload --name n | submit --name n'; + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const sub = a._[0]; + if (!sub) throw new Error(USAGE); + const dry = a.has('dry'); + const defs = config.apple?.events ?? []; + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + const appId = await c.app(); + const events = await c.all(`/v1/apps/${appId}/appEvents?limit=200`); + const localeOf = (langId: string): string | undefined => config.languages.find(l => l.id === langId)?.apple; + const pick = (): { def: AppEventDef; ev: J | undefined } => { + const name = need(a.get('name'), '--name ""'); + const def = defs.find(d => d.referenceName === name); + if (!def) throw new Error(`no event "${name}" in apple.events`); + return { def, ev: events.find((e: J) => e.attributes.referenceName === name) }; + }; + + if (sub === 'list') { + const rows = events.map((e: J) => { const s = e.attributes.territorySchedules?.[0] ?? {}; return [e.attributes.referenceName, e.attributes.badge ?? '', e.attributes.eventState ?? '', (s.eventStart ?? '').slice(0, 16), (s.eventEnd ?? '').slice(0, 16), defs.some(d => d.referenceName === e.attributes.referenceName) ? 'config' : '']; }); + for (const d of defs.filter(d => !events.some((e: J) => e.attributes.referenceName === d.referenceName))) rows.push([d.referenceName, d.badge, 'not created', d.schedule.eventStart.slice(0, 16), d.schedule.eventEnd.slice(0, 16), 'config']); + if (a.has('json')) { printJson({ events: events.map((e: J) => ({ id: e.id, ...e.attributes })), missing: defs.filter(d => !events.some((e: J) => e.attributes.referenceName === d.referenceName)).map(d => d.referenceName) }); return; } + console.log(rows.length ? textTable(['event', 'badge', 'state', 'start', 'end', 'source'], rows) : 'no in-app events'); + const published = events.filter((e: J) => e.attributes.eventState === 'PUBLISHED').length, approved = events.filter((e: J) => ['APPROVED', 'ACCEPTED', 'PUBLISHED'].includes(e.attributes.eventState)).length; + done(TAG, `${published} of ${EVENT_LIMITS.published} published, ${approved} of ${EVENT_LIMITS.approved} approved`); + return; + } + + if (sub === 'create') { + const only = a.get('name'); + const territories = (await c.all('/v1/territories?limit=200')).map((t: J) => t.id as string); + const reqs: Req[] = []; + const created: { def: AppEventDef; index: number }[] = []; + for (const d of defs.filter(x => !only || x.referenceName === only)) { + const want = Object.entries(d.listings).flatMap(([lang, x]) => { const locale = localeOf(lang); return locale ? [{ locale, ...x }] : []; }); + const primary = localeOf(d.primaryLanguage ?? '') ?? want[0]?.locale ?? 'en-US'; + const ev = events.find((e: J) => e.attributes.referenceName === d.referenceName); + if (!ev) { created.push({ def: d, index: reqs.length }); reqs.push({ method: 'POST', path: '/v1/appEvents', note: `event "${d.referenceName}" (${d.badge}, ${d.schedule.eventStart} to ${d.schedule.eventEnd})`, body: eventCreateBody(appId, d, primary, d.schedule.territories ?? territories) }); continue; } + if (!EVENT_EDITABLE.has(ev.attributes.eventState)) { log(TAG, `"${d.referenceName}": ${ev.attributes.eventState}, not editable`); continue; } + const have = (await c.all(`/v1/appEvents/${ev.id}/localizations?limit=200`)).map((l: J) => ({ id: l.id, ...l.attributes })); + reqs.push(...planEventLocales(ev.id, have, want)); + } + if (a.has('json')) printJson({ dryRun: dry, requests: reqs.map(r => describeReq(r)) }); + if (!reqs.length) { done(TAG, 'in-app events up to date'); return; } + if (dry) { + await execute(c.asc, reqs, { dry, tag: TAG }); + for (const x of created) log(TAG, `then: ${Object.keys(x.def.listings).length} localization(s) for "${x.def.referenceName}"`); + done(TAG, 'dry run: nothing changed'); + return; + } + const out = await execute(c.asc, reqs, { dry: false, tag: TAG }) as J[]; + for (const x of created) { + const id = out[x.index].data.id as string; + const want = Object.entries(x.def.listings).flatMap(([lang, t]) => { const locale = localeOf(lang); return locale ? [{ locale, ...t }] : []; }); + await execute(c.asc, planEventLocales(id, [], want), { dry: false, tag: TAG }); + } + done(TAG, 'in-app events created / updated; next: storebound apple events upload --name ""'); + return; + } + + if (sub === 'upload') { + const { def, ev } = pick(); + if (!ev) throw new Error(`"${def.referenceName}" is not on App Store Connect yet (storebound apple events create)`); + if (!EVENT_EDITABLE.has(ev.attributes.eventState)) throw new Error(`"${def.referenceName}": ${ev.attributes.eventState}, media can only change on a draft`); + let n = 0; + for (const loc of await c.all(`/v1/appEvents/${ev.id}/localizations?limit=200`)) { + const lang = config.languages.find(l => l.apple === loc.attributes.locale); + if (!lang) continue; + const have = await c.all(`/v1/appEventLocalizations/${loc.id}/appEventScreenshots?limit=50`); + for (const [key, kind] of [['card', 'EVENT_CARD'], ['details', 'EVENT_DETAILS_PAGE']] as const) { + const tpl = def.media?.[key]; + if (!tpl) continue; + const file = resolve(tpl.replaceAll('{lang}', lang.id)); + if (!existsSync(file)) { warn(TAG, `${loc.attributes.locale} ${kind}: no ${file}`); continue; } + const info = imageInfo(readFileSync(file)); + const problems = checkEventMedia(kind, info.w, info.h, info.format); + if (problems.length) throw new Error(`${file}: ${problems.join('; ')}`); + if (have.some((s: J) => s.attributes.appEventAssetType === kind && s.attributes.fileSize === info.bytes)) { log(TAG, `${loc.attributes.locale} ${kind}: up to date`); continue; } + if (dry) { log(TAG, `${loc.attributes.locale} ${kind}: would upload ${file} (${info.w}x${info.h})`); n++; continue; } + for (const s of have.filter((x: J) => x.attributes.appEventAssetType === kind)) await c.asc('DELETE', `/v1/appEventScreenshots/${s.id}`); + await c.uploadAsset('appEventScreenshots', { appEventLocalization: { data: { type: 'appEventLocalizations', id: loc.id } } }, file, { appEventAssetType: kind }); + log(TAG, `${loc.attributes.locale} ${kind}: uploaded`); + n++; + } + } + done(TAG, `${n} image(s) ${dry ? 'to upload (dry run)' : 'uploaded'} for "${def.referenceName}"`); + return; + } + + if (sub === 'submit') { + const { def, ev } = pick(); + if (!ev) throw new Error(`"${def.referenceName}" is not on App Store Connect yet`); + if (!EVENT_EDITABLE.has(ev.attributes.eventState) && ev.attributes.eventState !== 'READY_FOR_REVIEW') { done(TAG, `"${def.referenceName}" is ${ev.attributes.eventState}, nothing to submit`); return; } + const draft = (await c.all(`/v1/reviewSubmissions?filter[app]=${appId}&filter[platform]=IOS&filter[state]=READY_FOR_REVIEW&limit=10`))[0]?.id as string | undefined; + const create: Req = { method: 'POST', path: '/v1/reviewSubmissions', note: 'new draft review submission', body: { data: { type: 'reviewSubmissions', attributes: { platform: 'IOS' }, relationships: { app: one('apps', appId) } } } }; + if (dry) { await execute(c.asc, [...(draft ? [] : [create]), reviewItemReq(draft ?? '${submission}', 'appEvent', ev.id, `in-app event "${def.referenceName}"`), { method: 'PATCH', path: `/v1/reviewSubmissions/${draft ?? '${submission}'}`, note: 'submit for App Review' }], { dry, tag: TAG }); return; } + if (!(await confirm(ctx, `Send in-app event "${def.referenceName}" to App Review? Once approved it is published on ${def.schedule.publishStart} by its schedule.`))) return; + const sid = draft ?? ((await c.asc('POST', create.path, create.body)).data.id as string); + await c.asc('POST', '/v1/reviewSubmissionItems', reviewItemReq(sid, 'appEvent', ev.id, '').body); + await c.asc('PATCH', `/v1/reviewSubmissions/${sid}`, { data: { type: 'reviewSubmissions', id: sid, attributes: { submitted: true } } }); + done(TAG, `"${def.referenceName}" submitted (review submission ${sid})`); + return; + } + throw new Error(`unknown events command "${sub}"\n${USAGE}`); +} diff --git a/cli/apple/iap-submit.ts b/cli/apple/iap-submit.ts new file mode 100644 index 00000000..27178b15 --- /dev/null +++ b/cli/apple/iap-submit.ts @@ -0,0 +1,105 @@ +// Send in-app purchases and subscriptions to App Review through a review submission (the owner's action). +// storebound apple iap-submit [--only id1,id2] [--with-version] [--new-version] [--no-submit] [--dry] [--yes] [--json] +// Default: every product and subscription of the config sold on the App Store. The plan (cli/lib/review-submit.ts) +// says which version of each goes in, which items are first of their type (those need an app version in the same +// submission: --with-version adds the editable one, and then submitting submits the app too), and what is left out. +// --new-version: approved or rejected products get a new draft version first (POST inAppPurchaseVersions / +// subscriptionVersions) so changed metadata can go to review. --no-submit: only fill the draft submission; the owner +// presses "Submit for Review" in App Store Connect. Without --no-submit the last step asks first (never under MCP). +import { sellsOn } from '../lib/config'; +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { done, log, printJson, warn } from '../lib/log'; +import { allSubscriptions } from '../lib/subscriptions'; +import { bindIds, latestVersion, newVersionReq, type PIap, planIapSubmission, type PSub, type SubmitState, versionsOf } from '../lib/review-submit'; +import { type Asc, ascClient, type J } from './asc'; +import { describeReq, execute } from './jsonapi'; + +const TAG = 'iap-submit'; + +export async function readSubmitState(c: Asc, appId: string, want: string[]): Promise { + const appVersions = (await c.all(`/v1/apps/${appId}/appStoreVersions?filter[platform]=IOS&limit=50`)).map((v: J) => ({ id: v.id, versionString: v.attributes.versionString, + state: v.attributes.appVersionState ?? v.attributes.appStoreState })); + const iaps: PIap[] = []; + for (const p of await c.all(`/v1/apps/${appId}/inAppPurchasesV2?limit=200`)) { + // every product counts for "first of its type"; versions are only read for the products we submit + const versions = want.includes(p.attributes.productId) ? versionsOf(await c.all(`/v2/inAppPurchases/${p.id}/versions?limit=200`)) : []; + iaps.push({ id: p.id, productId: p.attributes.productId, type: p.attributes.inAppPurchaseType, state: p.attributes.state, versions }); + } + const subs: PSub[] = []; + const groups: SubmitState['groups'] = []; + for (const g of await c.all(`/v1/apps/${appId}/subscriptionGroups?limit=200`)) { + const members = await c.all(`/v1/subscriptionGroups/${g.id}/subscriptions?limit=200`); + const wanted = members.some((s: J) => want.includes(s.attributes.productId)); + groups.push({ id: g.id, name: g.attributes.referenceName, versions: wanted ? versionsOf(await c.all(`/v1/subscriptionGroups/${g.id}/versions?limit=200`)) : [] }); + for (const s of members) subs.push({ id: s.id, productId: s.attributes.productId, groupId: g.id, state: s.attributes.state, + versions: want.includes(s.attributes.productId) ? versionsOf(await c.all(`/v1/subscriptions/${s.id}/versions?limit=200`)) : [] }); + } + const drafts = await c.all(`/v1/reviewSubmissions?filter[app]=${appId}&filter[platform]=IOS&filter[state]=READY_FOR_REVIEW&limit=10`); + let draft: SubmitState['draft'] = null; + if (drafts[0]) { + const items = await c.all(`/v1/reviewSubmissions/${drafts[0].id}/items?include=appStoreVersion,inAppPurchaseVersion,subscriptionVersion,subscriptionGroupVersion&limit=200`); + const ids = items.flatMap((it: J) => Object.values(it.relationships ?? {}).map((r: J) => r?.data?.id).filter(Boolean)) as string[]; + draft = { id: drafts[0].id, itemVersionIds: ids }; + } + return { appVersions, iaps, subs, groups, draft }; +} + +export async function run(ctx: Ctx): Promise { + const { config, root } = ctx.loaded; + const a = ctx.args; + const dry = a.has('dry'); + const only = a.list('only'); + const ids = [...(config.products ?? []).filter(p => sellsOn(config, p, 'apple')).map(p => p.id), ...allSubscriptions(config.subscriptions).filter(x => sellsOn(config, x.sub, 'apple')).map(x => x.sub.id)] + .filter(id => !only.length || only.includes(id)); + for (const id of only) if (!ids.includes(id)) throw new Error(`--only ${id}: not a product or subscription of the config sold on the App Store`); + if (!ids.length) throw new Error('no in-app purchases or subscriptions in the config for the App Store'); + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + const appId = await c.app(); + let state = await readSubmitState(c, appId, ids); + + if (a.has('new-version')) { + const reqs = [ + ...state.iaps.filter(p => ids.includes(p.productId) && ['APPROVED', 'REJECTED', 'DEVELOPER_REJECTED'].includes(latestVersion(p.versions)?.state ?? '')).map(p => newVersionReq('iap', p.id, p.productId)), + ...state.subs.filter(p => ids.includes(p.productId) && ['APPROVED', 'REJECTED', 'DEVELOPER_REJECTED'].includes(latestVersion(p.versions)?.state ?? '')).map(p => newVersionReq('sub', p.id, p.productId)), + ]; + if (reqs.length) { + await execute(c.asc, reqs, { dry, tag: TAG }); + if (!dry) state = await readSubmitState(c, appId, ids); + } + } + + const plan = planIapSubmission(state, ids, { withVersion: a.has('with-version') }); + const prepare = plan.prepare.map(r => bindIds(r, { app: appId })); + if (a.has('json')) { + printJson({ dryRun: dry, items: plan.items, skipped: plan.skipped, firstOfType: plan.firstOfType, hasApprovedVersion: plan.hasApprovedVersion, + needsAppVersion: plan.needsAppVersion, blockers: plan.blockers, draft: state.draft?.id ?? null, requests: [...prepare, plan.submit].map(r => describeReq(r)) }); + if (dry || plan.blockers.length) { if (plan.blockers.length) process.exitCode = 1; return; } + } else { + for (const it of plan.items) log(TAG, `submit: ${it.label}`); + for (const s of plan.skipped) log(TAG, `skip ${s.id}: ${s.why}`); + if (plan.firstOfType.length) log(TAG, `first ${plan.firstOfType.join(' / ')} of the app: needs an app version in the same submission`); + for (const b of plan.blockers) warn(TAG, b); + } + if (plan.blockers.length) { process.exitCode = 1; done(TAG, 'nothing sent: fix the blockers above'); return; } + if (!plan.items.length) { done(TAG, 'nothing to submit'); return; } + if (dry) { + await execute(c.asc, [...prepare, plan.submit], { dry, tag: TAG }); + done(TAG, `dry run: ${plan.items.length} item(s) would go into ${state.draft ? `draft ${state.draft.id}` : 'a new draft submission'}`); + return; + } + const what = `${plan.items.length} item(s)${plan.appVersion ? `, including app version ${plan.appVersion.versionString}` : ''}`; + if (!(await confirm(ctx, `Add ${what} to ${state.draft ? 'the draft' : 'a new draft'} review submission?`))) return; + let sid = state.draft?.id; + for (const r of prepare) { + const out = await c.asc(r.method, r.path, bindIds(r, { submission: sid }).body); + if (r.path === '/v1/reviewSubmissions') sid = out.data.id; + log(TAG, `${describeReq(bindIds(r, { submission: sid }))}: done`); + } + if (a.has('no-submit')) { done(TAG, `draft review submission ${sid} ready: press "Submit for Review" in App Store Connect (Apps > Distribution > App Review)`); return; } + if (!(await confirm(ctx, `Submit review submission ${sid} (${what}) to App Review now?${plan.appVersion ? ' This submits the app version too.' : ''}`))) { + done(TAG, `draft ${sid} kept; submit it in App Store Connect or re-run`); return; + } + await c.asc('PATCH', `/v1/reviewSubmissions/${sid}`, bindIds(plan.submit, { submission: sid }).body); + done(TAG, `review submission ${sid} submitted (storebound apple status shows its state)`); +} diff --git a/cli/apple/listing.ts b/cli/apple/listing.ts index 86fa1a70..1036646a 100644 --- a/cli/apple/listing.ts +++ b/cli/apple/listing.ts @@ -4,11 +4,17 @@ // - appInfoLocalizations: name, subtitle, privacy policy URL per locale // - appStoreVersionLocalizations: description, keywords, promotional text, what's new (not on a first version), // support + marketing URL per locale -import { readFileSync } from 'node:fs'; -import { parseAppStoreListing } from '../lib/copy'; +// And the other way round (read-only on App Store Connect): +// storebound apple listing pull [--version x.y.z] [--write] [--json] +// the live texts (the editable version if there is one, else the newest; --version picks one) into the App Store +// listing file: shows the diff, writes only with --write. +import { existsSync, readFileSync, writeFileSync } from 'node:fs'; +import { type AppleCopy, parseAppStoreListing } from '../lib/copy'; +import { compactDiff } from '../lib/diff'; +import { mergeAppleListing, overLimits } from '../lib/listing-pull'; import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; -import { done, log } from '../lib/log'; +import { done, log, printJson, warn } from '../lib/log'; import { ascClient, type J } from './asc'; export function readAppleCopy(ctx: Ctx) { @@ -34,9 +40,51 @@ async function upsertLocs(c: Awaited>, list: string } } +/** apple listing pull: live texts -> diff -> (with --write) the App Store listing file. */ +async function pull(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + const appId = await c.app(); + const versions = await c.all(`/v1/apps/${appId}/appStoreVersions?filter[platform]=IOS&limit=50`); + const want = a.get('version'); + const sorted = [...versions].sort((x: J, y: J) => String(y.attributes.createdDate ?? '').localeCompare(String(x.attributes.createdDate ?? ''))); + const v = want ? sorted.find((x: J) => x.attributes.versionString === want) : (await c.editableVersion()) ?? sorted[0]; + if (!v) throw new Error(want ? `no iOS version ${want} on App Store Connect` : 'no iOS version on App Store Connect yet'); + const infos = await c.all(`/v1/apps/${appId}/appInfos`); + const live = v.attributes.appVersionState ?? v.attributes.appStoreState; + // the app info that belongs to the version: the editable one while a version is being prepared, else the live one + const info = ['READY_FOR_DISTRIBUTION', 'READY_FOR_SALE'].includes(live) + ? infos.find((i: J) => ['READY_FOR_DISTRIBUTION', 'READY_FOR_SALE'].includes(i.attributes.state ?? i.attributes.appStoreState)) ?? infos[0] + : await c.editableAppInfo(); + const remote: Record = {}; + for (const l of await c.all(`/v1/appInfos/${info.id}/appInfoLocalizations?limit=200`)) remote[l.attributes.locale] = { name: l.attributes.name ?? undefined, subtitle: l.attributes.subtitle ?? undefined }; + for (const l of await c.all(`/v1/appStoreVersions/${v.id}/appStoreVersionLocalizations?limit=200`)) { + const at = l.attributes; + remote[at.locale] = { ...remote[at.locale], description: at.description ?? undefined, keywords: at.keywords ?? undefined, promotionalText: at.promotionalText ?? undefined, whatsNew: at.whatsNew ?? undefined }; + } + const file = resolve(config.apple?.listing ?? 'store/appstore.md'); + const before = existsSync(file) ? readFileSync(file, 'utf8') : '# App Store listing copy\n\nPulled from App Store Connect by `storebound apple listing pull`.\n'; + const r = mergeAppleListing(before, remote); + const over = overLimits(r.changes, 'apple'); + const diff = compactDiff(before, r.md); + if (a.has('json')) printJson({ version: v.attributes.versionString, state: live, file, write: a.has('write') && !a.has('dry'), changes: r.changes, added: r.added, overLimits: over, diff }); + else { + log('apple', `pull: version ${v.attributes.versionString} (${live}), ${Object.keys(remote).length} locales`); + for (const ch of r.changes) log('apple', `${ch.section} ${ch.field}: ${ch.from === null ? 'new' : 'changed'}`); + if (diff.length) console.log(diff.join('\n')); + } + for (const o of over) warn('apple', `over the limit on the store: ${o}`); + if (!r.changes.length) { done('apple', `${file} already matches the store`); return; } + if (!a.has('write') || a.has('dry')) { done('apple', `${r.changes.length} change(s); nothing written (add --write to update ${file})`); return; } + writeFileSync(file, r.md); + done('apple', `${file}: ${r.changes.length} change(s) written${r.added.length ? `, new locales ${r.added.join(', ')}` : ''}`); +} + export async function run(ctx: Ctx): Promise { const { config, root } = ctx.loaded; const a = ctx.args; + if (a._[0] === 'pull') return pull(ctx); const version = a.get('version'); if (!version) throw new Error('usage: apple listing --version 1.0.0 [--build N] [--dry]'); const listing = readAppleCopy(ctx); diff --git a/cli/apple/offer-codes.ts b/cli/apple/offer-codes.ts new file mode 100644 index 00000000..c0f4c63e --- /dev/null +++ b/cli/apple/offer-codes.ts @@ -0,0 +1,92 @@ +// Offer codes for one-time purchases (consumable, non-consumable, non-renewing) from products[].offerCodes. +// storebound apple offer-codes [--only id1,id2] [--codes] [--dry] [--yes] [--json] +// Creates the missing campaigns (by name) with their prices: free, or the USA price point of `usd` and its +// equalizations (every territory, or `territories`). A campaign alone lets nobody redeem anything. Codes are made only +// with --codes, after a confirmation: custom codes (anyone who has the code) and one-time-use batches; the one-time +// codes are saved to .storebound/offer-codes/ (gitignored; treat them like vouchers). Each app may have 10 active +// offers and 1 million codes per quarter (App Store Connect Help). Subscription offer codes: apple subscriptions. +// Pure parts and sources: cli/lib/offers.ts. +import { mkdirSync, writeFileSync } from 'node:fs'; +import { join } from 'node:path'; +import { sellsOn } from '../lib/config'; +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { done, log, printJson, warn } from '../lib/log'; +import { iapCustomCodeReq, iapOfferCodeBody, iapOneTimeCodesReq, type TerritoryPoint, validateIapOfferCodes } from '../lib/offers'; +import { applePoints, pickPoint } from '../lib/subscriptions'; +import { pages } from '../prices'; +import { ascClient, type J } from './asc'; +import { describeReq, execute, type Req } from './jsonapi'; + +const TAG = 'offer-codes'; + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const dry = a.has('dry'); + const only = a.list('only'); + const products = (config.products ?? []).filter(p => p.offerCodes?.length && sellsOn(config, p, 'apple') && (!only.length || only.includes(p.id))); + if (!products.length) throw new Error('no products with offerCodes for the App Store (products[].offerCodes in storebound.config.ts)'); + const today = new Date().toISOString().slice(0, 10); + const problems = products.flatMap(p => validateIapOfferCodes(p.id, p.offerCodes, p.type, today)); + if (problems.length) throw new Error(problems.join('; ')); + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + const appId = await c.app(); + const report: Record[] = []; + const codeReqs: { req: Req; product: string; campaign: string; oneTime: boolean }[] = []; + let active = 0; + + for (const p of products) { + const iap = (await c.asc('GET', `/v1/apps/${appId}/inAppPurchasesV2?filter[productId]=${encodeURIComponent(p.id)}`)).data?.[0]; + if (!iap) { warn(TAG, `${p.id}: not on App Store Connect (storebound apple iap)`); report.push({ product: p.id, missing: true }); continue; } + const existing = await c.all(`/v2/inAppPurchases/${iap.id}/offerCodes?include=customCodes,oneTimeUseCodes&limit=200`); + active += existing.filter((x: J) => x.attributes.active).length; + let usaPoints: ReturnType | null = null; + const prices = async (oc: NonNullable[number]): Promise => { + if (oc.free) { + const all = oc.territories ?? (await c.all('/v1/territories?limit=200')).map((t: J) => t.id as string); + return all.map(territory => ({ territory })); + } + usaPoints ??= applePoints(await pages(c, `/v2/inAppPurchases/${iap.id}/pricePoints?filter[territory]=USA&include=territory&limit=200`)); + const usa = pickPoint(usaPoints, 'USA', oc.usd!); + const eq = applePoints(await pages(c, `/v1/inAppPurchasePricePoints/${usa.id}/equalizations?include=territory&limit=200`)); + const all = [{ territory: 'USA', pointId: usa.id }, ...eq.filter(x => x.territory !== 'USA').map(x => ({ territory: x.territory, pointId: x.id }))]; + return oc.territories ? all.filter(x => oc.territories!.includes(x.territory)) : all; + }; + for (const oc of p.offerCodes!) { + const cur = existing.find((x: J) => x.attributes.name === oc.name); + let id: string | undefined = cur?.id; + if (!cur) { + const body = iapOfferCodeBody(iap.id, oc, await prices(oc)); + const req: Req = { method: 'POST', path: '/v1/inAppPurchaseOfferCodes', body, note: `${p.id}: campaign "${oc.name}" (${oc.free ? 'free' : `USD ${oc.usd}`}, ${body.included.length} territories)` }; + if (dry) log(TAG, `would ${describeReq(req)}`); + else { id = ((await execute(c.asc, [req], { dry, tag: TAG }))[0] as J).data.id; active++; } + } else log(TAG, `${p.id}: campaign "${oc.name}" exists (${cur.attributes.active ? 'active' : 'inactive'}, ${cur.attributes.productionCodeCount ?? 0} production codes)`); + const haveCustom = new Set(cur ? (await c.all(`/v1/inAppPurchaseOfferCodes/${cur.id}/customCodes?limit=200`)).map((x: J) => x.attributes.customCode) : []); + for (const cc of oc.customCodes ?? []) if (!haveCustom.has(cc.code)) codeReqs.push({ req: iapCustomCodeReq(id ?? '${new campaign}', cc), product: p.id, campaign: oc.name, oneTime: false }); + // one-time batches are not matched one by one: a batch is created when the campaign has fewer batches than configured + const batches = cur ? (await c.all(`/v1/inAppPurchaseOfferCodes/${cur.id}/oneTimeUseCodes?limit=200`)).length : 0; + for (const b of (oc.oneTimeCodes ?? []).slice(batches)) codeReqs.push({ req: iapOneTimeCodesReq(id ?? '${new campaign}', b), product: p.id, campaign: oc.name, oneTime: true }); + report.push({ product: p.id, campaign: oc.name, exists: !!cur, codesToCreate: codeReqs.filter(x => x.campaign === oc.name && x.product === p.id).map(x => x.req.note) }); + } + } + if (active > 10) warn(TAG, `${active} active offer code campaigns: App Store Connect allows 10 active offers per app at a time`); + if (a.has('json')) printJson({ dryRun: dry, campaigns: report, codes: codeReqs.map(x => describeReq(x.req)) }); + if (!codeReqs.length) { done(TAG, dry ? 'offer codes checked (dry run)' : 'offer codes done'); return; } + if (!a.has('codes')) { for (const x of codeReqs) log(TAG, `not created without --codes: ${x.req.note}`); done(TAG, `${codeReqs.length} code request(s) left; run with --codes (asks first)`); return; } + if (dry) { await execute(c.asc, codeReqs.map(x => x.req), { dry, tag: TAG }); done(TAG, 'dry run: no codes created'); return; } + if (!(await confirm(ctx, `Create ${codeReqs.length} code request(s) (${codeReqs.map(x => x.req.note).join('; ')})? Codes count against the 1 million per quarter and can be redeemed by anyone who gets them.`))) return; + const dir = resolve('.storebound/offer-codes'); + for (const x of codeReqs) { + const out = (await execute(c.asc, [x.req], { dry: false, tag: TAG }))[0] as J; + if (!x.oneTime) continue; + // the codes of a one-time-use batch (text/csv); saved locally, never printed + const values = await c.bytes(`/v1/inAppPurchaseOfferCodeOneTimeUseCodes/${out.data.id}/values`, 'text/csv'); + if (!values) { warn(TAG, `${x.product} "${x.campaign}": codes not ready yet; download them in App Store Connect`); continue; } + mkdirSync(dir, { recursive: true }); + const file = join(dir, `${x.product}-${x.campaign.replace(/[^A-Za-z0-9._-]+/g, '_')}-${out.data.id}.csv`); + writeFileSync(file, values); + log(TAG, `${x.product} "${x.campaign}": one-time codes saved to ${file}`); + } + done(TAG, `${codeReqs.length} code request(s) done`); +} diff --git a/cli/apple/preorder.ts b/cli/apple/preorder.ts new file mode 100644 index 00000000..3cc4c9ab --- /dev/null +++ b/cli/apple/preorder.ts @@ -0,0 +1,61 @@ +// App Store pre-orders through the app availability API. +// storebound apple preorder status [--json] +// storebound apple preorder enable --release-date YYYY-MM-DD [--territories USA,DEU] [--dry] [--yes] [--json] +// storebound apple preorder end [--territories USA,DEU] [--dry] [--yes] [--json] +// status: per territory available, release date, pre-order on, publish date, content statuses. enable puts the +// territories (default: all the app is available in and not yet released) on pre-order with that release date; end +// stops the pre-order and releases the app there at once. Both are public, so they show the dry run and ask first; +// neither is an MCP tool. Apple requires an approved version first; the release date is 2-180 days ahead for a new +// app (up to 365 days for an existing app in a new region). Google Play pre-registration has no API: Play Console > +// Grow users > Pre-registration (see the app-store-promotion skill). Pure parts and sources: cli/lib/offers.ts. +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { done, printJson, warn } from '../lib/log'; +import { endPreOrderReq, planPreOrder, territoryRows } from '../lib/offers'; +import { textTable } from '../lib/table'; +import { ascClient, type J } from './asc'; +import { describeReq, execute } from './jsonapi'; + +const TAG = 'preorder'; +const USAGE = 'usage: storebound apple preorder status | enable --release-date YYYY-MM-DD [--territories USA,DEU] | end [--territories USA]'; + +export async function run(ctx: Ctx): Promise { + const { config, root } = ctx.loaded; + const a = ctx.args; + const sub = a._[0]; + if (!sub || !['status', 'enable', 'end'].includes(sub)) throw new Error(USAGE); + const dry = a.has('dry'); + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + const appId = await c.app(); + const avail = (await c.maybe(`/v1/apps/${appId}/appAvailabilityV2`))?.data; + if (!avail) throw new Error('the app has no availability yet: set territories first (storebound apple appinfo, or Pricing and Availability in App Store Connect)'); + const pagesOut: J[] = []; + for (let url: string | null = `/v2/appAvailabilities/${avail.id}/territoryAvailabilities?include=territory&limit=200`; url;) { const p: J = await c.asc('GET', url); pagesOut.push(p); url = p.links?.next ?? null; } + const rows = territoryRows(pagesOut); + const territories = a.list('territories').length ? a.list('territories') : null; + + if (sub === 'status') { + const pre = rows.filter(r => r.preOrderEnabled); + if (a.has('json')) { printJson({ availableInNewTerritories: avail.attributes?.availableInNewTerritories ?? null, territories: rows }); return; } + console.log(textTable(['territory', 'available', 'release date', 'pre-order', 'pre-order published', 'status'], + rows.filter(r => !territories || territories.includes(r.territory)).map(r => [r.territory, r.available ? 'yes' : 'no', r.releaseDate ?? '', r.preOrderEnabled ? 'on' : '', r.preOrderPublishDate ?? '', (r.contentStatuses ?? []).join(' ')]))); + done(TAG, `${rows.length} territories, ${pre.length} on pre-order`); + return; + } + + const plan = sub === 'enable' + ? planPreOrder(rows, need(a.get('release-date'), '--release-date YYYY-MM-DD'), territories) + : { reqs: [endPreOrderReq(rows, territories)].filter(r => r !== null), problems: [] as string[], warnings: [] as string[] }; + for (const w of plan.warnings) warn(TAG, w); + if (plan.problems.length) throw new Error(plan.problems.join('; ')); + if (a.has('json') && dry) { printJson({ dryRun: true, requests: plan.reqs.map(r => describeReq(r)), warnings: plan.warnings }); return; } + if (!plan.reqs.length) { done(TAG, sub === 'enable' ? 'pre-order already set up like that' : 'no territory is on pre-order'); return; } + if (dry) { await execute(c.asc, plan.reqs, { dry, tag: TAG }); done(TAG, 'dry run: nothing changed'); return; } + const q = sub === 'enable' + ? `Put the app on pre-order in ${plan.reqs.length} territor${plan.reqs.length === 1 ? 'y' : 'ies'} with release date ${a.get('release-date')}? The pre-order page goes public once you release an approved version.` + : `End the pre-order and release the app now (${plan.reqs[0]!.note})?`; + if (!(await confirm(ctx, q))) return; + await execute(c.asc, plan.reqs, { dry: false, tag: TAG }); + if (a.has('json')) printJson({ dryRun: false, requests: plan.reqs.map(r => describeReq(r)) }); + done(TAG, sub === 'enable' ? 'pre-order set (storebound apple preorder status)' : 'pre-order ended; the app is released in those territories'); +} diff --git a/cli/apple/promoted.ts b/cli/apple/promoted.ts new file mode 100644 index 00000000..dc03c5da --- /dev/null +++ b/cli/apple/promoted.ts @@ -0,0 +1,62 @@ +// Promoted in-app purchases on the App Store product page, from apple.promoted. +// storebound apple promoted [--enable] [--dry] [--yes] [--json] +// Status (what is promoted, enabled, its review state), then: creates the missing promoted purchases disabled, +// updates visibleForAllUsers, sets the display order. --enable also switches them on, which shows them on the +// product page once approved: that asks first and is not an MCP tool. Each promoted purchase needs its promotional +// image (App Store Connect) and the app must handle purchases started on the App Store (StoreKit PurchaseIntent). +// At most 20 at a time. Pure parts and sources: cli/lib/offers.ts. +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { done, log, printJson, warn } from '../lib/log'; +import { planPromoted, type PromotedNow, promotedOrderReq } from '../lib/offers'; +import { textTable } from '../lib/table'; +import { ascClient, type J } from './asc'; +import { describeReq, execute } from './jsonapi'; + +const TAG = 'promoted'; + +export async function run(ctx: Ctx): Promise { + const { config, root } = ctx.loaded; + const a = ctx.args; + const dry = a.has('dry'); + const cfg = config.apple?.promoted; + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + const appId = await c.app(); + const products = new Map(); + for (const p of await c.all(`/v1/apps/${appId}/inAppPurchasesV2?limit=200`)) products.set(p.attributes.productId, { apiId: p.id, kind: 'iap' }); + for (const g of await c.all(`/v1/apps/${appId}/subscriptionGroups?limit=200`)) + for (const s of await c.all(`/v1/subscriptionGroups/${g.id}/subscriptions?limit=200`)) products.set(s.attributes.productId, { apiId: s.id, kind: 'sub' }); + const byApiId = new Map([...products.entries()].map(([pid, v]) => [v.apiId, pid] as const)); + const raw = await c.asc('GET', `/v1/apps/${appId}/promotedPurchases?include=inAppPurchaseV2,subscription&limit=50`); + const now: PromotedNow[] = (raw.data ?? []).map((p: J) => ({ id: p.id, enabled: !!p.attributes.enabled, visibleForAllUsers: !!p.attributes.visibleForAllUsers, state: p.attributes.state, + productId: byApiId.get(p.relationships?.inAppPurchaseV2?.data?.id ?? p.relationships?.subscription?.data?.id ?? '') ?? '?' })); + const status = now.map((p, i) => [i + 1, p.productId, p.enabled ? 'enabled' : 'off', p.visibleForAllUsers ? 'everyone' : 'app decides', p.state ?? '']); + if (!cfg) { + if (a.has('json')) printJson({ promoted: now }); + else console.log(now.length ? textTable(['#', 'product', 'enabled', 'visible to', 'state'], status) : 'no promoted in-app purchases'); + done(TAG, 'apple.promoted is not set: status only'); + return; + } + const plan = planPromoted(appId, cfg, now, products, { enable: a.has('enable') }); + const order = promotedOrderReq(appId, cfg, now); + for (const u of plan.unknown) warn(TAG, `${u}: not on App Store Connect (storebound apple iap / apple subscriptions)`); + if (plan.extra.length) log(TAG, `promoted on the store but not in apple.promoted (left as they are): ${plan.extra.join(', ')}`); + if (now.length + plan.create.length > 20) throw new Error(`${now.length + plan.create.length} promoted purchases: at most 20`); + const reqs = [...plan.create, ...plan.update]; + if (a.has('json')) printJson({ dryRun: dry, promoted: now, requests: [...reqs, ...(order ? [order] : [])].map(r => describeReq(r)), unknown: plan.unknown, extra: plan.extra }); + else if (now.length) console.log(textTable(['#', 'product', 'enabled', 'visible to', 'state'], status)); + if (!reqs.length && !order) { done(TAG, 'promoted purchases up to date'); return; } + if (dry) { await execute(c.asc, [...reqs, ...(order ? [order] : [])], { dry, tag: TAG }); done(TAG, 'dry run: nothing changed'); return; } + const enabling = reqs.some(r => JSON.stringify(r.body).includes('"enabled":true')); + if (enabling && !(await confirm(ctx, 'Switch promoted purchases on? Once approved they show on the App Store product page.'))) return; + await execute(c.asc, reqs, { dry: false, tag: TAG }); + // the order covers the purchases that exist now (new ones included) + if (plan.create.length || order) { + const fresh = await c.asc('GET', `/v1/apps/${appId}/promotedPurchases?include=inAppPurchaseV2,subscription&limit=50`); + const after: PromotedNow[] = (fresh.data ?? []).map((p: J) => ({ id: p.id, enabled: !!p.attributes.enabled, visibleForAllUsers: !!p.attributes.visibleForAllUsers, + productId: byApiId.get(p.relationships?.inAppPurchaseV2?.data?.id ?? p.relationships?.subscription?.data?.id ?? '') ?? '?' })); + const o = promotedOrderReq(appId, cfg, after); + if (o) await execute(c.asc, [o], { dry: false, tag: TAG }); + } + done(TAG, `promoted purchases updated${a.has('enable') ? '' : ' (not switched on: --enable when the images are approved)'}`); +} diff --git a/cli/apple/testflight.ts b/cli/apple/testflight.ts index 89db3ba5..e0cfbb82 100644 --- a/cli/apple/testflight.ts +++ b/cli/apple/testflight.ts @@ -5,6 +5,10 @@ // storebound apple testflight what-to-test --build N [--version x.y.z] [--locale en-US,tr] [--text "..."] [--dry] // storebound apple testflight info [--dry] Test Information + Beta App Review contact / notes // storebound apple testflight distribute --build N --group a,b [--version x.y.z] [--internal-only] [--submit-review] [--dry] [--yes] +// storebound apple testflight wait --build N [--version x.y.z] [--timeout 60m] [--dry] [--json] until processing ends +// exit codes: 0 VALID, 1 FAILED / INVALID, 7 timeout; --dry checks once and does not wait +// storebound apple testflight expire (--keep N | --older-than D) [--version x.y.z] [--dry] [--yes] [--json] +// expires old builds (permanent; asks first); builds attached to an App Store version and processing builds stay // Testers come from a CSV in .storebound/ (gitignored; never commit tester emails): email, first_name, last_name, // groups (";"-separated). Emails are masked in every log line. Adding testers makes Apple email TestFlight invitations // (once the group has a build), so `testers` asks first; `--remove` takes testers out of the managed groups. @@ -16,6 +20,8 @@ import { confirm, need } from '../lib/ctx'; import { reviewContact } from '../lib/credentials'; import { done, log, printJson, warn } from '../lib/log'; import { textTable } from '../lib/table'; +import { BUILD_WAIT_EXIT, type BuildSeen, expireCandidates, planExpire, validHint, waitDelay, waitOutcome } from '../lib/build-ops'; +import { parseDuration } from '../lib/release'; import { type ApiBuild, betaDescriptions, betaReadiness, betaReviewReq, buildsWithVersion, type Group, groupFromApi, inviteReq, maskEmail, parseTesters, pickBuild, planBetaInfo, planBetaReviewDetail, planDistribute, planGroups, planTesters, planWhatToTest, whatToTestFromListing, @@ -24,7 +30,26 @@ import { type Asc, ascClient, type J } from './asc'; import { execute } from './jsonapi'; const TAG = 'testflight'; -const USAGE = 'usage: storebound apple testflight status | groups | testers | what-to-test --build N | info | distribute --build N --group '; +const USAGE = 'usage: storebound apple testflight status | groups | testers | what-to-test --build N | info | distribute --build N --group | wait --build N | expire --keep N | --older-than D'; + +/** The state of build `number` (of `marketing` version) right now; found: false while App Store Connect does not list it. */ +async function seeBuild(c: Asc, appId: string, number: string, marketing?: string): Promise { + const q = new URLSearchParams({ 'filter[app]': appId, 'filter[version]': number, 'filter[preReleaseVersion.platform]': 'IOS', include: 'preReleaseVersion,buildBetaDetail', limit: '50' }); + if (marketing) q.set('filter[preReleaseVersion.version]', marketing); + const resp = await c.asc('GET', `/v1/builds?${q}`); + const hits = buildsWithVersion(resp).filter(b => b.attributes.version === number && (!marketing || b.marketing === marketing)); + if (!hits.length) return { found: false }; + const b = pickBuild(hits, number, marketing); + const d = (resp.included ?? []).find((x: J) => x.type === 'buildBetaDetails' && x.id === (b as J).relationships?.buildBetaDetail?.data?.id)?.attributes; + return { found: true, processingState: b.attributes.processingState, internal: d?.internalBuildState ?? null, external: d?.externalBuildState ?? null, version: b.marketing }; +} + +/** Every page of a GET, with `included` kept (c.all keeps only data). */ +async function pagesOf(c: Asc, path: string): Promise { + const out: J[] = []; + for (let url: string | null = path; url;) { const page: J = await c.asc('GET', url); out.push(page); url = page.links?.next ?? null; } + return out; +} async function groups(c: Asc, appId: string): Promise { return (await c.all(`/v1/apps/${appId}/betaGroups?limit=200`)).map(groupFromApi); @@ -187,5 +212,51 @@ export async function run(ctx: Ctx): Promise { done(TAG, `build ${number}: ${reqs.length ? `added to ${reqs.length} group(s)` : 'already in every group'}`); return; } + if (sub === 'wait') { + const number = need(a.get('build'), '--build N (the exact build number you uploaded)'); + const marketing = a.get('version'); + const timeoutMs = parseDuration(a.str('timeout', '60m')); + const started = Date.now(); + let delay: number | null = null, last = ''; + for (;;) { + const b = await seeBuild(c, appId, number, marketing); + const outcome = waitOutcome(b); + const mins = `${Math.round((Date.now() - started) / 60_000)} min`; + const line = outcome === 'missing' ? 'not listed yet (App Store Connect lists it once processing starts)' : `${b.processingState}${b.internal ? `, internal ${b.internal}` : ''}`; + if (line !== last) { log(TAG, `build ${number}${b.version ? ` (${b.version})` : ''}: ${line} [${mins}]`); last = line; } + const finish = (code: number, msg: string): never => { + if (a.has('json')) printJson({ build: number, version: b.version ?? marketing ?? null, outcome: code === BUILD_WAIT_EXIT.timeout ? 'timeout' : outcome, processingState: b.processingState ?? null, + internal: b.internal ?? null, external: b.external ?? null, waitedSeconds: Math.round((Date.now() - started) / 1000) }); + log(TAG, msg); + process.exit(code); + }; + if (outcome === 'valid') finish(BUILD_WAIT_EXIT.valid, `build ${number} is VALID; ${validHint(b).replace('N', number)}`); + if (outcome === 'failed') finish(BUILD_WAIT_EXIT.failed, `build ${number} is ${b.processingState}: read the email from App Store Connect (missing icons, wrong SDK, invalid signature), fix and upload a new build number`); + if (dry) finish(BUILD_WAIT_EXIT.timeout, 'dry run: checked once, not waiting'); + delay = waitDelay(delay); + if (Date.now() + delay - started > timeoutMs) finish(BUILD_WAIT_EXIT.timeout, `timeout after ${mins}; still ${outcome} (re-run to keep waiting)`); + await Bun.sleep(delay); + } + } + + if (sub === 'expire') { + const keep = a.get('keep') === undefined ? undefined : a.num('keep', 0); + const olderThanDays = a.get('older-than') === undefined ? undefined : a.num('older-than', 0); + const q = new URLSearchParams({ 'filter[app]': appId, 'filter[expired]': 'false', 'filter[preReleaseVersion.platform]': 'IOS', sort: '-uploadedDate', include: 'preReleaseVersion,appStoreVersion', limit: '200' }); + if (a.get('version')) q.set('filter[preReleaseVersion.version]', a.get('version')!); + const plan = planExpire(expireCandidates(await pagesOf(c, `/v1/builds?${q}`)), { keep, olderThanDays }); + const row = (b: { build: string; version?: string; uploaded: string }, what: string) => [b.version ?? '', b.build, b.uploaded.slice(0, 10), what]; + const summary = { expire: plan.expire.map(b => ({ build: b.build, version: b.version ?? null, uploaded: b.uploaded })), keep: plan.keep.length, + protected: plan.protected.map(p => ({ build: p.b.build, version: p.b.version ?? null, why: p.why })) }; + if (a.has('json') && dry) { printJson({ dryRun: true, ...summary }); return; } + if (!a.has('json')) console.log(textTable(['version', 'build', 'uploaded', ''], [...plan.expire.map(b => row(b, 'expire')), ...plan.protected.map(p => row(p.b, `keep: ${p.why}`)), ...plan.keep.map(b => row(b, 'keep'))])); + if (!plan.reqs.length) { done(TAG, 'nothing to expire'); if (a.has('json')) printJson({ dryRun: dry, ...summary, expired: [] }); return; } + if (dry) { await execute(c.asc, plan.reqs, { dry, tag: TAG }); done(TAG, `dry run: ${plan.reqs.length} build(s) would be expired`); return; } + if (!(await confirm(ctx, `Expire ${plan.reqs.length} build(s) (${plan.expire.map(b => b.build).join(', ')})? Testers lose them; an expired build cannot be brought back.`))) return; + await execute(c.asc, plan.reqs, { dry: false, tag: TAG }); + if (a.has('json')) printJson({ dryRun: false, ...summary, expired: plan.expire.map(b => b.build) }); + done(TAG, `${plan.reqs.length} build(s) expired`); + return; + } throw new Error(`unknown testflight command "${sub}"\n${USAGE}`); } diff --git a/cli/apple/win-back.ts b/cli/apple/win-back.ts new file mode 100644 index 00000000..9631dda2 --- /dev/null +++ b/cli/apple/win-back.ts @@ -0,0 +1,70 @@ +// Win-back offers for lapsed subscribers from subscriptions[].subscriptions[].winBack. +// storebound apple win-back [--only sub1,sub2] [--dry] [--yes] [--json] +// Lists what each subscription has (GET /v1/subscriptions/{id}/winBackOffers) and creates the configured offers that +// are missing (by offer id). A win-back offer goes live by itself on its start date (Manage Subscriptions, the +// in-app offer sheet, the App Store when promoted), so creating one is the owner's step: dry run first, then a +// terminal confirmation; never an MCP tool. The subscription must be approved; reference name, offer id and price +// cannot be changed afterwards (App Store Connect Help). Pure parts and sources: cli/lib/offers.ts. +import type { Ctx } from '../lib/ctx'; +import { confirm, need } from '../lib/ctx'; +import { done, log, printJson, warn } from '../lib/log'; +import { type TerritoryPoint, validateWinBack, winBackBody } from '../lib/offers'; +import { allSubscriptions, applePoints, pickPoint } from '../lib/subscriptions'; +import { textTable } from '../lib/table'; +import { pages } from '../prices'; +import { ascClient, type J } from './asc'; +import { describeReq, execute, type Req } from './jsonapi'; + +const TAG = 'win-back'; + +export async function run(ctx: Ctx): Promise { + const { config, root } = ctx.loaded; + const a = ctx.args; + const dry = a.has('dry'); + const only = a.list('only'); + const subs = allSubscriptions(config.subscriptions).map(x => x.sub).filter(s => s.winBack?.length && (!only.length || only.includes(s.id))); + if (!subs.length) throw new Error('no subscriptions with winBack offers (subscriptions[].subscriptions[].winBack in storebound.config.ts)'); + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + const appId = await c.app(); + const onStore = new Map(); + for (const g of await c.all(`/v1/apps/${appId}/subscriptionGroups?limit=200`)) + for (const s of await c.all(`/v1/subscriptionGroups/${g.id}/subscriptions?limit=200`)) onStore.set(s.attributes.productId, s); + const today = new Date().toISOString().slice(0, 10); + const reqs: Req[] = []; + const rows: (string | number)[][] = []; + const skipped: { id: string; why: string }[] = []; + + for (const s of subs) { + const remote = onStore.get(s.id); + if (!remote) { skipped.push({ id: s.id, why: 'not on App Store Connect (storebound apple subscriptions)' }); continue; } + const existing = await c.all(`/v1/subscriptions/${remote.id}/winBackOffers?limit=200`); + for (const o of existing) rows.push([s.id, o.attributes.offerId, o.attributes.offerMode, o.attributes.startDate ?? '', o.attributes.endDate ?? '', o.attributes.priority ?? '']); + const missing = s.winBack!.filter(o => !existing.some((x: J) => x.attributes.offerId === o.id)); + if (!missing.length) continue; + if (remote.attributes.state !== 'APPROVED') { skipped.push({ id: s.id, why: `subscription is ${remote.attributes.state}: win-back offers need an approved subscription` }); continue; } + const problems = validateWinBack(s.id, missing, today); + if (problems.length) { skipped.push({ id: s.id, why: problems.join('; ') }); continue; } + let usa: ReturnType | null = null; + for (const o of missing) { + let prices: TerritoryPoint[]; + if (o.type === 'free') prices = (await c.all(`/v1/subscriptions/${remote.id}/prices?include=territory&limit=200`)).map((x: J) => ({ territory: x.relationships?.territory?.data?.id })).filter((x: TerritoryPoint) => !!x.territory); + else { + usa ??= applePoints(await pages(c, `/v1/subscriptions/${remote.id}/pricePoints?filter[territory]=USA&include=territory&limit=200`)); + const point = pickPoint(usa, 'USA', o.usd!); + const eq = applePoints(await pages(c, `/v1/subscriptionPricePoints/${point.id}/equalizations?include=territory&limit=200`)); + prices = [{ territory: 'USA', pointId: point.id }, ...eq.filter(x => x.territory !== 'USA').map(x => ({ territory: x.territory, pointId: x.id }))]; + } + reqs.push({ method: 'POST', path: '/v1/winBackOffers', body: winBackBody(remote.id, s.period, o, prices), + note: `${s.id}: win-back "${o.id}" ${o.type}${o.usd ? ` USD ${o.usd}` : ''}, from ${o.start}${o.end ? ` to ${o.end}` : ''}, ${prices.length} territories` }); + } + } + if (a.has('json')) printJson({ dryRun: dry, existing: rows.map(r => ({ subscription: r[0], offerId: r[1], mode: r[2], start: r[3], end: r[4], priority: r[5] })), create: reqs.map(r => describeReq(r)), skipped }); + else if (rows.length) console.log(textTable(['subscription', 'offer', 'mode', 'start', 'end', 'priority'], rows)); + for (const s of skipped) warn(TAG, `${s.id}: ${s.why}`); + if (!reqs.length) { done(TAG, 'no win-back offer to create'); return; } + if (dry) { await execute(c.asc, reqs, { dry, tag: TAG }); done(TAG, `dry run: ${reqs.length} win-back offer(s) would be created`); return; } + if (!(await confirm(ctx, `Create ${reqs.length} win-back offer(s)? Each goes live by itself on its start date; reference name, offer id and price cannot be changed afterwards.`))) return; + await execute(c.asc, reqs, { dry: false, tag: TAG }); + log(TAG, 'the redemption URL of each offer is in App Store Connect (Subscriptions > the subscription > Win-Back Offers)'); + done(TAG, `${reqs.length} win-back offer(s) created`); +} diff --git a/cli/aso.ts b/cli/aso.ts new file mode 100644 index 00000000..5bac96a7 --- /dev/null +++ b/cli/aso.ts @@ -0,0 +1,66 @@ +// App Store keyword rank check through Apple's public iTunes Search API (no account, no scraping). +// storebound aso rank [--storefronts us,de=de-DE] [--keywords "a,b"] [--only-keywords] [--competitors 3] [--limit 200] +// [--delay 3500] [--dry] [--json] +// Keywords: the keyword field of each storefront's locale in store/appstore.md (us -> the primary locale unless +// "us=en-GB"), plus --keywords (--only-keywords: just those). One request per keyword and storefront, at most one +// every 3.5 s (Apple allows about 20 a minute); a 403 / 429 stops the run with what was read. Rank = position of the +// app (apple.appId, else the bundle id) in the first --limit results, "-" when not there; plus the first competitors +// (title, developer, rating). Subtitles are not in the public API and are not shown. Writes +// .storebound/aso/.json (and compares with the previous one) unless --dry. Pure parts: cli/lib/aso-rank.ts. +import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs'; +import { join } from 'node:path'; +import type { Ctx } from './lib/ctx'; +import { done, log, printJson, warn } from './lib/log'; +import { competitors, keywordList, MIN_DELAY_MS, parseStorefronts, rankDelta, rankOf, type RankRow, type SearchApp, searchUrl } from './lib/aso-rank'; +import { appleSections } from './lib/project-files'; +import { textTable } from './lib/table'; + +const TAG = 'aso'; + +export async function run(ctx: Ctx): Promise { + const { config, resolve } = ctx.loaded; + const a = ctx.args; + if (a._[0] !== 'rank') throw new Error('usage: storebound aso rank [--storefronts us,de=de-DE] [--keywords "a,b"] [--dry] [--json]'); + if (!config.apple) throw new Error('aso rank checks App Store search: the config has no apple section'); + const primary = config.apple.primaryLocale ?? config.languages.find(l => l.apple)?.apple ?? 'en-US'; + const listingFile = resolve(config.apple.listing ?? 'store/appstore.md'); + const listing = existsSync(listingFile) ? appleSections(readFileSync(listingFile, 'utf8')) : new Map>(); + const extra = a.list('keywords'); + const fronts = parseStorefronts(a.list('storefronts'), primary); + const n = a.num('competitors', 3); + const limit = a.num('limit', 200); + const delay = Math.max(MIN_DELAY_MS, a.num('delay', MIN_DELAY_MS)); + const app = { appId: config.apple.appId, bundleId: config.apple.bundleId }; + const plan = fronts.flatMap(f => keywordList(a.has('only-keywords') ? '' : listing.get(f.locale)?.keywords, extra).map(k => ({ ...f, keyword: k }))); + if (!plan.length) throw new Error(`no keywords: ${listingFile} has no keywords for ${fronts.map(f => f.locale).join(', ')}; pass --keywords`); + log(TAG, `${plan.length} quer${plan.length === 1 ? 'y' : 'ies'} (${fronts.map(f => f.storefront).join(', ')}), one every ${delay / 1000}s: about ${Math.ceil(plan.length * delay / 60_000)} min`); + if (a.has('dry')) { + if (a.has('json')) printJson({ dryRun: true, queries: plan.map(p => ({ storefront: p.storefront, keyword: p.keyword, url: searchUrl(p.keyword, p.storefront, limit) })) }); + else for (const p of plan) log(TAG, `would GET ${searchUrl(p.keyword, p.storefront, limit)}`); + return; + } + const rows: RankRow[] = []; + for (const [i, p] of plan.entries()) { + if (i) await Bun.sleep(delay); + const r = await fetch(searchUrl(p.keyword, p.storefront, limit), { headers: { Accept: 'application/json' } }); + if (r.status === 403 || r.status === 429) { warn(TAG, `Search API answered ${r.status} (rate limit): stopped after ${rows.length} of ${plan.length}; try later or with a larger --delay`); break; } + if (!r.ok) { warn(TAG, `${p.storefront} "${p.keyword}": HTTP ${r.status}`); continue; } + const results = ((await r.json()) as { results?: SearchApp[] }).results ?? []; + const row: RankRow = { storefront: p.storefront, locale: p.locale, keyword: p.keyword, rank: rankOf(results, app), results: results.length, competitors: competitors(results, app, n) }; + rows.push(row); + log(TAG, `${i + 1}/${plan.length} ${p.storefront} "${p.keyword}": ${row.rank ?? `not in the first ${results.length}`}`); + } + const dir = resolve('.storebound/aso'); + const prevFile = existsSync(dir) ? readdirSync(dir).filter(f => /^\d{4}-\d{2}-\d{2}\.json$/.test(f)).sort().at(-1) : undefined; + const prev = prevFile ? (JSON.parse(readFileSync(join(dir, prevFile), 'utf8')) as { rows?: RankRow[] }).rows : undefined; + const delta = rankDelta(rows, prev); + const date = new Date().toISOString().slice(0, 10); + if (a.has('json')) printJson({ date, previous: prevFile ?? null, rows: rows.map(r => ({ ...r, change: delta.get(`${r.storefront}|${r.keyword.toLowerCase()}`) ?? null })) }); + else console.log(textTable(['store', 'keyword', 'rank', 'change', 'top competitors'], rows.map(r => { + const d = delta.get(`${r.storefront}|${r.keyword.toLowerCase()}`); + return [r.storefront, r.keyword, r.rank ?? '-', d === null || d === undefined ? '' : d > 0 ? `+${d}` : String(d), r.competitors.map(c => `${c.rank}. ${c.title.slice(0, 28)} (${c.developer.slice(0, 18)})`).join('; ')]; + }))); + mkdirSync(dir, { recursive: true }); + writeFileSync(join(dir, `${date}.json`), JSON.stringify({ date, app: { appId: app.appId ?? null, bundleId: app.bundleId }, rows }, null, 2) + '\n'); + done(TAG, `${rows.length} rank(s) saved to ${join(dir, `${date}.json`)}${prevFile ? ` (change vs ${prevFile})` : ''}; Search API order is close to App Store search, read it as a trend`); +} diff --git a/cli/catalog.ts b/cli/catalog.ts index 84f6904e..dfee2068 100644 --- a/cli/catalog.ts +++ b/cli/catalog.ts @@ -5,7 +5,14 @@ // localizations, offers, and a per-region price comparison between the stores (same currency, difference over // --threshold percent). Exit 1 when an item is missing or mismatched; price differences between the stores are // information (stores round to their own price tiers). Pure rules: lib/catalog.ts. +// storebound catalog pull [--store apple|play] [--write] [--json] +// The live titles and descriptions (Play: + benefits) of in-app purchases and subscriptions against the listings in +// storebound.config.ts: a proposal diff per product and language. The config (TypeScript) is never rewritten; --write +// saves the proposal as .storebound/pull/catalog.json for you or your agent to merge. +import { mkdirSync, writeFileSync } from 'node:fs'; +import { dirname } from 'node:path'; import { appleCurrent, pages, playProduct } from './prices'; +import { catalogProposal, type RemoteCatalog } from './lib/listing-pull'; import { ascClient, type J } from './apple/asc'; import { type CatalogRow, catalogDiff, fromApplePeriod, fromAppleType, regionOf, type StoreItem, wantedCatalog } from './lib/catalog'; import type { Ctx } from './lib/ctx'; @@ -83,10 +90,67 @@ async function playItems(ctx: Ctx): Promise { return out; } +async function appleTexts(ctx: Ctx): Promise { + const { config, root } = ctx.loaded; + const c = await ascClient(root, config.apple!.bundleId, config.apple?.appId); + const appId = await c.app(); + const out: RemoteCatalog = {}; + for (const p of await c.all(`/v1/apps/${appId}/inAppPurchasesV2?limit=200`)) + out[p.attributes.productId] = Object.fromEntries((await c.all(`/v2/inAppPurchases/${p.id}/inAppPurchaseLocalizations?limit=50`)) + .map((l: J) => [l.attributes.locale, { title: l.attributes.name ?? '', description: l.attributes.description ?? '' }])); + for (const g of await c.all(`/v1/apps/${appId}/subscriptionGroups?limit=200`)) + for (const s of await c.all(`/v1/subscriptionGroups/${g.id}/subscriptions?limit=200`)) + out[s.attributes.productId] = Object.fromEntries((await c.all(`/v1/subscriptions/${s.id}/subscriptionLocalizations?limit=200`)) + .map((l: J) => [l.attributes.locale, { title: l.attributes.name ?? '', description: l.attributes.description ?? '' }])); + log(TAG, `apple: texts of ${Object.keys(out).length} product(s)`); + return out; +} + +async function playTexts(ctx: Ctx): Promise { + const { config, root } = ctx.loaded; + const play = await playClient(root, config.play!.packageName); + const out: RemoteCatalog = {}; + for (const { productId } of await listOneTimeProducts(play)) { + const p = await playProduct(play, productId); + out[productId] = Object.fromEntries(((p?.listings as { languageCode: string; title?: string; description?: string }[] | undefined) ?? []).map(l => [l.languageCode, { title: l.title ?? '', description: l.description ?? '' }])); + } + let page = ''; + do { + const r = await play.call<{ subscriptions?: J[]; nextPageToken?: string }>('GET', `${play.API}/subscriptions?pageSize=100${page ? '&pageToken=' + page : ''}`); + for (const s of r.subscriptions ?? []) out[s.productId] = Object.fromEntries((s.listings ?? []).map((l: J) => [l.languageCode, { title: l.title ?? '', description: l.description ?? '', ...(l.benefits?.length ? { benefits: l.benefits } : {}) }])); + page = r.nextPageToken ?? ''; + } while (page); + log(TAG, `play: texts of ${Object.keys(out).length} product(s)`); + return out; +} + +async function pull(ctx: Ctx): Promise { + const { config, resolve } = ctx.loaded; + const a = ctx.args; + const store = a.get('store'); + if (store && store !== 'apple' && store !== 'play') throw new Error('--store apple | play'); + const apple = (!store || store === 'apple') && config.apple ? await appleTexts(ctx) : undefined; + const play = (!store || store === 'play') && config.play ? await playTexts(ctx) : undefined; + const p = catalogProposal(config, { apple, play }); + const file = resolve('.storebound/pull/catalog.json'); + if (a.has('json')) printJson({ file, write: a.has('write') && !a.has('dry'), ...p }); + else { + if (p.changes.length) console.log(textTable(['product', 'lang', 'store', 'field', 'config', 'store text'], p.changes.map(c => [c.id, c.lang, c.store, c.field, (c.from ?? '(missing)').slice(0, 40), c.to.slice(0, 40)]))); + if (p.unknown.length) log(TAG, `on the store but not in the config: ${p.unknown.join(', ')}`); + if (p.unmapped.length) log(TAG, `store languages with no entry in languages: ${p.unmapped.join(', ')}`); + } + if (!p.changes.length) { done(TAG, 'the config listings match the stores'); return; } + if (!a.has('write') || a.has('dry')) { done(TAG, `${p.changes.length} difference(s); proposal not written (add --write for ${file})`); return; } + mkdirSync(dirname(file), { recursive: true }); + writeFileSync(file, JSON.stringify({ note: 'storebound catalog pull: store texts that differ from storebound.config.ts. Merge by hand (or with your agent) into products[].listings / subscriptions[].subscriptions[].listings.', listings: p.listings, changes: p.changes }, null, 2) + '\n'); + done(TAG, `proposal written: ${file} (${p.changes.length} difference(s)); storebound.config.ts is unchanged`); +} + export async function run(ctx: Ctx): Promise { const { config } = ctx.loaded; const a = ctx.args; - if (a._[0] !== 'diff') throw new Error('usage: storebound catalog diff [--store apple|play] [--threshold 10] [--json]'); + if (a._[0] === 'pull') return pull(ctx); + if (a._[0] !== 'diff') throw new Error('usage: storebound catalog diff [--store apple|play] [--threshold 10] [--json] | pull [--store apple|play] [--write] [--json]'); const store = a.get('store'); if (store && store !== 'apple' && store !== 'play') throw new Error('--store apple | play'); const want = wantedCatalog(config); diff --git a/cli/index.ts b/cli/index.ts index 5644e5f7..a049564d 100755 --- a/cli/index.ts +++ b/cli/index.ts @@ -19,6 +19,7 @@ const PLAIN: Record Promise, string]> = { 'desktop': [() => import('./desktop'), 'open the storebound desktop app (in an app folder: add or select it there); not installed: the download for this system, --download saves it to ~/Downloads after checking its signature (never installs)'], 'doctor': [() => import('./doctor'), 'local tools for screenshots, previews, icons and captures (ffmpeg, Chrome, playwright, Xcode, adb, git) and how to install what is missing; --json'], 'privacy-manifest': [() => import('./privacy-manifest'), 'iOS PrivacyInfo.xcprivacy + required-reason API + SDK manifest scan (--ios )'], + 'ads': [() => import('./ads'), 'scan --ios : AdAttributionKit / SKAdNetwork checks of Info.plist (network ids, postback copy endpoints, attribution windows, cooldown) and sources; --json'], }; const COMMANDS: Record Promise, string]> = { 'inspect': [() => import('./inspect'), 'offline summary of the config (name, store ids, languages, products, subscriptions); --json'], @@ -26,13 +27,16 @@ const COMMANDS: Record Promise, string]> = { 'validate': [() => import('./validate'), 'read-only store readiness report with ordered blockers (--apple / --play), plus local renders checks (--no-local skips); exit 1 on blockers'], 'analytics': [() => import('./analytics'), 'setup (App Store report request) | snapshot (impressions, page views, installs, conversion -> .storebound/analytics) | compare (vs listing changes in git)'], 'health': [() => import('./health'), 'crash / ANR vitals (Play) and diagnostics (App Store), read-only; --weekly writes a markdown report; exit 1 over a threshold'], - 'catalog': [() => import('./catalog'), 'diff: cross-store parity of products + subscriptions (missing / extra / mismatched, prices per region, offers); read-only, exit 1 on mismatches'], + 'catalog': [() => import('./catalog'), 'diff: cross-store parity of products + subscriptions (missing / extra / mismatched, prices per region, offers); read-only, exit 1 on mismatches | pull [--write]: store texts of IAPs + subscriptions as a config proposal'], + 'reports': [() => import('./reports'), 'apple-sales | apple-finance --month | play-earnings --month | play-sales --month: download to .storebound/reports/, summary table + CSV; read-only'], + 'triage': [() => import('./triage'), 'TestFlight crash / screenshot feedback and Play error reports grouped by signature, device, OS version, build; read-only, --json'], + 'aso': [() => import('./aso'), 'rank [--storefronts us,de] [--keywords a,b]: App Store rank per keyword and storefront + competitors from the public iTunes Search API (rate limited) -> .storebound/aso/'], 'prices': [() => import('./prices'), 'export | import a CSV of product x store x region prices (diff first, asks before writing; Apple future-dated changes)'], 'reviews': [() => import('./reviews'), 'list | draft (local reply drafts in .storebound/replies) | send (approved drafts only, asks first)'], - 'whats-new': [() => import('./whats-new'), 'draft user-facing release notes from git log into the listing files (--since )'], + 'whats-new': [() => import('./whats-new'), 'draft user-facing release notes from git log into the listing files (--since ); --languages a,b: one file per language to translate | check | apply'], 'play products': [() => import('./play/products'), 'one-time products: create / update, regional prices, activate'], 'play subscriptions': [() => import('./play/subscriptions'), 'auto-renewable subscriptions: listings, base plan, regional prices, intro offer, activate (--csv prices sheet; asks first)'], - 'play listing': [() => import('./play/listing'), 'app details + title / short / full description per language'], + 'play listing': [() => import('./play/listing'), 'app details + title / short / full description per language; pull [--write]: live listings back into the listing file (diff first)'], 'play images': [() => import('./play/images'), 'icon, feature graphic, phone / 7" / 10" screenshots per language; --variant '], 'play data-safety': [() => import('./play/data-safety'), 'Data safety form (CSV import through the API)'], 'play release': [() => import('./play/release'), 'upload an AAB and put it on tracks with release notes'], @@ -43,7 +47,14 @@ const COMMANDS: Record Promise, string]> = { 'apple iap': [() => import('./apple/iap'), 'in-app purchases, localizations, price schedules, availability'], 'apple subscriptions': [() => import('./apple/subscriptions'), 'subscription groups, subscriptions, localizations, prices (equalized + overrides + --csv), intro offers, availability, review screenshot (asks first)'], 'apple iap-review': [() => import('./apple/iap-review'), 'IAP review screenshots + product states'], - 'apple listing': [() => import('./apple/listing'), 'version, build, name / subtitle / description / keywords per locale'], + 'apple iap-submit': [() => import('./apple/iap-submit'), 'IAP + subscription versions into a review submission (first of a type: --with-version), then submit (asks first; --no-submit keeps a draft)'], + 'apple offer-codes': [() => import('./apple/offer-codes'), 'offer codes for one-time purchases (campaigns; custom and one-time-use codes with --codes, asks first)'], + 'apple win-back': [() => import('./apple/win-back'), 'win-back offers for lapsed subscribers (asks first: they go live on their start date)'], + 'apple promoted': [() => import('./apple/promoted'), 'promoted in-app purchases on the product page: create, order, --enable (asks first)'], + 'apple preorder': [() => import('./apple/preorder'), 'status | enable --release-date | end: App Store pre-orders per territory (asks first)'], + 'apple cpp': [() => import('./apple/cpp'), 'custom product pages: list | create | upload --name | submit --name | visible --name (submit / visible ask first)'], + 'apple events': [() => import('./apple/events'), 'in-app events: list | create | upload --name | submit --name (submit asks first)'], + 'apple listing': [() => import('./apple/listing'), 'version, build, name / subtitle / description / keywords per locale; pull [--write]: live texts back into the listing file (diff first)'], 'apple screenshots': [() => import('./apple/screenshots'), '6.9" + 6.5" (+ 13" iPad) screenshots per locale; --variant '], 'apple appinfo': [() => import('./apple/appinfo'), 'categories, age rating, content rights, Free price, territories'], 'apple review-details': [() => import('./apple/review-details'), 'App Review contact, demo account (from .storebound/, masked) + notes'], @@ -53,7 +64,7 @@ const COMMANDS: Record Promise, string]> = { 'apple next-build': [() => import('./apple/next-build'), 'next safe build number (prints the number)'], 'apple encryption': [() => import('./apple/encryption'), 'export compliance answer for builds, from the config'], 'apple ppo': [() => import('./apple/ppo'), 'Product Page Optimization: status | create --variant b | upload --variant b | start | stop (asks first)'], - 'apple testflight': [() => import('./apple/testflight'), 'TestFlight: status | groups | testers (CSV in .storebound/) | what-to-test --build N | info | distribute --build N --group g [--submit-review]'], + 'apple testflight': [() => import('./apple/testflight'), 'TestFlight: status | groups | testers (CSV in .storebound/) | what-to-test --build N | info | distribute --build N --group g [--submit-review] | wait --build N | expire --keep N|--older-than D (asks)'], 'icons': [() => import('./icons'), 'App Store / Play / web / adaptive / legacy launcher icons from one artwork'], 'shots capture': [() => import('./shots/capture'), 'raw frames: --source web (playwright) | ios-sim (simctl) | android-emu (adb) | folder; --dry'], 'shots fonts': [() => import('./shots/fonts'), 'download font subsets for the copy (CJK / Arabic / Cyrillic ...)'], diff --git a/cli/lib/adattribution.ts b/cli/lib/adattribution.ts new file mode 100644 index 00000000..ddf0c159 --- /dev/null +++ b/cli/lib/adattribution.ts @@ -0,0 +1,172 @@ +// AdAttributionKit / SKAdNetwork checks of an iOS app's Info.plist and sources, as pure rules. The command +// (cli/ads.ts scan) finds the files, parses them (cli/lib/plist.ts) and prints the findings. Text checks only. +// Sources (Apple developer documentation, checked October 2026): +// https://developer.apple.com/documentation/adattributionkit +// Publisher app: "add the ad network IDs" under `AdNetworkIdentifiers` (array of strings); "Lowercase the ad network ID +// string; otherwise, the system doesn't recognize it as a valid network." +// https://developer.apple.com/documentation/adattributionkit/configuring-a-publisher-app +// https://developer.apple.com/documentation/bundleresources/information-property-list/adnetworkidentifiers +// SKAdNetwork: `SKAdNetworkItems`, one dictionary with `SKAdNetworkIdentifier` per network; "Ad network IDs are +// case-sensitive and are in lowercase." `.adattributionkit` and `.skadnetwork` ids work with both frameworks. +// https://developer.apple.com/documentation/bundleresources/information-property-list/skadnetworkitems +// https://developer.apple.com/documentation/adattributionkit/adattributionkit-skadnetwork-interoperability +// Advertised app: copies of winning postbacks with `AttributionCopyEndpoint` (Xcode shows it as "AdAttributionKit - +// Postback Copy URL"; Apple's property list reference lists the key at the top level, Xcode's editor files it under +// an `AdAttributionKit` dictionary: both are read here), "a valid URL in the format of https://example.com"; the +// system uses the registrable domain and posts to https:///.well-known/appattribution/report-attribution/. +// Re-engagement copies: `EligibleForAdAttributionKitReengagementPostbackCopies` (Boolean YES). The app has to call +// updateConversionValue at least once to start a postback's conversion window. +// https://developer.apple.com/documentation/adattributionkit/configuring-an-advertised-app +// https://developer.apple.com/documentation/bundleresources/information-property-list/attributioncopyendpoint +// SKAdNetwork postback copies and Private Click Measurement: `NSAdvertisingAttributionReportEndpoint`. +// https://developer.apple.com/documentation/bundleresources/information-property-list/nsadvertisingattributionreportendpoint +// Attribution rules: `AdAttributionKitConfigurations` > `AttributionWindows` > `global` | > `install` > +// `click` (1-30 days) / `view` (1-7 days) / `ignoreInteractionType` (view | click; ad network entries only); +// `AttributionCooldown` > `install-cooldown-hours` / `re-engagement-cooldown-hours` (0-720). +// https://developer.apple.com/documentation/adattributionkit/configuring-attribution-rules-for-your-app +// AdAttributionKit needs no App Tracking Transparency prompt. +import type { PlistValue } from './plist'; + +export type AakLevel = 'blocker' | 'warn' | 'ok' | 'info'; +export interface AakFinding { level: AakLevel; code: string; msg: string } + +type Dict = { [k: string]: PlistValue }; +const isDict = (v: PlistValue | undefined): v is Dict => !!v && typeof v === 'object' && !Array.isArray(v); +const ID_RE = /^[a-z0-9]+\.(skadnetwork|adattributionkit)$/; + +export interface SourceSignals { + /** `import AdAttributionKit` (or the framework linked). */ + aakImport: boolean; + /** updateConversionValue / updatePostbackConversionValue calls (app code or an attribution SDK). */ + conversionUpdates: boolean; + /** Ad SDKs found (Podfile.lock, Package.resolved, frameworks): these show ads, so the app is a publisher. */ + adSdks: string[]; + /** Mobile measurement SDKs that update conversion values for you (AppsFlyer, Adjust, Branch, Singular, Kochava). */ + mmpSdks: string[]; +} + +export const AD_SDKS: [RegExp, string][] = [ + [/Google-Mobile-Ads-SDK|GoogleMobileAds|swift-package-manager-google-mobile-ads/i, 'Google Mobile Ads (AdMob)'], [/AppLovinSDK|applovin-ios-sdk/i, 'AppLovin MAX'], + [/IronSourceSDK|IronSource|LevelPlay/i, 'Unity LevelPlay / ironSource'], [/UnityAds/i, 'Unity Ads'], [/FBAudienceNetwork/i, 'Meta Audience Network'], + [/Vungle|LiftoffMonetize/i, 'Liftoff Monetize'], [/InMobiSDK/i, 'InMobi'], [/MintegralAdSDK/i, 'Mintegral'], [/Pangle|Ads-Global|PAGAdSDK/i, 'Pangle'], [/ChartboostSDK/i, 'Chartboost'], +]; +export const MMP_SDKS: [RegExp, string][] = [[/AppsFlyer/i, 'AppsFlyer'], [/\bAdjust(Sdk|Signature)?\b/i, 'Adjust'], [/\bBranch\b|BranchSDK/i, 'Branch'], [/Singular/i, 'Singular'], [/KochavaNetworking|KochavaTracker/i, 'Kochava']]; + +/** Ad / MMP SDK names and AdAttributionKit signals in dependency lock files and sources. Pure. */ +export function sourceSignals(files: { path: string; text: string }[]): SourceSignals { + const deps = files.filter(f => /(Podfile\.lock|Package\.resolved|Cartfile\.resolved|project\.pbxproj)$/.test(f.path)).map(f => f.text).join('\n'); + const code = files.filter(f => /\.(swift|m|mm)$/.test(f.path)).map(f => f.text).join('\n'); + return { + aakImport: /^\s*import\s+AdAttributionKit\b|@import\s+AdAttributionKit|AdAttributionKit\.framework/m.test(code + deps), + conversionUpdates: /\bupdateConversionValue\s*\(|\bupdatePostbackConversionValue\s*\(/.test(code), + adSdks: AD_SDKS.filter(([re]) => re.test(deps)).map(([, n]) => n), + mmpSdks: MMP_SDKS.filter(([re]) => re.test(deps)).map(([, n]) => n), + }; +} + +function checkUrl(v: PlistValue | undefined, key: string, f: AakFinding[]): string | null { + if (v === undefined) return null; + if (typeof v !== 'string' || !/^https:\/\/[^\s/]+(\/.*)?$/i.test(v.trim())) { f.push({ level: 'blocker', code: 'endpoint-url', msg: `${key}: "${String(v)}" is not an https URL like https://example.com` }); return null; } + const host = new URL(v.trim()).hostname; + if (new URL(v.trim()).pathname.replace(/\/$/, '')) f.push({ level: 'warn', code: 'endpoint-path', msg: `${key}: the path is ignored; the system only uses the domain (${host})` }); + return host; +} + +/** Registrable-ish domain (last two labels; good enough to compare two endpoints of one app). */ +const domainOf = (host: string): string => host.split('.').slice(-2).join('.'); + +/** Every finding for one Info.plist (+ the source signals of the project). Pure. */ +export function evaluateAdAttribution(plist: Dict, s: SourceSignals): AakFinding[] { + const f: AakFinding[] = []; + // ---- publisher: ad network ids ---- + const skItems = plist.SKAdNetworkItems; + const skIds: string[] = []; + if (skItems !== undefined) { + if (!Array.isArray(skItems)) f.push({ level: 'blocker', code: 'skadnetwork-type', msg: 'SKAdNetworkItems must be an array of dictionaries with SKAdNetworkIdentifier' }); + else for (const [i, it] of skItems.entries()) { + const id = isDict(it) ? it.SKAdNetworkIdentifier : undefined; + if (typeof id !== 'string') { f.push({ level: 'blocker', code: 'skadnetwork-entry', msg: `SKAdNetworkItems[${i}]: no SKAdNetworkIdentifier string` }); continue; } + skIds.push(id); + } + } + const aak = plist.AdNetworkIdentifiers; + const aakIds: string[] = []; + if (aak !== undefined) { + if (!Array.isArray(aak) || !aak.every(x => typeof x === 'string')) f.push({ level: 'blocker', code: 'aak-ids-type', msg: 'AdNetworkIdentifiers must be an array of strings' }); + else aakIds.push(...(aak as string[])); + } + for (const [list, name] of [[skIds, 'SKAdNetworkItems'], [aakIds, 'AdNetworkIdentifiers']] as const) { + const upper = list.filter(id => id !== id.toLowerCase()); + if (upper.length) f.push({ level: 'blocker', code: 'id-case', msg: `${name}: ${upper.length} id(s) with capital letters (${upper.slice(0, 3).join(', ')}): the system ignores them; ad network ids are lowercase` }); + const odd = list.filter(id => id === id.toLowerCase() && !ID_RE.test(id)); + if (odd.length) f.push({ level: 'warn', code: 'id-format', msg: `${name}: ${odd.slice(0, 3).join(', ')} do not look like ad network ids (.skadnetwork / .adattributionkit)` }); + const dup = list.filter((id, i) => list.indexOf(id) !== i); + if (dup.length) f.push({ level: 'info', code: 'id-duplicate', msg: `${name}: listed twice: ${[...new Set(dup)].slice(0, 3).join(', ')}` }); + } + if (s.adSdks.length && !skIds.length && !aakIds.length) + f.push({ level: 'blocker', code: 'no-network-ids', msg: `ad SDKs (${s.adSdks.join(', ')}) but no SKAdNetworkItems / AdNetworkIdentifiers: installs from those ads cannot be attributed; add each network's ids from its list` }); + if (skIds.length && !aakIds.length) + f.push({ level: 'warn', code: 'aak-ids-missing', msg: `SKAdNetworkItems has ${skIds.length} id(s) but there is no AdNetworkIdentifiers: impressions that networks sign with AdAttributionKit are only eligible for networks in AdNetworkIdentifiers (Configuring a publisher app); the same ids work for both` }); + else if (aakIds.length && skIds.length) { + const onlySk = skIds.filter(x => !aakIds.includes(x)); + if (onlySk.length) f.push({ level: 'info', code: 'aak-ids-partial', msg: `${onlySk.length} id(s) only in SKAdNetworkItems (${onlySk.slice(0, 3).join(', ')}${onlySk.length > 3 ? ', ...' : ''}): add them to AdNetworkIdentifiers too if those networks use AdAttributionKit` }); + } + if (skIds.length || aakIds.length) f.push({ level: 'ok', code: 'network-ids', msg: `${new Set([...skIds, ...aakIds]).size} ad network id(s) (SKAdNetworkItems ${skIds.length}, AdNetworkIdentifiers ${aakIds.length})` }); + + // ---- advertised app: postback copies ---- + const group = isDict(plist.AdAttributionKit) ? plist.AdAttributionKit : undefined; + const copyRaw = group?.AttributionCopyEndpoint ?? plist.AttributionCopyEndpoint; + const reRaw = group?.EligibleForAdAttributionKitReengagementPostbackCopies ?? plist.EligibleForAdAttributionKitReengagementPostbackCopies; + const copyHost = checkUrl(copyRaw, 'AttributionCopyEndpoint', f); + if (copyHost) f.push({ level: 'ok', code: 'copy-endpoint', msg: `AdAttributionKit postback copies go to https://${domainOf(copyHost)}/.well-known/appattribution/report-attribution/ (needs a valid TLS certificate and to accept HTTPS POST)` }); + if (reRaw !== undefined && typeof reRaw !== 'boolean') f.push({ level: 'blocker', code: 'reengagement-type', msg: 'EligibleForAdAttributionKitReengagementPostbackCopies must be a Boolean (YES)' }); + if (reRaw === true && !copyHost) f.push({ level: 'warn', code: 'reengagement-without-endpoint', msg: 'EligibleForAdAttributionKitReengagementPostbackCopies is on but there is no AttributionCopyEndpoint: no copy can be sent' }); + const skHost = checkUrl(plist.NSAdvertisingAttributionReportEndpoint, 'NSAdvertisingAttributionReportEndpoint', f); + if (skHost) f.push({ level: 'ok', code: 'skan-endpoint', msg: `SKAdNetwork postback copies (and Private Click Measurement) go to https://${domainOf(skHost)}/.well-known/...` }); + if (copyHost && skHost && domainOf(copyHost) !== domainOf(skHost)) f.push({ level: 'info', code: 'endpoint-domains', msg: `AdAttributionKit copies go to ${domainOf(copyHost)}, SKAdNetwork copies to ${domainOf(skHost)}` }); + if (skHost && !copyHost && (s.aakImport || aakIds.length)) f.push({ level: 'info', code: 'copy-endpoint-missing', msg: 'SKAdNetwork postback copies are set up but AdAttributionKit ones are not: add AttributionCopyEndpoint for AdAttributionKit copies' }); + if ((copyHost || s.aakImport) && !s.conversionUpdates && !s.mmpSdks.length) + f.push({ level: 'warn', code: 'no-conversion-update', msg: 'no updateConversionValue / updatePostbackConversionValue call and no attribution SDK found: the advertised app must update the conversion value at least once (best at first launch) to start the conversion window' }); + + // ---- attribution rules ---- + const conf = plist.AdAttributionKitConfigurations; + if (conf !== undefined) { + if (!isDict(conf)) f.push({ level: 'blocker', code: 'config-type', msg: 'AdAttributionKitConfigurations must be a dictionary' }); + else { + const known = new Set([...skIds, ...aakIds]); + const windows = conf.AttributionWindows; + if (windows !== undefined && !isDict(windows)) f.push({ level: 'blocker', code: 'windows-type', msg: 'AttributionWindows must be a dictionary' }); + if (isDict(windows)) for (const [who, cfg] of Object.entries(windows)) { + const at = `AttributionWindows.${who}`; + if (who !== 'global') { + if (who !== who.toLowerCase()) f.push({ level: 'blocker', code: 'windows-id-case', msg: `${at}: ad network ids are lowercase` }); + else if (known.size && !known.has(who)) f.push({ level: 'warn', code: 'windows-unknown-network', msg: `${at}: not in AdNetworkIdentifiers / SKAdNetworkItems` }); + } + const install = isDict(cfg) ? cfg.install : undefined; + if (!isDict(install)) { f.push({ level: 'warn', code: 'windows-install', msg: `${at}: expected an "install" dictionary` }); continue; } + for (const [k, v] of Object.entries(install)) { + if (k === 'click' && !(typeof v === 'number' && Number.isInteger(v) && v >= 1 && v <= 30)) f.push({ level: 'blocker', code: 'window-click', msg: `${at}.install.click: whole days 1-30` }); + else if (k === 'view' && !(typeof v === 'number' && Number.isInteger(v) && v >= 1 && v <= 7)) f.push({ level: 'blocker', code: 'window-view', msg: `${at}.install.view: whole days 1-7` }); + else if (k === 'ignoreInteractionType') { + if (v !== 'view' && v !== 'click') f.push({ level: 'blocker', code: 'ignore-type', msg: `${at}.install.ignoreInteractionType: view | click` }); + if (who === 'global') f.push({ level: 'warn', code: 'ignore-global', msg: `${at}.install.ignoreInteractionType: only read in ad network entries, not in global` }); + } else if (!['click', 'view', 'ignoreInteractionType'].includes(k)) f.push({ level: 'info', code: 'window-key', msg: `${at}.install.${k}: not a documented key` }); + } + } + const cool = conf.AttributionCooldown; + if (cool !== undefined) { + if (!isDict(cool)) f.push({ level: 'blocker', code: 'cooldown-type', msg: 'AttributionCooldown must be a dictionary' }); + else for (const [k, v] of Object.entries(cool)) { + if (k !== 'install-cooldown-hours' && k !== 're-engagement-cooldown-hours') f.push({ level: 'info', code: 'cooldown-key', msg: `AttributionCooldown.${k}: not a documented key` }); + else if (!(typeof v === 'number' && v >= 0 && v <= 720)) f.push({ level: 'blocker', code: 'cooldown-range', msg: `AttributionCooldown.${k}: hours 0-720` }); + } + } + for (const k of Object.keys(conf)) if (!['AttributionWindows', 'AttributionCooldown'].includes(k)) f.push({ level: 'info', code: 'config-key', msg: `AdAttributionKitConfigurations.${k}: not a documented key` }); + } + } + if (!skIds.length && !aakIds.length && !copyHost && !skHost && conf === undefined && !s.aakImport && !s.adSdks.length) + f.push({ level: 'info', code: 'none', msg: 'no ad attribution setup found (fine for an app without ads and without ad campaigns)' }); + if (typeof plist.NSUserTrackingUsageDescription === 'string' && !s.adSdks.length && !s.mmpSdks.length) + f.push({ level: 'info', code: 'att-only-for-aak', msg: 'NSUserTrackingUsageDescription is set; AdAttributionKit and SKAdNetwork need no ATT prompt (keep it only if you track across apps)' }); + return f; +} diff --git a/cli/lib/aso-rank.ts b/cli/lib/aso-rank.ts new file mode 100644 index 00000000..fa0fe594 --- /dev/null +++ b/cli/lib/aso-rank.ts @@ -0,0 +1,63 @@ +// App Store keyword rank check against Apple's public iTunes Search API, as pure parts. The command (cli/aso.ts rank) +// sends the queries one by one, slower than Apple's limit, and stores a snapshot in .storebound/aso/. +// Source: Apple Search API (Performance Partners), checked October 2026: +// https://itunes.apple.com/search?term=&country=<2-letter>&media=software&entity=software&limit=1..200 (default 50) +// "approximately 20 calls per minute (subject to change)". https://performance-partners.apple.com/search-api +// What this is and is not: the order of the Search API results is close to, but not the same as, App Store search +// (no personalisation, no search ads, no "in-app events" rows), so read ranks as a trend, not a promise. The API returns +// title (trackName), developer (sellerName), bundleId, rating and description, but no subtitle: competitor subtitles +// are not available through a public API, so they are not shown (storebound scrapes nothing). +// Result fields used (as the API returns them; Apple's table lists only the general ones): trackId, trackName, +// bundleId, sellerName, averageUserRating, userRatingCount, primaryGenreName. + +export const SEARCH_API = 'https://itunes.apple.com/search'; +/** Apple: about 20 calls per minute. One call every 3.5 s stays below it with room for retries. */ +export const MIN_DELAY_MS = 3_500; +export const MAX_RESULTS = 200; + +export interface SearchApp { trackId: number; trackName: string; bundleId?: string; sellerName?: string; averageUserRating?: number; userRatingCount?: number; primaryGenreName?: string } + +export function searchUrl(term: string, country: string, limit = MAX_RESULTS): string { + if (!/^[a-z]{2}$/i.test(country)) throw new Error(`storefront "${country}": a two-letter country code (us, de, tr)`); + return `${SEARCH_API}?${new URLSearchParams({ term, country: country.toLowerCase(), media: 'software', entity: 'software', limit: String(Math.min(MAX_RESULTS, Math.max(1, limit))) })}`; +} + +/** Keywords of one App Store locale's keyword field ("a,b,c"), trimmed and de-duplicated, plus extra terms. Pure. */ +export function keywordList(field: string | undefined, extra: string[] = []): string[] { + const out: string[] = []; + for (const k of [...(field ?? '').split(','), ...extra].map(s => s.trim()).filter(Boolean)) if (!out.some(x => x.toLowerCase() === k.toLowerCase())) out.push(k); + return out; +} + +/** "us=en-US,de=de-DE" or "us,de" -> storefront + listing locale (default locale for the bare ones). Pure. */ +export function parseStorefronts(spec: string[], defaultLocale: string): { storefront: string; locale: string }[] { + const list = spec.length ? spec : ['us']; + return list.map(s => { const [sf, loc] = s.split('='); return { storefront: sf!.trim().toLowerCase(), locale: (loc ?? defaultLocale).trim() }; }); +} + +/** 1-based rank of the app in the results (by Apple ID, else bundle id), or null when not in the first N. Pure. */ +export function rankOf(results: SearchApp[], app: { appId?: string; bundleId?: string }): number | null { + const i = results.findIndex(r => (app.appId && String(r.trackId) === app.appId) || (app.bundleId && r.bundleId === app.bundleId)); + return i >= 0 ? i + 1 : null; +} + +export interface Competitor { rank: number; title: string; developer: string; rating: number | null; ratings: number; genre: string } + +/** The first n results that are not the app itself. Pure. */ +export function competitors(results: SearchApp[], app: { appId?: string; bundleId?: string }, n = 3): Competitor[] { + return results.map((r, i) => ({ r, i })).filter(({ r }) => !((app.appId && String(r.trackId) === app.appId) || (app.bundleId && r.bundleId === app.bundleId))).slice(0, n) + .map(({ r, i }) => ({ rank: i + 1, title: r.trackName, developer: r.sellerName ?? '', rating: r.averageUserRating ?? null, ratings: r.userRatingCount ?? 0, genre: r.primaryGenreName ?? '' })); +} + +export interface RankRow { storefront: string; locale: string; keyword: string; rank: number | null; results: number; competitors: Competitor[] } + +/** Rank change between two snapshots: positive = moved up. Pure. */ +export function rankDelta(now: RankRow[], before: RankRow[] | undefined): Map { + const prev = new Map((before ?? []).map(r => [`${r.storefront}|${r.keyword.toLowerCase()}`, r.rank] as const)); + const out = new Map(); + for (const r of now) { + const p = prev.get(`${r.storefront}|${r.keyword.toLowerCase()}`); + out.set(`${r.storefront}|${r.keyword.toLowerCase()}`, p === undefined || p === null || r.rank === null ? null : p - r.rank); + } + return out; +} diff --git a/cli/lib/build-ops.ts b/cli/lib/build-ops.ts new file mode 100644 index 00000000..fdcf3cf3 --- /dev/null +++ b/cli/lib/build-ops.ts @@ -0,0 +1,89 @@ +// TestFlight build housekeeping as pure parts: waiting for an uploaded build to finish processing, and expiring old +// builds. The command (cli/apple/testflight.ts wait | expire) reads, calls these and prints / sends. +// API (App Store Connect API 4.5.1 OpenAPI spec and docs, checked October 2026): +// GET /v1/builds filter[app], filter[version], filter[expired], filter[preReleaseVersion.platform], sort=-uploadedDate, +// include=preReleaseVersion,buildBetaDetail,appStoreVersion +// https://developer.apple.com/documentation/appstoreconnectapi/get-v1-builds +// Build.processingState: PROCESSING | FAILED | INVALID | VALID +// PATCH /v1/builds/{id} { expired: true } "Expire a build or change its encryption exemption setting." +// https://developer.apple.com/documentation/appstoreconnectapi/patch-v1-builds-_id_ +// Expiring is permanent: testers lose the build, it cannot be un-expired. So `expire` is a dry run first, then a +// terminal confirmation; it is not an MCP tool. +import type { Req } from '../apple/jsonapi'; + +export type WaitOutcome = 'missing' | 'processing' | 'valid' | 'failed'; + +export interface BuildSeen { found: boolean; processingState?: string; internal?: string | null; external?: string | null } + +/** One poll result -> what it means for the waiter. A build that is not listed yet is normal for some minutes after + * the upload (App Store Connect lists it once processing starts). */ +export function waitOutcome(b: BuildSeen): WaitOutcome { + if (!b.found) return 'missing'; + if (b.processingState === 'VALID') return 'valid'; + if (b.processingState === 'FAILED' || b.processingState === 'INVALID') return 'failed'; + return 'processing'; +} + +/** Poll delay: 20 s at first, x1.5 per poll, at most 2 minutes (processing usually takes 5 to 30 minutes). */ +export function waitDelay(prevMs: number | null): number { + return prevMs === null ? 20_000 : Math.min(Math.round(prevMs * 1.5), 120_000); +} + +/** Exit codes of `testflight wait`: 0 VALID, 1 FAILED / INVALID, 7 timeout (the same as `apple status --wait-review`). */ +export const BUILD_WAIT_EXIT = { valid: 0, failed: 1, timeout: 7 } as const; + +/** What the build state means for the next step, one line. */ +export function validHint(b: BuildSeen): string { + if (b.internal === 'MISSING_EXPORT_COMPLIANCE' || b.external === 'MISSING_EXPORT_COMPLIANCE') + return 'export compliance missing: storebound apple encryption --build N (from apple.usesNonExemptEncryption)'; + return 'ready: storebound apple testflight distribute --build N --group , or apple listing --build N'; +} + +export interface ExpireCandidate { + id: string; build: string; version?: string; uploaded: string; processingState?: string; + /** Attached to an App Store version (in review, live or being prepared): never expired by storebound. */ + attached: boolean; +} + +export interface ExpirePlan { expire: ExpireCandidate[]; keep: ExpireCandidate[]; protected: { b: ExpireCandidate; why: string }[]; reqs: Req[] } + +/** + * Which builds to expire. `builds` = the app's builds that are not expired yet (any order). keep = keep the newest N + * builds (by upload date; protected builds count as kept), olderThanDays = only builds uploaded before now - D days. + * With both, a build must be beyond the newest N AND older than D days. Builds attached to an App Store version and + * builds still processing are never expired. Pure. + */ +export function planExpire(builds: ExpireCandidate[], o: { keep?: number; olderThanDays?: number; now?: number }): ExpirePlan { + if (o.keep === undefined && o.olderThanDays === undefined) throw new Error('--keep or --older-than (or both)'); + if (o.keep !== undefined && !(Number.isInteger(o.keep) && o.keep >= 1)) throw new Error('--keep: a whole number >= 1 (the newest build always stays)'); + if (o.olderThanDays !== undefined && !(o.olderThanDays >= 1)) throw new Error('--older-than: days >= 1'); + const now = o.now ?? Date.now(); + const sorted = [...builds].sort((a, b) => b.uploaded.localeCompare(a.uploaded)); + const plan: ExpirePlan = { expire: [], keep: [], protected: [], reqs: [] }; + sorted.forEach((b, i) => { + if (b.attached) { plan.protected.push({ b, why: 'attached to an App Store version' }); return; } + if (b.processingState && b.processingState !== 'VALID' && b.processingState !== 'FAILED' && b.processingState !== 'INVALID') { plan.protected.push({ b, why: `still ${b.processingState}` }); return; } + if (i === 0) { plan.keep.push(b); return; } + const beyondKeep = o.keep === undefined || i >= o.keep; + const old = o.olderThanDays === undefined || now - Date.parse(b.uploaded) > o.olderThanDays * 86_400_000; + (beyondKeep && old ? plan.expire : plan.keep).push(b); + }); + plan.reqs = plan.expire.map(b => ({ method: 'PATCH', path: `/v1/builds/${b.id}`, note: `expire build ${b.build}${b.version ? ` (${b.version})` : ''}, uploaded ${b.uploaded.slice(0, 10)}`, + body: { data: { type: 'builds', id: b.id, attributes: { expired: true } } } })); + return plan; +} + +/** Builds response (include=preReleaseVersion,appStoreVersion) -> expire candidates. Pure. */ +export function expireCandidates(pages: { data?: { id: string; attributes?: Record; relationships?: Record }[]; included?: { type: string; id: string; attributes?: { version?: string } }[] }[]): ExpireCandidate[] { + const out: ExpireCandidate[] = []; + for (const page of pages) { + const pre = new Map((page.included ?? []).filter(x => x.type === 'preReleaseVersions').map(x => [x.id, x.attributes?.version] as const)); + for (const b of page.data ?? []) { + const a = b.attributes ?? {}; + if (a.expired === true) continue; + out.push({ id: b.id, build: String(a.version ?? '?'), version: pre.get(b.relationships?.preReleaseVersion?.data?.id ?? ''), uploaded: String(a.uploadedDate ?? ''), + processingState: a.processingState as string | undefined, attached: !!b.relationships?.appStoreVersion?.data }); + } + } + return out; +} diff --git a/cli/lib/config.ts b/cli/lib/config.ts index b4ef28b0..7b853b9a 100644 --- a/cli/lib/config.ts +++ b/cli/lib/config.ts @@ -3,6 +3,8 @@ import { existsSync } from 'node:fs'; import { dirname, isAbsolute, join, resolve } from 'node:path'; import { validateCapture, validateRecord } from '../shots/devices'; +import { type AppEventDef, type CustomProductPageDef, validateCpp, validateEvents } from './cpp-events'; +import { type IapOfferCodeDef, type PromotedConfig, validateIapOfferCodes, validatePromoted, validateWinBack, type WinBackDef } from './offers'; import { validateSubscriptions } from './subscriptions'; import { type TfConfig, validateTestflight } from './testflight'; @@ -46,6 +48,8 @@ export interface Product { familySharable?: boolean; /** Sell this product only on these platforms (default: all of app.platforms). */ platforms?: Platform[]; + /** Apple offer codes for this one-time purchase (`storebound apple offer-codes`). */ + offerCodes?: IapOfferCodeDef[]; } export interface Language { @@ -394,6 +398,8 @@ export interface Subscription { basePlanId?: string; /** Play grace period (ISO 8601: P3D, P7D, P14D, P30D). Default: Play's default. */ gracePeriod?: string; + /** Apple win-back offers for lapsed subscribers (`storebound apple win-back`; the subscription must be approved). */ + winBack?: WinBackDef[]; } /** One subscription group. Apple: a subscription group (people can hold one subscription per group and move between @@ -458,6 +464,12 @@ export interface ShipConfig { iphoneMedium?: boolean; /** TestFlight beta groups, the tester CSV (in .storebound/) and Test Information (`storebound apple testflight`). */ testflight?: TfConfig; + /** Promoted in-app purchases on the product page, in order (`storebound apple promoted`; at most 20). */ + promoted?: PromotedConfig; + /** Custom product pages (`storebound apple cpp`; at most 70). */ + customProductPages?: CustomProductPageDef[]; + /** In-app events (`storebound apple events`). */ + events?: AppEventDef[]; }; products?: Product[]; /** Auto-renewable subscriptions (`storebound apple subscriptions`, `storebound play subscriptions`). */ @@ -548,6 +560,10 @@ export function validateConfig(c: unknown): string[] { if (enc !== undefined && typeof enc !== 'boolean') e.push('apple.usesNonExemptEncryption: true | false'); if (cfg.apple.screenshotTypes && !cfg.apple.screenshotTypes.every(t => /^APP_[A-Z0-9_]+$/.test(t))) e.push('apple.screenshotTypes: display types like APP_IPHONE_67'); e.push(...validateTestflight(cfg.apple.testflight)); + const catalogIds = new Set([...(cfg.products ?? []).map(p => p.id), ...(cfg.subscriptions ?? []).flatMap(g => (g.subscriptions ?? []).map(x => x.id))]); + e.push(...validatePromoted(cfg.apple.promoted, catalogIds)); + e.push(...validateCpp(cfg.apple.customProductPages, ids, Object.keys(cfg.shots?.variants ?? {}))); + e.push(...validateEvents(cfg.apple.events, ids)); } if (cfg.ads?.appAdsTxt && !cfg.ads.appAdsTxt.every(l => typeof l === 'string' && l.split(',').length >= 3)) e.push('ads.appAdsTxt: lines like "example-network.com, pub-123, DIRECT, abc123"'); @@ -567,6 +583,7 @@ export function validateConfig(c: unknown): string[] { if ([...(l.title ?? '')].length > 30) e.push(`${at}.listings.${lang}.title: over 30 characters (App Store limit)`); if (!l.description) e.push(`${at}.listings.${lang}.description: missing`); } + e.push(...validateIapOfferCodes(at, p.offerCodes, p.type)); for (const o of p.overrides ?? []) { if (!/^[A-Z]{2}$/.test(o.region)) e.push(`${at}.overrides: region "${o.region}" must be ISO alpha-2 (TR)`); if (!/^[A-Z]{3}$/.test(o.currency)) e.push(`${at}.overrides: currency "${o.currency}" must be ISO 4217 (TRY)`); @@ -574,6 +591,7 @@ export function validateConfig(c: unknown): string[] { } } e.push(...validateSubscriptions(cfg.subscriptions, ids, seen)); + for (const [gi, g] of (cfg.subscriptions ?? []).entries()) for (const [si, sub] of (g.subscriptions ?? []).entries()) e.push(...validateWinBack(`subscriptions[${gi}].subscriptions[${si}]`, sub.winBack)); if (cfg.prices?.baseTerritory && !/^[A-Z]{3}$/.test(cfg.prices.baseTerritory)) e.push('prices.baseTerritory: App Store territory, alpha-3 (USA)'); if (cfg.dataSafety) { for (const [t, u] of Object.entries(cfg.dataSafety.data ?? {})) { diff --git a/cli/lib/cpp-events.ts b/cli/lib/cpp-events.ts new file mode 100644 index 00000000..e85e6adc --- /dev/null +++ b/cli/lib/cpp-events.ts @@ -0,0 +1,202 @@ +// App Store custom product pages and in-app events, as pure parts: config checks, the create requests and what to +// change. The commands (cli/apple/cpp.ts, cli/apple/events.ts) read, plan, show the dry run and send. Creating and +// uploading change nothing customers see; sending a page or an event to App Review, and making a page visible, are +// the owner's (terminal, asks first, not MCP tools). +// Sources (App Store Connect API 4.5.1 OpenAPI spec + docs, App Store Connect Help; checked October 2026): +// Custom product pages: POST /v1/appCustomProductPages (name, app, optional appStoreVersionTemplate / +// customProductPageTemplate, inline appCustomProductPageVersions + appCustomProductPageLocalizations with locale and +// promotionalText; Apple's example request), PATCH /v1/appCustomProductPages/{id} (name, visible), +// POST /v1/appCustomProductPageVersions (deepLink), POST /v1/appCustomProductPageLocalizations (locale, +// promotionalText), screenshots: appScreenshotSets with the appCustomProductPageLocalization relationship. +// https://developer.apple.com/documentation/appstoreconnectapi/post-v1-appcustomproductpages +// Help: up to 70 custom product pages per app; each needs App Review (independent of an app update); the deep link +// works from iOS / iPadOS 18 once approved. https://developer.apple.com/app-store/custom-product-pages/ +// In-app events: POST /v1/appEvents (referenceName, badge, deepLink, purchaseRequirement, primaryLocale, priority, +// purpose, territorySchedules [{ territories, publishStart, eventStart, eventEnd }]), POST /v1/appEventLocalizations +// (locale, name, shortDescription, longDescription), POST /v1/appEventScreenshots (fileName, fileSize, +// appEventAssetType EVENT_CARD | EVENT_DETAILS_PAGE) + the upload operations. +// Help "Offer In-App Events": reference name up to 64 characters, event name 30, short description 50, long +// description 120; an event lasts 15 minutes to 31 days; it can be published at most 14 days before it starts; +// up to 10 published and 15 approved events per app; events need App Review. +// https://developer.apple.com/help/app-store-connect/offer-in-app-events/offer-in-app-events +// Media: event card 16:9, 1920x1080 to 3840x2160; details page 9:16, 1080x1920 to 2160x3840; .jpg / .png. +// https://developer.apple.com/help/app-store-connect/reference/in-app-events/in-app-event-media-and-audio-specifications +// Sending either to review: a review submission item with appCustomProductPageVersion | appEvent +// (https://developer.apple.com/documentation/appstoreconnectapi/review-submissions). +// Deprecation note (API 4.5.1): screenshot sets and app event screenshots are deprecated in favour of the App Asset +// Library; they still work and storebound uses them until the asset library is the only way. +import type { Req } from '../apple/jsonapi'; +import { one } from '../apple/jsonapi'; +import type { Language } from './config'; + +export const CPP_LIMITS = { pages: 70, promotionalText: 170 } as const; +export const EVENT_LIMITS = { referenceName: 64, name: 30, shortDescription: 50, longDescription: 120, published: 10, approved: 15, maxDays: 31, minMinutes: 15, publishLeadDays: 14 } as const; +export const EVENT_BADGES = ['LIVE_EVENT', 'PREMIERE', 'CHALLENGE', 'COMPETITION', 'NEW_SEASON', 'MAJOR_UPDATE', 'SPECIAL_EVENT'] as const; +export const EVENT_PURPOSES = ['APPROPRIATE_FOR_ALL_USERS', 'ATTRACT_NEW_USERS', 'KEEP_ACTIVE_USERS_INFORMED', 'BRING_BACK_LAPSED_USERS'] as const; +/** Event media: [min w, min h, max w, max h]. */ +export const EVENT_MEDIA = { EVENT_CARD: [1920, 1080, 3840, 2160], EVENT_DETAILS_PAGE: [1080, 1920, 2160, 3840] } as const; + +export interface CustomProductPageDef { + /** Page name (unique per app; shown only in App Store Connect). */ + name: string; + /** Screenshots from this shots variant (`storebound shots render --variant `); default: the base renders. */ + variant?: string; + /** Universal link or custom URL that "Open" goes to (iOS / iPadOS 18+, after approval). */ + deepLink?: string; + /** Language id -> promotional text (170). Every language with an App Store locale gets a localization. */ + promotionalText?: Record; +} + +export interface AppEventDef { + /** Reference name (unique per app, up to 64 characters). */ + referenceName: string; + badge: typeof EVENT_BADGES[number]; + purpose?: typeof EVENT_PURPOSES[number]; + priority?: 'high' | 'normal'; + deepLink?: string; + /** Text shown when the event needs a purchase or subscription, e.g. "Pro subscription". */ + purchaseRequirement?: string; + /** Language id of the primary locale (default: the first language with an App Store locale). */ + primaryLanguage?: string; + /** When and where: ISO date-times; territories (alpha-3) default to every territory of the app. */ + schedule: { publishStart: string; eventStart: string; eventEnd: string; territories?: string[] }; + /** Language id -> name (30), shortDescription (50), longDescription (120). */ + listings: Record; + /** Images (paths from the project root; "{lang}" is replaced by the language id): card 16:9, details 9:16. */ + media?: { card?: string; details?: string }; +} + +const len = (s: string): number => [...s].length; + +export function validateCpp(pages: CustomProductPageDef[] | undefined, langIds: Set, variants: string[]): string[] { + const e: string[] = []; + const names = new Set(); + if ((pages ?? []).length > CPP_LIMITS.pages) e.push(`apple.customProductPages: at most ${CPP_LIMITS.pages} per app`); + for (const [i, p] of (pages ?? []).entries()) { + const at = `apple.customProductPages[${i}]`; + if (!p.name) e.push(`${at}.name: missing`); + if (names.has(p.name)) e.push(`${at}.name: duplicate "${p.name}"`); + names.add(p.name); + if (p.variant && !variants.includes(p.variant)) e.push(`${at}.variant: "${p.variant}" is not in shots.variants`); + if (p.deepLink && !/^[a-z][a-z0-9+.-]*:\/\/\S+$/i.test(p.deepLink)) e.push(`${at}.deepLink: a universal link (https://...) or custom URL (myapp://...)`); + for (const [l, t] of Object.entries(p.promotionalText ?? {})) { + if (!langIds.has(l)) e.push(`${at}.promotionalText.${l}: not in languages`); + if (len(t) > CPP_LIMITS.promotionalText) e.push(`${at}.promotionalText.${l}: ${len(t)} > ${CPP_LIMITS.promotionalText}`); + } + } + return e; +} + +export function validateEvents(events: AppEventDef[] | undefined, langIds: Set): string[] { + const e: string[] = []; + const names = new Set(); + for (const [i, ev] of (events ?? []).entries()) { + const at = `apple.events[${i}]`; + if (!ev.referenceName || len(ev.referenceName) > EVENT_LIMITS.referenceName) e.push(`${at}.referenceName: 1-${EVENT_LIMITS.referenceName} characters`); + if (names.has(ev.referenceName)) e.push(`${at}.referenceName: duplicate`); + names.add(ev.referenceName); + if (!EVENT_BADGES.includes(ev.badge)) e.push(`${at}.badge: ${EVENT_BADGES.join(' | ')}`); + if (ev.purpose && !EVENT_PURPOSES.includes(ev.purpose)) e.push(`${at}.purpose: ${EVENT_PURPOSES.join(' | ')}`); + if (ev.priority && ev.priority !== 'high' && ev.priority !== 'normal') e.push(`${at}.priority: high | normal`); + if (ev.primaryLanguage && !langIds.has(ev.primaryLanguage)) e.push(`${at}.primaryLanguage: not in languages`); + const s = ev.schedule; + const t = (x: string | undefined) => (x ? Date.parse(x) : NaN); + if (!s || [s.publishStart, s.eventStart, s.eventEnd].some(x => Number.isNaN(t(x)))) e.push(`${at}.schedule: publishStart, eventStart, eventEnd as ISO date-times`); + else { + const dur = t(s.eventEnd) - t(s.eventStart); + if (dur < EVENT_LIMITS.minMinutes * 60_000) e.push(`${at}.schedule: an event lasts at least ${EVENT_LIMITS.minMinutes} minutes`); + if (dur > EVENT_LIMITS.maxDays * 86_400_000) e.push(`${at}.schedule: an event lasts at most ${EVENT_LIMITS.maxDays} days`); + if (t(s.publishStart) > t(s.eventStart)) e.push(`${at}.schedule: publishStart after eventStart`); + if (t(s.eventStart) - t(s.publishStart) > EVENT_LIMITS.publishLeadDays * 86_400_000) e.push(`${at}.schedule: published at most ${EVENT_LIMITS.publishLeadDays} days before it starts`); + if (s.territories && !s.territories.every(x => /^[A-Z]{3}$/.test(x))) e.push(`${at}.schedule.territories: alpha-3 (USA)`); + } + if (!ev.listings || !Object.keys(ev.listings).length) e.push(`${at}.listings: at least one language`); + for (const [l, x] of Object.entries(ev.listings ?? {})) { + if (!langIds.has(l)) e.push(`${at}.listings.${l}: not in languages`); + for (const k of ['name', 'shortDescription', 'longDescription'] as const) { + if (!x[k]) e.push(`${at}.listings.${l}.${k}: missing`); + else if (len(x[k]) > EVENT_LIMITS[k]) e.push(`${at}.listings.${l}.${k}: ${len(x[k])} > ${EVENT_LIMITS[k]}`); + } + } + } + return e; +} + +/** POST /v1/appCustomProductPages with its first version and one localization per locale (Apple's example shape). + * templateVersionId copies the screenshots / previews of an App Store version (optional). */ +export function cppCreateBody(appId: string, p: CustomProductPageDef, locales: { locale: string; promotionalText?: string }[], templateVersionId?: string) { + const locIds = locales.map((_, i) => `\${cpp-loc-${i}}`); + return { + data: { type: 'appCustomProductPages', attributes: { name: p.name }, relationships: { + app: one('apps', appId), ...(templateVersionId ? { appStoreVersionTemplate: one('appStoreVersions', templateVersionId) } : {}), + appCustomProductPageVersions: { data: [{ type: 'appCustomProductPageVersions', id: '${cpp-version}' }] } } }, + included: [ + { type: 'appCustomProductPageVersions', id: '${cpp-version}', ...(p.deepLink ? { attributes: { deepLink: p.deepLink } } : {}), + relationships: { appCustomProductPageLocalizations: { data: locIds.map(id => ({ type: 'appCustomProductPageLocalizations', id })) } } }, + ...locales.map((l, i) => ({ type: 'appCustomProductPageLocalizations', id: locIds[i], attributes: { locale: l.locale, ...(l.promotionalText ? { promotionalText: l.promotionalText } : {}) } })), + ], + }; +} + +/** Localizations of an editable page version to add (POST) or change (PATCH promotional text). Pure. */ +export function planCppLocales(versionId: string, have: { id: string; locale: string; promotionalText?: string | null }[], want: { locale: string; promotionalText?: string }[]): Req[] { + const out: Req[] = []; + for (const w of want) { + const cur = have.find(h => h.locale === w.locale); + if (!cur) out.push({ method: 'POST', path: '/v1/appCustomProductPageLocalizations', note: w.locale, + body: { data: { type: 'appCustomProductPageLocalizations', attributes: { locale: w.locale, ...(w.promotionalText ? { promotionalText: w.promotionalText } : {}) }, relationships: { appCustomProductPageVersion: one('appCustomProductPageVersions', versionId) } } } }); + else if (w.promotionalText !== undefined && (cur.promotionalText ?? '') !== w.promotionalText) out.push({ method: 'PATCH', path: `/v1/appCustomProductPageLocalizations/${cur.id}`, note: `${w.locale} promotional text`, + body: { data: { type: 'appCustomProductPageLocalizations', id: cur.id, attributes: { promotionalText: w.promotionalText } } } }); + } + return out; +} + +/** Locales of a page from the config: every language with an App Store locale. */ +export function cppLocales(p: CustomProductPageDef, langs: Language[]): { locale: string; langId: string; promotionalText?: string }[] { + return langs.filter(l => l.apple).map(l => ({ locale: l.apple!, langId: l.id, ...(p.promotionalText?.[l.id] ? { promotionalText: p.promotionalText[l.id] } : {}) })); +} + +/** Editable states of a custom product page version / in-app event (can still be changed and uploaded to). */ +export const CPP_EDITABLE = new Set(['PREPARE_FOR_SUBMISSION', 'REJECTED']); +export const EVENT_EDITABLE = new Set(['DRAFT', 'REJECTED']); + +/** POST /v1/appEvents. */ +export function eventCreateBody(appId: string, ev: AppEventDef, primaryLocale: string, territories: string[]) { + return { data: { type: 'appEvents', attributes: { + referenceName: ev.referenceName, badge: ev.badge, primaryLocale, priority: (ev.priority ?? 'normal').toUpperCase(), + purpose: ev.purpose ?? 'APPROPRIATE_FOR_ALL_USERS', ...(ev.deepLink ? { deepLink: ev.deepLink } : {}), ...(ev.purchaseRequirement ? { purchaseRequirement: ev.purchaseRequirement } : {}), + territorySchedules: [{ territories, publishStart: ev.schedule.publishStart, eventStart: ev.schedule.eventStart, eventEnd: ev.schedule.eventEnd }], + }, relationships: { app: one('apps', appId) } } }; +} + +/** Event localizations to add or change. Pure. */ +export function planEventLocales(eventId: string, have: { id: string; locale: string; name?: string | null; shortDescription?: string | null; longDescription?: string | null }[], + want: { locale: string; name: string; shortDescription: string; longDescription: string }[]): Req[] { + const out: Req[] = []; + for (const w of want) { + const cur = have.find(h => h.locale === w.locale); + const attrs = { name: w.name, shortDescription: w.shortDescription, longDescription: w.longDescription }; + if (!cur) out.push({ method: 'POST', path: '/v1/appEventLocalizations', note: w.locale, body: { data: { type: 'appEventLocalizations', attributes: { locale: w.locale, ...attrs }, relationships: { appEvent: one('appEvents', eventId) } } } }); + else { + const changed = Object.fromEntries(Object.entries(attrs).filter(([k, v]) => (cur as Record)[k] !== v)); + if (Object.keys(changed).length) out.push({ method: 'PATCH', path: `/v1/appEventLocalizations/${cur.id}`, note: `${w.locale} ${Object.keys(changed).join(', ')}`, body: { data: { type: 'appEventLocalizations', id: cur.id, attributes: changed } } }); + } + } + return out; +} + +/** Event media size check (card 16:9 landscape, details 9:16 portrait). Pure. */ +export function checkEventMedia(kind: keyof typeof EVENT_MEDIA, w: number, h: number, format: string): string[] { + const [minW, minH, maxW, maxH] = EVENT_MEDIA[kind]; + const e: string[] = []; + if (format !== 'png' && format !== 'jpeg') e.push('PNG or JPEG only'); + if (w < minW || h < minH || w > maxW || h > maxH) e.push(`${w}x${h}: ${minW}x${minH} to ${maxW}x${maxH}`); + if (Math.abs(w / h - minW / minH) > 0.01) e.push(`${w}x${h}: aspect ${kind === 'EVENT_CARD' ? '16:9' : '9:16'}`); + return e; +} + +/** POST /v1/reviewSubmissionItems for a custom product page version or an in-app event (into a draft submission). */ +export const reviewItemReq = (submissionId: string, kind: 'appCustomProductPageVersion' | 'appEvent', id: string, label: string): Req => ({ + method: 'POST', path: '/v1/reviewSubmissionItems', note: label, + body: { data: { type: 'reviewSubmissionItems', relationships: { reviewSubmission: one('reviewSubmissions', submissionId), [kind]: one(kind === 'appEvent' ? 'appEvents' : 'appCustomProductPageVersions', id) } } }, +}); diff --git a/cli/lib/credentials.ts b/cli/lib/credentials.ts index 7f5309f0..d00b5183 100644 --- a/cli/lib/credentials.ts +++ b/cli/lib/credentials.ts @@ -80,3 +80,10 @@ export const maskUser = (u: string): string => { return at > 0 ? `${u[0]}***${u.slice(at)}` : `${u[0] ?? ''}***`; }; export const maskSecret = (s: string): string => (s ? '********' : '(empty)'); + +/** App Store Connect vendor number for sales and finance reports (Payments and Financial Reports, top left): env + * ASC_VENDOR_NUMBER, else "ASC_VENDOR_NUMBER" in .storebound/credentials.json. An account id, so never in the config. */ +export function ascVendorNumber(root: string): string | null { + const v = value(root, 'ASC_VENDOR_NUMBER'); + return v && /^\d{5,12}$/.test(v.trim()) ? v.trim() : null; +} diff --git a/cli/lib/diff.ts b/cli/lib/diff.ts new file mode 100644 index 00000000..0b2d9c6f --- /dev/null +++ b/cli/lib/diff.ts @@ -0,0 +1,32 @@ +// Line diff for "pull" commands (live store text vs the local files). Pure, no dependency: longest common subsequence +// over lines, printed like a unified diff without hunks (" " same, "-" only local, "+" only on the store). + +export function lineDiff(before: string, after: string): string[] { + const a = before.split('\n'), b = after.split('\n'); + if (a.length * b.length > 4_000_000) return [...a.map(l => `-${l}`), ...b.map(l => `+${l}`)]; + const n = a.length, m = b.length; + const lcs: Uint32Array[] = Array.from({ length: n + 1 }, () => new Uint32Array(m + 1)); + for (let i = n - 1; i >= 0; i--) for (let j = m - 1; j >= 0; j--) lcs[i]![j] = a[i] === b[j] ? lcs[i + 1]![j + 1]! + 1 : Math.max(lcs[i + 1]![j]!, lcs[i]![j + 1]!); + const out: string[] = []; + let i = 0, j = 0; + while (i < n && j < m) { + if (a[i] === b[j]) { out.push(` ${a[i]}`); i++; j++; } + else if (lcs[i + 1]![j]! >= lcs[i]![j + 1]!) out.push(`-${a[i++]}`); + else out.push(`+${b[j++]}`); + } + while (i < n) out.push(`-${a[i++]}`); + while (j < m) out.push(`+${b[j++]}`); + return out; +} + +/** Only the changed lines with `context` unchanged lines around them ("..." between gaps). Empty when equal. */ +export function compactDiff(before: string, after: string, context = 2): string[] { + const d = lineDiff(before, after); + if (!d.some(l => l[0] !== ' ')) return []; + const keep = new Set(); + d.forEach((l, i) => { if (l[0] !== ' ') for (let k = i - context; k <= i + context; k++) keep.add(k); }); + const out: string[] = []; + let last = -1; + d.forEach((l, i) => { if (!keep.has(i)) return; if (last >= 0 && i > last + 1) out.push('...'); out.push(l); last = i; }); + return out; +} diff --git a/cli/lib/listing-pull.ts b/cli/lib/listing-pull.ts new file mode 100644 index 00000000..9c1cf6f6 --- /dev/null +++ b/cli/lib/listing-pull.ts @@ -0,0 +1,164 @@ +// "Pull": the live store texts back into the local sources, as pure merges. The commands (apple listing pull, play +// listing pull, catalog pull) read the stores, call these, print the diff and write only with --write. +// - App Store: appInfoLocalizations (name, subtitle) + appStoreVersionLocalizations (description, keywords, +// promotionalText, whatsNew) -> store/appstore.md, one "## " section per locale, "### " blocks. +// - Google Play: edits.listings (title, shortDescription, fullDescription) -> store/listing.md sections with +// "". A section serving several Play codes is only changed when they agree on the store. +// - In-app purchases and subscriptions: the store texts as a proposal for storebound.config.ts (a TypeScript file is +// never rewritten by a tool): the diff per product and language, and a JSON proposal file with --write. +// Only fields the store has a value for are written; a local field the store leaves empty is kept. +import type { AppleCopy, AppleField } from './copy'; +import { APPLE_LIMITS, len, PLAY_LIMITS } from './copy'; +import type { Language, ShipConfig } from './config'; +import { playCodes } from './config'; + +export interface FieldChange { section: string; field: string; from: string | null; to: string } +export interface MergeResult { md: string; changes: FieldChange[]; added: string[]; conflicts: string[] } + +const fence = (t: string): string => '```\n' + t + '\n```'; +const BLOCK = (heading: RegExp) => new RegExp(`(^### (?:${heading.source})[^\\n]*\\n)\`\`\`[^\\n]*\\n([\\s\\S]*?)\\n?\`\`\``, 'm' + (heading.flags.includes('i') ? 'i' : '')); + +/** Replace (or append) the fenced block under the first "### " heading matching `heading` in one section. */ +function setBlock(sec: string, heading: RegExp, newHeading: string, text: string): { sec: string; from: string | null } { + const re = BLOCK(heading); + const m = re.exec(sec); + if (m) return { sec: sec.replace(re, (_a, h: string) => h + fence(text)), from: m[2]!.trim() }; + const body = sec.replace(/\s*$/, ''); + return { sec: `${body}\n\n### ${newHeading}\n${fence(text)}\n\n`, from: null }; +} + +const APPLE_ORDER: AppleField[] = ['name', 'subtitle', 'promotionalText', 'keywords', 'description', 'whatsNew']; + +/** Live App Store texts per locale merged into the App Store listing file. Pure. */ +export function mergeAppleListing(md: string, remote: Record): MergeResult { + const parts = md.split(/^(?=## )/m); + const res: MergeResult = { md: '', changes: [], added: [], conflicts: [] }; + const seen = new Set(); + const out = parts.map(sec => { + if (!sec.startsWith('## ')) return sec; + const loc = sec.slice(3).split(/[\s·]/)[0]!.trim(); + const r = remote[loc]; + if (!r) return sec; + seen.add(loc); + for (const f of APPLE_ORDER) { + const v = r[f]; + if (v === undefined || v === null || v === '') continue; + const { sec: next, from } = setBlock(sec, new RegExp(`${f}\\b`), f, v); + if (from !== v.trim()) res.changes.push({ section: loc, field: f, from, to: v }); + sec = next; + } + return sec; + }); + let text = out.join(''); + for (const [loc, r] of Object.entries(remote).sort(([a], [b]) => a.localeCompare(b))) { + if (seen.has(loc)) continue; + const fields = APPLE_ORDER.filter(f => r[f]); + if (!fields.length) continue; + res.added.push(loc); + text = text.replace(/\s*$/, '') + `\n\n## ${loc}\n\n` + fields.map(f => `### ${f}\n${fence(r[f]!)}`).join('\n\n') + '\n'; + for (const f of fields) res.changes.push({ section: loc, field: f, from: null, to: r[f]! }); + } + res.md = text.endsWith('\n') ? text : text + '\n'; + return res; +} + +export interface PlayRemote { language: string; title?: string; shortDescription?: string; fullDescription?: string } + +const PLAY_FIELDS: { key: keyof PlayRemote; re: RegExp; heading: string; limit: number }[] = [ + { key: 'title', re: /[^\n]*\btitle\b/i, heading: `Title (max ${PLAY_LIMITS.title})`, limit: PLAY_LIMITS.title }, + { key: 'shortDescription', re: /[^\n]*\bshort\b/i, heading: `Short description (max ${PLAY_LIMITS.short})`, limit: PLAY_LIMITS.short }, + { key: 'fullDescription', re: /[^\n]*\bfull\b/i, heading: `Full description (max ${PLAY_LIMITS.full})`, limit: PLAY_LIMITS.full }, +]; + +/** Live Play listings merged into the Play listing file. A title equal to `defaultTitle` (app.name) is only written + * where the section already has a title block. Pure. */ +export function mergePlayListing(md: string, remote: PlayRemote[], defaultTitle: string): MergeResult { + const byLang = new Map(remote.map(l => [l.language, l] as const)); + const res: MergeResult = { md: '', changes: [], added: [], conflicts: [] }; + const seen = new Set(); + const parts = md.split(/^(?=## )/m).map(sec => { + const m = /^$/m.exec(sec); + if (!m) return sec; + const codes = m[1]!.split(',').map(s => s.trim()).filter(Boolean); + const hits = codes.map(c => byLang.get(c)).filter((x): x is PlayRemote => !!x); + for (const c of codes) if (byLang.has(c)) seen.add(c); + if (!hits.length) return sec; + for (const f of PLAY_FIELDS) { + const values = [...new Set(hits.map(h => (h[f.key] ?? '').trim()).filter(Boolean))]; + if (!values.length) continue; + if (values.length > 1) { res.conflicts.push(`${codes.join(', ')}: ${f.key} differs between these Play languages on the store; left as it is (give each its own section)`); continue; } + const v = values[0]!; + const has = BLOCK(f.re).test(sec); + if (f.key === 'title' && !has && v === defaultTitle) continue; + const { sec: next, from } = setBlock(sec, f.re, f.heading, v); + if (from !== v) res.changes.push({ section: codes.join(', '), field: f.key, from, to: v }); + sec = next; + } + return sec; + }); + let text = parts.join(''); + for (const l of [...remote].sort((a, b) => a.language.localeCompare(b.language))) { + if (seen.has(l.language)) continue; + res.added.push(l.language); + const blocks = PLAY_FIELDS.filter(f => l[f.key] && !(f.key === 'title' && l.title === defaultTitle)).map(f => `### ${f.heading}\n${fence(String(l[f.key]))}`); + text = text.replace(/\s*$/, '') + `\n\n## ${l.language}\n\n\n${blocks.join('\n\n')}\n`; + for (const f of PLAY_FIELDS) if (l[f.key]) res.changes.push({ section: l.language, field: f.key, from: null, to: String(l[f.key]) }); + } + res.md = text.endsWith('\n') ? text : text + '\n'; + return res; +} + +/** Store values over a store limit (the pull still writes them; `check` will flag them). */ +export function overLimits(changes: FieldChange[], store: 'apple' | 'play'): string[] { + const lim: Record = store === 'apple' ? APPLE_LIMITS : { title: PLAY_LIMITS.title, shortDescription: PLAY_LIMITS.short, fullDescription: PLAY_LIMITS.full }; + return changes.filter(c => lim[c.field] !== undefined && len(c.to) > lim[c.field]!).map(c => `${c.section} ${c.field}: ${len(c.to)} > ${lim[c.field]}`); +} + +// ---- in-app purchases and subscriptions -> config proposal ---- + +export interface RemoteText { title: string; description: string; benefits?: string[] } +/** Store texts per product id and store language code (App Store locale or Play language code). */ +export type RemoteCatalog = Record>; + +export interface CatalogProposal { + /** product id -> language id -> the store's texts (only where they differ from the config or are missing there). */ + listings: Record>; + changes: { id: string; lang: string; field: string; from: string | null; to: string; store: 'apple' | 'play' }[]; + /** Store languages the config has no language entry for (not mapped). */ + unmapped: string[]; + /** Products on the store that are not in the config. */ + unknown: string[]; +} + +/** Store language code -> config language id (App Store locale or any Play code of the entry). */ +export function langIdOf(langs: Language[], store: 'apple' | 'play', code: string): string | undefined { + return langs.find(l => (store === 'apple' ? l.apple === code : playCodes(l).includes(code)))?.id; +} + +/** The store texts of in-app purchases and subscriptions against the config's listings. Apple wins over Play when + * both differ for the same language (shown as two changes). Pure. */ +export function catalogProposal(config: Pick, remote: { apple?: RemoteCatalog; play?: RemoteCatalog }): CatalogProposal { + const local = new Map>(); + for (const p of config.products ?? []) local.set(p.id, p.listings); + for (const g of config.subscriptions ?? []) for (const s of g.subscriptions) local.set(s.id, s.listings); + const out: CatalogProposal = { listings: {}, changes: [], unmapped: [], unknown: [] }; + for (const store of ['play', 'apple'] as const) { + for (const [id, byCode] of Object.entries(remote[store] ?? {})) { + const mine = local.get(id); + if (!mine) { if (!out.unknown.includes(id)) out.unknown.push(id); continue; } + for (const [code, t] of Object.entries(byCode)) { + const lang = langIdOf(config.languages, store, code); + if (!lang) { const u = `${store}:${code}`; if (!out.unmapped.includes(u)) out.unmapped.push(u); continue; } + const cur = mine[lang]; + const fields: [string, string | null, string][] = [['title', cur?.title ?? null, t.title], ['description', cur?.description ?? null, t.description]]; + if (store === 'play' && t.benefits?.length) fields.push(['benefits', cur?.benefits?.join(' | ') ?? null, t.benefits.join(' | ')]); + const diff = fields.filter(([, from, to]) => to && from !== to); + if (!diff.length) continue; + for (const [field, from, to] of diff) out.changes.push({ id, lang, field, from, to, store }); + const prev = out.listings[id]?.[lang] ?? { title: cur?.title ?? t.title, description: cur?.description ?? t.description, ...(cur?.benefits ? { benefits: cur.benefits } : {}) }; + out.listings[id] = { ...out.listings[id], [lang]: { ...prev, title: t.title || prev.title, description: t.description || prev.description, ...(store === 'play' && t.benefits?.length ? { benefits: t.benefits } : {}) } }; + } + } + } + return out; +} diff --git a/cli/lib/offers.ts b/cli/lib/offers.ts new file mode 100644 index 00000000..6ea3a4c4 --- /dev/null +++ b/cli/lib/offers.ts @@ -0,0 +1,301 @@ +// App Store offers beyond introductory / promotional offers, as pure parts: offer codes for one-time purchases, +// win-back offers for subscriptions, promoted in-app purchases and app pre-orders. The commands (cli/apple/offers.ts) +// read, plan, print the dry run and send; everything that becomes visible to customers asks first and none of it is +// an MCP tool. +// Sources (App Store Connect API 4.5.1 OpenAPI spec + docs, App Store Connect Help; checked October 2026): +// In-app purchase offer codes: POST /v1/inAppPurchaseOfferCodes (name, customerEligibilities NON_SPENDER | +// ACTIVE_SPENDER | CHURNED_SPENDER, inAppPurchase, prices = inAppPurchaseOfferPrices: territory + pricePoint), +// POST /v1/inAppPurchaseOfferCodeCustomCodes (customCode, numberOfCodes, expirationDate?), +// POST /v1/inAppPurchaseOfferCodeOneTimeUseCodes (numberOfCodes, expirationDate, environment PRODUCTION | SANDBOX), +// GET /v1/inAppPurchaseOfferCodeOneTimeUseCodes/{id}/values (the codes), GET /v2/inAppPurchases/{id}/offerCodes. +// Help "Create offer codes for In-App Purchases": up to 10 active offers per app, 1 million codes per app per +// quarter, one-time-use batches of 500-25,000 valid at most 6 months, custom codes up to 64 characters without +// special characters and up to 25,000 redemptions, paid or free offers. Consumables, non-consumables and +// non-renewing subscriptions (iOS 16.3+). +// https://developer.apple.com/help/app-store-connect/manage-in-app-purchases/create-offer-codes-for-in-app-purchases +// Win-back offers: POST /v1/winBackOffers (referenceName, offerId, duration, offerMode, periodCount, +// customerEligibilityPaidSubscriptionDurationInMonths, customerEligibilityTimeSinceLastSubscribedInMonths {minimum, +// maximum}, customerEligibilityWaitBetweenOffersInMonths?, startDate, endDate?, priority HIGH | NORMAL, +// promotionIntent NOT_PROMOTED | USE_AUTO_GENERATED_ASSETS; subscription; prices = winBackOfferPrices with a +// subscriptionPricePoint), GET /v1/subscriptions/{id}/winBackOffers. +// https://developer.apple.com/documentation/appstoreconnectapi/post-v1-winbackoffers +// Help "Set up win-back offers": the subscription must be approved first; paid duration 1-24 months or 3, 4, 5 +// years; time since last subscribed 1-24 months (min and max required); wait between offers 2-24 months; start at +// the earliest tomorrow, run at least 3 days; at most 350 per subscription and 5 at a time per storefront; reference +// name, offer id and price cannot be changed later; an offer id must not be reused in the group. +// https://developer.apple.com/help/app-store-connect/manage-subscriptions/set-up-win-back-offers +// Promoted purchases: POST /v1/promotedPurchases (visibleForAllUsers, enabled?, app, inAppPurchaseV2 | subscription), +// PATCH /v1/promotedPurchases/{id} (visibleForAllUsers, enabled), GET /v1/apps/{id}/promotedPurchases, +// PATCH /v1/apps/{id}/relationships/promotedPurchases (the order). Help "Promote In-App Purchases": up to 20 +// promoted at a time, each needs its promotional image, the app must handle purchases started on the App Store +// (PurchaseIntent). https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/promote-in-app-purchases +// Pre-orders: GET /v1/apps/{id}/appAvailabilityV2, GET /v2/appAvailabilities/{id}/territoryAvailabilities +// (available, releaseDate, preOrderEnabled, preOrderPublishDate, contentStatuses), PATCH +// /v1/territoryAvailabilities/{id} (available, releaseDate, preOrderEnabled), POST /v1/endAppAvailabilityPreOrders +// ("End the pre-order for your app and release to store immediately"). Help "Publish for pre-order": a version +// must be approved first; release date 2-180 days ahead (Apple's pre-orders page: up to 365 days for an existing +// app in a new region); not possible where the app is already released. +// https://developer.apple.com/help/app-store-connect/manage-your-apps-availability/publish-for-pre-order +// Google Play pre-registration has no API (androidpublisher v3 lists no such resource): Play Console only. +import type { Req } from '../apple/jsonapi'; +import { many, one } from '../apple/jsonapi'; +import { APPLE_OFFER_DURATION, APPLE_OFFER_MODE } from './subscriptions'; + +// ---- config ---- + +/** Offer code campaign for a one-time purchase (consumable, non-consumable, non-renewing). */ +export interface IapOfferCodeDef { + /** Reference name of the campaign (unique per product). */ + name: string; + /** NON_SPENDER = never purchased in the app, ACTIVE_SPENDER = purchased in the last 30 days, CHURNED_SPENDER = + * purchased more than 30 days ago. All three = everyone. */ + eligibility: ('NON_SPENDER' | 'ACTIVE_SPENDER' | 'CHURNED_SPENDER')[]; + /** Free offer (no price) or a paid one in USD (the USA price point and its equalizations). */ + free?: boolean; + usd?: number; + /** Limit the offer to these App Store territories (alpha-3). Default: every territory. */ + territories?: string[]; + /** Custom codes (anyone with the code; created only from a terminal run with --codes that confirms). */ + customCodes?: { code: string; count: number; expires?: string }[]; + /** One-time-use code batches (500-25,000, expiry at most 6 months; --codes, confirms; the codes are saved to + * .storebound/offer-codes/). */ + oneTimeCodes?: { count: number; expires: string; sandbox?: boolean }[]; +} + +/** Win-back offer for lapsed subscribers of one subscription. */ +export interface WinBackDef { + /** Offer identifier (unique in the subscription group, never reused; cannot change later). */ + id: string; + /** Reference name (default: the id; cannot change later). */ + name?: string; + type: 'free' | 'pay-as-you-go' | 'pay-up-front'; + /** free / pay-up-front: P3D ... P1Y; pay-as-you-go: the subscription period (default). */ + duration?: string; + /** pay-as-you-go: number of periods (default 1). */ + periods?: number; + /** USD price (per period for pay-as-you-go, total for pay-up-front); fixed after creation. */ + usd?: number; + /** Customers who paid at least this many months: 1-24, 36, 48 or 60. */ + paidMonths: number; + /** Lapsed between min and max months ago (1-24). */ + lapsedMonths: { min: number; max: number }; + /** Months between two win-back offers for one customer (2-24, optional). */ + waitMonths?: number; + /** YYYY-MM-DD, at the earliest tomorrow. */ + start: string; + /** YYYY-MM-DD, at least 3 days after start (optional). */ + end?: string; + priority?: 'high' | 'normal'; + /** Promote on the App Store with auto-generated assets (needs an approved subscription image). */ + promote?: boolean; +} + +export interface PromotedConfig { + /** Product / subscription ids in display order (at most 20). */ + products: string[]; + /** Shown to every user (true) or only to users your app makes it visible for (false). Default true. */ + visibleForAllUsers?: boolean; +} + +const DAY = 86_400_000; +const isDate = (s: unknown): s is string => typeof s === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(s) && !Number.isNaN(Date.parse(s)); +const ELIG = ['NON_SPENDER', 'ACTIVE_SPENDER', 'CHURNED_SPENDER']; +const PAID_MONTHS = new Set([...Array.from({ length: 24 }, (_, i) => i + 1), 36, 48, 60]); + +/** Problems with products[].offerCodes. With `today` (when codes are about to be created) also the 6-month expiry + * rule; the config check leaves dates relative to today out, so an old campaign never breaks the config. Pure. */ +export function validateIapOfferCodes(at: string, codes: IapOfferCodeDef[] | undefined, type: string, today?: string): string[] { + const e: string[] = []; + const names = new Set(); + const max = today ? new Date(Date.parse(today) + 183 * DAY).toISOString().slice(0, 10) : '9999-12-31'; + for (const [i, c] of (codes ?? []).entries()) { + const p = `${at}.offerCodes[${i}]`; + if (!c.name || [...c.name].length > 64) e.push(`${p}.name: 1-64 characters`); + if (names.has(c.name)) e.push(`${p}.name: duplicate "${c.name}"`); + names.add(c.name); + if (!Array.isArray(c.eligibility) || !c.eligibility.length || !c.eligibility.every(x => ELIG.includes(x))) e.push(`${p}.eligibility: some of ${ELIG.join(', ')}`); + if (!!c.free === (c.usd !== undefined)) e.push(`${p}: free: true or usd (one of them)`); + if (c.usd !== undefined && !(c.usd > 0)) e.push(`${p}.usd: positive`); + if (c.territories && !c.territories.every(t => /^[A-Z]{3}$/.test(t))) e.push(`${p}.territories: App Store territories, alpha-3 (USA)`); + for (const [k, cc] of (c.customCodes ?? []).entries()) { + if (!/^[A-Za-z0-9]{1,64}$/.test(cc.code ?? '')) e.push(`${p}.customCodes[${k}].code: letters and digits, up to 64`); + if (!(Number.isInteger(cc.count) && cc.count >= 1 && cc.count <= 25000)) e.push(`${p}.customCodes[${k}].count: 1-25000`); + if (cc.expires !== undefined && (!isDate(cc.expires) || cc.expires > max)) e.push(`${p}.customCodes[${k}].expires: YYYY-MM-DD within 6 months`); + } + for (const [k, b] of (c.oneTimeCodes ?? []).entries()) { + const lo = b.sandbox ? 10 : 500, hi = b.sandbox ? 10000 : 25000; + if (!(Number.isInteger(b.count) && b.count >= lo && b.count <= hi)) e.push(`${p}.oneTimeCodes[${k}].count: ${lo}-${hi}`); + if (!isDate(b.expires) || b.expires > max) e.push(`${p}.oneTimeCodes[${k}].expires: YYYY-MM-DD within 6 months (required)`); + } + } + if ((codes ?? []).length && !['consumable', 'non_consumable', 'non_renewing'].includes(type)) e.push(`${at}.offerCodes: one-time purchases only`); + return e; +} + +/** Problems with subscriptions[].winBack. With `today` (right before creating) also "start at the earliest + * tomorrow". Pure. */ +export function validateWinBack(at: string, offers: WinBackDef[] | undefined, today?: string): string[] { + const e: string[] = []; + const ids = new Set(); + for (const [i, o] of (offers ?? []).entries()) { + const p = `${at}.winBack[${i}]`; + if (!/^[A-Za-z0-9._-]{1,64}$/.test(o.id ?? '')) e.push(`${p}.id: letters, digits, ".", "_", "-"`); + if (ids.has(o.id)) e.push(`${p}.id: duplicate "${o.id}"`); + ids.add(o.id); + if (!(o.type in APPLE_OFFER_MODE)) e.push(`${p}.type: free | pay-as-you-go | pay-up-front`); + if (o.type !== 'pay-as-you-go' && !(o.duration && o.duration in APPLE_OFFER_DURATION)) e.push(`${p}.duration: ${Object.keys(APPLE_OFFER_DURATION).join(', ')}`); + if (o.type !== 'free' && !(typeof o.usd === 'number' && o.usd > 0)) e.push(`${p}.usd: positive (a paid offer)`); + if (o.type === 'free' && o.usd !== undefined) e.push(`${p}.usd: not for a free offer`); + if (o.periods !== undefined && !(Number.isInteger(o.periods) && o.periods >= 1 && o.periods <= 12)) e.push(`${p}.periods: 1-12`); + if (!PAID_MONTHS.has(o.paidMonths)) e.push(`${p}.paidMonths: 1-24, 36, 48 or 60`); + const l = o.lapsedMonths; + if (!l || !(Number.isInteger(l.min) && Number.isInteger(l.max) && l.min >= 1 && l.max <= 24 && l.min <= l.max)) e.push(`${p}.lapsedMonths: { min, max } within 1-24`); + if (o.waitMonths !== undefined && !(Number.isInteger(o.waitMonths) && o.waitMonths >= 2 && o.waitMonths <= 24)) e.push(`${p}.waitMonths: 2-24`); + if (!isDate(o.start)) e.push(`${p}.start: YYYY-MM-DD`); + else if (today && o.start <= today) e.push(`${p}.start: at the earliest tomorrow`); + if (o.end !== undefined && (!isDate(o.end) || (isDate(o.start) && Date.parse(o.end) - Date.parse(o.start) < 3 * DAY))) e.push(`${p}.end: YYYY-MM-DD, at least 3 days after start`); + if (o.priority !== undefined && o.priority !== 'high' && o.priority !== 'normal') e.push(`${p}.priority: high | normal`); + } + return e; +} + +export function validatePromoted(p: PromotedConfig | undefined, ids: Set): string[] { + if (!p) return []; + const e: string[] = []; + if (!Array.isArray(p.products) || !p.products.length) e.push('apple.promoted.products: at least one product id'); + if ((p.products ?? []).length > 20) e.push('apple.promoted.products: at most 20 (App Store limit)'); + for (const id of p.products ?? []) if (!ids.has(id)) e.push(`apple.promoted.products: "${id}" is not a product or subscription of the config`); + if (new Set(p.products).size !== (p.products ?? []).length) e.push('apple.promoted.products: duplicates'); + return e; +} + +// ---- request bodies ---- + +export interface TerritoryPoint { territory: string; pointId?: string } + +/** POST /v1/inAppPurchaseOfferCodes. A free offer sends the territories without a price point (the schema marks the + * price point optional; not verified against a live account). */ +export function iapOfferCodeBody(iapId: string, c: IapOfferCodeDef, prices: TerritoryPoint[]) { + const ids = prices.map((_, i) => `\${iapcode-${i}}`); + return { + data: { type: 'inAppPurchaseOfferCodes', attributes: { name: c.name, customerEligibilities: c.eligibility }, + relationships: { inAppPurchase: one('inAppPurchases', iapId), prices: { data: ids.map(id => ({ type: 'inAppPurchaseOfferPrices', id })) } } }, + included: prices.map((p, i) => { + if (!c.free && !p.pointId) throw new Error(`${c.name}: paid offer in ${p.territory} needs a price point`); + return { type: 'inAppPurchaseOfferPrices', id: ids[i], relationships: { territory: one('territories', p.territory), ...(p.pointId ? { pricePoint: one('inAppPurchasePricePoints', p.pointId) } : {}) } }; + }), + }; +} + +export const iapCustomCodeReq = (offerCodeId: string, cc: { code: string; count: number; expires?: string }): Req => ({ method: 'POST', path: '/v1/inAppPurchaseOfferCodeCustomCodes', + note: `custom code ${cc.code} (${cc.count} redemptions${cc.expires ? `, until ${cc.expires}` : ''})`, + body: { data: { type: 'inAppPurchaseOfferCodeCustomCodes', attributes: { customCode: cc.code, numberOfCodes: cc.count, ...(cc.expires ? { expirationDate: cc.expires } : {}) }, + relationships: { offerCode: one('inAppPurchaseOfferCodes', offerCodeId) } } } }); + +export const iapOneTimeCodesReq = (offerCodeId: string, b: { count: number; expires: string; sandbox?: boolean }): Req => ({ method: 'POST', path: '/v1/inAppPurchaseOfferCodeOneTimeUseCodes', + note: `${b.count} one-time-use ${b.sandbox ? 'sandbox ' : ''}codes until ${b.expires}`, + body: { data: { type: 'inAppPurchaseOfferCodeOneTimeUseCodes', attributes: { numberOfCodes: b.count, expirationDate: b.expires, environment: b.sandbox ? 'SANDBOX' : 'PRODUCTION' }, + relationships: { offerCode: one('inAppPurchaseOfferCodes', offerCodeId) } } } }); + +/** POST /v1/winBackOffers. `subPeriod` = the subscription's period (pay-as-you-go duration). Paid prices: one + * subscriptionPricePoint per territory (the point carries its territory, as in Apple's example request). A free offer + * sends the territories without a price point (not verified against a live account). */ +export function winBackBody(subId: string, subPeriod: string, o: WinBackDef, prices: TerritoryPoint[]) { + const ids = prices.map((_, i) => `\${winback-${i}}`); + const duration = o.type === 'pay-as-you-go' ? (o.duration ?? subPeriod) : o.duration!; + return { + data: { type: 'winBackOffers', attributes: { + referenceName: o.name ?? o.id, offerId: o.id, duration: APPLE_OFFER_DURATION[duration], offerMode: APPLE_OFFER_MODE[o.type], + periodCount: o.type === 'pay-as-you-go' ? (o.periods ?? 1) : 1, + customerEligibilityPaidSubscriptionDurationInMonths: o.paidMonths, + customerEligibilityTimeSinceLastSubscribedInMonths: { minimum: o.lapsedMonths.min, maximum: o.lapsedMonths.max }, + ...(o.waitMonths !== undefined ? { customerEligibilityWaitBetweenOffersInMonths: o.waitMonths } : {}), + startDate: o.start, ...(o.end ? { endDate: o.end } : {}), priority: (o.priority ?? 'normal').toUpperCase(), + promotionIntent: o.promote ? 'USE_AUTO_GENERATED_ASSETS' : 'NOT_PROMOTED', + }, relationships: { subscription: one('subscriptions', subId), prices: { data: ids.map(id => ({ type: 'winBackOfferPrices', id })) } } }, + included: prices.map((p, i) => { + if (o.type !== 'free' && !p.pointId) throw new Error(`${o.id}: paid win-back offer in ${p.territory} needs a price point`); + return { type: 'winBackOfferPrices', id: ids[i], relationships: p.pointId ? { subscriptionPricePoint: one('subscriptionPricePoints', p.pointId) } : { territory: one('territories', p.territory) } }; + }), + }; +} + +// ---- promoted purchases ---- + +export interface PromotedNow { id: string; productId: string; enabled: boolean; visibleForAllUsers: boolean; state?: string } + +export interface PromotedPlan { create: Req[]; update: Req[]; order: Req | null; unknown: string[]; extra: string[] } + +/** Wanted promoted purchases vs the current ones. New ones are created disabled unless enable; `enable` also turns on + * existing ones. The order request lists the configured ones first, then the others as they are. Pure. */ +export function planPromoted(appId: string, cfg: PromotedConfig, now: PromotedNow[], products: Map, o: { enable?: boolean } = {}): PromotedPlan { + const plan: PromotedPlan = { create: [], update: [], order: null, unknown: [], extra: [] }; + const visible = cfg.visibleForAllUsers ?? true; + const have = new Map(now.map(p => [p.productId, p] as const)); + for (const id of cfg.products) { + const cur = have.get(id); + if (cur) { + const attrs: Record = {}; + if (cur.visibleForAllUsers !== visible) attrs.visibleForAllUsers = visible; + if (o.enable && !cur.enabled) attrs.enabled = true; + if (Object.keys(attrs).length) plan.update.push({ method: 'PATCH', path: `/v1/promotedPurchases/${cur.id}`, note: `${id}: ${Object.entries(attrs).map(([k, v]) => `${k}=${v}`).join(', ')}`, + body: { data: { type: 'promotedPurchases', id: cur.id, attributes: attrs } } }); + continue; + } + const p = products.get(id); + if (!p) { plan.unknown.push(id); continue; } + plan.create.push({ method: 'POST', path: '/v1/promotedPurchases', note: `promote ${id}${o.enable ? ' (enabled)' : ' (not enabled yet)'}`, + body: { data: { type: 'promotedPurchases', attributes: { visibleForAllUsers: visible, enabled: !!o.enable }, + relationships: { app: one('apps', appId), ...(p.kind === 'iap' ? { inAppPurchaseV2: one('inAppPurchases', p.apiId) } : { subscription: one('subscriptions', p.apiId) }) } } } }); + } + plan.extra = now.filter(p => !cfg.products.includes(p.productId)).map(p => p.productId); + return plan; +} + +/** PATCH /v1/apps/{id}/relationships/promotedPurchases: the display order (configured first, then the rest). */ +export function promotedOrderReq(appId: string, cfg: PromotedConfig, now: PromotedNow[]): Req | null { + const byProduct = new Map(now.map(p => [p.productId, p.id] as const)); + const ordered = [...cfg.products.map(id => byProduct.get(id)).filter((x): x is string => !!x), ...now.filter(p => !cfg.products.includes(p.productId)).map(p => p.id)]; + if (!ordered.length || ordered.join() === now.map(p => p.id).join()) return null; + return { method: 'PATCH', path: `/v1/apps/${appId}/relationships/promotedPurchases`, note: 'promoted purchase order', body: many('promotedPurchases', ordered) }; +} + +// ---- pre-orders ---- + +export interface TerritoryAvail { id: string; territory: string; available?: boolean; releaseDate?: string | null; preOrderEnabled?: boolean; preOrderPublishDate?: string | null; contentStatuses?: string[] } + +/** Territory availabilities response(s) (include=territory) -> rows. Pure. */ +export function territoryRows(pages: { data?: { id: string; attributes?: Record; relationships?: { territory?: { data?: { id: string } } } }[] }[]): TerritoryAvail[] { + return pages.flatMap(p => (p.data ?? []).map(t => ({ id: t.id, territory: t.relationships?.territory?.data?.id ?? '?', available: t.attributes?.available as boolean | undefined, + releaseDate: (t.attributes?.releaseDate as string | null | undefined) ?? null, preOrderEnabled: t.attributes?.preOrderEnabled as boolean | undefined, + preOrderPublishDate: (t.attributes?.preOrderPublishDate as string | null | undefined) ?? null, contentStatuses: t.attributes?.contentStatuses as string[] | undefined }))); +} + +/** PATCH requests that put the chosen territories on pre-order with this release date. Territories where the app is + * already out (AVAILABLE) cannot go on pre-order. Pure. */ +export function planPreOrder(rows: TerritoryAvail[], releaseDate: string, territories: string[] | null, today = new Date().toISOString().slice(0, 10)): { reqs: Req[]; problems: string[]; warnings: string[] } { + const problems: string[] = [], warnings: string[] = []; + if (!isDate(releaseDate)) problems.push('--release-date: YYYY-MM-DD'); + const days = (Date.parse(releaseDate) - Date.parse(today)) / DAY; + if (isDate(releaseDate) && days < 2) problems.push('--release-date: at least 2 days ahead'); + if (isDate(releaseDate) && days > 365) problems.push('--release-date: at most 365 days ahead (180 for a new app)'); + else if (isDate(releaseDate) && days > 180) warnings.push('more than 180 days ahead: only allowed for an existing app in a new region'); + const pick = territories ? rows.filter(r => territories.includes(r.territory)) : rows; + if (territories) for (const t of territories) if (!rows.some(r => r.territory === t)) problems.push(`territory ${t}: not in the app's availability`); + const reqs: Req[] = []; + for (const r of pick) { + if (r.contentStatuses?.includes('AVAILABLE')) { warnings.push(`${r.territory}: already released there, no pre-order possible`); continue; } + if (r.preOrderEnabled && r.releaseDate === releaseDate && r.available) continue; + reqs.push({ method: 'PATCH', path: `/v1/territoryAvailabilities/${r.id}`, note: `${r.territory}: pre-order, release ${releaseDate}`, + body: { data: { type: 'territoryAvailabilities', id: r.id, attributes: { available: true, preOrderEnabled: true, releaseDate } } } }); + } + return { reqs, problems, warnings }; +} + +/** POST /v1/endAppAvailabilityPreOrders: end the pre-order in these territories and release there now. */ +export function endPreOrderReq(rows: TerritoryAvail[], territories: string[] | null): Req | null { + const pick = rows.filter(r => r.preOrderEnabled && (!territories || territories.includes(r.territory))); + if (!pick.length) return null; + return { method: 'POST', path: '/v1/endAppAvailabilityPreOrders', note: `end the pre-order and release now in ${pick.map(r => r.territory).join(', ')}`, + body: { data: { type: 'endAppAvailabilityPreOrders', relationships: { territoryAvailabilities: many('territoryAvailabilities', pick.map(r => r.id)) } } } }; +} diff --git a/cli/lib/plist.ts b/cli/lib/plist.ts new file mode 100644 index 00000000..3c0f6165 --- /dev/null +++ b/cli/lib/plist.ts @@ -0,0 +1,56 @@ +// Minimal XML property list reader (Info.plist as Xcode writes it): dict, array, string, integer, real, true, false, +// date, data. No dependency; binary plists are reported, not read (a source Info.plist is XML). Pure. + +export type PlistValue = string | number | boolean | PlistValue[] | { [k: string]: PlistValue } | null; + +const unescape = (s: string): string => s.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, "'").replace(/&#(\d+);/g, (_m, d: string) => String.fromCodePoint(Number(d))).replace(/&/g, '&'); + +export function parsePlist(xml: string): PlistValue { + if (xml.startsWith('bplist')) throw new Error('binary plist: convert it with `plutil -convert xml1` first'); + const tokens = [...xml.replace(/<\?xml[^>]*\?>|]*>|/g, '').matchAll(/<(\/?)([A-Za-z]+)(?:\s[^>]*?)?(\/)?>|([^<]+)/g)]; + let i = 0; + const skipText = () => { while (i < tokens.length && tokens[i]![4] !== undefined && !tokens[i]![4]!.trim()) i++; }; + const textUntil = (tag: string): string => { + let t = ''; + while (i < tokens.length && !(tokens[i]![1] === '/' && tokens[i]![2] === tag)) { t += tokens[i]![4] ?? ''; i++; } + i++; + return unescape(t); + }; + const value = (): PlistValue => { + skipText(); + const tok = tokens[i++]; + if (!tok || tok[4] !== undefined) throw new Error('plist: value expected'); + const [, close, tag, selfClose] = tok; + if (close) throw new Error(`plist: unexpected `); + switch (tag) { + case 'plist': { const v = value(); skipText(); if (tokens[i]?.[1] === '/' && tokens[i]?.[2] === 'plist') i++; return v; } + case 'true': return true; + case 'false': return false; + case 'string': return selfClose ? '' : textUntil('string'); + case 'date': return textUntil('date'); + case 'data': return textUntil('data').replace(/\s+/g, ''); + case 'integer': return Number(textUntil('integer').trim()); + case 'real': return Number(textUntil('real').trim()); + case 'array': { + const out: PlistValue[] = []; + if (selfClose) return out; + for (;;) { skipText(); if (tokens[i]?.[1] === '/' && tokens[i]?.[2] === 'array') { i++; return out; } out.push(value()); } + } + case 'dict': { + const out: { [k: string]: PlistValue } = {}; + if (selfClose) return out; + for (;;) { + skipText(); + const t = tokens[i]; + if (t?.[1] === '/' && t[2] === 'dict') { i++; return out; } + if (t?.[2] !== 'key') throw new Error('plist: expected in '); + i++; + const k = textUntil('key'); + out[k] = value(); + } + } + default: throw new Error(`plist: unsupported <${tag}>`); + } + }; + return value(); +} diff --git a/cli/lib/reports.ts b/cli/lib/reports.ts new file mode 100644 index 00000000..c9229450 --- /dev/null +++ b/cli/lib/reports.ts @@ -0,0 +1,150 @@ +// Sales and finance reports, as pure parts: request paths, file names and the summaries. The command +// (cli/reports.ts) downloads into .storebound/reports/ (gitignored: these files hold per-order and per-buyer-location +// rows) and prints / exports only aggregates. +// Sources (checked October 2026): +// Apple: GET /v1/salesReports (filter[vendorNumber], filter[reportType], filter[reportSubType], filter[frequency], +// filter[reportDate], filter[version]; answer application/a-gzip, tab-separated text) and GET /v1/financeReports +// (filter[vendorNumber], filter[reportType] FINANCIAL | FINANCE_DETAIL, filter[regionCode], filter[reportDate] = +// fiscal month YYYY-MM). Team key only, not an individual key. +// https://developer.apple.com/documentation/appstoreconnectapi/get-v1-salesreports +// https://developer.apple.com/documentation/appstoreconnectapi/get-v1-financereports +// Allowed combinations (docs table): SALES SUMMARY DAILY|WEEKLY|MONTHLY|YEARLY 1_0; SUBSCRIPTION SUMMARY DAILY 1_3; +// SUBSCRIPTION_EVENT SUMMARY DAILY 1_3; SUBSCRIBER DETAILED DAILY 1_3; PRE_ORDER SUMMARY ... 1_0; +// SUBSCRIPTION_OFFER_CODE_REDEMPTION SUMMARY DAILY 1_0; WIN_BACK_ELIGIBILITY SUMMARY DAILY 1_0; INSTALLS ... +// Region codes (Help, "Financial report regions and currencies"): ZZ = all regions consolidated (FINANCIAL), +// Z1 = the Financial Detail report (FINANCE_DETAIL). +// Summary Sales Report columns (Help): Provider, Provider Country, SKU, Developer, Title, Version, Product Type +// Identifier, Units, Developer Proceeds, Begin Date, End Date, Customer Currency, Country Code, Currency of Proceeds, +// Apple Identifier, Customer Price, ... +// Google Play: Cloud Storage bucket of the developer account (play.reportsBucket), read-only scope +// devstorage.read_only: earnings/earnings_YYYYMM*.zip and sales/salesreport_YYYYMM*.zip, one CSV inside each. +// Earnings columns: Description, Transaction Date, Transaction Time, Tax Type, Transaction Type, Refund Type, +// Product Title, Package ID, Product Type, SKU ID, Hardware, Buyer Country, ..., Merchant Currency, Amount +// (Merchant Currency), ... Estimated sales columns: Order Number, Order Charged Date, ..., Financial Status, ..., +// Product Title, Package ID, Product Type, SKU ID, Currency of Sale, Item Price, Taxes Collected, Charged Amount, +// ..., Country of Buyer, ... The service account needs "View financial data" in Play Console. +// https://support.google.com/googleplay/android-developer/answer/6135870 +import { parseCsv } from './csv'; + +export const APPLE_SALES_COMBOS: Record = { + SALES: { subType: 'SUMMARY', frequencies: ['DAILY', 'WEEKLY', 'MONTHLY', 'YEARLY'], version: '1_0' }, + PRE_ORDER: { subType: 'SUMMARY', frequencies: ['DAILY', 'WEEKLY', 'MONTHLY', 'YEARLY'], version: '1_0' }, + SUBSCRIPTION: { subType: 'SUMMARY', frequencies: ['DAILY'], version: '1_3' }, + SUBSCRIPTION_EVENT: { subType: 'SUMMARY', frequencies: ['DAILY'], version: '1_3' }, + SUBSCRIBER: { subType: 'DETAILED', frequencies: ['DAILY'], version: '1_3' }, + SUBSCRIPTION_OFFER_CODE_REDEMPTION: { subType: 'SUMMARY', frequencies: ['DAILY'], version: '1_0' }, + WIN_BACK_ELIGIBILITY: { subType: 'SUMMARY', frequencies: ['DAILY'], version: '1_0' }, +}; + +/** The report date for a frequency: DAILY / WEEKLY YYYY-MM-DD, MONTHLY YYYY-MM, YEARLY YYYY. Default: the newest that + * is usually there (yesterday minus one day, last month, last year). */ +export function appleReportDate(frequency: string, given: string | undefined, now = new Date()): string { + if (given) { + const ok = frequency === 'YEARLY' ? /^\d{4}$/ : frequency === 'MONTHLY' ? /^\d{4}-\d{2}$/ : /^\d{4}-\d{2}-\d{2}$/; + if (!ok.test(given)) throw new Error(`--date for ${frequency}: ${frequency === 'YEARLY' ? 'YYYY' : frequency === 'MONTHLY' ? 'YYYY-MM' : 'YYYY-MM-DD'}`); + return given; + } + const d = new Date(now); + if (frequency === 'YEARLY') return String(d.getUTCFullYear() - 1); + if (frequency === 'MONTHLY') { d.setUTCDate(1); d.setUTCMonth(d.getUTCMonth() - 1); return d.toISOString().slice(0, 7); } + d.setUTCDate(d.getUTCDate() - 2); + return d.toISOString().slice(0, 10); +} + +export function appleSalesPath(vendor: string, o: { type: string; frequency: string; date: string; subType?: string; version?: string }): string { + const combo = APPLE_SALES_COMBOS[o.type]; + if (!combo) throw new Error(`--type: one of ${Object.keys(APPLE_SALES_COMBOS).join(', ')}`); + if (!combo.frequencies.includes(o.frequency)) throw new Error(`${o.type} reports come ${combo.frequencies.join(' / ')} only`); + const q = new URLSearchParams({ 'filter[vendorNumber]': vendor, 'filter[reportType]': o.type, 'filter[reportSubType]': o.subType ?? combo.subType, + 'filter[frequency]': o.frequency, 'filter[reportDate]': o.date, 'filter[version]': o.version ?? combo.version }); + return `/v1/salesReports?${q}`; +} + +export function appleFinancePath(vendor: string, month: string, o: { type?: 'FINANCIAL' | 'FINANCE_DETAIL'; region?: string } = {}): string { + if (!/^\d{4}-\d{2}$/.test(month)) throw new Error('--month YYYY-MM (Apple fiscal month)'); + const type = o.type ?? 'FINANCIAL'; + const region = o.region ?? (type === 'FINANCE_DETAIL' ? 'Z1' : 'ZZ'); + return `/v1/financeReports?${new URLSearchParams({ 'filter[vendorNumber]': vendor, 'filter[reportType]': type, 'filter[regionCode]': region, 'filter[reportDate]': month })}`; +} + +/** Tab-separated report text -> records (header row first). Apple's finance reports end with total lines after a + * blank line; rows without the first header column are dropped. Pure. */ +export function parseTsv(text: string): Record[] { + const lines = text.replace(/^/, '').split(/\r?\n/); + const head = (lines[0] ?? '').split('\t').map(h => h.trim()); + const out: Record[] = []; + for (const l of lines.slice(1)) { + if (!l.trim()) break; + const cells = l.split('\t'); + out.push(Object.fromEntries(head.map((h, i) => [h, (cells[i] ?? '').trim()]))); + } + return out; +} + +export interface SummaryRow { key: string; title: string; currency: string; units: number; amount: number; rows: number } + +const num = (s: string | undefined): number => { const n = Number(String(s ?? '').replace(/,/g, '')); return Number.isFinite(n) ? n : 0; }; +const round2 = (n: number): number => Math.round(n * 100) / 100; + +function group(rows: Record[], keyOf: (r: Record) => [string, string, string], unitsOf: (r: Record) => number, amountOf: (r: Record) => number): SummaryRow[] { + const m = new Map(); + for (const r of rows) { + const [key, title, currency] = keyOf(r); + const id = `${key}\u0000${currency}`; + const cur = m.get(id) ?? { key, title, currency, units: 0, amount: 0, rows: 0 }; + cur.units += unitsOf(r); cur.amount += amountOf(r); cur.rows++; + m.set(id, cur); + } + return [...m.values()].map(x => ({ ...x, amount: round2(x.amount) })).sort((a, b) => (a.key < b.key ? -1 : a.key > b.key ? 1 : a.currency < b.currency ? -1 : a.currency > b.currency ? 1 : 0)); +} + +/** Summary Sales Report: units and proceeds (units x Developer Proceeds) per SKU and proceeds currency. Pure. */ +export function summarizeAppleSales(rows: Record[]): SummaryRow[] { + return group(rows, r => [r.SKU || r['Apple Identifier'] || '?', r.Title ?? '', r['Currency of Proceeds'] ?? ''], r => num(r.Units), r => num(r.Units) * num(r['Developer Proceeds'])); +} + +/** Financial report: quantity and Extended Partner Share per Vendor Identifier and currency. Pure. */ +export function summarizeAppleFinance(rows: Record[]): SummaryRow[] { + return group(rows.filter(r => r['Vendor Identifier'] !== undefined && r['Vendor Identifier'] !== ''), + r => [r['Vendor Identifier']!, r.Title ?? '', r['Partner Share Currency'] ?? ''], r => num(r.Quantity), r => num(r['Extended Partner Share'])); +} + +/** Play earnings: amount in the merchant currency per SKU, transaction type and currency. Pure. */ +export function summarizePlayEarnings(rows: Record[]): SummaryRow[] { + return group(rows, r => [`${r['SKU ID'] || r['Product Type'] || '?'} · ${r['Transaction Type'] ?? ''}`, r['Product Title'] ?? '', r['Merchant Currency'] ?? ''], + r => (/^charge$/i.test(r['Transaction Type'] ?? '') ? 1 : 0), r => num(r['Amount (Merchant Currency)'])); +} + +/** Play estimated sales: charged amount per SKU, financial status and currency of sale. Pure. */ +export function summarizePlaySales(rows: Record[]): SummaryRow[] { + return group(rows, r => [`${r['SKU ID'] || '?'} · ${r['Financial Status'] ?? ''}`, r['Product Title'] ?? '', r['Currency of Sale'] ?? ''], () => 1, r => num(r['Charged Amount'])); +} + +/** Total per currency (summaries are never added across currencies). */ +export function totalsByCurrency(rows: SummaryRow[]): { currency: string; units: number; amount: number }[] { + const m = new Map(); + for (const r of rows) { const t = m.get(r.currency) ?? { currency: r.currency, units: 0, amount: 0 }; t.units += r.units; t.amount = round2(t.amount + r.amount); m.set(r.currency, t); } + return [...m.values()].sort((a, b) => (a.currency < b.currency ? -1 : a.currency > b.currency ? 1 : 0)); +} + +export const summaryCsvRows = (rows: SummaryRow[]): (string | number)[][] => [['key', 'title', 'currency', 'units', 'amount', 'rows'], ...rows.map(r => [r.key, r.title, r.currency, r.units, r.amount, r.rows])]; + +/** Play month -> object name prefix in the bucket. */ +export const playReportPrefix = (kind: 'earnings' | 'sales', month: string): string => { + if (!/^\d{4}-\d{2}$/.test(month)) throw new Error('--month YYYY-MM'); + return kind === 'earnings' ? `earnings/earnings_${month.replace('-', '')}` : `sales/salesreport_${month.replace('-', '')}`; +}; + +/** CSV text of a Play report (they are UTF-8, some exports UTF-16 with a BOM). Pure. */ +export function decodeReport(b: Uint8Array): string { + if (b[0] === 0xff && b[1] === 0xfe) return new TextDecoder('utf-16le').decode(b.subarray(2)); + return new TextDecoder().decode(b).replace(/^/, ''); +} + +/** Play report CSV -> records keyed by the original header names. Pure. */ +export const parsePlayCsv = (text: string): Record[] => { + const [head, ...rest] = parseCsv(text); + if (!head) return []; + const keys = head.map(h => h.trim()); + return rest.map(r => Object.fromEntries(keys.map((k, i) => [k, (r[i] ?? '').trim()]))); +}; diff --git a/cli/lib/review-submit.ts b/cli/lib/review-submit.ts new file mode 100644 index 00000000..e911822e --- /dev/null +++ b/cli/lib/review-submit.ts @@ -0,0 +1,166 @@ +// Sending in-app purchases and subscriptions to App Review through review submissions, as a pure planner. The command +// (cli/apple/iap-submit.ts) reads the state, calls `planIapSubmission`, prints the plan and only sends it after the +// owner says yes in a terminal. Never an MCP tool: submitting for review is the owner's action. +// +// How App Store Connect does it (API 4.4.1+, OpenAPI spec 4.5.1, checked October 2026): +// - Every in-app purchase, subscription and subscription group has versions (inAppPurchaseVersions, +// subscriptionVersions, subscriptionGroupVersions; GET /v2/inAppPurchases/{id}/versions, /v1/subscriptions/{id}/versions, +// /v1/subscriptionGroups/{id}/versions). "Use the In-App Purchase version for submitting to review." +// - A version goes to App Review as an item of a review submission: POST /v1/reviewSubmissions (app; platform +// optional), POST /v1/reviewSubmissionItems with inAppPurchaseVersion | subscriptionVersion | subscriptionGroupVersion +// (or appStoreVersion), then PATCH /v1/reviewSubmissions/{id} { submitted: true }. +// The older inAppPurchaseSubmissions / subscriptionSubmissions / subscriptionGroupSubmissions are deprecated. +// https://developer.apple.com/documentation/appstoreconnectapi/app-store-connect-api-4-4-1-release-notes +// https://developer.apple.com/documentation/appstoreconnectapi/review-submissions +// https://developer.apple.com/documentation/appstoreconnectapi/in-app-purchase-versions +// The rules (App Store Connect Help, "Submit an In-App Purchase", checked October 2026): +// - "The first consumable, non-consumable, auto-renewable subscription, and non-renewing subscription In-App +// Purchase of each type must be submitted with a new app version." +// - Later items of an approved type go without an app version "as long as your app has at least one approved app +// version at the time of submission". +// - A new subscription goes together with its subscription group while the group is not approved; "each new +// subscription group must be submitted with at least one of its subscriptions". +// - Everything reviewed together goes into the same draft submission; up to 200 items per submission. +// - In-App Purchases with content hosting can no longer be submitted. In-app purchases are not supported on Apple Watch. +// https://developer.apple.com/help/app-store-connect/manage-submissions-to-app-review/submit-an-in-app-purchase +import type { Req } from '../apple/jsonapi'; +import { one } from '../apple/jsonapi'; + +export const MAX_SUBMISSION_ITEMS = 200; + +/** App Store version states after which the app counts as having an approved version. */ +const APPROVED_APP = new Set(['READY_FOR_DISTRIBUTION', 'READY_FOR_SALE', 'PENDING_DEVELOPER_RELEASE', 'PENDING_APPLE_RELEASE', 'PROCESSING_FOR_DISTRIBUTION', + 'PROCESSING_FOR_APP_STORE', 'REPLACED_WITH_NEW_VERSION', 'ACCEPTED', 'DEVELOPER_REMOVED_FROM_SALE', 'REMOVED_FROM_SALE']); +/** Product states (InAppPurchaseState / Subscription.state) that mean the product was approved once. */ +const APPROVED_PRODUCT = new Set(['APPROVED', 'DEVELOPER_REMOVED_FROM_SALE', 'REMOVED_FROM_SALE']); +/** Version states that can still go into a draft submission. */ +const SUBMITTABLE = new Set(['PREPARE_FOR_SUBMISSION', 'READY_FOR_REVIEW']); +const IN_REVIEW = new Set(['WAITING_FOR_REVIEW', 'IN_REVIEW']); + +export type ItemKind = 'inAppPurchaseVersion' | 'subscriptionVersion' | 'subscriptionGroupVersion' | 'appStoreVersion'; +const ITEM_TYPE: Record = { + inAppPurchaseVersion: 'inAppPurchaseVersions', subscriptionVersion: 'subscriptionVersions', subscriptionGroupVersion: 'subscriptionGroupVersions', appStoreVersion: 'appStoreVersions', +}; + +export interface PVersion { id: string; version?: number; state: string } +export interface PIap { id: string; productId: string; type: string; state: string; versions: PVersion[] } +export interface PSub { id: string; productId: string; groupId: string; state: string; versions: PVersion[] } +export interface PGroup { id: string; name: string; versions: PVersion[] } +export interface PAppVersion { id: string; versionString: string; state: string } + +export interface SubmitState { + appVersions: PAppVersion[]; + iaps: PIap[]; + subs: PSub[]; + groups: PGroup[]; + /** The app's draft review submission (state READY_FOR_REVIEW), if one exists, and the version ids already in it. */ + draft?: { id: string; itemVersionIds: string[] } | null; +} + +export interface PlanItem { kind: ItemKind; versionId: string; label: string } +export interface SubmitPlan { + items: PlanItem[]; + /** Product ids that are left out, with the reason. */ + skipped: { id: string; why: string }[]; + /** Types submitted for the first time (need an app version in the same submission). */ + firstOfType: string[]; + hasApprovedVersion: boolean; + /** An app version must be in this submission (first of a type, or no approved app version yet). */ + needsAppVersion: boolean; + /** The editable app version that would go in (with withVersion). */ + appVersion?: PAppVersion; + /** Problems that stop the submission (nothing is sent while any is left). */ + blockers: string[]; + /** Requests up to and including adding the items (a draft the owner can also submit in App Store Connect). */ + prepare: Req[]; + /** The submit request itself (the owner's action). Uses the placeholder id "${submission}" when the draft is new. */ + submit: Req; +} + +const typeLabel = (t: string): string => ({ CONSUMABLE: 'consumable', NON_CONSUMABLE: 'non-consumable', NON_RENEWING_SUBSCRIPTION: 'non-renewing subscription', AUTO_RENEWABLE: 'auto-renewable subscription' }[t] ?? t); + +/** The newest version of a product (highest `version`, else the last listed). */ +export function latestVersion(vs: PVersion[]): PVersion | undefined { + return [...vs].sort((a, b) => (a.version ?? 0) - (b.version ?? 0)).at(-1); +} + +/** + * Plan for submitting `want` (product ids of in-app purchases and subscriptions). withVersion: put the editable app + * version into the same submission (needed for the first item of a type, or while the app has no approved version). + */ +export function planIapSubmission(s: SubmitState, want: string[], o: { withVersion?: boolean } = {}): SubmitPlan { + const plan: SubmitPlan = { items: [], skipped: [], firstOfType: [], hasApprovedVersion: s.appVersions.some(v => APPROVED_APP.has(v.state)), needsAppVersion: false, blockers: [], prepare: [], + submit: { method: 'PATCH', path: '/v1/reviewSubmissions/${submission}', note: 'submit for App Review', body: {} } }; + const approvedTypes = new Set([...s.iaps.filter(p => APPROVED_PRODUCT.has(p.state)).map(p => p.type), ...(s.subs.some(x => APPROVED_PRODUCT.has(x.state)) ? ['AUTO_RENEWABLE'] : [])]); + const firstTypes = new Set(); + const already = new Set(s.draft?.itemVersionIds ?? []); + const groupsNeeded = new Set(); + + const pick = (id: string, productState: string, versions: PVersion[], kind: ItemKind, type: string): void => { + if (productState === 'MISSING_METADATA') { plan.skipped.push({ id, why: 'missing metadata (price, localization or review screenshot): storebound apple iap / apple subscriptions / apple iap-review' }); return; } + if (productState === 'WAITING_FOR_UPLOAD' || productState === 'PROCESSING_CONTENT') { plan.skipped.push({ id, why: `hosted content ${productState}: content-hosted purchases can no longer be submitted` }); return; } + const v = latestVersion(versions); + if (!v) { plan.skipped.push({ id, why: 'no version on App Store Connect yet (create the product first: storebound apple iap / apple subscriptions)' }); return; } + if (IN_REVIEW.has(v.state)) { plan.skipped.push({ id, why: `already ${v.state}` }); return; } + if (!SUBMITTABLE.has(v.state)) { plan.skipped.push({ id, why: `latest version is ${v.state}: change it in App Store Connect (or --new-version) to send a new version` }); return; } + if (already.has(v.id)) { plan.skipped.push({ id, why: 'already in the draft submission' }); return; } + plan.items.push({ kind, versionId: v.id, label: `${id} (${typeLabel(type)}, version ${v.version ?? '?'})` }); + if (!approvedTypes.has(type)) firstTypes.add(type); + }; + + for (const id of want) { + const iap = s.iaps.find(p => p.productId === id); + const sub = s.subs.find(p => p.productId === id); + if (iap) pick(id, iap.state, iap.versions, 'inAppPurchaseVersion', iap.type); + else if (sub) { + const before = plan.items.length; + pick(id, sub.state, sub.versions, 'subscriptionVersion', 'AUTO_RENEWABLE'); + if (plan.items.length > before) groupsNeeded.add(sub.groupId); + } else plan.skipped.push({ id, why: 'not on App Store Connect (storebound apple iap / apple subscriptions creates it)' }); + } + for (const gid of groupsNeeded) { + const g = s.groups.find(x => x.id === gid); + if (!g) continue; + if (g.versions.some(v => v.state === 'APPROVED') || s.subs.some(x => x.groupId === gid && APPROVED_PRODUCT.has(x.state))) continue; + const v = latestVersion(g.versions); + if (!v) { plan.blockers.push(`subscription group "${g.name}" has no version to submit`); continue; } + if (IN_REVIEW.has(v.state) || already.has(v.id)) continue; + if (!SUBMITTABLE.has(v.state)) { plan.blockers.push(`subscription group "${g.name}": version is ${v.state}`); continue; } + plan.items.push({ kind: 'subscriptionGroupVersion', versionId: v.id, label: `subscription group "${g.name}" (not approved yet, goes with its subscriptions)` }); + } + plan.firstOfType = [...firstTypes].map(typeLabel); + plan.needsAppVersion = plan.items.length > 0 && (firstTypes.size > 0 || !plan.hasApprovedVersion); + if (plan.needsAppVersion) { + const editable = s.appVersions.find(v => ['PREPARE_FOR_SUBMISSION', 'DEVELOPER_REJECTED', 'REJECTED', 'METADATA_REJECTED', 'INVALID_BINARY', 'READY_FOR_REVIEW'].includes(v.state)); + const why = firstTypes.size ? `first ${plan.firstOfType.join(' / ')} of this app: Apple reviews it only together with a new app version` + : 'the app has no approved version yet: in-app purchases go together with an app version'; + if (!o.withVersion) plan.blockers.push(`${why}. Add --with-version (the editable version ${editable ? editable.versionString : '(none yet: storebound apple listing --version x.y.z --build N)'} goes into the same submission; submitting it submits the app)`); + else if (!editable) plan.blockers.push(`${why}, and there is no editable app version: storebound apple listing --version x.y.z --build N first`); + else if (!already.has(editable.id)) { plan.appVersion = editable; plan.items.unshift({ kind: 'appStoreVersion', versionId: editable.id, label: `app version ${editable.versionString}` }); } + } + if (plan.items.length + (s.draft?.itemVersionIds.length ?? 0) > MAX_SUBMISSION_ITEMS) plan.blockers.push(`more than ${MAX_SUBMISSION_ITEMS} items in one submission: use --only for a part`); + const sid = s.draft?.id ?? '${submission}'; + if (!s.draft && plan.items.length) plan.prepare.push({ method: 'POST', path: '/v1/reviewSubmissions', note: 'new draft review submission', body: { data: { type: 'reviewSubmissions', attributes: { platform: 'IOS' }, relationships: { app: one('apps', '${app}') } } } }); + for (const it of plan.items) plan.prepare.push({ method: 'POST', path: '/v1/reviewSubmissionItems', note: it.label, + body: { data: { type: 'reviewSubmissionItems', relationships: { reviewSubmission: one('reviewSubmissions', sid), [it.kind]: one(ITEM_TYPE[it.kind], it.versionId) } } } }); + plan.submit = { method: 'PATCH', path: `/v1/reviewSubmissions/${sid}`, note: 'submit for App Review', body: { data: { type: 'reviewSubmissions', id: sid, attributes: { submitted: true } } } }; + return plan; +} + +/** Fills the placeholders of a planned request (app id, the id of the draft created a moment ago). Pure. */ +export function bindIds(r: Req, ids: { app?: string; submission?: string }): Req { + const text = JSON.stringify(r).replaceAll('${app}', ids.app ?? '${app}').replaceAll('${submission}', ids.submission ?? '${submission}'); + return JSON.parse(text) as Req; +} + +/** POST /v1/inAppPurchaseVersions | /v1/subscriptionVersions: a new draft version of an approved (or rejected) + * product, "capturing its current localized metadata and review images for App Review submission". */ +export function newVersionReq(kind: 'iap' | 'sub', productApiId: string, label: string): Req { + return kind === 'iap' + ? { method: 'POST', path: '/v1/inAppPurchaseVersions', note: `new version of ${label}`, body: { data: { type: 'inAppPurchaseVersions', relationships: { inAppPurchase: one('inAppPurchases', productApiId) } } } } + : { method: 'POST', path: '/v1/subscriptionVersions', note: `new version of ${label}`, body: { data: { type: 'subscriptionVersions', relationships: { subscription: one('subscriptions', productApiId) } } } }; +} + +/** Versions response -> PVersion list. Pure. */ +export const versionsOf = (data: { id: string; attributes?: { version?: number; state?: string } }[]): PVersion[] => + data.map(v => ({ id: v.id, version: v.attributes?.version, state: v.attributes?.state ?? '?' })); diff --git a/cli/lib/triage.ts b/cli/lib/triage.ts new file mode 100644 index 00000000..8fec0ded --- /dev/null +++ b/cli/lib/triage.ts @@ -0,0 +1,122 @@ +// Crash and feedback triage, as pure parts: crash signatures from TestFlight crash logs, and clusters by signature, +// device and OS version for TestFlight feedback and Google Play vitals error reports. The command (cli/triage.ts) +// reads (GET only), groups and prints a table or --json. Tester emails are never read into the output (the feedback +// requests ask only for the fields listed below). +// Sources (checked October 2026): +// TestFlight feedback (App Store Connect API 4.0+, OpenAPI 4.5.1): GET /v1/apps/{id}/betaFeedbackCrashSubmissions, +// GET /v1/apps/{id}/betaFeedbackScreenshotSubmissions (createdDate, comment, deviceModel, osVersion, locale, +// appPlatform, deviceFamily, build relationship; filter[build], sort=-createdDate, fields[...]), +// GET /v1/betaFeedbackCrashSubmissions/{id}/crashLog -> BetaCrashLog.logText. +// https://developer.apple.com/documentation/appstoreconnectapi/prerelease-versions-and-beta-testers +// Google Play Developer Reporting API v1beta1: errorIssues:search (issues = Play's own clusters: type, cause, +// location, errorReportCount, distinctUsers) and errorReports:search (filter "errorIssueId = ", interval +// hour-aligned UTC, pageSize <= 100; ErrorReport: name, type, reportText, issue, eventTime, deviceModel +// {deviceId {buildBrand, buildDevice}, marketingName}, osVersion {apiLevel}, appVersion {versionCode}). +// https://developers.google.com/play/developer/reporting/reference/rest/v1beta1/vitals.errors.reports/search +// https://developers.google.com/play/developer/reporting/reference/rest/v1beta1/vitals.errors.reports + +/** Fields read for feedback (no email, no tester relationship). */ +export const FEEDBACK_FIELDS = 'createdDate,comment,deviceModel,osVersion,locale,appPlatform,deviceFamily,build'; +export const CRASH_FIELDS = 'createdDate,comment,deviceModel,osVersion,locale,appPlatform,deviceFamily,build,crashLog'; + +const cleanFrame = (s: string): string => s.replace(/\s+\+\s+\d+$/, '').replace(/0x[0-9a-f]+/gi, '').replace(/\s+/g, ' ').trim(); + +/** + * One crash signature from a crash log: " @ " (else the + * first frame). Handles the text crash report format and the JSON .ips format (header line + body). Pure. + */ +export function crashSignature(log: string): string { + const text = log.trim(); + // .ips: first line is a JSON header, the rest a JSON body + const nl = text.indexOf('\n'); + if (text.startsWith('{') && nl > 0) { + try { + const head = JSON.parse(text.slice(0, nl)) as { app_name?: string; name?: string }; + const body = JSON.parse(text.slice(nl + 1)) as { exception?: { type?: string; signal?: string }; faultingThread?: number; threads?: { triggered?: boolean; frames?: { imageIndex?: number; symbol?: string; imageOffset?: number }[] }[]; usedImages?: { name?: string }[]; procName?: string }; + const ex = [body.exception?.type, body.exception?.signal].filter(Boolean).join(' ') || 'crash'; + const t = body.threads?.[body.faultingThread ?? -1] ?? body.threads?.find(x => x.triggered); + const app = body.procName ?? head.app_name ?? head.name; + const frames = (t?.frames ?? []).map(f => ({ image: body.usedImages?.[f.imageIndex ?? -1]?.name ?? '?', symbol: f.symbol ?? `+${f.imageOffset ?? '?'}` })); + const f = frames.find(x => app && x.image === app) ?? frames[0]; + return f ? `${ex} @ ${f.image} ${cleanFrame(f.symbol)}` : ex; + } catch { /* fall through to the text format */ } + } + const ex = /^Exception Type:\s*(.+)$/m.exec(text)?.[1]?.trim() ?? /^Termination Reason:\s*(.+)$/m.exec(text)?.[1]?.trim() ?? 'crash'; + const proc = /^Process:\s*([^\s\[]+)/m.exec(text)?.[1]; + const crashed = /^Crashed Thread:\s*(\d+)/m.exec(text)?.[1]; + const lines = text.split(/\r?\n/); + const at = lines.findIndex(l => (crashed !== undefined ? new RegExp(`^Thread ${crashed} Crashed`) : /^Thread \d+ Crashed/).test(l)); + const block: string[] = []; + if (at >= 0) for (const l of lines.slice(at + 1)) { if (!l.trim()) break; block.push(l); } + const frames = block.map(l => /^\d+\s+(\S+)\s+0x[0-9a-f]+\s+(.+)$/i.exec(l.trim())).filter((m): m is RegExpExecArray => !!m).map(m => ({ image: m[1]!, symbol: m[2]! })); + const f = frames.find(x => proc && x.image === proc) ?? frames[0]; + return f ? `${ex} @ ${f.image} ${cleanFrame(f.symbol)}` : ex; +} + +export interface TriageItem { signature: string; device: string; os: string; build?: string; date?: string; comment?: string } +export interface Cluster { signature: string; count: number; devices: [string, number][]; os: [string, number][]; builds: [string, number][]; first?: string; last?: string; comments?: string[] } + +const top = (xs: string[], n = 3): [string, number][] => { + const m = new Map(); + for (const x of xs) m.set(x, (m.get(x) ?? 0) + 1); + return [...m.entries()].sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0])).slice(0, n); +}; + +/** Items -> clusters by signature, most frequent first, each with its top devices, OS versions and builds. Pure. */ +export function cluster(items: TriageItem[], o: { comments?: number } = {}): Cluster[] { + const by = new Map(); + for (const i of items) by.set(i.signature, [...(by.get(i.signature) ?? []), i]); + return [...by.entries()].map(([signature, xs]) => { + const dates = xs.map(x => x.date ?? '').filter(Boolean).sort(); + const comments = o.comments ? xs.map(x => (x.comment ?? '').replace(/\s+/g, ' ').trim()).filter(Boolean).slice(0, o.comments).map(c => c.slice(0, 120)) : undefined; + return { signature, count: xs.length, devices: top(xs.map(x => x.device)), os: top(xs.map(x => x.os)), builds: top(xs.map(x => x.build ?? '?')), + ...(dates.length ? { first: dates[0], last: dates.at(-1) } : {}), ...(comments?.length ? { comments } : {}) }; + }).sort((a, b) => b.count - a.count || a.signature.localeCompare(b.signature)); +} + +/** TestFlight feedback (crash or screenshot submissions) -> items. Screenshot feedback has no crash: its signature is + * "feedback". Pure. */ +export function feedbackItems(subs: { id: string; attributes?: Record; relationships?: { build?: { data?: { id: string } | null } } }[], builds: Map, signatures: Map = new Map()): TriageItem[] { + return subs.map(s => { + const a = s.attributes ?? {}; + return { signature: signatures.get(s.id) ?? 'feedback', device: String(a.deviceModel ?? '?'), os: String(a.osVersion ?? '?'), + build: builds.get(s.relationships?.build?.data?.id ?? '') ?? undefined, date: typeof a.createdDate === 'string' ? a.createdDate : undefined, + comment: typeof a.comment === 'string' ? a.comment : undefined }; + }); +} + +export interface PlayIssueRef { id: string; type: string; cause: string; location: string; reports: number; users: number } + +/** errorIssues:search -> issue refs with their id (the last part of `name`). Pure. */ +export function playIssues(resp: { errorIssues?: { name?: string; type?: string; cause?: string; location?: string; errorReportCount?: string; distinctUsers?: string }[] }): PlayIssueRef[] { + return (resp.errorIssues ?? []).map(i => ({ id: (i.name ?? '').split('/').pop() ?? '', type: i.type === 'APPLICATION_NOT_RESPONDING' ? 'ANR' : i.type ?? '?', cause: i.cause ?? '', + location: i.location ?? '', reports: Number(i.errorReportCount ?? 0), users: Number(i.distinctUsers ?? 0) })).filter(i => i.id); +} + +/** errorReports:search -> items with the signature of their issue. Pure. */ +export function playReportItems(resp: { errorReports?: { issue?: string; type?: string; eventTime?: string; deviceModel?: { marketingName?: string; deviceId?: { buildBrand?: string; buildDevice?: string } }; osVersion?: { apiLevel?: string }; appVersion?: { versionCode?: string } }[] }, issues: PlayIssueRef[]): TriageItem[] { + const sig = new Map(issues.map(i => [i.id, `${i.type} ${i.cause}${i.location ? ` @ ${i.location}` : ''}`] as const)); + return (resp.errorReports ?? []).map(r => { + const id = (r.issue ?? '').split('/').pop() ?? ''; + const dev = r.deviceModel?.marketingName || [r.deviceModel?.deviceId?.buildBrand, r.deviceModel?.deviceId?.buildDevice].filter(Boolean).join('/') || '?'; + return { signature: sig.get(id) ?? `${r.type ?? '?'} issue ${id}`, device: dev, os: r.osVersion?.apiLevel ? `API ${r.osVersion.apiLevel}` : '?', build: r.appVersion?.versionCode, date: r.eventTime }; + }); +} + +/** errorReports:search query string for one issue (UTC, hour-aligned interval, newest window). Pure. */ +export function reportsQuery(issueId: string, start: Date, end: Date, pageSize = 100): string { + const p = new URLSearchParams(); + for (const [k, d] of [['start', start], ['end', end]] as const) { + p.set(`interval.${k}Time.year`, String(d.getUTCFullYear())); p.set(`interval.${k}Time.month`, String(d.getUTCMonth() + 1)); p.set(`interval.${k}Time.day`, String(d.getUTCDate())); + p.set(`interval.${k}Time.hours`, '0'); p.set(`interval.${k}Time.timeZone.id`, 'UTC'); + } + p.set('filter', `errorIssueId = ${issueId}`); + p.set('pageSize', String(Math.min(100, pageSize))); + return p.toString(); +} + +/** Table rows for a cluster list. Pure. */ +export function clusterRows(cs: Cluster[]): (string | number)[][] { + const fmt = (xs: [string, number][]) => xs.map(([k, n]) => `${k} (${n})`).join(', '); + return cs.map(c => [c.count, c.signature.slice(0, 70), fmt(c.devices), fmt(c.os), fmt(c.builds)]); +} diff --git a/cli/lib/whats-new.ts b/cli/lib/whats-new.ts index 998da727..fe42d3c5 100644 --- a/cli/lib/whats-new.ts +++ b/cli/lib/whats-new.ts @@ -1,5 +1,7 @@ // User-facing release notes from commit subjects, and writing them into the two listing files. Pure. // The draft is a starting point for a human: commit messages are written for developers, notes are for users. +import type { Language } from './config'; +import { playCodes } from './config'; import { len, PLAY_LIMITS } from './copy'; export const NOTES_LIMITS = { play: PLAY_LIMITS.whatsNew, apple: 4000 } as const; @@ -98,3 +100,69 @@ export function setAppleWhatsNew(md: string, locale: string, text: string): { md }); return { md: out.join(''), changed }; } + +// ---- many languages: one file per language, translated by your agent (whats-new skill) or a provider hook ---- +// Limits per store (what each store enforces for the release-notes field): +// Google Play "What's new" (edits.tracks releaseNotes / Play Console): 500 characters per language. +// App Store "What's New in This Version" (appStoreVersionLocalizations.whatsNew): 4000 characters. + +export type NotesStatus = 'source' | 'translate' | 'translated'; +export interface NotesFile { lang: string; source: string; status: NotesStatus; text: string } + +const HEAD_RE = /^\n?/; + +/** One language file: a header line the tools read, then the text. Pure. */ +export function notesFileText(f: NotesFile): string { + return `\n${f.text.trim()}\n`; +} + +/** Parses a language file; a file without the header is taken as translated text. Pure. */ +export function parseNotesFile(text: string, lang: string): NotesFile { + const m = HEAD_RE.exec(text); + if (!m) return { lang, source: '', status: 'translated', text: text.trim() }; + return { lang: m[1]!, source: m[2]!, status: m[3] as NotesStatus, text: text.slice(m[0].length).trim() }; +} + +/** --languages values (config language ids, App Store locales or Play codes) -> language entries, in that order. */ +export function resolveLanguages(langs: Language[], wanted: string[]): Language[] { + const out: Language[] = []; + for (const w of wanted) { + const l = langs.find(x => x.id === w) ?? langs.find(x => x.apple === w) ?? langs.find(x => playCodes(x).includes(w)); + if (!l) throw new Error(`--languages: "${w}" is not a language of the config (ids: ${langs.map(x => x.id).join(', ')})`); + if (!out.includes(l)) out.push(l); + } + return out; +} + +export interface LangCheck { lang: string; chars: number; play?: { limit: number; ok: boolean }; apple?: { limit: number; ok: boolean }; problems: string[] } + +/** Limits and wording of one language's notes, for the stores that language is listed on. Pure. */ +export function checkLanguageNotes(l: Language, f: NotesFile, sourceText?: string): LangCheck { + const chars = len(f.text); + const c: LangCheck = { lang: l.id, chars, problems: [] }; + if (playCodes(l).length) { c.play = { limit: NOTES_LIMITS.play, ok: chars <= NOTES_LIMITS.play }; if (!c.play.ok) c.problems.push(`Google Play: ${chars} > ${NOTES_LIMITS.play} characters`); } + if (l.apple) { c.apple = { limit: NOTES_LIMITS.apple, ok: chars <= NOTES_LIMITS.apple }; if (!c.apple.ok) c.problems.push(`App Store: ${chars} > ${NOTES_LIMITS.apple} characters`); } + if (!f.text) c.problems.push('empty'); + if (f.status === 'translate') c.problems.push('not translated yet (status=translate)'); + else if (sourceText !== undefined && f.status !== 'source' && f.text === sourceText.trim()) c.problems.push('identical to the source language: translate it'); + const hook = f.text.split('\n')[0] ?? ''; + if (len(hook) > HOOK_CHARS) c.problems.push(`first line is ${len(hook)} characters; about ${HOOK_CHARS} show before "more"`); + return c; +} + +/** Writes one language's notes into the listing files (every Play code of the language, its App Store locale). Pure. */ +export function applyLanguageNotes(md: { play?: string; apple?: string }, l: Language, text: string): { play?: string; apple?: string; changed: string[] } { + const out: { play?: string; apple?: string; changed: string[] } = { ...md, changed: [] }; + if (md.play !== undefined) for (const code of playCodes(l)) { + const r = setPlayWhatsNew(out.play!, code, text); + out.play = r.md; + out.changed.push(...r.changed.map(x => `play:${x}`)); + } + if (md.apple !== undefined && l.apple) { + const r = setAppleWhatsNew(out.apple!, l.apple, text); + out.apple = r.md; + out.changed.push(...r.changed.map(x => `apple:${x}`)); + } + out.changed = [...new Set(out.changed)]; + return out; +} diff --git a/cli/lib/zip.ts b/cli/lib/zip.ts new file mode 100644 index 00000000..c22599ee --- /dev/null +++ b/cli/lib/zip.ts @@ -0,0 +1,32 @@ +// Minimal ZIP reader for the Play financial report exports (earnings_YYYYMM.zip, salesreport_YYYYMM.zip: one CSV +// inside). Reads the central directory, supports stored (0) and deflate (8) entries; no ZIP64, no encryption. Uses +// node:zlib (built into Bun), so storebound keeps zero runtime dependencies. Pure. +import { inflateRawSync } from 'node:zlib'; + +export interface ZipEntry { name: string; data: Uint8Array } + +export function unzip(buf: Uint8Array): ZipEntry[] { + const dv = new DataView(buf.buffer, buf.byteOffset, buf.byteLength); + // end of central directory: signature 0x06054b50 within the last 64 KiB + 22 bytes + let eocd = -1; + for (let i = buf.length - 22; i >= Math.max(0, buf.length - 65_557); i--) if (dv.getUint32(i, true) === 0x06054b50) { eocd = i; break; } + if (eocd < 0) throw new Error('not a zip file (no end of central directory)'); + const count = dv.getUint16(eocd + 10, true); + let p = dv.getUint32(eocd + 16, true); + const out: ZipEntry[] = []; + const dec = new TextDecoder(); + for (let i = 0; i < count; i++) { + if (dv.getUint32(p, true) !== 0x02014b50) throw new Error('zip: bad central directory entry'); + const method = dv.getUint16(p + 10, true), size = dv.getUint32(p + 20, true), nameLen = dv.getUint16(p + 28, true); + const extraLen = dv.getUint16(p + 30, true), commentLen = dv.getUint16(p + 32, true), local = dv.getUint32(p + 42, true); + const name = dec.decode(buf.subarray(p + 46, p + 46 + nameLen)); + if (dv.getUint32(local, true) !== 0x04034b50) throw new Error(`zip: bad local header for ${name}`); + const start = local + 30 + dv.getUint16(local + 26, true) + dv.getUint16(local + 28, true); + const raw = buf.subarray(start, start + size); + if (method === 0) out.push({ name, data: raw }); + else if (method === 8) out.push({ name, data: new Uint8Array(inflateRawSync(raw)) }); + else throw new Error(`zip: ${name} uses compression method ${method}`); + p += 46 + nameLen + extraLen + commentLen; + } + return out; +} diff --git a/cli/mcp-tools.ts b/cli/mcp-tools.ts index 9b7e2aa2..93bfa78a 100644 --- a/cli/mcp-tools.ts +++ b/cli/mcp-tools.ts @@ -211,6 +211,74 @@ export const TOOLS: ToolDef[] = [ props: { dir: { type: 'string', pattern: '^(?!/)(?!.*\\.\\.)(?!.*,/)[A-Za-z0-9._ /,-]{1,400}$', description: 'fastlane folder(s) relative to the project, comma-separated (default: fastlane, ios/fastlane, android/fastlane)' }, profile: { type: 'string', enum: ['app', 'game', 'subscription-app'], description: 'Default: game for the GAMES category, else app' } }, args: i => [...opt('dir', i.dir), ...opt('profile', i.profile)] }, + + // ---- store operations (read-only plans, local pulls and reports; submits, codes, offers and pre-orders stay terminal-only) ---- + { name: 'apple_testflight_wait', title: 'Wait for a TestFlight build', command: ['apple', 'testflight', 'wait'], write: false, network: true, + description: 'Poll one uploaded build (exact number) until processing ends: exit 0 VALID, 1 FAILED / INVALID, 7 timeout. Read-only. check_once reads the state once without waiting.', + props: { build: { type: 'string', pattern: '^[0-9][0-9.]*$', description: 'Exact build number (CFBundleVersion) you uploaded' }, version: { type: 'string', pattern: '^\\d+(\\.\\d+){0,2}$' }, + timeout_minutes: { type: 'integer', minimum: 1, maximum: 60, default: 30 }, check_once: { type: 'boolean', default: false } }, + required: ['build'], args: i => [...opt('build', i.build), ...opt('version', i.version), '--timeout', `${Number(i.timeout_minutes ?? 30)}m`, '--json', ...flag('dry', i.check_once)] }, + { name: 'apple_iap_review_plan', title: 'IAP review submission plan', command: ['apple', 'iap-submit'], write: false, network: true, + description: 'Read-only plan for sending in-app purchases and subscriptions to App Review: which version of each goes in, which are the first of their type (Apple reviews those only with a new app version), what is left out and why. Submitting is an owner-only terminal command.', + props: { only, with_version: { type: 'boolean', default: false, description: 'Plan with the editable app version in the same submission' } }, + args: i => [...opt('only', i.only), ...flag('with-version', i.with_version), '--json', '--dry'] }, + { name: 'apple_listing_pull', title: 'Pull App Store texts', command: ['apple', 'listing', 'pull'], write: true, network: true, idempotent: true, + description: 'Read the live App Store texts (name, subtitle, description, keywords, promotional text, what\'s new per locale) and diff them against the App Store listing file. dry_run shows the diff; with dry_run false the file is updated (local file only).', + props: { version: { type: 'string', pattern: '^\\d+(\\.\\d+){0,2}$', description: 'Version to read (default: the editable one, else the newest)' } }, + args: i => [...opt('version', i.version), '--json', ...(i.dry_run === false ? ['--write'] : [])] }, + { name: 'play_listing_pull', title: 'Pull Google Play texts', command: ['play', 'listing', 'pull'], write: true, network: true, idempotent: true, + description: 'Read the live Play listings (title, short and full description per language; one throwaway edit, deleted) and diff them against the Play listing file. dry_run shows the diff; with dry_run false the file is updated (local file only).', + args: i => ['--json', ...(i.dry_run === false ? ['--write'] : [])] }, + { name: 'catalog_pull', title: 'Pull IAP and subscription texts', command: ['catalog', 'pull'], write: true, network: true, idempotent: true, + description: 'Store titles and descriptions (Play: benefits) of in-app purchases and subscriptions vs the config listings, as a proposal diff. storebound.config.ts is never rewritten; with dry_run false the proposal is saved to .storebound/pull/catalog.json.', + props: { store: { type: 'string', enum: ['apple', 'play'] } }, args: i => [...opt('store', i.store), '--json', ...(i.dry_run === false ? ['--write'] : [])] }, + { name: 'whats_new_languages', title: 'Release notes per language', command: ['whats-new'], write: true, network: false, idempotent: true, + description: 'Draft release notes from git into one file per language (store/whats-new/.md): the first language gets the draft, the others status=translate files for you to translate (keep the header line, set status=translated). Then whats_new_check and whats_new_apply. Local files only.', + props: { languages: { type: 'string', pattern: '^[A-Za-z0-9_-]+(,[A-Za-z0-9_-]+)*$', description: 'Comma-separated language ids or store codes, source language first' }, since: { type: 'string', description: 'Git tag or ref (default: latest tag)' } }, + required: ['languages'], args: i => [...opt('languages', i.languages), ...opt('since', i.since), '--json'] }, + { name: 'whats_new_check', title: 'Check release notes per language', command: ['whats-new', 'check'], write: false, network: false, + description: 'Offline: the per-language release notes files against the store limits (Google Play 500, App Store 4000 characters), untranslated or identical-to-source files, long first lines.', + args: () => ['--json'] }, + { name: 'whats_new_apply', title: 'Apply release notes per language', command: ['whats-new', 'apply'], write: true, network: false, idempotent: true, + description: 'Write the checked per-language release notes into both listing files (Play "What\'s new" per Play code, App Store whatsNew per locale). Refuses while a language is over a limit or untranslated. Local files only; nothing is sent to a store.', + args: () => ['--json'] }, + { name: 'reports', title: 'Sales and finance reports', command: ['reports'], write: true, network: true, idempotent: true, + description: 'Download a sales or finance report into .storebound/reports/ (gitignored) and print a summary per product and currency (amounts never added across currencies) plus a summary CSV. Apple needs ASC_VENDOR_NUMBER and a team key; Play needs play.reportsBucket and "View financial data". dry_run shows the request only.', + props: { kind: { type: 'string', enum: ['apple-sales', 'apple-finance', 'play-earnings', 'play-sales'] }, month: { type: 'string', pattern: '^\\d{4}-\\d{2}$', description: 'YYYY-MM (apple-finance: Apple fiscal month; Play reports)' }, + date: { type: 'string', pattern: '^\\d{4}(-\\d{2}(-\\d{2})?)?$', description: 'apple-sales report date (DAILY / WEEKLY YYYY-MM-DD, MONTHLY YYYY-MM, YEARLY YYYY)' }, + frequency: { type: 'string', enum: ['DAILY', 'WEEKLY', 'MONTHLY', 'YEARLY'] }, type: { type: 'string', enum: ['SALES', 'PRE_ORDER', 'SUBSCRIPTION', 'SUBSCRIPTION_EVENT', 'SUBSCRIBER', 'SUBSCRIPTION_OFFER_CODE_REDEMPTION', 'WIN_BACK_ELIGIBILITY'] } }, + required: ['kind'], args: i => [String(i.kind), ...opt('month', i.month), ...opt('date', i.date), ...opt('frequency', i.frequency), ...opt('type', i.type), '--json'] }, + { name: 'triage', title: 'Crash and feedback triage', command: ['triage'], write: false, network: true, + description: 'Read-only: TestFlight crash reports (signature from each crash log), TestFlight screenshot feedback and Google Play error reports of the top issues, grouped by signature with their top devices, OS versions and builds. Tester emails are never read.', + props: { store: { type: 'string', enum: ['both', 'apple', 'play'], default: 'both' }, days: { type: 'integer', minimum: 1, maximum: 90, default: 14 }, build: { type: 'string', pattern: '^[0-9][0-9.]*$' }, + issues: { type: 'integer', minimum: 1, maximum: 50, default: 10 } }, + args: i => [...(i.store === 'apple' ? ['--apple'] : i.store === 'play' ? ['--play'] : []), ...opt('days', i.days), ...opt('build', i.build), ...opt('issues', i.issues), '--json'] }, + { name: 'aso_rank', title: 'App Store keyword ranks', command: ['aso', 'rank'], write: true, network: true, idempotent: true, + description: 'Rank of the app per keyword (the keyword field of store/appstore.md, plus extra keywords) and storefront in Apple\'s public iTunes Search API results, with the top competitors. One request every 3.5 s (Apple allows about 20 a minute). dry_run lists the queries; with dry_run false it queries and saves .storebound/aso/.json. Search API order is close to, not equal to, App Store search.', + props: { storefronts: { type: 'string', pattern: '^[a-z]{2}(=[A-Za-z-]+)?(,[a-z]{2}(=[A-Za-z-]+)?)*$', description: 'e.g. us,de=de-DE (default us)' }, keywords: { type: 'string', description: 'Extra keywords, comma-separated' }, + competitors: { type: 'integer', minimum: 0, maximum: 10, default: 3 } }, + args: i => [...opt('storefronts', i.storefronts), ...opt('keywords', i.keywords), ...opt('competitors', i.competitors), '--json'] }, + { name: 'ads_scan', title: 'AdAttributionKit scan', command: ['ads', 'scan'], write: false, network: false, + description: 'Local scan of an iOS project for AdAttributionKit and SKAdNetwork: ad network ids (SKAdNetworkItems, AdNetworkIdentifiers, lowercase), postback copy endpoints (AttributionCopyEndpoint, re-engagement copies, NSAdvertisingAttributionReportEndpoint), attribution windows and cooldown, conversion value updates in code, ad SDKs without ids.', + props: { ios: { type: 'string', description: 'Path of the iOS project folder, e.g. ios/App' } }, required: ['ios'], args: i => [...opt('ios', i.ios), '--json'] }, + { name: 'apple_cpp_list', title: 'Custom product pages', command: ['apple', 'cpp', 'list'], write: false, network: true, + description: 'Read-only list of the App Store custom product pages (visible or not, version state, URL) and the configured ones not created yet (at most 70 per app).', args: () => ['--json'] }, + { name: 'apple_cpp_create', title: 'Create custom product pages', command: ['apple', 'cpp', 'create'], write: true, network: true, idempotent: true, + description: 'Create the custom product pages of apple.customProductPages that are missing (with a localization per App Store locale, promotional text, deep link) and update editable ones. Nothing is shown to customers: submitting a page and making it visible are owner-only terminal commands.', + props: { name: { type: 'string', description: 'Only this page' } }, args: i => opt('name', i.name) }, + { name: 'apple_cpp_upload', title: 'Upload custom product page screenshots', command: ['apple', 'cpp', 'upload'], write: true, destructive: true, network: true, idempotent: true, + description: 'Sync the screenshots of a custom product page from the renders of its shots variant, per locale (MD5-idempotent; changed sets are replaced). Only on an editable page version.', + props: { name: { type: 'string', description: 'Page name from apple.customProductPages' }, only }, required: ['name'], args: i => [...opt('name', i.name), ...opt('only', i.only)] }, + { name: 'apple_events_list', title: 'In-app events', command: ['apple', 'events', 'list'], write: false, network: true, + description: 'Read-only list of the App Store in-app events (badge, state, schedule) and the configured ones not created yet (10 published / 15 approved per app).', args: () => ['--json'] }, + { name: 'apple_events_create', title: 'Create in-app events', command: ['apple', 'events', 'create'], write: true, network: true, idempotent: true, + description: 'Create the in-app events of apple.events that are missing (reference name, badge, purpose, priority, deep link, schedule, localizations with name 30 / short 50 / long 120 characters) and update draft ones. Sending an event to App Review is an owner-only terminal command.', + props: { name: { type: 'string', description: 'Only this event (reference name)' } }, args: i => opt('name', i.name) }, + { name: 'apple_events_upload', title: 'Upload in-app event images', command: ['apple', 'events', 'upload'], write: true, destructive: true, network: true, idempotent: true, + description: 'Upload the event card (16:9, 1920x1080 to 3840x2160) and details page (9:16) images of one draft in-app event per locale, size-checked first.', + props: { name: { type: 'string', description: 'Reference name from apple.events' } }, required: ['name'], args: i => opt('name', i.name) }, + { name: 'apple_preorder_status', title: 'App Store pre-order status', command: ['apple', 'preorder', 'status'], write: false, network: true, + description: 'Read-only: per territory whether the app is available, its release date, pre-order on / off and its content status. Enabling or ending a pre-order is an owner-only terminal command.', args: () => ['--json'] }, ]; /** CLI flags / commands that must never be reachable through MCP. Tests assert none of the tools can produce them. */ diff --git a/cli/play/listing.ts b/cli/play/listing.ts index 6beafb18..e8024f81 100644 --- a/cli/play/listing.ts +++ b/cli/play/listing.ts @@ -6,11 +6,15 @@ // Listings: title, short and full description of every `` section of the listing file, plus the promo // video (play.video, a YouTube URL) on every language. Play has no video upload: make the video with // `storebound shots video --target youtube`, upload it to YouTube (public or unlisted, ads off, embeddable), paste the URL. -import { readFileSync } from 'node:fs'; +// And the other way round (read-only on Play, one throwaway edit that is deleted): +// storebound play listing pull [--write] [--json] live listings -> diff -> (with --write) the Play listing file +import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import { parsePlayListing } from '../lib/copy'; +import { compactDiff } from '../lib/diff'; +import { mergePlayListing, overLimits } from '../lib/listing-pull'; import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; -import { done, log, step } from '../lib/log'; +import { done, log, printJson, step, warn } from '../lib/log'; import { playClient } from './client'; export function readPlayCopy(ctx: Ctx) { @@ -47,8 +51,33 @@ export function detailsChanges(current: Record, want return Object.keys(wanted).filter(k => (current[k] ?? '') !== (wanted[k] ?? '')); } +async function pull(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const play = await playClient(root, need(config.play?.packageName, 'play.packageName')); + const now = await play.read(async id => (await play.call<{ listings?: PlayListing[] }>('GET', `${play.API}/edits/${id}/listings`)).listings ?? []); + const file = resolve(config.play?.listing ?? 'store/listing.md'); + const before = existsSync(file) ? readFileSync(file, 'utf8') : '# Google Play listing copy\n\nPulled from Google Play by `storebound play listing pull`.\n'; + const r = mergePlayListing(before, now, config.app.name); + const over = overLimits(r.changes, 'play'); + const diff = compactDiff(before, r.md); + if (a.has('json')) printJson({ file, write: a.has('write') && !a.has('dry'), languages: now.map(l => l.language), changes: r.changes, added: r.added, conflicts: r.conflicts, overLimits: over, diff }); + else { + log('play', `pull: ${now.length} listing(s) on Play`); + for (const ch of r.changes) log('play', `${ch.section} ${ch.field}: ${ch.from === null ? 'new' : 'changed'}`); + if (diff.length) console.log(diff.join('\n')); + } + for (const c of r.conflicts) warn('play', c); + for (const o of over) warn('play', `over the limit on the store: ${o}`); + if (!r.changes.length) { done('play', `${file} already matches the store`); return; } + if (!a.has('write') || a.has('dry')) { done('play', `${r.changes.length} change(s); nothing written (add --write to update ${file})`); return; } + writeFileSync(file, r.md); + done('play', `${file}: ${r.changes.length} change(s) written${r.added.length ? `, new languages ${r.added.join(', ')}` : ''}`); +} + export async function run(ctx: Ctx): Promise { const { config, root } = ctx.loaded; + if (ctx.args._[0] === 'pull') return pull(ctx); const pkg = need(config.play?.packageName, 'play.packageName'); const copy = readPlayCopy(ctx); const details = { defaultLanguage: config.play?.defaultLanguage ?? 'en-US', contactEmail: config.app.contactEmail, contactWebsite: config.app.website }; diff --git a/cli/reports.ts b/cli/reports.ts new file mode 100644 index 00000000..8ef0fbc8 --- /dev/null +++ b/cli/reports.ts @@ -0,0 +1,121 @@ +// Sales and finance reports of both stores into .storebound/reports/ (gitignored), with a summary table and a CSV export. +// storebound reports apple-sales [--type SALES] [--frequency DAILY|WEEKLY|MONTHLY|YEARLY] [--date ...] [--vendor N] +// storebound reports apple-finance --month YYYY-MM [--detail] [--region ZZ] [--vendor N] +// storebound reports play-earnings --month YYYY-MM +// storebound reports play-sales --month YYYY-MM +// common: [--out .storebound/reports] [--csv ] [--dry] [--json] +// The raw report is saved as it came (the TSV / the CSV out of the zip) next to a .summary.csv with only +// aggregates (per product and currency; amounts are never added across currencies). --dry prints what would be +// fetched and fetches nothing. Apple needs a team API key (not an individual key) with access to reports and the vendor +// number (ASC_VENDOR_NUMBER in env or .storebound/credentials.json; --vendor). Play needs play.reportsBucket and the +// service account with "View financial data". Read-only on both stores. Pure parts and sources: cli/lib/reports.ts. +import { mkdirSync, writeFileSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { ascClient } from './apple/asc'; +import { bucketName } from './lib/analytics'; +import { ascVendorNumber } from './lib/credentials'; +import type { Ctx } from './lib/ctx'; +import { need } from './lib/ctx'; +import { toCsv } from './lib/csv'; +import { STORAGE_READ_SCOPE } from './lib/google-auth'; +import { done, log, printJson, warn } from './lib/log'; +import { + APPLE_SALES_COMBOS, appleFinancePath, appleReportDate, appleSalesPath, decodeReport, parsePlayCsv, parseTsv, playReportPrefix, type SummaryRow, summarizeAppleFinance, + summarizeAppleSales, summarizePlayEarnings, summarizePlaySales, summaryCsvRows, totalsByCurrency, +} from './lib/reports'; +import { textTable } from './lib/table'; +import { unzip } from './lib/zip'; +import { googleClient } from './play/google'; + +const TAG = 'reports'; +const USAGE = 'usage: storebound reports apple-sales | apple-finance --month YYYY-MM | play-earnings --month YYYY-MM | play-sales --month YYYY-MM'; + +function show(name: string, rows: SummaryRow[], json: boolean, extra: Record): void { + const totals = totalsByCurrency(rows); + if (json) { printJson({ report: name, ...extra, summary: rows, totals }); return; } + console.log(rows.length ? textTable(['product', 'title', 'currency', 'units', 'amount'], rows.map(r => [r.key, r.title.slice(0, 30), r.currency, r.units, r.amount.toFixed(2)])) : 'no rows'); + if (totals.length) console.log('\n' + textTable(['currency', 'units', 'total'], totals.map(t => [t.currency, t.units, t.amount.toFixed(2)]))); +} + +function save(dir: string, name: string, raw: string | Uint8Array, rows: SummaryRow[], csvOut: string | undefined): { raw: string; summary: string } { + mkdirSync(dir, { recursive: true }); + const rawFile = join(dir, name); + writeFileSync(rawFile, raw); + const summary = csvOut ?? join(dir, name.replace(/\.(tsv|csv|txt)$/, '') + '.summary.csv'); + mkdirSync(dirname(summary), { recursive: true }); + writeFileSync(summary, toCsv(summaryCsvRows(rows))); + return { raw: rawFile, summary }; +} + +export async function run(ctx: Ctx): Promise { + const { config, root, resolve } = ctx.loaded; + const a = ctx.args; + const sub = a._[0]; + if (!sub) throw new Error(USAGE); + const dry = a.has('dry'); + const out = resolve(a.get('out') ?? '.storebound/reports'); + const csvOut = a.get('csv') ? resolve(a.get('csv')!) : undefined; + + if (sub === 'apple-sales' || sub === 'apple-finance') { + const vendor = a.get('vendor') ?? ascVendorNumber(root); + if (!vendor || !/^\d{5,12}$/.test(vendor)) throw new Error('vendor number missing: ASC_VENDOR_NUMBER in env or .storebound/credentials.json, or --vendor (App Store Connect > Payments and Financial Reports)'); + let path: string, name: string; + if (sub === 'apple-sales') { + const type = a.str('type', 'SALES').toUpperCase(); + const frequency = a.str('frequency', APPLE_SALES_COMBOS[type]?.frequencies[0] ?? 'DAILY').toUpperCase(); + const date = appleReportDate(frequency, a.get('date')); + path = appleSalesPath(vendor, { type, frequency, date }); + name = `apple-${type.toLowerCase()}-${frequency.toLowerCase()}-${date}.tsv`; + } else { + const month = need(a.get('month'), '--month YYYY-MM'); + const type = a.has('detail') ? 'FINANCE_DETAIL' as const : 'FINANCIAL' as const; + path = appleFinancePath(vendor, month, { type, region: a.get('region') }); + name = `apple-${type === 'FINANCIAL' ? 'finance' : 'finance-detail'}-${month}.tsv`; + } + const shown = path.replace(vendor, ''); + if (dry) { if (a.has('json')) printJson({ dryRun: true, request: `GET ${shown}`, file: join(out, name) }); else log(TAG, `would GET ${shown} -> ${join(out, name)}`); return; } + const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId); + log(TAG, `GET ${shown}`); + const gz = await c.bytes(path); + if (!gz) { done(TAG, 'no report for that date (no sales then, or not published yet: daily reports come out the next day, monthly ones about a week later)'); if (a.has('json')) printJson({ report: name, empty: true }); return; } + const text = new TextDecoder().decode(gz[0] === 0x1f && gz[1] === 0x8b ? Bun.gunzipSync(gz as Uint8Array) : gz); + const rows = parseTsv(text); + const summary = sub === 'apple-sales' ? (a.str('type', 'SALES').toUpperCase() === 'SALES' ? summarizeAppleSales(rows) : []) : summarizeAppleFinance(rows); + const files = save(out, name, text, summary, csvOut); + show(name, summary, a.has('json'), { rows: rows.length, files }); + if (sub === 'apple-sales' && a.str('type', 'SALES').toUpperCase() !== 'SALES') log(TAG, `${rows.length} rows saved; the summary table covers SALES reports, open the TSV for this type`); + done(TAG, `${rows.length} rows -> ${files.raw}; summary ${files.summary}`); + return; + } + + if (sub === 'play-earnings' || sub === 'play-sales') { + const bucket = config.play?.reportsBucket; + if (!bucket) throw new Error('play.reportsBucket is not set (Play Console > Download reports > Financial > Copy Cloud Storage URI)'); + const month = need(a.get('month'), '--month YYYY-MM'); + const kind = sub === 'play-earnings' ? 'earnings' : 'sales'; + const prefix = playReportPrefix(kind, month); + const list = `https://storage.googleapis.com/storage/v1/b/${encodeURIComponent(bucketName(bucket))}/o?prefix=${encodeURIComponent(prefix)}`; + if (dry) { if (a.has('json')) printJson({ dryRun: true, request: `GET gs://${bucketName(bucket)}/${prefix}*.zip`, dir: out }); else log(TAG, `would read gs://${bucketName(bucket)}/${prefix}*.zip -> ${out}`); return; } + const g = googleClient(root, STORAGE_READ_SCOPE); + const items = ((await g.json<{ items?: { name: string }[] }>('GET', list)).items ?? []).filter(o => o.name.endsWith('.zip')); + if (!items.length) { done(TAG, `no ${prefix}*.zip in the bucket (not published yet: earnings come early in the next month; or the service account lacks "View financial data")`); if (a.has('json')) printJson({ report: kind, month, empty: true }); return; } + const all: Record[] = []; + let text = ''; + for (const o of items) { + log(TAG, `gs://${bucketName(bucket)}/${o.name}`); + const zip = await g.bytes(`https://storage.googleapis.com/storage/v1/b/${encodeURIComponent(bucketName(bucket))}/o/${encodeURIComponent(o.name)}?alt=media`); + for (const e of unzip(zip).filter(x => x.name.toLowerCase().endsWith('.csv'))) { + const t = decodeReport(e.data); + text += (text ? '\n' : '') + t; + all.push(...parsePlayCsv(t)); + } + } + if (!all.length) warn(TAG, 'the zip(s) held no CSV rows'); + const summary = kind === 'earnings' ? summarizePlayEarnings(all) : summarizePlaySales(all); + const files = save(out, `play-${kind}-${month}.csv`, text, summary, csvOut); + show(`play-${kind}-${month}`, summary, a.has('json'), { rows: all.length, files }); + done(TAG, `${all.length} rows -> ${files.raw}; summary ${files.summary}`); + return; + } + throw new Error(`unknown reports command "${sub}"\n${USAGE}`); +} diff --git a/cli/triage.ts b/cli/triage.ts new file mode 100644 index 00000000..ef450e5d --- /dev/null +++ b/cli/triage.ts @@ -0,0 +1,96 @@ +// Crash and feedback triage: TestFlight crash and screenshot feedback, and Google Play vitals error reports, grouped +// by signature with their top devices, OS versions and builds. Read-only on both stores. +// storebound triage [--apple] [--play] [--days 14] [--build N] [--issues 10] [--comments 3] [--dry] [--json] +// Apple: crash feedback -> the crash log of each (signature = exception + first app frame of the crashed thread); +// screenshot feedback grouped by device / OS / build (--comments N shows up to N tester comments per group, cut to +// 120 characters; emails are never read). Play: the top --issues issues of the window (Play's own clusters), then +// their error reports for the device / API level / versionCode spread. --dry lists the requests without sending. +// Pure parts and sources: cli/lib/triage.ts. +import { ascClient, type J } from './apple/asc'; +import type { Ctx } from './lib/ctx'; +import { REPORTING_SCOPE } from './lib/google-auth'; +import { issuesQuery, ymd } from './lib/health'; +import { done, log, printJson, warn } from './lib/log'; +import { textTable } from './lib/table'; +import { CRASH_FIELDS, cluster, type Cluster, clusterRows, crashSignature, FEEDBACK_FIELDS, feedbackItems, playIssues, playReportItems, reportsQuery } from './lib/triage'; +import { googleClient, REPORTING_API } from './play/google'; + +const TAG = 'triage'; + +export async function run(ctx: Ctx): Promise { + const { config, root } = ctx.loaded; + const a = ctx.args; + const both = !a.has('apple') && !a.has('play'); + const days = a.num('days', 14); + if (!(days >= 1 && days <= 90)) throw new Error('--days: 1-90'); + const dry = a.has('dry'); + const since = new Date(Date.now() - days * 86_400_000).toISOString(); + const result: { apple?: { crashes: Cluster[]; feedback: Cluster[] } | { error: string }; play?: { issues: Cluster[] } | { error: string } } = {}; + + if ((both || a.has('apple')) && config.apple) { + try { + const c = await ascClient(root, config.apple.bundleId, config.apple.appId); + const appId = dry ? '' : await c.app(); + const buildFilter = a.get('build'); + let buildIds: string[] = []; + const builds = new Map(); + if (!dry) for (const b of (await c.asc('GET', `/v1/builds?filter[app]=${appId}&sort=-uploadedDate&limit=200${buildFilter ? `&filter[version]=${encodeURIComponent(buildFilter)}` : ''}`)).data as J[]) builds.set(b.id, b.attributes.version); + buildIds = [...builds.keys()]; + if (buildFilter && !dry && !buildIds.length) throw new Error(`no build ${buildFilter}`); + const q = (fields: string, kind: string) => `/v1/apps/${appId}/${kind}?sort=-createdDate&limit=200&include=build&fields[builds]=version&fields[${kind}]=${fields}${buildFilter && buildIds.length ? `&filter[build]=${buildIds.join(',')}` : ''}`; + if (dry) { + log(TAG, `would GET ${q(CRASH_FIELDS, 'betaFeedbackCrashSubmissions')} + each crashLog`); + log(TAG, `would GET ${q(FEEDBACK_FIELDS, 'betaFeedbackScreenshotSubmissions')}`); + } else { + const recent = (xs: J[]) => xs.filter(x => (x.attributes?.createdDate ?? '') >= since); + const crashes = recent(await c.all(q(CRASH_FIELDS, 'betaFeedbackCrashSubmissions'))); + log(TAG, `apple: ${crashes.length} TestFlight crash report(s) in ${days} days`); + const sigs = new Map(); + for (const s of crashes) { + const logText = (await c.maybe(`/v1/betaFeedbackCrashSubmissions/${s.id}/crashLog`))?.data?.attributes?.logText as string | undefined; + sigs.set(s.id, logText ? crashSignature(logText) : 'crash (no log)'); + } + const shots = recent(await c.all(q(FEEDBACK_FIELDS, 'betaFeedbackScreenshotSubmissions'))); + log(TAG, `apple: ${shots.length} TestFlight screenshot feedback(s)`); + const comments = a.num('comments', 0); + const fb = feedbackItems(shots, builds).map(i => ({ ...i, signature: `feedback on ${i.device}` })); + result.apple = { crashes: cluster(feedbackItems(crashes, builds, sigs)), feedback: cluster(fb, { comments }) }; + } + } catch (e) { result.apple = { error: (e as Error).message }; warn(TAG, `apple: ${(e as Error).message.slice(0, 300)}`); } + } + + if ((both || a.has('play')) && config.play) { + try { + const app = `${REPORTING_API}/apps/${encodeURIComponent(config.play.packageName)}`; + const end = ymd(new Date(), 0); + const iq = issuesQuery(end, days, { pageSize: a.num('issues', 10) }); + if (dry) log(TAG, `would GET ${app}/errorIssues:search?${iq} + errorReports:search per issue`); + else { + const g = googleClient(root, REPORTING_SCOPE); + const issues = playIssues(await g.json('GET', `${app}/errorIssues:search?${iq}`)); + log(TAG, `play: ${issues.length} top issue(s) in ${days} days`); + const items = []; + const startD = new Date(Date.UTC(end.year, end.month - 1, end.day) - days * 86_400_000), endD = new Date(Date.UTC(end.year, end.month - 1, end.day)); + for (const i of issues) items.push(...playReportItems(await g.json('GET', `${app}/errorReports:search?${reportsQuery(i.id, startD, endD)}`), issues)); + const cs = cluster(items); + // issues with no sampled reports still show with Play's own counts + for (const i of issues) { + const s = `${i.type} ${i.cause}${i.location ? ` @ ${i.location}` : ''}`; + if (!cs.some(c => c.signature === s)) cs.push({ signature: s, count: 0, devices: [], os: [], builds: [] }); + } + result.play = { issues: cs.map(c => ({ ...c, ...(() => { const i = issues.find(x => c.signature.startsWith(`${x.type} ${x.cause}`)); return i ? { reports: i.reports, users: i.users } : {}; })() })) }; + } + } catch (e) { result.play = { error: (e as Error).message }; warn(TAG, `play: ${(e as Error).message.slice(0, 300)}`); } + } + + if (dry) { if (a.has('json')) printJson({ dryRun: true }); done(TAG, 'dry run: nothing read'); return; } + if (a.has('json')) { printJson(result); return; } + const head = ['n', 'signature', 'devices', 'os', 'builds']; + if (result.apple && !('error' in result.apple)) { + console.log(`\nTestFlight crashes (${days} days)\n` + (result.apple.crashes.length ? textTable(head, clusterRows(result.apple.crashes)) : 'none')); + console.log(`\nTestFlight feedback (${days} days)\n` + (result.apple.feedback.length ? textTable(head, clusterRows(result.apple.feedback)) : 'none')); + for (const c of result.apple.feedback) for (const t of c.comments ?? []) console.log(` ${c.signature}: "${t}"`); + } + if (result.play && !('error' in result.play)) console.log(`\nGoogle Play crashes and ANRs (${days} days; n = sampled reports)\n` + (result.play.issues.length ? textTable(head, clusterRows(result.play.issues)) : 'none')); + done(TAG, 'triage done (fix the top signature first; storebound health for the rates)'); +} diff --git a/cli/whats-new.ts b/cli/whats-new.ts index caacf3ee..3c3713e0 100644 --- a/cli/whats-new.ts +++ b/cli/whats-new.ts @@ -5,10 +5,78 @@ // --since: default the latest tag (git describe --tags --abbrev=0); --lang: the Play code / App Store locale to write // (default: the Play default language and the first App Store locale); --all: write the same draft into every // language (to translate afterwards; `storebound check` warns while they are identical). -import { readFileSync, writeFileSync } from 'node:fs'; +// +// Many languages, one file each (the CLI never calls a translation service and needs no key for one): +// storebound whats-new --languages en-US,de-DE,tr [--dir store/whats-new] [--translate ""] [--force] [--dry] [--json] +// the draft goes into the first language's file (status=source); every other language gets a file with the +// source text and status=translate for your agent to translate (whats-new skill), or the output of --translate: +// a command of yours run once per language with the source text on stdin and STOREBOUND_SOURCE_LANG / +// STOREBOUND_TARGET_LANG (App Store locale, else Play code, else language id) in the environment; its stdout is +// the translation. Existing translated files are kept unless --force. +// storebound whats-new check [--dir store/whats-new] [--json] limits per store (Play 500, App Store 4000), untranslated files +// storebound whats-new apply [--dir store/whats-new] [--dry] [--json] checked files -> both listing files +import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs'; +import { join } from 'node:path'; +import type { Language } from './lib/config'; +import { playCodes } from './lib/config'; import type { Ctx } from './lib/ctx'; -import { log, warn } from './lib/log'; -import { checkNotes, formatNotes, NOTES_LIMITS, noteItems, setAppleWhatsNew, setPlayWhatsNew } from './lib/whats-new'; +import { done, log, printJson, warn } from './lib/log'; +import { textTable } from './lib/table'; +import { + applyLanguageNotes, checkLanguageNotes, checkNotes, formatNotes, type LangCheck, NOTES_LIMITS, type NotesFile, noteItems, notesFileText, parseNotesFile, + resolveLanguages, setAppleWhatsNew, setPlayWhatsNew, +} from './lib/whats-new'; + +const TAG = 'whats-new'; +const storeCode = (l: Language): string => l.apple ?? playCodes(l)[0] ?? l.id; + +/** The language files of a notes folder, in config order. */ +function readDir(dir: string, langs: Language[]): { l: Language; f: NotesFile }[] { + if (!existsSync(dir)) throw new Error(`no ${dir} (storebound whats-new --languages ... writes it)`); + const names = new Set(readdirSync(dir).filter(n => n.endsWith('.md')).map(n => n.slice(0, -3))); + return langs.filter(l => names.has(l.id)).map(l => ({ l, f: parseNotesFile(readFileSync(join(dir, `${l.id}.md`), 'utf8'), l.id) })); +} + +function checkAll(files: { l: Language; f: NotesFile }[]): LangCheck[] { + const src = files.find(x => x.f.status === 'source'); + return files.map(x => checkLanguageNotes(x.l, x.f, src && src !== x ? src.f.text : undefined)); +} + +function printChecks(checks: LangCheck[]): void { + console.log(textTable(['language', 'chars', 'play (500)', 'app store (4000)', 'problems'], checks.map(c => [c.lang, c.chars, + c.play ? (c.play.ok ? 'ok' : 'OVER') : '-', c.apple ? (c.apple.ok ? 'ok' : 'OVER') : '-', c.problems.join('; ')]))); +} + +async function languagesFlow(ctx: Ctx, draft: { play: string; apple: string }): Promise { + const { config, resolve } = ctx.loaded; + const a = ctx.args; + const dir = resolve(a.get('dir') ?? 'store/whats-new'); + const langs = resolveLanguages(config.languages, a.list('languages')); + const [src, ...rest] = langs; + // the source text: the shorter Play draft when the source language is on Play (it has to fit 500) + const text = playCodes(src!).length ? draft.play : draft.apple; + const files: { l: Language; f: NotesFile; write: boolean; note: string }[] = [{ l: src!, f: { lang: src!.id, source: src!.id, status: 'source', text }, write: true, note: 'draft (source)' }]; + const hook = a.get('translate'); + for (const l of rest) { + const path = join(dir, `${l.id}.md`); + const cur = existsSync(path) ? parseNotesFile(readFileSync(path, 'utf8'), l.id) : null; + if (cur && cur.status === 'translated' && !a.has('force')) { files.push({ l, f: cur, write: false, note: 'kept (translated; --force replaces it)' }); continue; } + if (hook && !a.has('dry')) { + const r = Bun.spawnSync(['sh', '-c', hook], { stdin: new TextEncoder().encode(text), stdout: 'pipe', stderr: 'pipe', + env: { ...process.env, STOREBOUND_SOURCE_LANG: storeCode(src!), STOREBOUND_TARGET_LANG: storeCode(l), STOREBOUND_TARGET_LANG_ID: l.id } }); + const out = r.stdout.toString().trim(); + if (r.exitCode !== 0 || !out) { warn(TAG, `${l.id}: --translate failed (exit ${r.exitCode}): ${r.stderr.toString().trim().slice(0, 200)}`); files.push({ l, f: { lang: l.id, source: src!.id, status: 'translate', text }, write: true, note: 'to translate (hook failed)' }); continue; } + files.push({ l, f: { lang: l.id, source: src!.id, status: 'translated', text: out }, write: true, note: 'translated by the hook' }); + } else files.push({ l, f: { lang: l.id, source: src!.id, status: 'translate', text }, write: true, note: hook ? 'would run the --translate hook' : 'to translate (your agent: whats-new skill)' }); + } + const checks = checkAll(files.map(x => ({ l: x.l, f: x.f }))); + if (a.has('json')) printJson({ dir, dryRun: a.has('dry'), files: files.map((x, i) => ({ lang: x.l.id, file: join(dir, `${x.l.id}.md`), status: x.f.status, write: x.write, note: x.note, check: checks[i] })) }); + else { for (const x of files) log(TAG, `${join(dir, `${x.l.id}.md`)}: ${x.note}`); printChecks(checks); } + if (a.has('dry')) { done(TAG, 'dry run: nothing written'); return; } + mkdirSync(dir, { recursive: true }); + for (const x of files) if (x.write) writeFileSync(join(dir, `${x.l.id}.md`), notesFileText(x.f)); + done(TAG, `${files.filter(x => x.write).length} file(s) in ${dir}; translate the status=translate ones, then storebound whats-new apply`); +} function git(args: string[], cwd: string): string { const r = Bun.spawnSync(['git', ...args], { cwd, stdout: 'pipe', stderr: 'pipe' }); @@ -19,6 +87,31 @@ function git(args: string[], cwd: string): string { export async function run(ctx: Ctx): Promise { const { config, root, resolve } = ctx.loaded; const a = ctx.args; + if (a._[0] === 'check' || a._[0] === 'apply') { + const dir = resolve(a.get('dir') ?? 'store/whats-new'); + const files = readDir(dir, config.languages); + if (!files.length) throw new Error(`${dir}: no .md files`); + const checks = checkAll(files); + const bad = checks.filter(c => c.problems.some(p => !p.startsWith('first line'))); + if (a._[0] === 'check' || bad.length) { + if (a.has('json')) printJson({ dir, checks, ok: !bad.length }); + else printChecks(checks); + if (bad.length) { process.exitCode = 1; done(TAG, `${bad.length} language(s) not ready: ${bad.map(c => c.lang).join(', ')}${a._[0] === 'apply' ? '; nothing written' : ''}`); return; } + if (a._[0] === 'check') { done(TAG, `${checks.length} language(s) within the store limits`); return; } + } + const playFile = config.play ? resolve(config.play.listing ?? 'store/listing.md') : undefined; + const appleFile = config.apple ? resolve(config.apple.listing ?? 'store/appstore.md') : undefined; + let md: { play?: string; apple?: string } = { play: playFile ? readFileSync(playFile, 'utf8') : undefined, apple: appleFile ? readFileSync(appleFile, 'utf8') : undefined }; + const changed: string[] = []; + for (const { l, f } of files) { const r = applyLanguageNotes(md, l, f.text); md = { play: r.play, apple: r.apple }; changed.push(...r.changed); } + if (a.has('json')) printJson({ dir, checks, dryRun: a.has('dry'), changed }); + else { printChecks(checks); log(TAG, `sections: ${changed.join(', ') || 'none (no matching listing sections)'}`); } + if (a.has('dry')) { done(TAG, 'dry run: listing files not written'); return; } + if (playFile && md.play !== undefined) writeFileSync(playFile, md.play); + if (appleFile && md.apple !== undefined) writeFileSync(appleFile, md.apple); + done(TAG, `release notes of ${files.length} language(s) written into the listing files; push them with play release / apple listing`); + return; + } const since = a.get('since') ?? (() => { try { return git(['describe', '--tags', '--abbrev=0'], root).trim(); } catch { return ''; } })(); const range = since ? `${since}..HEAD` : 'HEAD'; const subjects = git(['log', range, '--no-merges', '--format=%s'], root).split('\n').filter(Boolean); @@ -28,7 +121,9 @@ export async function run(ctx: Ctx): Promise { const play = formatNotes(items, { hook, limit: NOTES_LIMITS.play }); const apple = formatNotes(items, { hook, limit: NOTES_LIMITS.apple }); for (const [store, text] of [['play', play], ['apple', apple]] as const) for (const p of checkNotes(text, store)) warn('whats-new', `${store}: ${p}`); - console.log(`--- draft (Play, ${[...play].length}/500) ---\n${play}\n---`); + if (a.has('languages')) return languagesFlow(ctx, { play, apple }); + if (a.has('json')) printJson({ since: since || null, commits: subjects.length, items, play, apple, limits: NOTES_LIMITS }); + else console.log(`--- draft (Play, ${[...play].length}/500) ---\n${play}\n---`); if (a.has('dry')) return; const all = a.has('all'); diff --git a/skills/ads-mediation-checks/SKILL.md b/skills/ads-mediation-checks/SKILL.md index 3cb97889..a76b5dc5 100644 --- a/skills/ads-mediation-checks/SKILL.md +++ b/skills/ads-mediation-checks/SKILL.md @@ -1,12 +1,12 @@ --- name: ads-mediation-checks -description: Diagnose and verify ad mediation in a mobile app or game before and after store release - Google AdMob (Ad Inspector), AppLovin MAX (Mediation Debugger) and Unity LevelPlay / ironSource (validateIntegration) with their networks - app ids and ad unit ids, adapter versions, test devices, no-fill before launch, app-ads.txt on the developer website, SKAdNetwork ids, ATT, privacy manifests, consent, COPPA and Data safety / App Privacy answers. Use when ads do not load, a network reports invalid ids, the user adds an ad SDK, or prepares ads for launch. +description: Diagnose and verify ad mediation in a mobile app or game before and after store release - Google AdMob (Ad Inspector), AppLovin MAX (Mediation Debugger) and Unity LevelPlay / ironSource (validateIntegration) with their networks - app ids and ad unit ids, adapter versions, test devices, no-fill before launch, app-ads.txt on the developer website, SKAdNetwork ids, AdAttributionKit (ad network ids, postback copies, attribution windows; storebound ads scan), ATT, privacy manifests, consent, COPPA and Data safety / App Privacy answers. Use when ads do not load, a network reports invalid ids, the user adds an ad SDK, or prepares ads for launch. --- # Ad mediation checks (AdMob, AppLovin MAX, LevelPlay) -No CLI needed apart from `storebound validate --play` (app-ads.txt) and `storebound privacy-manifest`; these are checks -to run and read. Ask the owner before changing any dashboard setting. Most apps without ads can skip this skill. +CLI: `storebound ads scan --ios ` (AdAttributionKit / SKAdNetwork configuration, below), `storebound validate +--play` (app-ads.txt) and `storebound privacy-manifest`; the rest are checks to run and read. Ask the owner before changing any dashboard setting. Most apps without ads can skip this skill. ## Every mediation platform 1. **Ids per platform**: iOS and Android have different app ids / keys and ad unit ids. Production ids only in release @@ -32,6 +32,30 @@ to run and read. Ask the owner before changing any dashboard setting. Most apps 8. **Placement**: no ads at launch, on exit or mid-task / mid-round; close buttons visible; rewarded ads always optional. Reviewers test the first minutes. +## AdAttributionKit and SKAdNetwork (iOS) +`storebound ads scan --ios ios/App [--json]` (MCP: `ads_scan`; local, read-only, exit 1 on a blocker) reads the app's +Info.plist (Pods, build output, tests and extensions left out), `Podfile.lock` / `Package.resolved` and the Swift / +Objective-C sources. What it checks, with Apple's documentation (links in `cli/lib/adattribution.ts`): +- **Publisher app** (shows ads): every network's ids in `SKAdNetworkItems` (dictionaries with `SKAdNetworkIdentifier`) + and, for AdAttributionKit, in `AdNetworkIdentifiers` (array of strings). Apple: lowercase, "otherwise, the system + doesn't recognize it as a valid network" (capital letters = blocker). `.skadnetwork` and `.adattributionkit` ids work + for both frameworks, so the same list can go into both keys; ids only in `SKAdNetworkItems` are flagged for + AdAttributionKit. Ad SDKs without any ids = blocker (installs from those ads cannot be attributed). +- **Advertised app** (runs ad campaigns): copies of winning postbacks with `AttributionCopyEndpoint` ("AdAttributionKit - + Postback Copy URL" in Xcode; storebound reads it inside an `AdAttributionKit` dictionary or at the top level), an + https URL whose registrable domain gets POSTs at `/.well-known/appattribution/report-attribution/` (a path is + ignored); re-engagement copies with `EligibleForAdAttributionKitReengagementPostbackCopies` = YES (needs the copy + endpoint); SKAdNetwork copies (and Private Click Measurement) with `NSAdvertisingAttributionReportEndpoint`. The app + must call `updateConversionValue` (AdAttributionKit) or `updatePostbackConversionValue` (SKAdNetwork) at least once, + best at first launch, or an attribution SDK (AppsFlyer, Adjust, Branch, Singular, Kochava) must do it. +- **Attribution rules**: `AdAttributionKitConfigurations` > `AttributionWindows` > `global` or an ad network id > + `install` > `click` 1-30 days, `view` 1-7 days, `ignoreInteractionType` view | click (ad network entries only); + `AttributionCooldown` > `install-cooldown-hours` / `re-engagement-cooldown-hours` 0-720. +- AdAttributionKit and SKAdNetwork need **no ATT prompt**; keep `NSUserTrackingUsageDescription` only when the app + really tracks across apps (store-declarations). +Test attribution with Developer Mode and the postback testing in Settings > Developer (Apple: "Testing ad +attributions with Developer Mode"); the scan only checks the configuration, not delivery. + ## Google AdMob - Ad Inspector (SDK 20.0.0+, test devices only) shows each ad unit's mediation waterfall, adapter status and errors: https://developers.google.com/admob/android/ad-inspector (iOS: the same page under /admob/ios/). diff --git a/skills/app-store-promotion/SKILL.md b/skills/app-store-promotion/SKILL.md new file mode 100644 index 00000000..9c4076ac --- /dev/null +++ b/skills/app-store-promotion/SKILL.md @@ -0,0 +1,100 @@ +--- +name: app-store-promotion +description: App Store promotion tools for a mobile app or game through the App Store Connect API - offer codes for one-time purchases, win-back offers for lapsed subscribers, promoted in-app purchases on the product page, pre-orders per territory, custom product pages (screenshots per audience, deep links) and in-app events, with Apple's limits; Google Play pre-registration as a console guide (no API). Use when the user wants promo codes or discounts for IAPs, to win back subscribers, to feature purchases on the product page, a pre-order or pre-registration launch, ad-specific product pages, or an in-app event. +--- + +# App Store promotion (offers, promoted IAPs, pre-orders, custom product pages, in-app events) + +Everything here is App Store Connect API (`cli/lib/offers.ts`, `cli/lib/cpp-events.ts` cite the endpoints and Apple's +Help pages). Each command has `--dry` and `--json`. What customers can see or redeem is the **owner's** step: those +commands show the dry run, then ask in the terminal, and none of them is an MCP tool. MCP has the read-only and +nothing-public parts (`apple_cpp_list | create | upload`, `apple_events_list | create | upload`, +`apple_preorder_status`). + +## Offer codes for one-time purchases +Config, on the product (consumable, non-consumable, non-renewing): +```ts +products: [{ id: 'com.example.app.pro', type: 'non_consumable', usd: 9.99, listings: { ... }, + offerCodes: [{ name: 'Launch week', eligibility: ['NON_SPENDER'], usd: 4.99, // or free: true + customCodes: [{ code: 'LAUNCH26', count: 1000, expires: '2026-12-31' }], + oneTimeCodes: [{ count: 500, expires: '2027-01-31' }] }] }], +``` +- `storebound apple offer-codes --dry`, then without `--dry`: creates missing campaigns (by name) with prices for every + territory (the USA price point of `usd` and its equalizations, or `territories: ['USA', 'DEU']`). A campaign alone + lets nobody redeem anything. +- Codes only with `--codes` (asks): custom codes (anyone who has the code, up to 25,000 redemptions, letters and + digits up to 64) and one-time-use batches (500-25,000, expiry at most 6 months). One-time codes are saved to + `.storebound/offer-codes/` (gitignored): treat them like vouchers, never paste them into chat, issues or commits. +- Apple's limits (Help, "Create offer codes for In-App Purchases"): 10 active offers per app, 1 million codes per app + per quarter; eligibility NON_SPENDER (never bought in the app), ACTIVE_SPENDER (bought in the last 30 days), + CHURNED_SPENDER (bought more than 30 days ago). Needs iOS 16.3+. Subscription offer codes are `offerCodes` on a + subscription (`storebound apple subscriptions --codes`, store-subscriptions skill). +- Play promo codes have no API: Play Console > Monetize > Promo codes. + +## Win-back offers (subscriptions) +```ts +winBack: [{ id: 'come-back-3m', type: 'pay-up-front', duration: 'P3M', usd: 9.99, + paidMonths: 6, lapsedMonths: { min: 2, max: 12 }, waitMonths: 6, start: '2026-11-01', end: '2026-11-30', + priority: 'high', promote: false }], +``` +`storebound apple win-back --dry`, then the owner runs it (asks). Rules (Help, "Set up win-back offers"): the +subscription must be approved; paid at least 1-24 months or 3, 4, 5 years; lapsed between min and max months (1-24, +both required); wait between offers 2-24 months; start at the earliest tomorrow and run at least 3 days; at most 5 +running per storefront and 350 per subscription. Reference name, offer id and price cannot change later; the offer id +must not be reused in the group. An offer goes live by itself on its start date (Manage Subscriptions, the in-app +offer sheet on iOS 18+, the App Store with `promote: true` and an approved subscription image). + +## Promoted in-app purchases +`apple: { promoted: { products: ['com.example.app.pro', 'com.example.app.coins_100'] } }` (order = display order, at +most 20). `storebound apple promoted --dry` shows the status and the plan: missing ones are created **disabled**, the +order is set. `--enable` switches them on (asks; they show on the product page once approved). Each needs its +promotional image in App Store Connect, and the app must handle purchases that start on the App Store (StoreKit +`PurchaseIntent`; StoreKit 1 `paymentQueue(_:shouldAddStorePayment:for:)`). Without `apple.promoted` the command only +prints the status. + +## Pre-orders +- `storebound apple preorder status` (MCP: `apple_preorder_status`): per territory available, release date, pre-order + on, publish date, content status. +- `storebound apple preorder enable --release-date 2026-12-01 [--territories USA,DEU] --dry`, then for real (asks). + Apple: a version must be approved first; the release date is 2-180 days ahead for a new app (up to 365 days for an + existing app in a new region); a territory where the app is already released cannot go on pre-order. +- `storebound apple preorder end [--territories USA]` ends the pre-order and **releases the app there now** (asks). +- **Google Play pre-registration has no API** (the androidpublisher v3 reference lists no such resource): Play Console + > Grow users > Pre-registration (set it up on a testing / production track that is not yet available, optional + pre-registration reward as a one-time product). Pre-registration ads: Google Ads. + +## Custom product pages +```ts +apple: { customProductPages: [{ name: 'Students', variant: 'students', deepLink: 'https://example.com/open/students', + promotionalText: { en: 'Class notes that sync.', de: '...' } }] }, +``` +1. Screenshots: `storebound shots render --variant students` (a `shots.variants` entry), store-screenshots skill. +2. `storebound apple cpp create --dry`, then for real (MCP `apple_cpp_create`): the page, its first version and a + localization per App Store locale. +3. `storebound apple cpp upload --name Students --dry` (MCP `apple_cpp_upload`): the variant's renders per locale, + MD5-idempotent. +4. Owner: `storebound apple cpp submit --name Students` (asks; App Review, independent of an app update), after + approval `storebound apple cpp visible --name Students` (asks). `apple cpp list` shows each page's URL for ads. +Limits: 70 pages per app; promotional text 170; the deep link works from iOS / iPadOS 18 once approved. Screenshot +sets are deprecated in API 4.5.1 in favour of the App Asset Library; they still work and storebound uses them. + +## In-app events +```ts +apple: { events: [{ referenceName: 'Winter Challenge', badge: 'CHALLENGE', purpose: 'KEEP_ACTIVE_USERS_INFORMED', + schedule: { publishStart: '2026-12-01T00:00:00Z', eventStart: '2026-12-10T00:00:00Z', eventEnd: '2026-12-20T00:00:00Z' }, + listings: { en: { name: 'Winter Challenge', shortDescription: 'Finish ten lists before New Year', longDescription: '...' } }, + media: { card: 'store/events/winter/{lang}-card.png', details: 'store/events/winter/{lang}-details.png' } }] }, +``` +`storebound apple events create --dry` / `upload --name ...` (MCP `apple_events_create` / `apple_events_upload`), then +the owner runs `storebound apple events submit --name ...` (asks; once approved the event publishes by its schedule). +Limits (Help, "Offer In-App Events"): reference name 64, event name 30, short description 50, long description 120; +15 minutes to 31 days; published at most 14 days before it starts; 10 published and 15 approved events per app. Media: +event card 16:9 (1920x1080 to 3840x2160), details page 9:16 (1080x1920 to 2160x3840), PNG or JPEG; storebound checks +the size before uploading. Event text is held to the same honesty rules as the listing: a real event in the app. + +## Gotchas +- Free offer prices (offer codes, win-back) are sent as territories without a price point, as the API schema allows; + not yet verified against a live account. A refusal names the field: create that one offer in App Store Connect. +- Everything with a start date goes live without another click: read the dates with the owner. +- No manipulative offers: no fake scarcity in event text, no misleading "free" when a purchase is needed + (`purchaseRequirement` says it). diff --git a/skills/aso-basics/SKILL.md b/skills/aso-basics/SKILL.md index fa5388a3..3291eaf5 100644 --- a/skills/aso-basics/SKILL.md +++ b/skills/aso-basics/SKILL.md @@ -1,6 +1,6 @@ --- name: aso-basics -description: App store optimization basics for a mobile app's or game's text - App Store keyword field rules (100 characters, commas without spaces, no repeats of name / subtitle words, fill 90%+), subtitle and name, cross-localization keyword room per storefront, screenshot captions with real keywords, Google Play title / short / full description keyword placement without stuffing. Use when the user writes or improves store listing text, keywords, or asks why the app or game is not found in store search. +description: App store optimization basics for a mobile app's or game's text - App Store keyword field rules (100 characters, commas without spaces, no repeats of name / subtitle words, fill 90%+), subtitle and name, cross-localization keyword room per storefront, screenshot captions with real keywords, Google Play title / short / full description keyword placement without stuffing. Keyword rank checks per storefront through the public iTunes Search API. Use when the user writes or improves store listing text, keywords, asks why the app or game is not found in store search, or wants keyword ranks and competitors. --- # ASO basics @@ -42,3 +42,15 @@ true; never use competitor or other apps' or games' names, "best / #1", or unrel 4. Push with `apple listing` / `play listing`; measure after a few weeks (App Store Connect / Play Console acquisition by search term; `storebound analytics snapshot` + `analytics compare` line impressions and conversion up with each committed listing change, store-analytics skill) and change a few terms per release, not all at once. +5. Track ranks: `storebound aso rank --storefronts us,de=de-DE --dry` lists the queries, then without `--dry` (MCP: + `aso_rank`, dry_run false). One query per keyword of the locale's keyword field (plus `--keywords`) and storefront + against Apple's public iTunes Search API, at most one every 3.5 s (Apple allows about 20 calls a minute; a 403 or + 429 stops the run with what was read). The table shows the app's position in the first 200 results, the change + since the last snapshot (`.storebound/aso/.json`) and the first competitors (title, developer, rating). + +## Rank check limits (say them to the owner) +- The Search API order is close to, not the same as, App Store search (no personalisation, no Search Ads, no in-app + event rows). Read ranks as a trend over weeks, not as a promise. +- Competitor subtitles are not in any public API, so storebound does not show them; it scrapes nothing. +- Never copy a competitor's name or terms into your keywords (both stores reject it); use the list to see which jobs + and words the top apps lead with. diff --git a/skills/release-management/SKILL.md b/skills/release-management/SKILL.md index aaed7dfd..e18219f0 100644 --- a/skills/release-management/SKILL.md +++ b/skills/release-management/SKILL.md @@ -1,6 +1,6 @@ --- name: release-management -description: Ship updates safely after the first release - App Store phased release (on, pause, resume, complete) with manual release by default, Google Play staged rollout (fraction, halt, resume, complete), waiting for review, picking build numbers, and what to do when a release goes wrong (pausing is not a rollback). Use when the user releases an update, wants a gradual rollout, needs to stop a bad release, or asks how long review takes. +description: Ship updates safely after the first release - App Store phased release (on, pause, resume, complete) with manual release by default, Google Play staged rollout (fraction, halt, resume, complete), waiting for review, picking build numbers, pulling live store texts back into the listing files, and what to do when a release goes wrong (pausing is not a rollback). Use when the user releases an update, wants a gradual rollout, needs to stop a bad release, or asks how long review takes. --- # Release management (updates on both stores) @@ -48,4 +48,16 @@ presses release; you prepare, dry-run and report. `storebound mcp` deliberately - Do not resubmit or cancel to "jump the queue": it puts you at the back. ## Release notes -`whats-new` skill (`storebound whats-new`), then `apple listing` / `play release` push them. +`whats-new` skill (`storebound whats-new`, `--languages` for one file per language), then `apple listing` / +`play release` push them. + +## Someone edited the listing in the console +Before pushing local texts over a console edit, pull the live ones and read the diff: +- `storebound apple listing pull [--version x.y.z]` (name, subtitle, description, keywords, promotional text, what's + new per locale) and `storebound play listing pull` (title, short and full description; one throwaway edit, deleted). + Both print the diff against `store/appstore.md` / `store/listing.md` and write only with `--write` (MCP: + `apple_listing_pull` / `play_listing_pull` with dry_run false). New locales are appended as sections; a Play section + shared by several codes is only changed when the store has the same text for all of them. +- `storebound catalog pull [--write]`: IAP and subscription titles / descriptions (Play: benefits) against the config. + `storebound.config.ts` is never rewritten: `--write` saves `.storebound/pull/catalog.json` as a proposal; merge the + listings by hand or with your agent, then `storebound check`. diff --git a/skills/store-analytics/SKILL.md b/skills/store-analytics/SKILL.md index 1a446b20..d1c8faba 100644 --- a/skills/store-analytics/SKILL.md +++ b/skills/store-analytics/SKILL.md @@ -1,6 +1,6 @@ --- name: store-analytics -description: Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git. Use when the user asks whether a listing change, new screenshots or a store experiment worked, wants install / conversion numbers, or sets up store reporting. +description: Take store analytics snapshots for a mobile app or game (App Store impressions, product page views, downloads and conversion through the Analytics Reports API; Google Play store listing visitors, acquisitions and installs from the Play reports bucket) and compare them with listing, screenshot and experiment changes from git; download App Store sales / finance reports and Play earnings / sales reports with a summary per product and currency. Use when the user asks whether a listing change, new screenshots or a store experiment worked, wants install / conversion numbers, sets up store reporting, or wants sales, proceeds or earnings numbers. --- # Store analytics @@ -38,6 +38,24 @@ CLI: `storebound analytics setup | snapshot | compare`. MCP: `analytics_snapshot impressions (App Store) or visitors (Play) and conversion in the 7 days before vs the 7 days from the change (`--days 14` for small apps). +## Sales and finance reports +`storebound reports ` downloads one report into +`.storebound/reports/` (gitignored: these files hold per-order rows and buyer locations) and prints a summary per +product and currency plus `.summary.csv` (or `--csv `); totals are never added across currencies. `--dry` +shows the request only. MCP: `reports`. +- **App Store**: `apple-sales [--type SALES] [--frequency DAILY|WEEKLY|MONTHLY|YEARLY] [--date ...]` (Sales and Trends; + other types: PRE_ORDER, SUBSCRIPTION, SUBSCRIPTION_EVENT, SUBSCRIBER, SUBSCRIPTION_OFFER_CODE_REDEMPTION, + WIN_BACK_ELIGIBILITY, each with Apple's fixed frequency and version) and `apple-finance --month YYYY-MM` (Apple + fiscal month; consolidated region ZZ, `--detail` for the Financial Detail report, region Z1). Needs a **team** API + key (not an individual key) with access to reports, and the vendor number (App Store Connect > Payments and + Financial Reports) as `ASC_VENDOR_NUMBER` in the environment or `.storebound/credentials.json`, never in the config. + A 404 means "no report for that date" (no sales, or not out yet: daily reports come the next day). +- **Google Play**: `play-earnings --month YYYY-MM` / `play-sales --month YYYY-MM` read + `earnings/earnings_YYYYMM*.zip` and `sales/salesreport_YYYYMM*.zip` from `play.reportsBucket` and unzip them. The + service account needs "View financial data" in Play Console (Users and permissions). Earnings arrive early in the + next month; estimated sales update daily. +- Money numbers are the owner's: never paste them into issues, commits or public text. + ## Read it honestly - Small numbers swing: under a few hundred page views a week, a 20 % change is noise. Say so. - Seasonality, featuring, ads campaigns, a rating drop and price changes move the same numbers. Look at the same diff --git a/skills/store-health/SKILL.md b/skills/store-health/SKILL.md index 37699d32..8795ad2c 100644 --- a/skills/store-health/SKILL.md +++ b/skills/store-health/SKILL.md @@ -1,6 +1,6 @@ --- name: store-health -description: Watch a released mobile app's or game's crash and ANR health on both stores - Google Play Android vitals (user-perceived crash rate 1.09 % and ANR rate 0.47 % bad behavior thresholds, 8 % per device model) through the Play Developer Reporting API, App Store power and performance metrics, diagnostic signatures and TestFlight crash reports, a weekly Markdown report, and validate blockers when a threshold is crossed. Use when the user asks about crashes, ANRs, vitals, stability, a weekly health check, or why Play shows a quality warning. +description: Watch a released mobile app's or game's crash and ANR health on both stores - Google Play Android vitals (user-perceived crash rate 1.09 % and ANR rate 0.47 % bad behavior thresholds, 8 % per device model) through the Play Developer Reporting API, App Store power and performance metrics, diagnostic signatures and TestFlight crash reports, crash and feedback triage grouped by signature, device and OS version, a weekly Markdown report, and validate blockers when a threshold is crossed. Use when the user asks about crashes, ANRs, vitals, stability, a weekly health check, or why Play shows a quality warning. --- # Store health (crashes, ANRs, diagnostics) @@ -29,8 +29,22 @@ instead). `storebound validate` runs the same checks for live apps. MCP: `health launch time, memory, disk writes, battery) and on diagnostic signatures with a large share of reports (Xcode > Organizer shows the stack traces). TestFlight crash reports count crashes testers sent from the beta. +## Triage: which crash first +`storebound triage [--days 14] [--build N] [--apple | --play] [--json]` (MCP: `triage`, read-only) groups what testers +and players hit: +- **TestFlight crashes**: every crash report's log is read and turned into a signature (exception type + the first + frame of the crashed thread inside the app; text and `.ips` crash formats), then grouped with its top device models, + OS versions and builds. +- **TestFlight screenshot feedback**: grouped by device; `--comments 3` shows up to three comments per group (cut to 120 + characters). Tester emails are never requested (the reads list their fields without `email` / `tester`). +- **Google Play**: the top `--issues` (default 10) crash / ANR issues of the window (Play's own clusters), then their + error reports for the spread by device (marketing name), API level and versionCode. Counts are of the sampled + reports; the issue's total reports and users come from Play. +Fix the top signature first, then check its device / OS column: one model or one OS version points at a device bug. + ## Act on it -1. Start with the top issues table (Play: cause + location + versionCode; Apple: signature + build). +1. Start with the top issues table (Play: cause + location + versionCode; Apple: signature + build), or with + `storebound triage` for the grouped view. 2. Reproduce on the named device model / OS; for ANRs look for main-thread work (I/O, ads SDK init, big asset loads), for crashes the null / out-of-memory paths. 3. Ship the fix with a higher versionCode / build number (release-management skill). Halting a rollout stops new diff --git a/skills/store-iap-setup/SKILL.md b/skills/store-iap-setup/SKILL.md index 0f2c5826..41883545 100644 --- a/skills/store-iap-setup/SKILL.md +++ b/skills/store-iap-setup/SKILL.md @@ -1,6 +1,6 @@ --- name: store-iap-setup -description: Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list - regional prices, local overrides, a price sheet CSV for many products and regions (diff first, future-dated App Store changes), activation, review screenshots, submitting first IAPs with a version, license/sandbox testers. Use when the user sets up, prices, re-prices or tests in-app products/IAPs, checks that both stores match (catalog diff), or hits Play onetimeproducts / inappproducts 403 or App Store IAP submission errors. +description: Create and price in-app purchases (consumables, non-consumables like "remove ads" or a Pro unlock, non-renewing passes, coin/gem packs, starter packs) on Google Play and App Store Connect from one product list - regional prices, local overrides, a price sheet CSV for many products and regions (diff first, future-dated App Store changes), activation, review screenshots, submitting IAPs and subscriptions to review through the API (first ones together with an app version), offer codes for one-time purchases, license/sandbox testers. Use when the user sets up, prices, re-prices or tests in-app products/IAPs, checks that both stores match (catalog diff), or hits Play onetimeproducts / inappproducts 403 or App Store IAP submission errors. --- # In-app purchases on both stores @@ -44,9 +44,24 @@ Auto-renewable subscriptions are a separate list (`subscriptions`, `store-subscr changed by it; price changes go through `storebound prices import` (diff first, then the owner confirms). 2. Review screenshot per product (a real device size, e.g. 1290 x 2796, showing the item in the shop): `storebound apple iap-review`. States move to READY_TO_SUBMIT when complete. -3. **UI**: each IAP page > "Add for Review"; this puts them into the version's draft submission. Then submit the - version (owner, see appstore-first-release). -4. Test: Sandbox testers (Users and Access > Sandbox) on device; or a StoreKit configuration file in Xcode for local +3. **Send them to App Review** (the owner's step): `storebound apple iap-submit --dry` shows the plan: which version + of each product goes in, what is left out and why, and which products are the **first of their type** for this app. + - Apple's rule (App Store Connect Help, "Submit an In-App Purchase"): the first consumable, non-consumable, + non-renewing subscription and auto-renewable subscription of an app must be submitted **with a new app version**; + later ones of an approved type go alone as long as the app has at least one approved version. A new subscription + goes with its subscription group while the group is not approved. Everything reviewed together sits in one draft + submission, up to 200 items. Content-hosted IAPs can no longer be submitted. + - Through the API (App Store Connect API 4.4.1+): each product has versions (`inAppPurchaseVersions`, + `subscriptionVersions`, `subscriptionGroupVersions`) that go into a review submission as items, next to the app + version when needed. So the first ones no longer need the web UI: `--with-version` puts the editable app version + (`storebound apple listing --version x.y.z --build N` first) into the same submission, and then submitting it + **submits the app too**. + - The real run asks before adding the items and again before submitting; `--no-submit` stops at the filled draft so + the owner presses "Submit for Review" in App Store Connect. `--new-version` makes a new draft version of an + approved or rejected product first (changed name, description or screenshot). Never an MCP tool; MCP has the + read-only plan `apple_iap_review_plan`. `--json` prints the plan for scripts. +4. Offer codes (free or discounted) for one-time purchases: see the app-store-promotion skill (`storebound apple offer-codes`). +5. Test: Sandbox testers (Users and Access > Sandbox) on device; or a StoreKit configuration file in Xcode for local runs (those transactions are signed locally and fail server-side receipt checks). ## Many prices at once: the price sheet (both stores) @@ -77,13 +92,14 @@ App Store only, a future YYYY-MM-DD). the wrong casing answers with an HTML 404 page. - Play has no consumable flag: the app consumes the purchase after granting it. Use `legacyCompatible: true` so older billing libraries see the product by id. -- Apple: first IAPs must ship with an app version ("FIRST_*_MUST_BE_SUBMITTED_ON_VERSION" from +- Apple: first IAPs must ship with an app version ("FIRST_*_MUST_BE_SUBMITTED_ON_VERSION" from the old inAppPurchaseSubmissions). If the version is already in review without them: cancel the review submission - (`storebound apple status --cancel-submission `, ask the owner), re-add via "Add for Review", resubmit. -- Reported, **verify** before relying on it: App Store Connect API 4.4.1 manages IAPs as versions - (`inAppPurchaseVersions`) and its release notes say a review submission item can take an `inAppPurchaseVersion`. - That should let **later** IAP versions be added to `reviewSubmissions` through the API; the **first** attachment of - a new app's first IAPs still needed the UI "Add for Review" in our runs. storebound does not automate either yet. + (`storebound apple status --cancel-submission `, ask the owner), then `storebound apple iap-submit --with-version` + (or "Add for Review" in the UI) and resubmit. +- Not verified against a live account yet: adding the **first** IAP of a type next to the app version through + `reviewSubmissionItems` follows the API 4.4.1 release notes and the 4.5.1 spec (the item takes `appStoreVersion` and + `inAppPurchaseVersion` in one submission). If App Store Connect refuses it, `--no-submit` leaves the draft and the + UI "Add for Review" finishes the job. The deprecated `inAppPurchaseSubmissions` / `subscriptionSubmissions` are not used. - Apple needs an exact existing price point for each manual price; the error lists the nearest ones. - Apple IAP display name 2-30 characters, description max **45** (App Store Connect Help > Reference > "In-app purchase information"; an older App Store marketing page says 55, but App Store Connect enforces 45). diff --git a/skills/store-subscriptions/SKILL.md b/skills/store-subscriptions/SKILL.md index 291611f6..203e900e 100644 --- a/skills/store-subscriptions/SKILL.md +++ b/skills/store-subscriptions/SKILL.md @@ -37,8 +37,13 @@ offers, offerCodes, reviewScreenshot, basePlanId, gracePeriod, platforms }] }]`, run them in a terminal (they ask). Through MCP (no terminal) they only create what is new; price changes of existing subscriptions wait for the owner. 4. Review screenshot of the paywall per subscription (`reviewScreenshot`), uploaded by `apple subscriptions`. -5. **First subscriptions go with an app version**: on the version page in App Store Connect, add them under - "In-App Purchases and Subscriptions" before Submit for Review (no API; the owner or an agent with browser tools). +5. **First subscriptions go with an app version** (and a new group with at least one of its subscriptions): + `storebound apple iap-submit --with-version --dry` plans one review submission with the app version, the + subscription versions and the group version; the owner runs it without `--dry` (it asks, and submitting it submits + the app), or adds `--no-submit` and presses "Submit for Review" in App Store Connect. Details and the exact limits: + store-iap-setup skill, step 3. +5b. **Win-back offers** for lapsed subscribers (`winBack` on a subscription, `storebound apple win-back`) once the + subscription is approved: app-store-promotion skill. 6. `storebound validate` (states, localizations, group names, review screenshots, active Play base plans, terms URL) and `storebound catalog diff` (both stores against the config, prices per region). diff --git a/skills/testflight/SKILL.md b/skills/testflight/SKILL.md index 463317f3..0f704437 100644 --- a/skills/testflight/SKILL.md +++ b/skills/testflight/SKILL.md @@ -68,6 +68,22 @@ beta app localization before a Beta App Review submission, and fields cannot be - The Beta App Review submission is public-facing and the owner's call: never through MCP; an agent explains and the owner confirms in the terminal. +## 6. Wait for processing +`storebound apple testflight wait --build N [--timeout 60m] [--json]` polls the build you just uploaded (20 s, then +x1.5, at most every 2 minutes) and prints a line whenever its state changes: "not listed yet" for the first minutes, +`PROCESSING`, then `VALID`. Exit codes: 0 VALID, 1 FAILED / INVALID (read Apple's email, fix, upload a new build +number), 7 timeout (run it again). `--dry` looks once and does not wait. On VALID it names the next step, e.g. the +export compliance answer when the build shows `MISSING_EXPORT_COMPLIANCE`. MCP: `apple_testflight_wait` (read-only). +In CI, run it in the background with a log and report its lines. + +## 7. Expire old builds (asks first) +`storebound apple testflight expire --keep 5 --dry` (or `--older-than 60`, or both: beyond the newest 5 AND older than +60 days; `--version 1.2.0` limits it to one version). The newest build always stays; builds attached to an App Store +version (in review, live or being prepared) and builds still processing are never expired. The dry run lists every +build with "expire" / "keep" and why; the real run asks first (`--yes` in scripts the owner runs) because an expired +build cannot be brought back and testers lose it at once. Not an MCP tool. API: `PATCH /v1/builds/{id}` with +`expired: true` (cited in `cli/lib/build-ops.ts`). + ## Gotchas - Builds expire after 90 days in TestFlight; upload a new one (`storebound apple next-build`). - Up to 100 internal testers and 10,000 external testers per app (TestFlight overview in App Store Connect Help: diff --git a/skills/whats-new/SKILL.md b/skills/whats-new/SKILL.md index 851a4d6b..99c44aec 100644 --- a/skills/whats-new/SKILL.md +++ b/skills/whats-new/SKILL.md @@ -1,6 +1,6 @@ --- name: whats-new -description: Write user-facing release notes ("What's new") for a mobile app or game update from the git log since the last tag - hook in the first line, plain user language, localized into every listing language, within store limits (Google Play 500, App Store 4000 characters). Use when preparing an update, when the user asks for release notes / changelog for the stores, or before play release / apple listing for a new version. +description: Write user-facing release notes ("What's new") for a mobile app or game update from the git log since the last tag - hook in the first line, plain user language, localized into every listing language, one file per language translated by the agent (or a provider hook the owner sets), checked against store limits (Google Play 500, App Store 4000 characters) and applied to both listings. Use when preparing an update, when the user asks for release notes / changelog for the stores, or before play release / apple listing for a new version. --- # What's new (release notes) @@ -28,6 +28,26 @@ translation; `storebound check` warns while a translation is still identical to 5. Push: `storebound play release ...` uses the Play notes; `storebound apple listing --version x --build N` the App Store ones. +## Many languages, one file each +1. `storebound whats-new --languages en,de,tr,ja --dry`, then without `--dry` (MCP: `whats_new_languages`). Values + are language ids of the config or store codes; the **first is the source**. It writes `store/whats-new/.md`: + the source gets the draft (the Play-sized one when the source language is on Play, so it fits 500), every other + language a copy of it with the header ``. Translated files + (`status=translated`) are kept on later runs unless `--force`. +2. **You translate** each `status=translate` file: replace the text below the header, keep the header line and set + `status=translated`. Follow step 3 above (natural tone, the app's terms, same meaning). The CLI never calls a + translation service and holds no key for one. + Optional provider hook (the owner's choice): `--translate ""` runs that command once per language with the + source text on stdin and `STOREBOUND_SOURCE_LANG` / `STOREBOUND_TARGET_LANG` (App Store locale, else Play code) / + `STOREBOUND_TARGET_LANG_ID` in the environment; its stdout becomes the file (`status=translated`). Any key it needs + lives in the owner's environment, never in the config. Read hook output like any draft before applying it. +3. `storebound whats-new check` (MCP: `whats_new_check`): per language the characters against the stores that + language is listed on (Google Play 500, App Store 4000), untranslated files, a translation identical to the source, + a first line over ~170 characters. Exit 1 while a language is not ready. +4. `storebound whats-new apply --dry`, then `apply` (MCP: `whats_new_apply`): writes every file into its Play + sections ("What's new" for each Play code of the language) and its App Store locale (`whatsNew`). It refuses while + any language fails the check. + ## Gotchas - Squash-merged repos: the PR titles are the subjects; keep them in conventional form (`feat: ...`) to get clean drafts. - Commits marked `[skip notes]` or `[internal]` are left out. diff --git a/templates/credentials.example.json b/templates/credentials.example.json index d4a11c21..eafb05a3 100644 --- a/templates/credentials.example.json +++ b/templates/credentials.example.json @@ -3,6 +3,7 @@ "ASC_KEY_ID": "YOUR_KEY_ID", "ASC_ISSUER_ID": "00000000-0000-0000-0000-000000000000", "ASC_P8": "/absolute/path/to/AuthKey_.p8", + "ASC_VENDOR_NUMBER": "", "reviewContact": { "firstName": "", "lastName": "", "phone": "+1 555 0100", "email": "review-contact@example.com" }, "reviewDemoAccount": { "username": "", "password": "" } } diff --git a/tests/helpers/store-mock.ts b/tests/helpers/store-mock.ts new file mode 100644 index 00000000..276b9758 --- /dev/null +++ b/tests/helpers/store-mock.ts @@ -0,0 +1,107 @@ +// Recorded-response harness for command tests: throwaway API keys, a fetch router that answers like App Store Connect, +// Google and the iTunes Search API did (sanitized: every id, name and email is a placeholder), a temp project with a +// config, and capture of stdout / stderr / process.exit. Nothing here reaches the network. +import { generateKeyPairSync } from 'node:crypto'; +import { mkdirSync, mkdtempSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { dirname, isAbsolute, join } from 'node:path'; +import { parseArgs } from '../../cli/lib/args'; +import type { Loaded, ShipConfig } from '../../cli/lib/config'; +import type { Ctx } from '../../cli/lib/ctx'; + +export type J = Record; +export interface Call { method: string; url: string; path: string; body: unknown } +type Answer = Response | J | ((c: Call) => Response | J | Promise); +export interface Route { method?: string; match: RegExp; answer: Answer; times?: number } + +export const json = (o: unknown, status = 200) => new Response(JSON.stringify(o), { status, headers: { 'content-type': 'application/json' } }); +export const notFound = () => json({ errors: [{ id: '00000000-0000-0000-0000-000000000000', status: '404', code: 'NOT_FOUND', title: 'The specified resource does not exist', detail: 'There is no resource' }] }, 404); + +const saved = { ...process.env }; +const realFetch = globalThis.fetch; + +export function ascEnv(): void { + const { privateKey } = generateKeyPairSync('ec', { namedCurve: 'P-256' }); + process.env.ASC_KEY_ID = 'ABCDE12345'; + process.env.ASC_ISSUER_ID = '00000000-0000-0000-0000-000000000000'; + process.env.ASC_P8 = privateKey.export({ type: 'pkcs8', format: 'pem' }).toString(); +} + +export function playEnv(): void { + const { privateKey } = generateKeyPairSync('rsa', { modulusLength: 2048 }); + process.env.PLAY_SERVICE_ACCOUNT = JSON.stringify({ client_email: 'sb@example.com', private_key: privateKey.export({ type: 'pkcs8', format: 'pem' }).toString(), token_uri: 'https://oauth2.googleapis.com/token' }); +} + +/** Installs the router; unknown requests fail the test loudly (answer 599 with the path). Returns the call log. */ +export function mockFetch(routes: Route[]): Call[] { + const calls: Call[] = []; + const left = routes.map(r => ({ ...r, left: r.times ?? Infinity })); + globalThis.fetch = (async (input: string | URL | Request, init?: RequestInit) => { + const url = String(input instanceof Request ? input.url : input); + const method = (init?.method ?? 'GET').toUpperCase(); + const raw = init?.body; + let body: unknown = raw; + if (typeof raw === 'string') { try { body = JSON.parse(raw); } catch { body = raw; } } + const path = url.replace(/^https:\/\/[^/]+/, ''); + const c: Call = { method, url, path, body }; + if (url === 'https://oauth2.googleapis.com/token') return json({ access_token: 'ya29.test', expires_in: 3600 }); + calls.push(c); + const r = left.find(x => x.left > 0 && (x.method ?? 'GET') === method && x.match.test(decodeURIComponent(path))); + if (!r) return new Response(`not recorded: ${method} ${path}`, { status: 599 }); + r.left--; + const a = typeof r.answer === 'function' ? await r.answer(c) : r.answer; + return a instanceof Response ? a : json(a); + }) as typeof fetch; + return calls; +} + +export function restore(): void { + globalThis.fetch = realFetch; + for (const k of ['ASC_KEY_ID', 'ASC_ISSUER_ID', 'ASC_P8', 'PLAY_SERVICE_ACCOUNT', 'ASC_VENDOR_NUMBER']) { if (saved[k] === undefined) delete process.env[k]; else process.env[k] = saved[k]; } +} + +export const BASE: ShipConfig = { + app: { name: 'Example Notes', profile: 'app', privacyPolicyUrl: 'https://example.com/privacy', supportUrl: 'https://example.com/support', website: 'https://example.com', contactEmail: 'support@example.com' }, + languages: [{ id: 'en', apple: 'en-US', play: 'en-US' }, { id: 'de', apple: 'de-DE', play: 'de-DE' }, { id: 'tr', apple: 'tr', play: 'tr-TR' }], + apple: { bundleId: 'com.example.notes', appId: '6400000101' }, + play: { packageName: 'com.example.notes', reportsBucket: 'pubsite_prod_rev_01234567890123456789' }, +}; + +/** A temp project folder with optional files; returns a Ctx factory for that config. */ +export function project(config: ShipConfig = BASE, files: Record = {}): { root: string; ctx: (argv: string[], booleans?: string[]) => Ctx; loaded: Loaded } { + const root = mkdtempSync(join(tmpdir(), 'sb-ops-')); + for (const [p, t] of Object.entries(files)) { mkdirSync(dirname(join(root, p)), { recursive: true }); writeFileSync(join(root, p), t); } + const loaded: Loaded = { config, root, path: join(root, 'storebound.config.ts'), resolve: (p: string) => (isAbsolute(p) ? p : join(root, p)) }; + return { root, loaded, ctx: (argv, booleans = []) => ({ loaded, args: parseArgs(argv, booleans) }) }; +} + +/** Runs fn with console output captured and process.exit turned into a thrown { exit } (the code is returned). */ +export async function capture(fn: () => Promise): Promise<{ out: string; err: string; exit: number | null }> { + const out: string[] = [], err: string[] = []; + const log = console.log, warn = console.warn, error = console.error, exit = process.exit, write = process.stdout.write; + console.log = (...a: unknown[]) => { out.push(a.map(String).join(' ')); }; + console.warn = (...a: unknown[]) => { err.push(a.map(String).join(' ')); }; + console.error = (...a: unknown[]) => { err.push(a.map(String).join(' ')); }; + process.stdout.write = ((s: string) => { out.push(String(s)); return true; }) as typeof process.stdout.write; + let code: number | null = null; + process.exit = ((c?: number) => { code = c ?? 0; throw new ExitSignal(code); }) as typeof process.exit; + const before = process.exitCode; + process.exitCode = 0; + try { await fn(); } catch (e) { if (!(e instanceof ExitSignal)) { restoreIo(); throw e; } } + restoreIo(); + if (code === null && process.exitCode) code = Number(process.exitCode); + process.exitCode = before ?? 0; + return { out: out.join('\n'), err: err.join('\n'), exit: code }; + function restoreIo(): void { console.log = log; console.warn = warn; console.error = error; process.exit = exit; process.stdout.write = write; } +} + +class ExitSignal extends Error { constructor(readonly code: number) { super(`exit ${code}`); } } + +/** The --json object printed by a command (printJson pretty-prints one object; log lines may follow). */ +export function jsonOut(out: string): J { + const i = out.indexOf('\n{\n') >= 0 ? out.indexOf('\n{\n') + 1 : out.indexOf('{\n'); + if (i < 0) throw new Error(`no JSON in output:\n${out.slice(0, 500)}`); + // find the matching closing brace at column 0 + const end = out.indexOf('\n}', i); + return JSON.parse(out.slice(i, end + 2)) as J; +} diff --git a/tests/store-ops-apple.test.ts b/tests/store-ops-apple.test.ts new file mode 100644 index 00000000..babdd0d1 --- /dev/null +++ b/tests/store-ops-apple.test.ts @@ -0,0 +1,363 @@ +// TestFlight wait / expire, IAP review submissions, offers (offer codes, win-back, promoted, pre-orders), custom +// product pages and in-app events: pure planners plus the commands against recorded App Store Connect answers +// (shapes as documented in the App Store Connect API 4.5.1 OpenAPI spec; every id and name is a placeholder). +import { afterEach, describe, expect, test } from 'bun:test'; +import { planExpire, expireCandidates, waitOutcome, waitDelay } from '../cli/lib/build-ops'; +import { bindIds, planIapSubmission, type SubmitState } from '../cli/lib/review-submit'; +import { + endPreOrderReq, iapOfferCodeBody, planPreOrder, planPromoted, promotedOrderReq, territoryRows, validateIapOfferCodes, validatePromoted, validateWinBack, winBackBody, +} from '../cli/lib/offers'; +import { checkEventMedia, cppCreateBody, eventCreateBody, planCppLocales, planEventLocales, validateCpp, validateEvents } from '../cli/lib/cpp-events'; +import { validateConfig } from '../cli/lib/config'; +import { run as testflight } from '../cli/apple/testflight'; +import { run as iapSubmit } from '../cli/apple/iap-submit'; +import { run as preorder } from '../cli/apple/preorder'; +import { run as promoted } from '../cli/apple/promoted'; +import { run as offerCodes } from '../cli/apple/offer-codes'; +import { run as winBack } from '../cli/apple/win-back'; +import { run as cpp } from '../cli/apple/cpp'; +import { run as events } from '../cli/apple/events'; +import { ascEnv, BASE, capture, jsonOut, mockFetch, project, restore } from './helpers/store-mock'; + +afterEach(restore); +// eslint-disable-next-line @typescript-eslint/no-explicit-any +const page = (data: unknown[], included: unknown[] = []): any => ({ data, included, links: { self: 'https://api.appstoreconnect.apple.com/v1/x' }, meta: { paging: { total: data.length, limit: 200 } } }); + +// builds of one app as GET /v1/builds?include=preReleaseVersion,appStoreVersion answers them +const BUILDS = page([ + { type: 'builds', id: 'b-50', attributes: { version: '50', uploadedDate: '2026-10-10T10:00:00-07:00', processingState: 'VALID', expired: false }, relationships: { preReleaseVersion: { data: { type: 'preReleaseVersions', id: 'p-12' } }, appStoreVersion: { data: null } } }, + { type: 'builds', id: 'b-49', attributes: { version: '49', uploadedDate: '2026-09-30T10:00:00-07:00', processingState: 'VALID', expired: false }, relationships: { preReleaseVersion: { data: { type: 'preReleaseVersions', id: 'p-12' } }, appStoreVersion: { data: { type: 'appStoreVersions', id: 'v-12' } } } }, + { type: 'builds', id: 'b-48', attributes: { version: '48', uploadedDate: '2026-08-01T10:00:00-07:00', processingState: 'VALID', expired: false }, relationships: { preReleaseVersion: { data: { type: 'preReleaseVersions', id: 'p-11' } }, appStoreVersion: { data: null } } }, + { type: 'builds', id: 'b-47', attributes: { version: '47', uploadedDate: '2026-07-01T10:00:00-07:00', processingState: 'VALID', expired: false }, relationships: { preReleaseVersion: { data: { type: 'preReleaseVersions', id: 'p-11' } }, appStoreVersion: { data: null } } }, + { type: 'builds', id: 'b-46', attributes: { version: '46', uploadedDate: '2026-06-01T10:00:00-07:00', processingState: 'PROCESSING', expired: false }, relationships: { preReleaseVersion: { data: { type: 'preReleaseVersions', id: 'p-11' } }, appStoreVersion: { data: null } } }, +], [{ type: 'preReleaseVersions', id: 'p-12', attributes: { version: '1.2.0', platform: 'IOS' } }, { type: 'preReleaseVersions', id: 'p-11', attributes: { version: '1.1.0', platform: 'IOS' } }]); + +describe('testflight wait', () => { + test('outcomes and poll delays', () => { + expect(waitOutcome({ found: false })).toBe('missing'); + expect(waitOutcome({ found: true, processingState: 'PROCESSING' })).toBe('processing'); + expect(waitOutcome({ found: true, processingState: 'VALID' })).toBe('valid'); + expect(waitOutcome({ found: true, processingState: 'INVALID' })).toBe('failed'); + expect([waitDelay(null), waitDelay(20_000), waitDelay(100_000)]).toEqual([20_000, 30_000, 120_000]); + }); + test('VALID build: exit 0 with the beta state in --json; FAILED: exit 1; not listed + --dry: exit 7 after one look', async () => { + ascEnv(); + const p = project(); + const one = (state: string) => page([{ type: 'builds', id: 'b-50', attributes: { version: '50', processingState: state }, relationships: { preReleaseVersion: { data: { type: 'preReleaseVersions', id: 'p-12' } }, buildBetaDetail: { data: { type: 'buildBetaDetails', id: 'd-50' } } } }], + [{ type: 'preReleaseVersions', id: 'p-12', attributes: { version: '1.2.0' } }, { type: 'buildBetaDetails', id: 'd-50', attributes: { internalBuildState: 'MISSING_EXPORT_COMPLIANCE', externalBuildState: 'MISSING_EXPORT_COMPLIANCE' } }]); + let calls = mockFetch([{ match: /^\/v1\/builds\?.*filter\[version\]=50/, answer: one('VALID') }]); + let r = await capture(() => testflight(p.ctx(['wait', '--build', '50', '--json']))); + expect(r.exit).toBe(0); + expect(jsonOut(r.out)).toMatchObject({ build: '50', version: '1.2.0', outcome: 'valid', internal: 'MISSING_EXPORT_COMPLIANCE' }); + expect(r.out).toContain('storebound apple encryption --build 50'); + expect(calls[0]!.path).toContain('include=preReleaseVersion%2CbuildBetaDetail'); + mockFetch([{ match: /^\/v1\/builds\?/, answer: one('FAILED') }]); + r = await capture(() => testflight(p.ctx(['wait', '--build', '50']))); + expect(r.exit).toBe(1); + calls = mockFetch([{ match: /^\/v1\/builds\?/, answer: page([]) }]); + r = await capture(() => testflight(p.ctx(['wait', '--build', '51', '--dry']))); + expect(r.exit).toBe(7); + expect(calls).toHaveLength(1); + expect(r.out).toContain('not listed yet'); + }); +}); + +describe('testflight expire', () => { + test('plan: newest kept, attached and processing builds protected, --keep / --older-than combine', () => { + const c = expireCandidates([BUILDS]); + expect(c.map(b => [b.build, b.version, b.attached])).toEqual([['50', '1.2.0', false], ['49', '1.2.0', true], ['48', '1.1.0', false], ['47', '1.1.0', false], ['46', '1.1.0', false]]); + const now = Date.parse('2026-10-11T00:00:00Z'); + const k = planExpire(c, { keep: 2, now }); + expect(k.expire.map(b => b.build)).toEqual(['48', '47']); + expect(k.protected.map(p => [p.b.build, p.why])).toEqual([['49', 'attached to an App Store version'], ['46', 'still PROCESSING']]); + expect(k.reqs[0]).toEqual({ method: 'PATCH', path: '/v1/builds/b-48', note: 'expire build 48 (1.1.0), uploaded 2026-08-01', body: { data: { type: 'builds', id: 'b-48', attributes: { expired: true } } } }); + expect(planExpire(c, { olderThanDays: 80, now }).expire.map(b => b.build)).toEqual(['47']); + expect(planExpire(c, { keep: 3, olderThanDays: 30, now }).expire.map(b => b.build)).toEqual(['47']); + expect(() => planExpire(c, {})).toThrow('--keep'); + expect(() => planExpire(c, { keep: 0 })).toThrow('>= 1'); + }); + test('dry run sends nothing; without --yes in a non-terminal nothing is expired; --yes sends the PATCHes', async () => { + ascEnv(); + const p = project(); + let calls = mockFetch([{ match: /^\/v1\/builds\?.*filter\[expired\]=false/, answer: BUILDS }, { method: 'PATCH', match: /^\/v1\/builds\/b-4[78]$/, answer: { data: {} } }]); + let r = await capture(() => testflight(p.ctx(['expire', '--keep', '2', '--dry', '--json']))); + expect(jsonOut(r.out)).toMatchObject({ dryRun: true, expire: [{ build: '48' }, { build: '47' }], keep: 1 }); + expect(calls.filter(c => c.method !== 'GET')).toHaveLength(0); + r = await capture(() => testflight(p.ctx(['expire', '--keep', '2']))); + expect(r.out).toContain('re-run with --yes'); + calls = mockFetch([{ match: /^\/v1\/builds\?/, answer: BUILDS }, { method: 'PATCH', match: /^\/v1\/builds\/b-4[78]$/, answer: { data: {} } }]); + r = await capture(() => testflight(p.ctx(['expire', '--keep', '2', '--yes']))); + expect(calls.filter(c => c.method === 'PATCH').map(c => [c.path, c.body])).toEqual([ + ['/v1/builds/b-48', { data: { type: 'builds', id: 'b-48', attributes: { expired: true } } }], ['/v1/builds/b-47', { data: { type: 'builds', id: 'b-47', attributes: { expired: true } } }]]); + }); +}); + +// ---- IAP review submissions ---- + +const STATE: SubmitState = { + appVersions: [{ id: 'v-2', versionString: '1.2.0', state: 'PREPARE_FOR_SUBMISSION' }, { id: 'v-1', versionString: '1.1.0', state: 'READY_FOR_DISTRIBUTION' }], + iaps: [ + { id: 'i-coins', productId: 'com.example.notes.coins_100', type: 'CONSUMABLE', state: 'APPROVED', versions: [{ id: 'iv-1', version: 1, state: 'APPROVED' }] }, + { id: 'i-coins2', productId: 'com.example.notes.coins_500', type: 'CONSUMABLE', state: 'READY_TO_SUBMIT', versions: [{ id: 'iv-2', version: 1, state: 'PREPARE_FOR_SUBMISSION' }] }, + { id: 'i-pro', productId: 'com.example.notes.pro', type: 'NON_CONSUMABLE', state: 'READY_TO_SUBMIT', versions: [{ id: 'iv-3', version: 1, state: 'PREPARE_FOR_SUBMISSION' }] }, + { id: 'i-meta', productId: 'com.example.notes.theme', type: 'NON_CONSUMABLE', state: 'MISSING_METADATA', versions: [] }, + ], + subs: [{ id: 's-m', productId: 'com.example.notes.plus_monthly', groupId: 'g-1', state: 'READY_TO_SUBMIT', versions: [{ id: 'sv-1', version: 1, state: 'PREPARE_FOR_SUBMISSION' }] }], + groups: [{ id: 'g-1', name: 'Plus', versions: [{ id: 'gv-1', version: 1, state: 'PREPARE_FOR_SUBMISSION' }] }], + draft: null, +}; + +describe('IAP review submission plan', () => { + test('a later consumable goes alone; first non-consumable / first subscription need the app version', () => { + const later = planIapSubmission(STATE, ['com.example.notes.coins_500']); + expect(later.blockers).toEqual([]); + expect(later.needsAppVersion).toBe(false); + expect(later.items).toEqual([{ kind: 'inAppPurchaseVersion', versionId: 'iv-2', label: 'com.example.notes.coins_500 (consumable, version 1)' }]); + expect(later.prepare.map(r => `${r.method} ${r.path}`)).toEqual(['POST /v1/reviewSubmissions', 'POST /v1/reviewSubmissionItems']); + expect(bindIds(later.prepare[1]!, { submission: 'rs-9' }).body).toEqual({ data: { type: 'reviewSubmissionItems', relationships: { reviewSubmission: { data: { type: 'reviewSubmissions', id: 'rs-9' } }, inAppPurchaseVersion: { data: { type: 'inAppPurchaseVersions', id: 'iv-2' } } } } }); + expect(bindIds(later.submit, { submission: 'rs-9' }).body).toEqual({ data: { type: 'reviewSubmissions', id: 'rs-9', attributes: { submitted: true } } }); + + const first = planIapSubmission(STATE, ['com.example.notes.pro', 'com.example.notes.plus_monthly', 'com.example.notes.theme', 'com.example.notes.coins_100', 'com.example.nope']); + expect(first.firstOfType.sort()).toEqual(['auto-renewable subscription', 'non-consumable']); + expect(first.blockers[0]).toContain('--with-version'); + expect(first.blockers[0]).toContain('1.2.0'); + expect(first.items.map(i => i.kind)).toEqual(['inAppPurchaseVersion', 'subscriptionVersion', 'subscriptionGroupVersion']); + expect(Object.fromEntries(first.skipped.map(s => [s.id, s.why.split(' (')[0]!.split(':')[0]]))).toEqual({ + 'com.example.notes.theme': 'missing metadata', 'com.example.notes.coins_100': 'latest version is APPROVED', 'com.example.nope': 'not on App Store Connect' }); + + const withV = planIapSubmission(STATE, ['com.example.notes.pro'], { withVersion: true }); + expect(withV.blockers).toEqual([]); + expect(withV.items.map(i => i.kind)).toEqual(['appStoreVersion', 'inAppPurchaseVersion']); + expect(withV.appVersion?.versionString).toBe('1.2.0'); + }); + test('no approved app version yet: even a later type needs the version; a draft is reused and items in it are skipped', () => { + const fresh = planIapSubmission({ ...STATE, appVersions: [{ id: 'v-1', versionString: '1.0.0', state: 'PREPARE_FOR_SUBMISSION' }] }, ['com.example.notes.coins_500']); + expect(fresh.needsAppVersion).toBe(true); + expect(fresh.blockers[0]).toContain('no approved version'); + const draft = planIapSubmission({ ...STATE, draft: { id: 'rs-1', itemVersionIds: ['iv-2'] } }, ['com.example.notes.coins_500', 'com.example.notes.pro'], { withVersion: true }); + expect(draft.prepare.map(r => r.path)).not.toContain('/v1/reviewSubmissions'); + expect(draft.skipped.find(s => s.id === 'com.example.notes.coins_500')?.why).toBe('already in the draft submission'); + expect(draft.submit.path).toBe('/v1/reviewSubmissions/rs-1'); + expect(planIapSubmission({ ...STATE, draft: { id: 'rs-1', itemVersionIds: Array.from({ length: 200 }, (_, i) => `x${i}`) } }, ['com.example.notes.coins_500']).blockers[0]).toContain('200'); + }); + test('command: --dry --json plans; a real run asks, creates the draft, adds the items, submits', async () => { + ascEnv(); + const p = project({ ...BASE, products: [{ id: 'com.example.notes.coins_500', type: 'consumable', usd: 4.99, listings: { en: { title: '500 coins', description: 'A bag of coins' } } }] }); + const routes = () => mockFetch([ + { match: /^\/v1\/apps\/6400000101\/appStoreVersions\?/, answer: page([{ type: 'appStoreVersions', id: 'v-1', attributes: { versionString: '1.1.0', appVersionState: 'READY_FOR_DISTRIBUTION', platform: 'IOS' } }]) }, + { match: /^\/v1\/apps\/6400000101\/inAppPurchasesV2\?/, answer: page([ + { type: 'inAppPurchases', id: 'i-coins', attributes: { productId: 'com.example.notes.coins_100', inAppPurchaseType: 'CONSUMABLE', state: 'APPROVED' } }, + { type: 'inAppPurchases', id: 'i-coins2', attributes: { productId: 'com.example.notes.coins_500', inAppPurchaseType: 'CONSUMABLE', state: 'READY_TO_SUBMIT' } }]) }, + { match: /^\/v2\/inAppPurchases\/i-coins2\/versions/, answer: page([{ type: 'inAppPurchaseVersions', id: 'iv-2', attributes: { version: 1, state: 'PREPARE_FOR_SUBMISSION' } }]) }, + { match: /^\/v1\/apps\/6400000101\/subscriptionGroups/, answer: page([]) }, + { match: /^\/v1\/reviewSubmissions\?filter\[app\]=6400000101&filter\[platform\]=IOS&filter\[state\]=READY_FOR_REVIEW/, answer: page([]) }, + { method: 'POST', match: /^\/v1\/reviewSubmissions$/, answer: { data: { type: 'reviewSubmissions', id: 'rs-new', attributes: { state: 'READY_FOR_REVIEW' } } } }, + { method: 'POST', match: /^\/v1\/reviewSubmissionItems$/, answer: { data: { type: 'reviewSubmissionItems', id: 'it-1' } } }, + { method: 'PATCH', match: /^\/v1\/reviewSubmissions\/rs-new$/, answer: { data: { type: 'reviewSubmissions', id: 'rs-new', attributes: { state: 'WAITING_FOR_REVIEW' } } } }, + ]); + let calls = routes(); + let r = await capture(() => iapSubmit(p.ctx(['--dry', '--json']))); + const plan = jsonOut(r.out); + expect(plan).toMatchObject({ dryRun: true, blockers: [], needsAppVersion: false, hasApprovedVersion: true }); + expect((plan.requests as string[]).at(-1)).toContain('PATCH /v1/reviewSubmissions/${submission} {submitted=true}'); + expect(calls.filter(c => c.method !== 'GET')).toHaveLength(0); + calls = routes(); + r = await capture(() => iapSubmit(p.ctx(['--yes']))); + expect(calls.filter(c => c.method !== 'GET').map(c => `${c.method} ${c.path}`)).toEqual(['POST /v1/reviewSubmissions', 'POST /v1/reviewSubmissionItems', 'PATCH /v1/reviewSubmissions/rs-new']); + expect(calls.find(c => c.path === '/v1/reviewSubmissionItems')!.body).toEqual({ data: { type: 'reviewSubmissionItems', relationships: { reviewSubmission: { data: { type: 'reviewSubmissions', id: 'rs-new' } }, inAppPurchaseVersion: { data: { type: 'inAppPurchaseVersions', id: 'iv-2' } } } } }); + calls = routes(); + r = await capture(() => iapSubmit(p.ctx(['--yes', '--no-submit']))); + expect(calls.filter(c => c.method === 'PATCH')).toHaveLength(0); + expect(r.out).toContain('Submit for Review'); + }); +}); + +// ---- offers ---- + +describe('offer codes, win-back, promoted, pre-orders: config and bodies', () => { + test('config checks (date rules only right before creating)', () => { + expect(validateIapOfferCodes('p', [{ name: 'Spring', eligibility: ['NON_SPENDER'], usd: 0.99, oneTimeCodes: [{ count: 500, expires: '2027-01-01' }] }], 'non_consumable')).toEqual([]); + const e = validateIapOfferCodes('p', [{ name: 'X', eligibility: ['NEW' as never], customCodes: [{ code: 'NO WAY', count: 30000 }], oneTimeCodes: [{ count: 10, expires: '2030-01-01' }] }], 'non_consumable', '2026-10-11').join('\n'); + for (const m of ['eligibility', 'free: true or usd', 'letters and digits', '1-25000', '500-25000', 'within 6 months']) expect(e).toContain(m); + const wb = { id: 'come-back', type: 'pay-up-front' as const, duration: 'P3M', usd: 9.99, paidMonths: 6, lapsedMonths: { min: 2, max: 24 }, start: '2026-11-01', end: '2026-11-30' }; + expect(validateWinBack('s', [wb])).toEqual([]); + expect(validateWinBack('s', [{ ...wb, start: '2026-10-11' }], '2026-10-11').join()).toContain('at the earliest tomorrow'); + expect(validateWinBack('s', [{ ...wb, paidMonths: 30, lapsedMonths: { min: 0, max: 30 }, waitMonths: 1, end: '2026-11-02' }]).join('\n')).toMatch(/paidMonths[\s\S]*lapsedMonths[\s\S]*waitMonths[\s\S]*at least 3 days/); + expect(validatePromoted({ products: Array.from({ length: 21 }, (_, i) => `p${i}`) }, new Set(['p0'])).join()).toContain('at most 20'); + // a config with them validates, an old campaign never breaks the config + const cfg = { ...BASE, products: [{ id: 'com.example.notes.pro', type: 'non_consumable' as const, usd: 4.99, listings: { en: { title: 'Pro', description: 'All features' } }, offerCodes: [{ name: 'Old', eligibility: ['CHURNED_SPENDER' as const], free: true, oneTimeCodes: [{ count: 500, expires: '2020-01-01' }] }] }], + apple: { ...BASE.apple!, promoted: { products: ['com.example.notes.pro'] } } }; + expect(validateConfig(cfg)).toEqual([]); + }); + test('IAP offer code body: paid per territory, free without a price point', () => { + const b = iapOfferCodeBody('i-pro', { name: 'Spring', eligibility: ['NON_SPENDER', 'CHURNED_SPENDER'], usd: 1.99 }, [{ territory: 'USA', pointId: 'pp-usa' }, { territory: 'DEU', pointId: 'pp-deu' }]); + expect(b.data).toEqual({ type: 'inAppPurchaseOfferCodes', attributes: { name: 'Spring', customerEligibilities: ['NON_SPENDER', 'CHURNED_SPENDER'] }, + relationships: { inAppPurchase: { data: { type: 'inAppPurchases', id: 'i-pro' } }, prices: { data: [{ type: 'inAppPurchaseOfferPrices', id: '${iapcode-0}' }, { type: 'inAppPurchaseOfferPrices', id: '${iapcode-1}' }] } } }); + expect(b.included[1]).toEqual({ type: 'inAppPurchaseOfferPrices', id: '${iapcode-1}', relationships: { territory: { data: { type: 'territories', id: 'DEU' } }, pricePoint: { data: { type: 'inAppPurchasePricePoints', id: 'pp-deu' } } } }); + expect(iapOfferCodeBody('i', { name: 'Free', eligibility: ['NON_SPENDER'], free: true }, [{ territory: 'USA' }]).included[0]!.relationships).toEqual({ territory: { data: { type: 'territories', id: 'USA' } } }); + expect(() => iapOfferCodeBody('i', { name: 'P', eligibility: ['NON_SPENDER'], usd: 1 }, [{ territory: 'USA' }])).toThrow('needs a price point'); + }); + test('win-back body like Apple\'s example request', () => { + const b = winBackBody('s-1', 'P1M', { id: '6Monthfor3_a', name: '6 Months for 3 A', type: 'pay-up-front', duration: 'P6M', usd: 3, paidMonths: 6, lapsedMonths: { min: 2, max: 24 }, waitMonths: 2, + start: '2026-11-01', end: '2026-11-30', priority: 'high', promote: true }, [{ territory: 'USA', pointId: 'sp-usa' }]); + expect(b.data.attributes).toEqual({ referenceName: '6 Months for 3 A', offerId: '6Monthfor3_a', duration: 'SIX_MONTHS', offerMode: 'PAY_UP_FRONT', periodCount: 1, + customerEligibilityPaidSubscriptionDurationInMonths: 6, customerEligibilityTimeSinceLastSubscribedInMonths: { minimum: 2, maximum: 24 }, customerEligibilityWaitBetweenOffersInMonths: 2, + startDate: '2026-11-01', endDate: '2026-11-30', priority: 'HIGH', promotionIntent: 'USE_AUTO_GENERATED_ASSETS' }); + expect(b.included[0]).toEqual({ type: 'winBackOfferPrices', id: '${winback-0}', relationships: { subscriptionPricePoint: { data: { type: 'subscriptionPricePoints', id: 'sp-usa' } } } }); + expect(winBackBody('s', 'P1M', { id: 'x', type: 'pay-as-you-go', usd: 1, periods: 3, paidMonths: 1, lapsedMonths: { min: 1, max: 3 }, start: '2026-11-01' }, [{ territory: 'USA', pointId: 'p' }]).data.attributes).toMatchObject({ duration: 'ONE_MONTH', offerMode: 'PAY_AS_YOU_GO', periodCount: 3, priority: 'NORMAL', promotionIntent: 'NOT_PROMOTED' }); + }); + test('promoted: create disabled, enable only with --enable, order configured first', () => { + const prods = new Map([['a', { apiId: 'i-a', kind: 'iap' as const }], ['b', { apiId: 's-b', kind: 'sub' as const }]]); + const now = [{ id: 'pp-x', productId: 'x', enabled: true, visibleForAllUsers: true }, { id: 'pp-b', productId: 'b', enabled: false, visibleForAllUsers: false }]; + const p = planPromoted('app', { products: ['a', 'b', 'zzz'] }, now, prods); + expect(p.create[0]!.body).toEqual({ data: { type: 'promotedPurchases', attributes: { visibleForAllUsers: true, enabled: false }, relationships: { app: { data: { type: 'apps', id: 'app' } }, inAppPurchaseV2: { data: { type: 'inAppPurchases', id: 'i-a' } } } } }); + expect(p.update.map(r => r.note)).toEqual(['b: visibleForAllUsers=true']); + expect(p.unknown).toEqual(['zzz']); + expect(p.extra).toEqual(['x']); + expect(planPromoted('app', { products: ['b'] }, now, prods, { enable: true }).update[0]!.body).toEqual({ data: { type: 'promotedPurchases', id: 'pp-b', attributes: { visibleForAllUsers: true, enabled: true } } }); + expect(promotedOrderReq('app', { products: ['b'] }, now)).toEqual({ method: 'PATCH', path: '/v1/apps/app/relationships/promotedPurchases', note: 'promoted purchase order', body: { data: [{ type: 'promotedPurchases', id: 'pp-b' }, { type: 'promotedPurchases', id: 'pp-x' }] } }); + expect(promotedOrderReq('app', { products: ['x'] }, now)).toBeNull(); + }); + test('pre-order: 2-365 days, released territories skipped, end releases now', () => { + const rows = territoryRows([page([ + { type: 'territoryAvailabilities', id: 'ta-usa', attributes: { available: true, releaseDate: null, preOrderEnabled: false, contentStatuses: ['AVAILABLE_FOR_SALE_UNRELEASED_APP'] }, relationships: { territory: { data: { type: 'territories', id: 'USA' } } } }, + { type: 'territoryAvailabilities', id: 'ta-deu', attributes: { available: true, releaseDate: '2026-12-01', preOrderEnabled: true, contentStatuses: ['AVAILABLE_FOR_PREORDER_ON_DATE'] }, relationships: { territory: { data: { type: 'territories', id: 'DEU' } } } }, + { type: 'territoryAvailabilities', id: 'ta-tur', attributes: { available: true, contentStatuses: ['AVAILABLE'] }, relationships: { territory: { data: { type: 'territories', id: 'TUR' } } } }, + ])]); + const p = planPreOrder(rows, '2026-12-01', null, '2026-10-11'); + expect(p.problems).toEqual([]); + expect(p.reqs.map(r => r.path)).toEqual(['/v1/territoryAvailabilities/ta-usa']); + expect(p.reqs[0]!.body).toEqual({ data: { type: 'territoryAvailabilities', id: 'ta-usa', attributes: { available: true, preOrderEnabled: true, releaseDate: '2026-12-01' } } }); + expect(p.warnings).toEqual(['TUR: already released there, no pre-order possible']); + expect(planPreOrder(rows, '2026-10-12', null, '2026-10-11').problems[0]).toContain('at least 2 days'); + expect(planPreOrder(rows, '2027-06-01', null, '2026-10-11').warnings[0]).toContain('180 days'); + expect(planPreOrder(rows, '2026-12-01', ['FRA'], '2026-10-11').problems[0]).toContain('FRA'); + expect(endPreOrderReq(rows, null)!.body).toEqual({ data: { type: 'endAppAvailabilityPreOrders', relationships: { territoryAvailabilities: { data: [{ type: 'territoryAvailabilities', id: 'ta-deu' }] } } } }); + }); +}); + +describe('offer commands against recorded answers', () => { + test('preorder status --json and enable --dry', async () => { + ascEnv(); + const p = project(); + mockFetch([ + { match: /^\/v1\/apps\/6400000101\/appAvailabilityV2$/, answer: { data: { type: 'appAvailabilities', id: 'av-1', attributes: { availableInNewTerritories: true } } } }, + { match: /^\/v2\/appAvailabilities\/av-1\/territoryAvailabilities\?include=territory/, answer: page([ + { type: 'territoryAvailabilities', id: 'ta-usa', attributes: { available: true, releaseDate: null, preOrderEnabled: false, preOrderPublishDate: null, contentStatuses: ['AVAILABLE_FOR_SALE_UNRELEASED_APP'] }, relationships: { territory: { data: { type: 'territories', id: 'USA' } } } }]) }, + ]); + let r = await capture(() => preorder(p.ctx(['status', '--json']))); + expect(jsonOut(r.out)).toMatchObject({ availableInNewTerritories: true, territories: [{ territory: 'USA', preOrderEnabled: false }] }); + const future = new Date(Date.now() + 30 * 86_400_000).toISOString().slice(0, 10); + r = await capture(() => preorder(p.ctx(['enable', '--release-date', future, '--dry', '--json']))); + expect((jsonOut(r.out).requests as string[])[0]).toContain('PATCH /v1/territoryAvailabilities/ta-usa {available=true, preOrderEnabled=true'); + }); + test('promoted: status without config; plan with config is a dry run', async () => { + ascEnv(); + const routes = [ + { match: /^\/v1\/apps\/6400000101\/inAppPurchasesV2/, answer: page([{ type: 'inAppPurchases', id: 'i-pro', attributes: { productId: 'com.example.notes.pro', inAppPurchaseType: 'NON_CONSUMABLE', state: 'APPROVED' } }]) }, + { match: /^\/v1\/apps\/6400000101\/subscriptionGroups/, answer: page([]) }, + { match: /^\/v1\/apps\/6400000101\/promotedPurchases\?include=/, answer: page([]) }, + ]; + mockFetch(routes); + let r = await capture(() => promoted(project().ctx(['--json']))); + expect(jsonOut(r.out)).toEqual({ promoted: [] }); + const calls = mockFetch(routes); + r = await capture(() => promoted(project({ ...BASE, apple: { ...BASE.apple!, promoted: { products: ['com.example.notes.pro'] } } }).ctx(['--dry', '--json']))); + expect((jsonOut(r.out).requests as string[])[0]).toContain('POST /v1/promotedPurchases {visibleForAllUsers=true, enabled=false}'); + expect(calls.filter(c => c.method !== 'GET')).toHaveLength(0); + }); + test('offer-codes --dry: campaign with equalized prices; codes need --codes', async () => { + ascEnv(); + const p = project({ ...BASE, products: [{ id: 'com.example.notes.pro', type: 'non_consumable', usd: 4.99, listings: { en: { title: 'Pro', description: 'All features' } }, + offerCodes: [{ name: 'Spring', eligibility: ['NON_SPENDER'], usd: 0.99, customCodes: [{ code: 'SPRING26', count: 100 }] }] }] }); + const calls = mockFetch([ + { match: /^\/v1\/apps\/6400000101\/inAppPurchasesV2\?filter\[productId\]=com.example.notes.pro/, answer: page([{ type: 'inAppPurchases', id: 'i-pro', attributes: { productId: 'com.example.notes.pro', state: 'APPROVED' } }]) }, + { match: /^\/v2\/inAppPurchases\/i-pro\/offerCodes/, answer: page([]) }, + { match: /^\/v2\/inAppPurchases\/i-pro\/pricePoints\?filter\[territory\]=USA/, answer: page([ + { type: 'inAppPurchasePricePoints', id: 'pp-usa-099', attributes: { customerPrice: '0.99', proceeds: '0.84' }, relationships: { territory: { data: { type: 'territories', id: 'USA' } } } }, + { type: 'inAppPurchasePricePoints', id: 'pp-usa-499', attributes: { customerPrice: '4.99', proceeds: '4.24' }, relationships: { territory: { data: { type: 'territories', id: 'USA' } } } }]) }, + { match: /^\/v1\/inAppPurchasePricePoints\/pp-usa-099\/equalizations/, answer: page([ + { type: 'inAppPurchasePricePoints', id: 'pp-deu-099', attributes: { customerPrice: '0.99' }, relationships: { territory: { data: { type: 'territories', id: 'DEU' } } } }]) }, + ]); + const r = await capture(() => offerCodes(p.ctx(['--dry', '--json']))); + expect(r.out).toContain('would POST /v1/inAppPurchaseOfferCodes {name="Spring"'); + expect(r.out).toContain('2 territories'); + expect(jsonOut(r.out).codes).toEqual(['POST /v1/inAppPurchaseOfferCodeCustomCodes {customCode="SPRING26", numberOfCodes=100} # custom code SPRING26 (100 redemptions)']); + expect(r.out).toContain('run with --codes'); + expect(calls.filter(c => c.method !== 'GET')).toHaveLength(0); + }); + test('win-back --dry: an approved subscription gets the plan, others are skipped with the reason', async () => { + ascEnv(); + const start = new Date(Date.now() + 7 * 86_400_000).toISOString().slice(0, 10); + const sub = (id: string) => ({ id, period: 'P1M' as const, level: 1, usd: 4.99, listings: { en: { title: 'Plus', description: 'Everything' } }, + winBack: [{ id: `wb-${id.slice(-1)}`, type: 'free' as const, duration: 'P1M', paidMonths: 3, lapsedMonths: { min: 1, max: 12 }, start }] }); + const p = project({ ...BASE, subscriptions: [{ name: 'Plus', listings: { en: { name: 'Plus' } }, subscriptions: [sub('com.example.notes.plus_a'), sub('com.example.notes.plus_b')] }] }); + const calls = mockFetch([ + { match: /^\/v1\/apps\/6400000101\/subscriptionGroups/, answer: page([{ type: 'subscriptionGroups', id: 'g-1', attributes: { referenceName: 'Plus' } }]) }, + { match: /^\/v1\/subscriptionGroups\/g-1\/subscriptions/, answer: page([{ type: 'subscriptions', id: 's-a', attributes: { productId: 'com.example.notes.plus_a', state: 'APPROVED' } }, { type: 'subscriptions', id: 's-b', attributes: { productId: 'com.example.notes.plus_b', state: 'READY_TO_SUBMIT' } }]) }, + { match: /^\/v1\/subscriptions\/s-[ab]\/winBackOffers/, answer: page([]) }, + { match: /^\/v1\/subscriptions\/s-a\/prices\?include=territory/, answer: page([{ type: 'subscriptionPrices', id: 'sp1', relationships: { territory: { data: { type: 'territories', id: 'USA' } } } }]) }, + ]); + const r = await capture(() => winBack(p.ctx(['--dry', '--json']))); + const j = jsonOut(r.out); + expect((j.create as string[])[0]).toContain('POST /v1/winBackOffers {referenceName="wb-a", offerId="wb-a", duration="ONE_MONTH", offerMode="FREE_TRIAL"'); + expect(j.skipped).toEqual([{ id: 'com.example.notes.plus_b', why: 'subscription is READY_TO_SUBMIT: win-back offers need an approved subscription' }]); + expect(calls.filter(c => c.method !== 'GET')).toHaveLength(0); + }); +}); + +// ---- custom product pages and in-app events ---- + +describe('custom product pages and in-app events', () => { + const EV = { referenceName: 'Winter Challenge', badge: 'CHALLENGE' as const, purpose: 'KEEP_ACTIVE_USERS_INFORMED' as const, + schedule: { publishStart: '2026-12-01T00:00:00Z', eventStart: '2026-12-10T00:00:00Z', eventEnd: '2026-12-20T00:00:00Z' }, + listings: { en: { name: 'Winter Challenge', shortDescription: 'Finish ten lists before New Year', longDescription: 'Ten lists, one badge. Share your progress with friends.' } }, + media: { card: 'store/events/winter/{lang}-card.png' } }; + test('config checks', () => { + expect(validateCpp([{ name: 'Students', variant: 'b', promotionalText: { en: 'For class notes.' }, deepLink: 'https://example.com/students' }], new Set(['en']), ['b'])).toEqual([]); + expect(validateCpp([{ name: 'A', variant: 'z', deepLink: 'not a link', promotionalText: { xx: 'x'.repeat(171) } }], new Set(['en']), []).join('\n')).toMatch(/variant[\s\S]*deepLink[\s\S]*not in languages[\s\S]*171 > 170/); + expect(validateEvents([EV], new Set(['en']))).toEqual([]); + const bad = validateEvents([{ ...EV, schedule: { publishStart: '2026-11-01T00:00:00Z', eventStart: '2026-12-10T00:00:00Z', eventEnd: '2027-02-10T00:00:00Z' }, listings: { en: { name: 'x'.repeat(31), shortDescription: '', longDescription: 'ok' } } }], new Set(['en'])).join('\n'); + for (const m of ['at most 31 days', 'at most 14 days', 'name: 31 > 30', 'shortDescription: missing']) expect(bad).toContain(m); + expect(checkEventMedia('EVENT_CARD', 1920, 1080, 'png')).toEqual([]); + expect(checkEventMedia('EVENT_DETAILS_PAGE', 1920, 1080, 'png').join()).toContain('9:16'); + }); + test('request bodies', () => { + const b = cppCreateBody('6400000101', { name: 'Students', deepLink: 'https://example.com/s' }, [{ locale: 'en-US', promotionalText: 'For class notes.' }, { locale: 'de-DE' }]); + expect(b.data.relationships.appCustomProductPageVersions).toEqual({ data: [{ type: 'appCustomProductPageVersions', id: '${cpp-version}' }] }); + expect(b.included[0]).toEqual({ type: 'appCustomProductPageVersions', id: '${cpp-version}', attributes: { deepLink: 'https://example.com/s' }, relationships: { appCustomProductPageLocalizations: { data: [{ type: 'appCustomProductPageLocalizations', id: '${cpp-loc-0}' }, { type: 'appCustomProductPageLocalizations', id: '${cpp-loc-1}' }] } } }); + expect(b.included[2]).toEqual({ type: 'appCustomProductPageLocalizations', id: '${cpp-loc-1}', attributes: { locale: 'de-DE' } }); + expect(planCppLocales('cv', [{ id: 'l1', locale: 'en-US', promotionalText: 'old' }], [{ locale: 'en-US', promotionalText: 'new' }, { locale: 'tr' }]).map(r => `${r.method} ${r.path}`)).toEqual(['PATCH /v1/appCustomProductPageLocalizations/l1', 'POST /v1/appCustomProductPageLocalizations']); + const e = eventCreateBody('6400000101', EV, 'en-US', ['USA', 'DEU']); + expect(e.data.attributes).toEqual({ referenceName: 'Winter Challenge', badge: 'CHALLENGE', primaryLocale: 'en-US', priority: 'NORMAL', purpose: 'KEEP_ACTIVE_USERS_INFORMED', + territorySchedules: [{ territories: ['USA', 'DEU'], publishStart: '2026-12-01T00:00:00Z', eventStart: '2026-12-10T00:00:00Z', eventEnd: '2026-12-20T00:00:00Z' }] }); + expect(planEventLocales('ev', [{ id: 'l', locale: 'en-US', name: 'Winter Challenge', shortDescription: 'old', longDescription: 'Ten lists, one badge. Share your progress with friends.' }], [{ locale: 'en-US', ...EV.listings.en }])[0]!.note).toBe('en-US shortDescription'); + }); + test('cpp create --dry --json and events create --dry against recorded answers', async () => { + ascEnv(); + const p = project({ ...BASE, apple: { ...BASE.apple!, customProductPages: [{ name: 'Students', promotionalText: { en: 'For class notes.' } }], events: [EV] } }); + const calls = mockFetch([ + { match: /^\/v1\/apps\/6400000101\/appCustomProductPages/, answer: page([]) }, + { match: /^\/v1\/apps\/6400000101\/appEvents/, answer: page([]) }, + { match: /^\/v1\/territories/, answer: page([{ type: 'territories', id: 'USA' }, { type: 'territories', id: 'DEU' }]) }, + ]); + let r = await capture(() => cpp(p.ctx(['create', '--dry', '--json']))); + expect(jsonOut(r.out).requests).toEqual(['POST /v1/appCustomProductPages {name="Students"} # page "Students" with 3 locale(s)']); + r = await capture(() => events(p.ctx(['create', '--dry', '--json']))); + expect((jsonOut(r.out).requests as string[])[0]).toContain('POST /v1/appEvents {referenceName="Winter Challenge", badge="CHALLENGE", primaryLocale="en-US"'); + expect(r.out).toContain('then: 1 localization(s)'); + expect(calls.filter(c => c.method !== 'GET')).toHaveLength(0); + // submit of a created page: the dry run shows draft, item and submit, and sends nothing + const sent = mockFetch([ + { match: /^\/v1\/apps\/6400000101\/appCustomProductPages/, answer: page([{ type: 'appCustomProductPages', id: 'cpp-1', attributes: { name: 'Students', visible: false, url: 'https://apps.apple.com/us/app/id6400000101?ppid=cpp-1' } }]) }, + { match: /^\/v1\/appCustomProductPages\/cpp-1\/appCustomProductPageVersions/, answer: page([{ type: 'appCustomProductPageVersions', id: 'cv-1', attributes: { version: '1', state: 'PREPARE_FOR_SUBMISSION', deepLink: null } }]) }, + { match: /^\/v1\/reviewSubmissions\?filter\[app\]=6400000101/, answer: page([]) }, + ]); + r = await capture(() => cpp(p.ctx(['submit', '--name', 'Students', '--dry']))); + expect(r.out).toContain('would POST /v1/reviewSubmissionItems'); + expect(r.out).toContain('would PATCH /v1/reviewSubmissions/${submission}'); + r = await capture(() => cpp(p.ctx(['submit', '--name', 'Students']))); + expect(r.out).toContain('re-run with --yes'); + expect(sent.filter(c => c.method !== 'GET')).toHaveLength(0); + }); +}); diff --git a/tests/store-ops-reports.test.ts b/tests/store-ops-reports.test.ts new file mode 100644 index 00000000..fd9f3d15 --- /dev/null +++ b/tests/store-ops-reports.test.ts @@ -0,0 +1,202 @@ +// Sales / finance reports and crash / feedback triage: parsers and summaries on sanitized report files, plus the +// commands against recorded App Store Connect, Cloud Storage and Play Developer Reporting answers. +import { afterEach, describe, expect, test } from 'bun:test'; +import { existsSync, readFileSync } from 'node:fs'; +import { join } from 'node:path'; +import { deflateRawSync } from 'node:zlib'; +import { + appleFinancePath, appleReportDate, appleSalesPath, parsePlayCsv, parseTsv, playReportPrefix, summarizeAppleFinance, summarizeAppleSales, summarizePlayEarnings, summarizePlaySales, totalsByCurrency, +} from '../cli/lib/reports'; +import { unzip } from '../cli/lib/zip'; +import { cluster, crashSignature, feedbackItems, playIssues, playReportItems, reportsQuery } from '../cli/lib/triage'; +import { run as reports } from '../cli/reports'; +import { run as triage } from '../cli/triage'; +import { ascEnv, BASE, capture, jsonOut, mockFetch, playEnv, project, restore } from './helpers/store-mock'; + +afterEach(restore); + +/** A ZIP with deflated entries (what Play puts in the reports bucket). */ +function zip(files: Record): Uint8Array { + const parts: Uint8Array[] = [], central: Uint8Array[] = []; + let off = 0; + for (const [name, text] of Object.entries(files)) { + const raw = new TextEncoder().encode(text), data = deflateRawSync(raw), n = new TextEncoder().encode(name); + const h = new DataView(new ArrayBuffer(30)); + h.setUint32(0, 0x04034b50, true); h.setUint16(8, 8, true); h.setUint32(18, data.length, true); h.setUint32(22, raw.length, true); h.setUint16(26, n.length, true); + const c = new DataView(new ArrayBuffer(46)); + c.setUint32(0, 0x02014b50, true); c.setUint16(10, 8, true); c.setUint32(20, data.length, true); c.setUint32(24, raw.length, true); c.setUint16(28, n.length, true); c.setUint32(42, off, true); + parts.push(new Uint8Array(h.buffer), n, data); + central.push(new Uint8Array(c.buffer), n); + off += 30 + n.length + data.length; + } + const cdSize = central.reduce((s, x) => s + x.length, 0); + const e = new DataView(new ArrayBuffer(22)); + e.setUint32(0, 0x06054b50, true); e.setUint16(8, Object.keys(files).length, true); e.setUint16(10, Object.keys(files).length, true); e.setUint32(12, cdSize, true); e.setUint32(16, off, true); + const all = [...parts, ...central, new Uint8Array(e.buffer)]; + const out = new Uint8Array(all.reduce((s, x) => s + x.length, 0)); + let p = 0; + for (const x of all) { out.set(x, p); p += x.length; } + return out; +} + +// Summary Sales Report 1_0 (tab-separated, header as in App Store Connect Help); values are made up +const SALES_TSV = ['Provider\tProvider Country\tSKU\tDeveloper\tTitle\tVersion\tProduct Type Identifier\tUnits\tDeveloper Proceeds\tBegin Date\tEnd Date\tCustomer Currency\tCountry Code\tCurrency of Proceeds\tApple Identifier\tCustomer Price', + 'APPLE\tUS\tcom.example.notes.pro\tExample\tPro\t\tIA1\t3\t3.49\t10/09/2026\t10/09/2026\tUSD\tUS\tUSD\t6400000301\t4.99', + 'APPLE\tUS\tcom.example.notes.pro\tExample\tPro\t\tIA1\t1\t3.49\t10/09/2026\t10/09/2026\tUSD\tCA\tUSD\t6400000301\t4.99', + 'APPLE\tUS\tcom.example.notes.pro\tExample\tPro\t\tIA1\t2\t4.12\t10/09/2026\t10/09/2026\tEUR\tDE\tEUR\t6400000301\t5.99', + 'APPLE\tUS\tNOTES1\tExample\tExample Notes\t1.2.0\t1F\t40\t0\t10/09/2026\t10/09/2026\tUSD\tUS\tUSD\t6400000101\t0', ''].join('\n'); +const FINANCE_TSV = ['Start Date\tEnd Date\tUPC\tISRC/ISBN\tVendor Identifier\tQuantity\tPartner Share\tExtended Partner Share\tPartner Share Currency\tSales or Return\tApple Identifier\tArtist/Show/Developer/Author\tTitle', + '09/01/2026\t09/30/2026\t\t\tcom.example.notes.pro\t10\t3.49\t34.90\tUSD\tS\t6400000301\tExample\tPro', + '09/01/2026\t09/30/2026\t\t\tcom.example.notes.pro\t-1\t3.49\t-3.49\tUSD\tR\t6400000301\tExample\tPro', '', 'Total_Rows\t2', 'Total_Amount\t31.41'].join('\n'); +const EARNINGS_CSV = 'Description,Transaction Date,Transaction Time,Tax Type,Transaction Type,Refund Type,Product Title,Package ID,Product Type,SKU ID,Hardware,Buyer Country,Buyer State,Buyer Postcode,Buyer Currency,Amount (Buyer Currency),Currency Conversion Rate,Merchant Currency,Amount (Merchant Currency)\n' + + 'GPA.0000-0000-0000-00001,"Sep 3, 2026",10:00:00 AM PDT,,Charge,,Pro (Example Notes),com.example.notes,inapp,com.example.notes.pro,phone,US,CA,9xxxx,USD,4.99,1,USD,4.99\n' + + 'GPA.0000-0000-0000-00001,"Sep 3, 2026",10:00:00 AM PDT,,Google fee,,Pro (Example Notes),com.example.notes,inapp,com.example.notes.pro,phone,US,CA,9xxxx,USD,-0.75,1,USD,-0.75\n' + + 'GPA.0000-0000-0000-00002,"Sep 4, 2026",11:00:00 AM PDT,,Charge,,Pro (Example Notes),com.example.notes,inapp,com.example.notes.pro,phone,DE,,,EUR,5.49,1.08,USD,5.93\n'; +const SALES_CSV = 'Order Number,Order Charged Date,Order Charged Timestamp,Financial Status,Device Model,Product Title,Package ID,Product Type,SKU ID,Currency of Sale,Item Price,Taxes Collected,Charged Amount,City of Buyer,State of Buyer,Postcode of Buyer,Country of Buyer\n' + + 'GPA.0000-0000-0000-00001,2026-09-03,1788000000,Charged,phone1,Pro,com.example.notes,inapp,com.example.notes.pro,USD,4.99,0.00,4.99,,CA,,US\n' + + 'GPA.0000-0000-0000-00003,2026-09-05,1788100000,Refund,phone2,Pro,com.example.notes,inapp,com.example.notes.pro,USD,4.99,0.00,4.99,,TX,,US\n'; + +describe('report parsers and summaries', () => { + test('request paths follow the allowed combinations', () => { + expect(appleSalesPath('12345678', { type: 'SALES', frequency: 'DAILY', date: '2026-10-09' })).toBe('/v1/salesReports?filter%5BvendorNumber%5D=12345678&filter%5BreportType%5D=SALES&filter%5BreportSubType%5D=SUMMARY&filter%5Bfrequency%5D=DAILY&filter%5BreportDate%5D=2026-10-09&filter%5Bversion%5D=1_0'); + expect(appleSalesPath('12345678', { type: 'SUBSCRIPTION', frequency: 'DAILY', date: '2026-10-09' })).toContain('filter%5Bversion%5D=1_3'); + expect(() => appleSalesPath('1', { type: 'SUBSCRIPTION', frequency: 'MONTHLY', date: '2026-09' })).toThrow('DAILY only'); + expect(appleFinancePath('12345678', '2026-09')).toContain('filter%5BreportType%5D=FINANCIAL&filter%5BregionCode%5D=ZZ&filter%5BreportDate%5D=2026-09'); + expect(appleFinancePath('12345678', '2026-09', { type: 'FINANCE_DETAIL' })).toContain('regionCode%5D=Z1'); + expect(appleReportDate('MONTHLY', undefined, new Date('2026-01-15T00:00:00Z'))).toBe('2025-12'); + expect(appleReportDate('DAILY', undefined, new Date('2026-10-11T12:00:00Z'))).toBe('2026-10-09'); + expect(() => appleReportDate('YEARLY', '2026-01')).toThrow('YYYY'); + expect(playReportPrefix('earnings', '2026-09')).toBe('earnings/earnings_202609'); + }); + test('Apple sales and finance: units x proceeds per SKU and currency, totals never mix currencies', () => { + const s = summarizeAppleSales(parseTsv(SALES_TSV)); + expect(s).toEqual([ + { key: 'NOTES1', title: 'Example Notes', currency: 'USD', units: 40, amount: 0, rows: 1 }, + { key: 'com.example.notes.pro', title: 'Pro', currency: 'EUR', units: 2, amount: 8.24, rows: 1 }, + { key: 'com.example.notes.pro', title: 'Pro', currency: 'USD', units: 4, amount: 13.96, rows: 2 }, + ]); + expect(totalsByCurrency(s)).toEqual([{ currency: 'EUR', units: 2, amount: 8.24 }, { currency: 'USD', units: 44, amount: 13.96 }]); + expect(summarizeAppleFinance(parseTsv(FINANCE_TSV))).toEqual([{ key: 'com.example.notes.pro', title: 'Pro', currency: 'USD', units: 9, amount: 31.41, rows: 2 }]); + }); + test('Play earnings and estimated sales out of the zip', () => { + const files = unzip(zip({ 'PlayApps_202609.csv': EARNINGS_CSV })); + expect(files.map(f => f.name)).toEqual(['PlayApps_202609.csv']); + const e = summarizePlayEarnings(parsePlayCsv(new TextDecoder().decode(files[0]!.data))); + expect(e).toEqual([ + { key: 'com.example.notes.pro · Charge', title: 'Pro (Example Notes)', currency: 'USD', units: 2, amount: 10.92, rows: 2 }, + { key: 'com.example.notes.pro · Google fee', title: 'Pro (Example Notes)', currency: 'USD', units: 0, amount: -0.75, rows: 1 }, + ]); + expect(summarizePlaySales(parsePlayCsv(SALES_CSV)).map(r => [r.key, r.amount])).toEqual([['com.example.notes.pro · Charged', 4.99], ['com.example.notes.pro · Refund', 4.99]]); + expect(() => unzip(new Uint8Array(40))).toThrow('not a zip'); + }); +}); + +describe('reports command', () => { + test('apple-sales: --dry hides the vendor number; a run saves the TSV and the summary CSV', async () => { + ascEnv(); + process.env.ASC_VENDOR_NUMBER = '12345678'; + const p = project(); + const calls = mockFetch([{ match: /^\/v1\/salesReports\?/, answer: new Response(Bun.gzipSync(new TextEncoder().encode(SALES_TSV)), { headers: { 'content-type': 'application/a-gzip' } }) }]); + let r = await capture(() => reports(p.ctx(['apple-sales', '--date', '2026-10-09', '--dry', '--json']))); + expect(jsonOut(r.out).request).toContain('filter[vendorNumber]='.replace(/[[\]]/g, m => encodeURIComponent(m))); + expect(calls).toHaveLength(0); + r = await capture(() => reports(p.ctx(['apple-sales', '--date', '2026-10-09', '--json']))); + const j = jsonOut(r.out); + expect(j.rows).toBe(4); + expect(j.totals).toEqual([{ currency: 'EUR', units: 2, amount: 8.24 }, { currency: 'USD', units: 44, amount: 13.96 }]); + expect(calls[0]!.path).toContain('filter%5BvendorNumber%5D=12345678'); + expect(readFileSync(join(p.root, '.storebound/reports/apple-sales-daily-2026-10-09.tsv'), 'utf8')).toBe(SALES_TSV); + expect(readFileSync(join(p.root, '.storebound/reports/apple-sales-daily-2026-10-09.summary.csv'), 'utf8')).toStartWith('key,title,currency,units,amount,rows\nNOTES1,Example Notes,USD,40,0,1\n'); + }); + test('apple-finance: 404 means no report yet; missing vendor number is explained', async () => { + ascEnv(); + const p = project(); + await expect(capture(() => reports(p.ctx(['apple-finance', '--month', '2026-09'])))).rejects.toThrow('ASC_VENDOR_NUMBER'); + mockFetch([{ match: /^\/v1\/financeReports\?/, answer: new Response('{"errors":[{"status":"404","code":"NOT_FOUND","title":"The request expected results but none were found"}]}', { status: 404 }) }]); + const r = await capture(() => reports(p.ctx(['apple-finance', '--month', '2026-09', '--vendor', '12345678']))); + expect(r.out).toContain('no report for that date'); + }); + test('play-earnings: lists the bucket, unzips, summarizes', async () => { + playEnv(); + const p = project(); + const calls = mockFetch([ + { match: /^\/storage\/v1\/b\/pubsite_prod_rev_01234567890123456789\/o\?prefix=earnings\/earnings_202609$/, answer: { kind: 'storage#objects', items: [{ kind: 'storage#object', name: 'earnings/earnings_202609_0123456789-1.zip', size: '512' }] } }, + { match: /^\/storage\/v1\/b\/pubsite_prod_rev_01234567890123456789\/o\/earnings\/earnings_202609_0123456789-1\.zip\?alt=media$/, answer: new Response(zip({ 'PlayApps_202609.csv': EARNINGS_CSV }) as Uint8Array) }, + ]); + const r = await capture(() => reports(p.ctx(['play-earnings', '--month', '2026-09', '--json']))); + expect(jsonOut(r.out)).toMatchObject({ rows: 3, totals: [{ currency: 'USD', units: 2, amount: 10.17 }] }); + expect(calls).toHaveLength(2); + expect(existsSync(join(p.root, '.storebound/reports/play-earnings-2026-09.csv'))).toBe(true); + }); +}); + +// ---- triage ---- + +const TEXT_CRASH = `Incident Identifier: 00000000-0000-0000-0000-000000000000 +Hardware Model: iPhone16,2 +Process: ExampleNotes [1234] +Identifier: com.example.notes +Version: 1.2.0 (50) +OS Version: iPhone OS 26.0 (23A341) +Exception Type: EXC_BAD_ACCESS (SIGSEGV) +Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010 +Crashed Thread: 3 + +Thread 0 name: Dispatch queue: com.apple.main-thread +Thread 0: +0 libsystem_kernel.dylib 0x00000001e0f0a1b4 mach_msg2_trap + 8 + +Thread 3 Crashed: +0 libswiftCore.dylib 0x0000000190a1b2c4 swift_retain + 12 +1 ExampleNotes 0x0000000100f1a2b4 ListStore.sync(_:) + 220 (ListStore.swift:88) +2 ExampleNotes 0x0000000100f1a000 closure #1 in ListStore.start() + 40 + +Thread 4: +0 libsystem_pthread.dylib 0x00000001f0a0b0c0 start_wqthread + 0 +`; +const IPS_CRASH = `{"app_name":"ExampleNotes","bundleID":"com.example.notes","app_version":"1.2.0","build_version":"50","os_version":"iPhone OS 26.0 (23A341)","name":"ExampleNotes"} +{"procName":"ExampleNotes","exception":{"type":"EXC_CRASH","signal":"SIGABRT"},"faultingThread":0,"threads":[{"triggered":true,"frames":[{"imageIndex":1,"symbol":"__pthread_kill","imageOffset":8},{"imageIndex":0,"symbol":"ListStore.save()","imageOffset":4096}]}],"usedImages":[{"name":"ExampleNotes"},{"name":"libsystem_kernel.dylib"}]}`; + +describe('triage parts', () => { + test('crash signatures: first app frame of the crashed thread, text and .ips', () => { + expect(crashSignature(TEXT_CRASH)).toBe('EXC_BAD_ACCESS (SIGSEGV) @ ExampleNotes ListStore.sync(_:) + 220 (ListStore.swift:88)'); + expect(crashSignature(IPS_CRASH)).toBe('EXC_CRASH SIGABRT @ ExampleNotes ListStore.save()'); + expect(crashSignature('garbage')).toBe('crash'); + }); + test('clusters with top devices, OS versions and builds; Play reports grouped by issue', () => { + const items = feedbackItems([ + { id: 'c1', attributes: { createdDate: '2026-10-09T10:00:00Z', deviceModel: 'iPhone16,2', osVersion: '26.0', comment: 'It crashed when I synced' }, relationships: { build: { data: { id: 'b-50' } } } }, + { id: 'c2', attributes: { createdDate: '2026-10-10T10:00:00Z', deviceModel: 'iPhone16,2', osVersion: '26.0.1' }, relationships: { build: { data: { id: 'b-50' } } } }, + { id: 'c3', attributes: { createdDate: '2026-10-10T11:00:00Z', deviceModel: 'iPhone15,3', osVersion: '26.0' }, relationships: { build: { data: { id: 'b-49' } } } }, + ], new Map([['b-50', '50'], ['b-49', '49']]), new Map([['c1', 'A'], ['c2', 'A'], ['c3', 'B']])); + const cs = cluster(items, { comments: 2 }); + expect(cs[0]).toEqual({ signature: 'A', count: 2, devices: [['iPhone16,2', 2]], os: [['26.0', 1], ['26.0.1', 1]], builds: [['50', 2]], first: '2026-10-09T10:00:00Z', last: '2026-10-10T10:00:00Z', comments: ['It crashed when I synced'] }); + const issues = playIssues({ errorIssues: [{ name: 'apps/com.example.notes/errorIssues/1111', type: 'CRASH', cause: 'java.lang.IllegalStateException', location: 'com.example.notes.ListStore.sync', errorReportCount: '12', distinctUsers: '9' }] }); + const play = playReportItems({ errorReports: [ + { issue: 'apps/com.example.notes/errorIssues/1111', type: 'CRASH', eventTime: '2026-10-09T00:00:00Z', deviceModel: { marketingName: 'Pixel 9', deviceId: { buildBrand: 'google', buildDevice: 'tokay' } }, osVersion: { apiLevel: '36' }, appVersion: { versionCode: '120' } }, + { issue: 'apps/com.example.notes/errorIssues/1111', type: 'CRASH', deviceModel: { deviceId: { buildBrand: 'samsung', buildDevice: 'dm3q' } }, osVersion: { apiLevel: '35' }, appVersion: { versionCode: '120' } }, + ] }, issues); + expect(cluster(play)[0]).toMatchObject({ signature: 'CRASH java.lang.IllegalStateException @ com.example.notes.ListStore.sync', count: 2, devices: [['Pixel 9', 1], ['samsung/dm3q', 1]], os: [['API 35', 1], ['API 36', 1]], builds: [['120', 2]] }); + expect(reportsQuery('1111', new Date('2026-09-27T00:00:00Z'), new Date('2026-10-11T00:00:00Z'))).toContain('filter=errorIssueId+%3D+1111'); + }); + test('command: both stores, emails never requested, --json', async () => { + ascEnv(); playEnv(); + const p = project(); + const calls = mockFetch([ + { match: /^\/v1\/builds\?filter\[app\]=6400000101/, answer: { data: [{ type: 'builds', id: 'b-50', attributes: { version: '50' } }], links: {} } }, + { match: /^\/v1\/apps\/6400000101\/betaFeedbackCrashSubmissions\?/, answer: { data: [{ type: 'betaFeedbackCrashSubmissions', id: 'c1', attributes: { createdDate: new Date().toISOString(), deviceModel: 'iPhone16,2', osVersion: '26.0' }, relationships: { build: { data: { type: 'builds', id: 'b-50' } } } }], links: {} } }, + { match: /^\/v1\/betaFeedbackCrashSubmissions\/c1\/crashLog$/, answer: { data: { type: 'betaCrashLogs', id: 'cl1', attributes: { logText: TEXT_CRASH } } } }, + { match: /^\/v1\/apps\/6400000101\/betaFeedbackScreenshotSubmissions\?/, answer: { data: [], links: {} } }, + { match: /^\/v1beta1\/apps\/com\.example\.notes\/errorIssues:search\?/, answer: { errorIssues: [{ name: 'apps/com.example.notes/errorIssues/1111', type: 'ANR', cause: 'Input dispatching timed out', location: 'com.example.notes.MainActivity', errorReportCount: '4', distinctUsers: '3' }] } }, + { match: /^\/v1beta1\/apps\/com\.example\.notes\/errorReports:search\?/, answer: { errorReports: [{ issue: 'apps/com.example.notes/errorIssues/1111', type: 'ANR', deviceModel: { marketingName: 'Pixel 9' }, osVersion: { apiLevel: '36' }, appVersion: { versionCode: '120' } }] } }, + ]); + const r = await capture(() => triage(p.ctx(['--days', '14', '--json']))); + const j = jsonOut(r.out) as { apple: { crashes: { signature: string }[] }; play: { issues: { signature: string; reports: number }[] } }; + expect(j.apple.crashes[0]!.signature).toContain('ListStore.sync'); + expect(j.play.issues[0]).toMatchObject({ signature: 'ANR Input dispatching timed out @ com.example.notes.MainActivity', count: 1, reports: 4 }); + const fb = calls.filter(c => c.path.includes('betaFeedback') && c.path.includes('fields')); + expect(fb).toHaveLength(2); + for (const c of fb) { expect(decodeURIComponent(c.path)).not.toContain('email'); expect(decodeURIComponent(c.path)).not.toContain('tester'); } + expect(BASE.app.contactEmail).toBe('support@example.com'); + }); +}); diff --git a/tests/store-ops-text.test.ts b/tests/store-ops-text.test.ts new file mode 100644 index 00000000..03302abf --- /dev/null +++ b/tests/store-ops-text.test.ts @@ -0,0 +1,283 @@ +// Listing pulls, release notes in many languages, keyword ranks and the AdAttributionKit scan: pure parts plus the +// commands against recorded store answers (placeholders only). +import { afterEach, describe, expect, test } from 'bun:test'; +import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'; +import { join } from 'node:path'; +import { compactDiff, lineDiff } from '../cli/lib/diff'; +import { catalogProposal, mergeAppleListing, mergePlayListing, overLimits } from '../cli/lib/listing-pull'; +import { applyLanguageNotes, checkLanguageNotes, notesFileText, parseNotesFile, resolveLanguages } from '../cli/lib/whats-new'; +import { competitors, keywordList, parseStorefronts, rankDelta, rankOf, searchUrl } from '../cli/lib/aso-rank'; +import { parsePlist } from '../cli/lib/plist'; +import { evaluateAdAttribution, sourceSignals } from '../cli/lib/adattribution'; +import { parseArgs } from '../cli/lib/args'; +import { run as appleListing } from '../cli/apple/listing'; +import { run as playListing } from '../cli/play/listing'; +import { run as catalog } from '../cli/catalog'; +import { run as whatsNew } from '../cli/whats-new'; +import { run as aso } from '../cli/aso'; +import { run as ads } from '../cli/ads'; +import { TOOLS, toArgv } from '../cli/mcp-tools'; +import { ascEnv, BASE, capture, jsonOut, mockFetch, playEnv, project, restore } from './helpers/store-mock'; + +afterEach(restore); +const page = (data: unknown[]) => ({ data, links: { self: 'x' } }); + +const APPLE_MD = '# App Store\n\n## en-US · English\n\n### subtitle\n```\nNotes that sync\n```\n\n### keywords\n```\nnotes,lists\n```\n\n### description\n```\nOld text.\n```\n\n## Notes\n\nprose\n'; +const PLAY_MD = '# Play\n\n## English\n\n\n### Play short description (max 80)\n```\nOld short\n```\n\n### Play full description (max 4000)\n```\nOld full.\n```\n\n## Spanish\n\n\n### short\n```\nCorta\n```\n\n### full\n```\nLarga.\n```\n'; + +describe('diff', () => { + test('line diff and compact diff', () => { + expect(lineDiff('a\nb\nc', 'a\nx\nc')).toEqual([' a', '-b', '+x', ' c']); + expect(compactDiff('1\n2\n3\n4\n5\n6\n7\n8', '1\n2\n3\n4\n5\n6\n7\nX', 1)).toEqual([' 7', '-8', '+X']); + expect(compactDiff('same', 'same')).toEqual([]); + }); +}); + +describe('listing pull merges', () => { + test('App Store: changed blocks replaced, missing ones added, new locales appended, prose kept', () => { + const r = mergeAppleListing(APPLE_MD, { 'en-US': { subtitle: 'Notes that sync', description: 'New text.', promotionalText: 'Now with lists.' }, 'tr': { subtitle: 'Senkron notlar', keywords: 'not,liste' } }); + expect(r.changes.map(c => `${c.section} ${c.field} ${c.from === null ? 'new' : 'changed'}`)).toEqual(['en-US promotionalText new', 'en-US description changed', 'tr subtitle new', 'tr keywords new']); + expect(r.md).toContain('### description\n```\nNew text.\n```'); + expect(r.md).toContain('### promotionalText\n```\nNow with lists.\n```'); + expect(r.md).toContain('## Notes\n\nprose'); + expect(r.md).toContain('## tr\n\n### subtitle\n```\nSenkron notlar\n```'); + expect(r.added).toEqual(['tr']); + expect(overLimits([{ section: 'tr', field: 'subtitle', from: null, to: 'x'.repeat(31) }], 'apple')).toEqual(['tr subtitle: 31 > 30']); + }); + test('Play: per section, shared sections only when the codes agree, title equal to the app name left out', () => { + const r = mergePlayListing(PLAY_MD, [ + { language: 'en-US', title: 'Example Notes', shortDescription: 'New short', fullDescription: 'Old full.' }, + { language: 'es-ES', shortDescription: 'Corta nueva', fullDescription: 'Larga.' }, { language: 'es-419', shortDescription: 'Otra corta', fullDescription: 'Larga.' }, + { language: 'fr-FR', title: 'Notes Exemple', shortDescription: 'Court', fullDescription: 'Long.' }, + ], 'Example Notes'); + expect(r.changes.map(c => `${c.section} ${c.field}`)).toEqual(['en-US shortDescription', 'fr-FR title', 'fr-FR shortDescription', 'fr-FR fullDescription']); + expect(r.conflicts[0]).toContain('es-ES, es-419: shortDescription differs'); + expect(r.md).toContain('### Play short description (max 80)\n```\nNew short\n```'); + expect(r.md).not.toContain('### Title (max 30)\n```\nExample Notes'); + expect(r.md).toContain('## fr-FR\n\n\n### Title (max 30)\n```\nNotes Exemple\n```'); + }); + test('catalog proposal maps store languages to language ids and never touches unknown products', () => { + const cfg = { ...BASE, products: [{ id: 'com.example.notes.pro', type: 'non_consumable' as const, usd: 4.99, listings: { en: { title: 'Pro', description: 'All features' } } }] }; + const p = catalogProposal(cfg, { apple: { 'com.example.notes.pro': { 'en-US': { title: 'Pro', description: 'Every feature' }, 'tr': { title: 'Pro', description: 'Tüm özellikler' }, 'ja': { title: 'プロ', description: 'x' } }, 'com.example.notes.other': {} }, + play: { 'com.example.notes.pro': { 'en-US': { title: 'Pro unlock', description: 'All features' } } } }); + expect(p.changes.map(c => `${c.store} ${c.lang} ${c.field}`)).toEqual(['play en title', 'apple en description', 'apple tr title', 'apple tr description']); + expect(p.listings['com.example.notes.pro']!.tr).toEqual({ title: 'Pro', description: 'Tüm özellikler' }); + expect(p.unmapped).toEqual(['apple:ja']); + expect(p.unknown).toEqual(['com.example.notes.other']); + }); +}); + +describe('listing pull commands', () => { + test('apple listing pull: diff without --write, file updated with --write', async () => { + ascEnv(); + const p = project(BASE, { 'store/appstore.md': APPLE_MD }); + mockFetch([ + { match: /^\/v1\/apps\/6400000101\/appStoreVersions\?filter\[platform\]=IOS/, answer: page([{ type: 'appStoreVersions', id: 'v-1', attributes: { versionString: '1.1.0', appVersionState: 'READY_FOR_DISTRIBUTION', createdDate: '2026-09-01T00:00:00-07:00' } }]) }, + { match: /^\/v1\/apps\/6400000101\/appInfos/, answer: page([{ type: 'appInfos', id: 'ai-1', attributes: { state: 'READY_FOR_DISTRIBUTION' } }]) }, + { match: /^\/v1\/appInfos\/ai-1\/appInfoLocalizations/, answer: page([{ type: 'appInfoLocalizations', id: 'l', attributes: { locale: 'en-US', name: 'Example Notes', subtitle: 'Notes that sync', privacyPolicyUrl: 'https://example.com/privacy' } }]) }, + { match: /^\/v1\/appStoreVersions\/v-1\/appStoreVersionLocalizations/, answer: page([{ type: 'appStoreVersionLocalizations', id: 'vl', attributes: { locale: 'en-US', description: 'Live text.', keywords: 'notes,lists', promotionalText: null, whatsNew: 'Faster sync.' } }]) }, + ]); + let r = await capture(() => appleListing(p.ctx(['pull', '--json']))); + const j = jsonOut(r.out); + expect(j).toMatchObject({ version: '1.1.0', write: false, added: [] }); + expect((j.changes as { field: string }[]).map(c => c.field)).toEqual(['name', 'description', 'whatsNew']); + expect(j.diff).toContain('-Old text.'); + expect(readFileSync(join(p.root, 'store/appstore.md'), 'utf8')).toBe(APPLE_MD); + r = await capture(() => appleListing(p.ctx(['pull', '--write']))); + expect(readFileSync(join(p.root, 'store/appstore.md'), 'utf8')).toContain('### whatsNew\n```\nFaster sync.\n```'); + expect(r.out).toContain('3 change(s) written'); + }); + test('play listing pull: one read-only edit, deleted; --write updates the file', async () => { + playEnv(); + const p = project(BASE, { 'store/listing.md': PLAY_MD }); + const routes = () => mockFetch([ + { method: 'POST', match: /\/applications\/com\.example\.notes\/edits$/, answer: { id: 'edit-1', expiryTimeSeconds: '1760000000' } }, + { match: /\/edits\/edit-1\/listings$/, answer: { kind: 'androidpublisher#listingsListResponse', listings: [{ language: 'en-US', title: 'Example Notes', shortDescription: 'Live short', fullDescription: 'Old full.' }] } }, + { method: 'DELETE', match: /\/edits\/edit-1$/, answer: new Response(null, { status: 204 }) }, + ]); + let calls = routes(); + let r = await capture(() => playListing(p.ctx(['pull', '--json']))); + expect(jsonOut(r.out)).toMatchObject({ write: false, languages: ['en-US'], changes: [{ section: 'en-US', field: 'shortDescription', from: 'Old short', to: 'Live short' }] }); + expect(calls.map(c => c.method)).toEqual(['POST', 'GET', 'DELETE']); + calls = routes(); + r = await capture(() => playListing(p.ctx(['pull', '--write']))); + expect(readFileSync(join(p.root, 'store/listing.md'), 'utf8')).toContain('```\nLive short\n```'); + expect(calls.some(c => c.path.includes(':commit'))).toBe(false); + }); + test('catalog pull --write saves a proposal next to an unchanged config', async () => { + ascEnv(); + const p = project({ ...BASE, play: undefined, products: [{ id: 'com.example.notes.pro', type: 'non_consumable', usd: 4.99, listings: { en: { title: 'Pro', description: 'All features' } } }] }); + mockFetch([ + { match: /^\/v1\/apps\/6400000101\/inAppPurchasesV2/, answer: page([{ type: 'inAppPurchases', id: 'i-pro', attributes: { productId: 'com.example.notes.pro' } }]) }, + { match: /^\/v2\/inAppPurchases\/i-pro\/inAppPurchaseLocalizations/, answer: page([{ type: 'inAppPurchaseLocalizations', id: 'l1', attributes: { locale: 'en-US', name: 'Pro', description: 'Every feature' } }]) }, + { match: /^\/v1\/apps\/6400000101\/subscriptionGroups/, answer: page([]) }, + ]); + const r = await capture(() => catalog(p.ctx(['pull', '--store', 'apple', '--write']))); + const saved = JSON.parse(readFileSync(join(p.root, '.storebound/pull/catalog.json'), 'utf8')); + expect(saved.listings['com.example.notes.pro'].en).toEqual({ title: 'Pro', description: 'Every feature' }); + expect(r.out).toContain('storebound.config.ts is unchanged'); + }); +}); + +describe('release notes in many languages', () => { + const langs = BASE.languages; + test('language files, limits per store, apply into both listing files', () => { + expect(resolveLanguages(langs, ['en-US', 'de', 'tr-TR']).map(l => l.id)).toEqual(['en', 'de', 'tr']); + expect(() => resolveLanguages(langs, ['fr'])).toThrow('not a language of the config'); + const f = { lang: 'de', source: 'en', status: 'translate' as const, text: 'New: lists.' }; + expect(parseNotesFile(notesFileText(f), 'de')).toEqual(f); + expect(parseNotesFile('Plain text', 'tr')).toEqual({ lang: 'tr', source: '', status: 'translated', text: 'Plain text' }); + expect(checkLanguageNotes(langs[1]!, f, 'New: lists.').problems).toEqual(['not translated yet (status=translate)']); + expect(checkLanguageNotes(langs[1]!, { ...f, status: 'translated' }, 'New: lists.').problems).toEqual(['identical to the source language: translate it']); + const long = checkLanguageNotes(langs[2]!, { ...f, status: 'translated', text: 'x'.repeat(501) }); + expect(long.play).toEqual({ limit: 500, ok: false }); + expect(long.apple).toEqual({ limit: 4000, ok: true }); + expect(checkLanguageNotes({ id: 'ios-only', apple: 'ja' }, { ...f, status: 'translated', text: 'x'.repeat(600) }).problems.filter(p => !p.startsWith('first line'))).toEqual([]); + const out = applyLanguageNotes({ play: PLAY_MD.replace('', '').replace('## Spanish', '## German\n\n\n### short\n```\nk\n```\n\n### full\n```\nl\n```\n\n## Spanish'), apple: APPLE_MD.replace('## Notes', '## de-DE\n\n### subtitle\n```\nx\n```\n\n## Notes') }, langs[1]!, 'Neu: Listen.'); + expect(out.changed).toEqual(['play:de-DE', 'apple:de-DE']); + expect(out.play).toContain("### What's new (max 500)\n```\nNeu: Listen.\n```"); + expect(out.apple).toContain('### whatsNew\n```\nNeu: Listen.\n```'); + }); + test('command: --languages writes one file per language, a --translate hook fills them, check and apply', async () => { + const p = project(BASE, { 'store/listing.md': PLAY_MD.replace('## Spanish', '## German\n\n\n### short\n```\nk\n```\n\n### full\n```\nl\n```\n\n## Spanish'), 'store/appstore.md': APPLE_MD }); + const git = (...a: string[]) => Bun.spawnSync(['git', ...a], { cwd: p.root, env: { ...process.env, GIT_AUTHOR_NAME: 'T', GIT_AUTHOR_EMAIL: 't@example.com', GIT_COMMITTER_NAME: 'T', GIT_COMMITTER_EMAIL: 't@example.com' } }); + git('init', '-q'); git('add', '.'); git('commit', '-qm', 'chore: init'); git('tag', 'v1.0.0'); git('commit', '-q', '--allow-empty', '-m', 'feat: shared lists'); + let r = await capture(() => whatsNew(p.ctx(['--languages', 'en,de', '--dry', '--json']))); + expect((jsonOut(r.out).files as { status: string }[]).map(f => f.status)).toEqual(['source', 'translate']); + expect(existsSync(join(p.root, 'store/whats-new'))).toBe(false); + r = await capture(() => whatsNew(p.ctx(['--languages', 'en,de']))); + expect(readFileSync(join(p.root, 'store/whats-new/de.md'), 'utf8')).toMatch(/^\nNew in this update:\n• Shared lists\./); + r = await capture(() => whatsNew(p.ctx(['check', '--json']))); + expect(r.exit).toBe(1); + expect((jsonOut(r.out).checks as { lang: string; problems: string[] }[])[1]!.problems).toContain('not translated yet (status=translate)'); + r = await capture(() => whatsNew(p.ctx(['apply']))); + expect(r.out).toContain('nothing written'); + // the provider hook: any command; here one that upper-cases the text + r = await capture(() => whatsNew(p.ctx(['--languages', 'en,de', '--translate', 'tr a-z A-Z']))); + expect(readFileSync(join(p.root, 'store/whats-new/de.md'), 'utf8')).toContain('status=translated -->\nNEW IN THIS UPDATE:'); + r = await capture(() => whatsNew(p.ctx(['apply', '--json']))); + expect(jsonOut(r.out).changed).toEqual(['play:en-US', 'apple:en-US', 'play:de-DE']); + expect(readFileSync(join(p.root, 'store/listing.md'), 'utf8')).toContain('NEW IN THIS UPDATE:'); + }); +}); + +describe('keyword ranks (iTunes Search API)', () => { + const RESULTS = { resultCount: 3, results: [ + { trackId: 6400000999, trackName: 'Other Notes', bundleId: 'com.example.other', sellerName: 'Other Studio', averageUserRating: 4.5, userRatingCount: 1200, primaryGenreName: 'Productivity' }, + { trackId: 6400000101, trackName: 'Example Notes', bundleId: 'com.example.notes', sellerName: 'Example', averageUserRating: 4.8, userRatingCount: 50 }, + { trackId: 6400000998, trackName: 'Lists Pro', bundleId: 'com.example.lists', sellerName: 'Lists Inc' }, + ] }; + test('pure parts', () => { + expect(searchUrl('shared lists', 'US', 500)).toBe('https://itunes.apple.com/search?term=shared+lists&country=us&media=software&entity=software&limit=200'); + expect(() => searchUrl('x', 'usa')).toThrow('two-letter'); + expect(keywordList('notes, lists,Notes,,todo', ['todo', 'planner'])).toEqual(['notes', 'lists', 'todo', 'planner']); + expect(parseStorefronts(['us', 'de=de-DE'], 'en-US')).toEqual([{ storefront: 'us', locale: 'en-US' }, { storefront: 'de', locale: 'de-DE' }]); + expect(rankOf(RESULTS.results, { appId: '6400000101' })).toBe(2); + expect(rankOf(RESULTS.results, { bundleId: 'com.example.lists' })).toBe(3); + expect(rankOf(RESULTS.results, { appId: '1' })).toBeNull(); + expect(competitors(RESULTS.results, { appId: '6400000101' }, 2)).toEqual([{ rank: 1, title: 'Other Notes', developer: 'Other Studio', rating: 4.5, ratings: 1200, genre: 'Productivity' }, { rank: 3, title: 'Lists Pro', developer: 'Lists Inc', rating: null, ratings: 0, genre: '' }]); + expect(rankDelta([{ storefront: 'us', locale: 'en-US', keyword: 'Notes', rank: 2, results: 3, competitors: [] }], [{ storefront: 'us', locale: 'en-US', keyword: 'notes', rank: 5, results: 3, competitors: [] }]).get('us|notes')).toBe(3); + }); + test('command: --dry lists the queries; a run saves a snapshot', async () => { + const p = project(BASE, { 'store/appstore.md': '## en-US\n\n### keywords\n```\nnotes\n```\n' }); + const calls = mockFetch([{ match: /^\/search\?term=notes&country=us/, answer: RESULTS }]); + let r = await capture(() => aso(p.ctx(['rank', '--dry', '--json']))); + expect(jsonOut(r.out).queries).toEqual([{ storefront: 'us', keyword: 'notes', url: 'https://itunes.apple.com/search?term=notes&country=us&media=software&entity=software&limit=200' }]); + expect(calls).toHaveLength(0); + r = await capture(() => aso(p.ctx(['rank', '--json']))); + expect((jsonOut(r.out).rows as { rank: number; competitors: unknown[] }[])[0]).toMatchObject({ keyword: 'notes', rank: 2, results: 3 }); + expect(calls).toHaveLength(1); + const snap = JSON.parse(readFileSync(join(p.root, '.storebound/aso', `${new Date().toISOString().slice(0, 10)}.json`), 'utf8')); + expect(snap.rows[0].competitors[0].title).toBe('Other Notes'); + }); +}); + +describe('AdAttributionKit scan', () => { + const PLIST = ` + + + + CFBundleIdentifier$(PRODUCT_BUNDLE_IDENTIFIER) + SKAdNetworkItems + + SKAdNetworkIdentifiercstr6suwn9.skadnetwork + SKAdNetworkIdentifier4FZDC2EVR5.skadnetwork + + AdNetworkIdentifiers + cstr6suwn9.skadnetworkf2d92a.adattributionkit + AdAttributionKit + + AttributionCopyEndpointhttps://postbacks.example.com/attribution + EligibleForAdAttributionKitReengagementPostbackCopies + + NSAdvertisingAttributionReportEndpointhttps://example.com + AdAttributionKitConfigurations + + AttributionWindows + + globalinstallview9ignoreInteractionTypeview + f2d92a.adattributionkitinstallclick23 + + AttributionCooldowninstall-cooldown-hours24re-engagement-cooldown-hours900 + + Empty + Ratio1.5 + +`; + test('plist reader', () => { + const p = parsePlist(PLIST) as Record; + expect(p.CFBundleIdentifier).toBe('$(PRODUCT_BUNDLE_IDENTIFIER)'); + expect(p.Empty).toBe(''); + expect(p.Ratio).toBe(1.5); + expect((p.AdAttributionKit as Record).EligibleForAdAttributionKitReengagementPostbackCopies).toBe(true); + expect(() => parsePlist('bplist00...')).toThrow('binary plist'); + }); + test('findings: id case, windows and cooldown ranges, global ignore, endpoints, missing conversion updates', () => { + const sig = sourceSignals([{ path: 'Podfile.lock', text: 'PODS:\n - Google-Mobile-Ads-SDK (11.0.0)\n' }, { path: 'App/AppDelegate.swift', text: 'import UIKit\nimport AdAttributionKit\n' }]); + expect(sig).toEqual({ aakImport: true, conversionUpdates: false, adSdks: ['Google Mobile Ads (AdMob)'], mmpSdks: [] }); + const f = evaluateAdAttribution(parsePlist(PLIST) as Record, sig); + const codes = f.map(x => `${x.level}:${x.code}`); + for (const c of ['blocker:id-case', 'info:aak-ids-partial', 'warn:endpoint-path', 'ok:copy-endpoint', 'ok:skan-endpoint', 'blocker:window-view', 'warn:ignore-global', 'blocker:cooldown-range', 'warn:no-conversion-update']) + expect(codes).toContain(c); + expect(codes).not.toContain('warn:windows-unknown-network'); + expect(f.find(x => x.code === 'copy-endpoint')!.msg).toContain('https://example.com/.well-known/appattribution/report-attribution/'); + // a publisher with an ad SDK and no ids at all, the top-level copy key, an MMP SDK doing the conversion updates + const g = evaluateAdAttribution({ AttributionCopyEndpoint: 'http://example.com' } as never, { aakImport: false, conversionUpdates: false, adSdks: ['AppLovin MAX'], mmpSdks: ['AppsFlyer'] }); + expect(g.map(x => x.code)).toEqual(['no-network-ids', 'endpoint-url']); + expect(evaluateAdAttribution({}, { aakImport: false, conversionUpdates: false, adSdks: [], mmpSdks: [] }).map(x => x.code)).toEqual(['none']); + }); + test('command: scans the app Info.plist, skips Pods and tests, exit 1 on a blocker', async () => { + const p = project(BASE, { 'ios/App/App/Info.plist': PLIST, 'ios/App/Pods/X/Info.plist': '', 'ios/App/AppTests/Info.plist': '', 'ios/App/Podfile.lock': 'PODS:\n - AppLovinSDK (13.0.0)\n', + 'ios/App/App/Attribution.swift': 'import AdAttributionKit\nfunc first() async { try? await Postback.updateConversionValue(1, lockPostback: false) }\n' }); + const r = await capture(() => ads(parseArgs(['scan', '--ios', join(p.root, 'ios/App'), '--json']))); + const j = jsonOut(r.out); + expect((j.results as { plist: string }[]).map(x => x.plist.split('/').slice(-3).join('/'))).toEqual(['App/App/Info.plist']); + expect(j.signals).toEqual({ aakImport: true, conversionUpdates: true, adSdks: ['AppLovin MAX'], mmpSdks: [] }); + expect(j.blockers).toBe(3); + expect(r.exit).toBe(1); + mkdirSync(join(p.root, 'empty'), { recursive: true }); + writeFileSync(join(p.root, 'empty/readme.txt'), 'no app'); + const e = await capture(() => ads(parseArgs(['scan', '--ios', join(p.root, 'empty')]))); + expect(e.out).toContain('no app Info.plist'); + expect(e.exit).toBe(null); + }); +}); + +describe('MCP tools of the store operations', () => { + const t = (n: string) => TOOLS.find(x => x.name === n)!; + test('pulls write only with dry_run false; plans and reads stay read-only; owner steps are not tools', () => { + expect(toArgv(t('apple_listing_pull')).argv).toEqual(['apple', 'listing', 'pull', '--json', '--dry']); + expect(toArgv(t('apple_listing_pull'), { dry_run: false }).argv).toEqual(['apple', 'listing', 'pull', '--json', '--write']); + expect(toArgv(t('play_listing_pull'), { dry_run: false }).argv).toEqual(['play', 'listing', 'pull', '--json', '--write']); + expect(toArgv(t('apple_iap_review_plan'), { with_version: true }).argv).toEqual(['apple', 'iap-submit', '--with-version', '--json', '--dry']); + expect(toArgv(t('apple_testflight_wait'), { build: '50', check_once: true }).argv).toEqual(['apple', 'testflight', 'wait', '--build', '50', '--timeout', '30m', '--json', '--dry']); + expect(toArgv(t('reports'), { kind: 'play-earnings', month: '2026-09' }).argv).toEqual(['reports', 'play-earnings', '--month', '2026-09', '--json', '--dry']); + expect(toArgv(t('aso_rank'), { storefronts: 'us,de=de-DE' }).argv).toEqual(['aso', 'rank', '--storefronts', 'us,de=de-DE', '--json', '--dry']); + expect(t('triage')).toMatchObject({ write: false }); + expect(t('ads_scan')).toMatchObject({ write: false, network: false }); + const commands = TOOLS.map(x => x.command.join(' ')); + for (const c of ['apple offer-codes', 'apple win-back', 'apple promoted', 'apple preorder enable', 'apple preorder end', 'apple cpp submit', 'apple cpp visible', 'apple events submit', 'apple testflight expire']) + expect(commands).not.toContain(c); + for (const x of TOOLS) expect(toArgv(x, { dry_run: false, kind: 'apple-sales', build: '1', languages: 'en', name: 'x', ios: 'ios' }).argv.join(' ')).not.toMatch(/--(codes|enable|yes|translate|no-submit)\b/); + }); +}); From 694aec646ddfb017a95462137655a06d4fff5869 Mon Sep 17 00:00:00 2001 From: CRT Date: Sun, 11 Oct 2026 16:05:35 +0000 Subject: [PATCH 8/8] storebound scan: Google Play parity Play rules verified against the live Policy Center / Play Console Help pages (checked 2026-10-11, cited in cli/lib/scan/play-rules.ts): restricted permissions and their declarations (background location, photo / video, All files access, AccessibilityService, REQUEST_INSTALL_PACKAGES, Health Connect, full-screen intent, VpnService), prominent disclosure and the in-app privacy policy, Data safety vs SDK disclosures, Families (certified ad SDKs, AD_ID, location), AD_ID on targetSdk 33+, 16 KB page sizes (Unity, React Native, NDK, AGP, prebuilt .so), testing for new personal accounts, Play metadata, ads at launch, payments outside Play Billing, impersonation. Detection reads manifest components, accessibility configs, strings.xml, native toolchain versions and a local build's merged manifest. New fixtures and tests; README table per store. --- CHANGELOG.md | 20 + README.md | 78 ++-- apps/desktop/src/i18n/en.ts | 2 +- apps/desktop/src/i18n/tr.ts | 2 +- cli/lib/config.ts | 22 + cli/lib/scan/index.ts | 11 +- cli/lib/scan/play-rules.ts | 429 ++++++++++++++++++ cli/lib/scan/project.ts | 191 +++++++- cli/lib/scan/rules.ts | 11 +- cli/lib/scan/sdks.ts | 13 +- cli/mcp-tools.ts | 2 +- cli/scan.ts | 3 +- examples/demo-app/README.md | 7 +- examples/demo-app/storebound.config.ts | 1 + examples/demo-game/README.md | 6 +- examples/demo-game/storebound.config.ts | 7 +- skills/play-first-release/SKILL.md | 8 +- skills/review-rejections/SKILL.md | 36 +- skills/store-preflight/SKILL.md | 14 +- templates/storebound.config.ts | 3 + tests/fixtures/scan/clean/README.md | 4 +- .../scan/clean/android/app/build.gradle.kts | 6 + .../android/app/src/main/AndroidManifest.xml | 10 +- .../android/app/src/main/cpp/CMakeLists.txt | 3 + .../org/example/cleannotes/MainActivity.kt | 26 ++ .../app/src/main/res/values/strings.xml | 4 + .../scan/clean/android/settings.gradle.kts | 5 + tests/fixtures/scan/clean/store/listing.md | 5 + .../fixtures/scan/clean/storebound.config.ts | 2 +- tests/fixtures/scan/play-android/README.md | 9 + .../scan/play-android/app/build.gradle.kts | 23 + .../AndroidManifest.xml | 58 +++ .../app/src/main/AndroidManifest.xml | 34 ++ .../org/example/trailmate/MainActivity.kt | 21 + .../app/src/main/res/values/strings.xml | 4 + .../res/xml/accessibility_service_config.xml | 4 + .../scan/play-android/settings.gradle.kts | 8 + .../scan/play-android/storebound.config.ts | 24 + .../Editor/GoogleMobileAdsDependencies.xml | 6 + .../Plugins/Android/AndroidManifest.xml | 13 + .../scan/play-families/Packages/manifest.json | 6 + .../ProjectSettings/ProjectSettings.asset | 8 + .../ProjectSettings/ProjectVersion.txt | 2 + tests/fixtures/scan/play-families/README.md | 6 + .../scan/play-families/storebound.config.ts | 24 + tests/fixtures/scan/play-listing/README.md | 6 + .../scan/play-listing/store/listing.md | 43 ++ .../scan/play-listing/storebound.config.ts | 13 + tests/fixtures/scan/play-native/README.md | 5 + .../scan/play-native/android/app/build.gradle | 21 + .../android/app/src/main/AndroidManifest.xml | 11 + .../android/app/src/main/cpp/CMakeLists.txt | 3 + .../src/main/jniLibs/arm64-v8a/libvendorfx.so | 1 + .../scan/play-native/android/settings.gradle | 11 + tests/fixtures/scan/play-native/pubspec.yaml | 11 + .../scan/play-native/storebound.config.ts | 13 + tests/scan.test.ts | 121 ++++- 57 files changed, 1360 insertions(+), 80 deletions(-) create mode 100644 cli/lib/scan/play-rules.ts create mode 100644 tests/fixtures/scan/clean/android/app/src/main/cpp/CMakeLists.txt create mode 100644 tests/fixtures/scan/clean/android/app/src/main/java/org/example/cleannotes/MainActivity.kt create mode 100644 tests/fixtures/scan/clean/android/app/src/main/res/values/strings.xml create mode 100644 tests/fixtures/scan/clean/android/settings.gradle.kts create mode 100644 tests/fixtures/scan/play-android/README.md create mode 100644 tests/fixtures/scan/play-android/app/build.gradle.kts create mode 100644 tests/fixtures/scan/play-android/app/build/intermediates/merged_manifest/release/processReleaseMainManifest/AndroidManifest.xml create mode 100644 tests/fixtures/scan/play-android/app/src/main/AndroidManifest.xml create mode 100644 tests/fixtures/scan/play-android/app/src/main/java/org/example/trailmate/MainActivity.kt create mode 100644 tests/fixtures/scan/play-android/app/src/main/res/values/strings.xml create mode 100644 tests/fixtures/scan/play-android/app/src/main/res/xml/accessibility_service_config.xml create mode 100644 tests/fixtures/scan/play-android/settings.gradle.kts create mode 100644 tests/fixtures/scan/play-android/storebound.config.ts create mode 100644 tests/fixtures/scan/play-families/Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml create mode 100644 tests/fixtures/scan/play-families/Assets/Plugins/Android/AndroidManifest.xml create mode 100644 tests/fixtures/scan/play-families/Packages/manifest.json create mode 100644 tests/fixtures/scan/play-families/ProjectSettings/ProjectSettings.asset create mode 100644 tests/fixtures/scan/play-families/ProjectSettings/ProjectVersion.txt create mode 100644 tests/fixtures/scan/play-families/README.md create mode 100644 tests/fixtures/scan/play-families/storebound.config.ts create mode 100644 tests/fixtures/scan/play-listing/README.md create mode 100644 tests/fixtures/scan/play-listing/store/listing.md create mode 100644 tests/fixtures/scan/play-listing/storebound.config.ts create mode 100644 tests/fixtures/scan/play-native/README.md create mode 100644 tests/fixtures/scan/play-native/android/app/build.gradle create mode 100644 tests/fixtures/scan/play-native/android/app/src/main/AndroidManifest.xml create mode 100644 tests/fixtures/scan/play-native/android/app/src/main/cpp/CMakeLists.txt create mode 100644 tests/fixtures/scan/play-native/android/app/src/main/jniLibs/arm64-v8a/libvendorfx.so create mode 100644 tests/fixtures/scan/play-native/android/settings.gradle create mode 100644 tests/fixtures/scan/play-native/pubspec.yaml create mode 100644 tests/fixtures/scan/play-native/storebound.config.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index d01836dc..270835fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,26 @@ ## Unreleased +- `storebound scan` on Google Play now matches the App Store side: rejections, blocked updates, suspensions and + policy strikes that the project files can prove, each verified against the live Play Policy Center / Play Console + Help page (cited with the date in `cli/lib/scan/play-rules.ts`). New rules: the restricted permissions and their + Console declarations (background location, READ_MEDIA_IMAGES / READ_MEDIA_VIDEO, MANAGE_EXTERNAL_STORAGE, + AccessibilityService with or without isAccessibilityTool, REQUEST_INSTALL_PACKAGES, Health Connect, + USE_FULL_SCREEN_INTENT, VpnService), prominent disclosure and the in-app privacy policy (User Data), Data safety + answers narrower than the SDKs' disclosures, Families (`play.targetAges`: ad SDKs not on Google's self-certified list + or older than their certified version, AD_ID and location in child-only apps, mixed audiences), the AD_ID permission + on targetSdk 33+, 16 KB page sizes (Unity before 6000.0.38f1 / 2022.3.56f1 / 2021.3.48f1, React Native before 0.77, + NDK before r28 without the flags, AGP before 8.5.1 with uncompressed libraries, prebuilt .so files; updates blocked + from 2027-02-01), the closed-testing requirement of new personal accounts (`play.accountType`, + `play.accountCreated`: 12 testers for 14 days), Play metadata (title over 30 characters, emoji, ALL CAPS, rank / + price / promotion terms, other apps, repeated keywords and keyword lists), interstitials shown from the launcher + activity's onCreate, card / PayPal SDKs or "buy on our website" next to in-app products (`play.billingPrograms`), + and brand names in the package or app name (low). Detection reads activities, services and receivers with their + intent filters, accessibility-service configs, strings.xml, the NDK / AGP versions, CMake / ndk-build files, + extractNativeLibs, useLegacyPackaging, Unity ProjectVersion.txt, .so files, and the merged manifest under + build/intermediates when the project was built locally. Device admin has no Play policy page and gets no rule. The + App Store rules are unchanged. New fixtures (play-android, play-native, play-families, play-listing) and Android parts + in the clean fixture; the README rule table has a column per store. - `storebound scan` (MCP tool `scan`, desktop Checks tab): an offline, read-only scan of the project itself for App Store and Google Play rejection risks before you submit. Detects the stack (native iOS / Android, React Native, Expo, Capacitor, Cordova, Flutter, Unity, Godot) and the SDKs from a maintained table (`cli/lib/scan/sdks.ts`: ads, diff --git a/README.md b/README.md index 456a4c04..a239119e 100644 --- a/README.md +++ b/README.md @@ -91,9 +91,11 @@ New personal Play developer accounts also need a closed test with 12+ testers fo ## Catch rejections before you submit App Store rejections cost days: you wait for review, read one sentence in the Resolution Center, fix it, and wait -again. Most of the usual ones are visible in the project long before that. `storebound scan` reads the project itself, -offline and read-only (Xcode project, Info.plist and build settings, entitlements, PrivacyInfo.xcprivacy, -Podfile.lock, Package.resolved, Cartfile, Gradle files and version catalogs, AndroidManifest.xml, package.json, +again. On Google Play a policy problem can mean a blocked update, a removal or a strike on the account. Most of the +usual ones are visible in the project long before that. `storebound scan` reads the project itself, offline and +read-only (Xcode project, Info.plist and build settings, entitlements, PrivacyInfo.xcprivacy, Podfile.lock, +Package.resolved, Cartfile, Gradle files and version catalogs, AndroidManifest.xml (and the merged manifest of a local +build), res/xml and strings.xml, CMake / ndk-build files, Unity ProjectVersion.txt, package.json, Expo app.json, capacitor.config, Cordova config.xml, pubspec, Unity Packages/manifest.json, ProjectSettings and External Dependency Manager files, Godot export presets), plus your config and listing files. It works out the stack and the SDKs (ads, analytics, attribution, crash, sign-in, payments, push, with versions and the file:line they come @@ -129,39 +131,55 @@ questions). The MCP tool `scan` is read-only and cannot write; `validate` includ app shows them on the Checks tab. A finding you decided is fine goes into the config with its reason: `scan: { ignore: [{ rule: 'demo-account', reason: '...' }] }`. -| rule | App Store guideline / Play policy | what scan proves | -|---|---|---| -| `demo-account`, `play-app-access` | 2.1(a), Play App access | a sign-in (config, auth SDKs, sign-in code) without `reviewAccess` or without the demo account in `.storebound/` | -| `account-deletion`, `play-deletion-url` | 5.1.1(v), Play account deletion | sign-up or social login without a deletion path in code or `accounts.inApp`; no `accounts.deletionUrl` | -| `login-services` | 4.8 | Google / Facebook / other third-party login without Sign in with Apple or another equivalent option | -| `restore-purchases`, `external-purchase` | 3.1.1 | non-consumables or subscriptions without a restore path; card / PayPal SDKs next to IAP; "buy on our website" | -| `subscription-info` | 3.1.2(c), 3.1.2 | no Terms of Use URL, no Terms link or renewal wording in the description, no legal links or "Manage subscription" in the app | -| `att` | 5.1.2(i) | tracking-capable SDKs or IDFA without ATT; the prompt without its purpose string; the string without a prompt | -| `purpose-strings`, `unused-permission` | 5.1.1(ii), 5.1.1(iv), ITMS-90683 | a used permission without its NS*UsageDescription; empty or vague strings; declared but unused | -| `privacy-manifest` | ITMS-91053 / 91061 | no PrivacyInfo.xcprivacy, required-reason APIs not declared, SDKs older than their first manifest version | -| `privacy-policy-link`, `privacy-labels` | 5.1.1(i), 5.1.2, Play Data safety | data collection without a privacy link in the app; SDK data types missing from `dataSafety` | -| `other-platforms` | 2.3.10 | "Android", "Google Play" and other stores in the App Store text or screenshot captions | -| `metadata-keywords`, `kids-terms` | 2.3.7, 2.3.8 | other apps' names, prices and "best / #1" in name, subtitle or keywords; keyword lists; "For Kids" outside the Kids Category | -| `placeholder-text` | 2.1(a), Play Metadata | lorem ipsum, TODO, template lines in the listings | -| `min-functionality` | 4.2 | Capacitor `server.url` / Cordova `` on a remote site; a few native files around a remote WKWebView | -| `deprecated-api`, `private-api` | 2.5.1 (ITMS-90809) | UIWebView; `App-Prefs:` / `prefs:root` URL schemes | -| `ipv6`, `ats` | 2.5.5, App Transport Security | IPv4 literals in server URLs; NSAllowsArbitraryLoads | -| `export-compliance` | export compliance | no ITSAppUsesNonExemptEncryption and no `apple.usesNonExemptEncryption`, or the two disagree (never guessed) | -| `kids-ads` | 1.3, Play Families | a Kids Category age band with third-party ads or analytics SDKs | -| `review-prompt` | 5.6.1, 3.2.2(x) / 5.6.3 | a custom "rate us" prompt without the system API; rewards for ratings | -| `play-target-sdk` | Play target API level | below API 36 (Wear OS / Automotive 35, TV / XR 34) for new apps and updates since 2026-08-31 | -| `play-fgs`, `play-exact-alarm`, `play-query-all-packages`, `play-sms-call-log` | Play permissions policies | foreground services without a type or its permission (and the Console declaration); USE_EXACT_ALARM; QUERY_ALL_PACKAGES; SMS and call log permissions | -| `play-package-name` | Play Console upload | the reserved `com.example` prefix | +| rule | App Store | Google Play | what scan proves | +|---|---|---|---| +| `demo-account`, `play-app-access` | 2.1(a) | App access | a sign-in (config, auth SDKs, sign-in code) without `reviewAccess` or without the demo account in `.storebound/` | +| `account-deletion`, `play-deletion-url` | 5.1.1(v) | User Data: account deletion | sign-up or social login without a deletion path in code or `accounts.inApp`; no `accounts.deletionUrl` | +| `login-services` | 4.8 | | Google / Facebook / other third-party login without Sign in with Apple or another equivalent option | +| `restore-purchases`, `external-purchase`, `play-payments` | 3.1.1 | Payments | non-consumables or subscriptions without a restore path; card / PayPal SDKs next to in-app products; "buy on our website" (Play: unless `play.billingPrograms` lists user choice billing or external offers) | +| `subscription-info` | 3.1.2(c), 3.1.2 | | no Terms of Use URL, no Terms link or renewal wording in the description, no legal links or "Manage subscription" in the app | +| `att` | 5.1.2(i) | | tracking-capable SDKs or IDFA without ATT; the prompt without its purpose string; the string without a prompt | +| `purpose-strings`, `unused-permission` | 5.1.1(ii), 5.1.1(iv), ITMS-90683 | | a used permission without its NS*UsageDescription; empty or vague strings; declared but unused | +| `privacy-manifest` | ITMS-91053 / 91061 | | no PrivacyInfo.xcprivacy, required-reason APIs not declared, SDKs older than their first manifest version | +| `privacy-policy-link`, `play-privacy-policy` | 5.1.1(i) | User Data: privacy policy | no privacy link in the app's sources (Play: every app; medium when it collects data), an `http://` link | +| `privacy-labels` | 5.1.2 | User Data: Data safety | SDK data types missing from `dataSafety`; Play also: an answer narrower than the SDK's disclosure (purposes, sharing), SDKs with no `dataSafety` at all | +| `play-prominent-disclosure` | | User Data: prominent disclosure, Location permissions | background location without a disclosure that says "location" and "background"; location, contacts, calendar or phone number access without any disclosure or rationale text in sources or `strings.xml` | +| `play-background-location`, `play-photo-video`, `play-all-files-access`, `play-accessibility`, `play-install-packages`, `play-health-connect`, `play-full-screen-intent`, `play-vpn` | | Location permissions, Photo and Video Permissions, All files access, AccessibilityService API, REQUEST_INSTALL_PACKAGES, Health Connect, Full-screen intent, VpnService | the restricted permission or service in the manifest (or the merged manifest of a local build), each with the core-use test and the Play Console declaration it needs; `isAccessibilityTool` lowers the accessibility finding to medium | +| `play-fgs`, `play-exact-alarm`, `play-query-all-packages`, `play-sms-call-log` | | Foreground service types, exact alarms, package visibility, SMS and Call Log | foreground services without a type or its permission (and the Console declaration); USE_EXACT_ALARM; QUERY_ALL_PACKAGES; SMS and call log permissions | +| `kids-ads`, `play-families-ads`, `play-families-ad-id`, `play-families-location` | 1.3 | Families | a Kids Category age band with third-party ads or analytics SDKs; `play.targetAges` under 13 with an ad SDK that is not Families self-certified (or older than its certified version), the AD_ID permission in a child-only app (mixed audience: ad / attribution SDKs need child-directed treatment), location in a child-only app | +| `play-ad-id` | | Advertising ID | targetSdk 33+ with ad / attribution SDKs and no AD_ID permission (medium when the merged manifest proves it is missing; Google Mobile Ads adds it itself) | +| `play-16kb` | | 16 KB page sizes (updates blocked from 2027-02-01) | Unity before 6000.0.38f1 / 2022.3.56f1 / 2021.3.48f1, React Native before 0.77, NDK before r28 for the app's own C/C++ without the 16 KB flags, AGP before 8.5.1 with uncompressed native libraries; else prebuilt `.so` files to check | +| `play-ads-launch` | | Ads, Better Ads Experiences | an interstitial shown from `onCreate` of the launcher activity (Android native; other engines: review-only) | +| `play-testing-requirement` | | Testing for new personal accounts | `play.accountType: 'personal'` created after 2023-11-13 (12 testers, 14 days of closed testing before production); low when the account type is not set | +| `other-platforms` | 2.3.10 | | "Android", "Google Play" and other stores in the App Store text or screenshot captions | +| `metadata-keywords`, `kids-terms`, `play-metadata` | 2.3.7, 2.3.8 | Metadata | other apps' names, prices and "best / #1" in name, subtitle or keywords; keyword lists; "For Kids" outside the Kids Category. Play title over 30 characters, emoji, ALL CAPS, rank / price / promotion terms; other apps in the title or short description; repeated keywords or keyword lists in the full description | +| `play-impersonation` | | Impersonation | a well-known brand in the package name or app name (low: a check, not a verdict) | +| `placeholder-text` | 2.1(a) | Metadata | lorem ipsum, TODO, template lines in the listings | +| `min-functionality` | 4.2 | | Capacitor `server.url` / Cordova `` on a remote site; a few native files around a remote WKWebView | +| `deprecated-api`, `private-api` | 2.5.1 (ITMS-90809) | | UIWebView; `App-Prefs:` / `prefs:root` URL schemes | +| `ipv6`, `ats` | 2.5.5, App Transport Security | | IPv4 literals in server URLs; NSAllowsArbitraryLoads | +| `export-compliance` | export compliance | | no ITSAppUsesNonExemptEncryption and no `apple.usesNonExemptEncryption`, or the two disagree (never guessed) | +| `review-prompt` | 5.6.1, 3.2.2(x) / 5.6.3 | | a custom "rate us" prompt without the system API; rewards for ratings | +| `play-target-sdk` | | Target API level | below API 36 (Wear OS / Automotive 35, TV / XR 34) for new apps and updates since 2026-08-31 | +| `play-package-name` | | Play Console upload | the reserved `com.example` prefix | -Rules cite Apple's App Review Guidelines and the Play policy pages they come from (checked 2026-10-11, in the code -comments of `cli/lib/scan/rules.ts`); the SDK table with each vendor's data disclosure page is `cli/lib/scan/sdks.ts`. -Merged-manifest permissions that libraries add at build time are outside the scan (it says so). +Rules cite Apple's App Review Guidelines and the Play Policy Center / Play Console Help pages they come from (checked +2026-10-11, in the code comments of `cli/lib/scan/rules.ts` and `cli/lib/scan/play-rules.ts`); the SDK table with each +vendor's data disclosure page and Google's Families self-certified ads SDK list is `cli/lib/scan/sdks.ts`. Play config +the rules read: `play.targetAges` (Target audience age groups), `play.accountType` / `play.accountCreated`, and +`play.billingPrograms`. When the project was built locally, scan also reads the merged manifest under +`build/intermediates` (the permissions libraries add); otherwise it says that it could not. Not a rule because no Play +policy page covers it: device admin apps (BIND_DEVICE_ADMIN); not a policy at all: Play Integrity / anti-tamper. **Checked at review, not by scan** (no file shows them): crashes and hangs on the reviewer's device (2.1, `store-health`), links that are dead at review time (`validate` checks the configured URLs), screenshots and descriptions that do not match the app (2.3, `store-screenshots`), unfinished UI (4.0), "too simple" and spam / template apps (4.2, 4.3, `portfolio-originality`), IAPs that fail in the sandbox (2.1(b), `store-iap-setup`), the content of the privacy policy -(`privacy-policy`), local law (5.2). The `review-rejections` skill covers what to do when one of these comes back. +(`privacy-policy`), local law (5.2). On Google Play: whether a restricted permission really serves the app's core +purpose (the Console declaration and its video decide), the wording and timing of a prominent disclosure, ad +placements in Unity, Flutter or React Native code, the Health apps declaration answers, and the alignment inside a +prebuilt `.so` (scan lists them; `zipalign -c -P 16` and `check_elf_alignment.sh` check the built app). The +`review-rejections` skill covers what to do when one of these comes back. ## 5-minute quick start diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts index dab9d1b5..da1ded03 100644 --- a/apps/desktop/src/i18n/en.ts +++ b/apps/desktop/src/i18n/en.ts @@ -400,7 +400,7 @@ export const en = { 'checks.scanSub': 'Offline scan of the project files: guideline, evidence, fix', 'checks.scanAgain': 'Scan again', 'checks.scanClean': 'No rejection risks found', - 'checks.scanCleanText': 'Nothing in the project files, config or listings matches a known App Store or Google Play rejection.', + 'checks.scanCleanText': 'Nothing in the project files, config or listings matches a known App Store rejection or Google Play policy issue.', 'checks.scanSdks': 'SDKs: {list}', 'checks.scanAsk': '{count} declaration answers only you can give', 'checks.scanAsk_one': '1 declaration answer only you can give', diff --git a/apps/desktop/src/i18n/tr.ts b/apps/desktop/src/i18n/tr.ts index f52e84a4..8bf2f36d 100644 --- a/apps/desktop/src/i18n/tr.ts +++ b/apps/desktop/src/i18n/tr.ts @@ -402,7 +402,7 @@ export const tr: Record = { 'checks.scanSub': 'Proje dosyalarının çevrimdışı taraması: kural, kanıt, çözüm', 'checks.scanAgain': 'Yeniden tara', 'checks.scanClean': 'Ret riski bulunmadı', - 'checks.scanCleanText': 'Proje dosyalarında, ayarda ve mağaza metinlerinde bilinen bir App Store veya Google Play reddine uyan bir şey yok.', + 'checks.scanCleanText': 'Proje dosyalarında, ayarda ve mağaza metinlerinde bilinen bir App Store reddine veya Google Play politika sorununa uyan bir şey yok.', 'checks.scanSdks': 'SDK\'lar: {list}', 'checks.scanAsk': 'Yalnızca senin cevaplayabileceğin {count} beyan sorusu', 'checks.scanAsk_one': 'Yalnızca senin cevaplayabileceğin 1 beyan sorusu', diff --git a/cli/lib/config.ts b/cli/lib/config.ts index 37793fdd..e8fe3153 100644 --- a/cli/lib/config.ts +++ b/cli/lib/config.ts @@ -414,6 +414,11 @@ export interface SubscriptionGroup { subscriptions: Subscription[]; } +/** Play target audience age groups (App content > Target audience and content). */ +export type PlayAgeGroup = '0-5' | '6-8' | '9-12' | '13-15' | '16-17' | '18+'; +export const PLAY_AGE_GROUPS: readonly PlayAgeGroup[] = ['0-5', '6-8', '9-12', '13-15', '16-17', '18+']; +export const PLAY_BILLING_PROGRAMS = ['user-choice-billing', 'alternative-billing', 'external-offers', 'external-content-links'] as const; + export interface ShipConfig { app: { name: string; @@ -444,6 +449,17 @@ export interface ShipConfig { /** Cloud Storage bucket of the Play Console report exports, e.g. "pubsite_prod_rev_" (Play Console > * Download reports > Statistics > Copy Cloud Storage URI). Used by `storebound analytics snapshot`. */ reportsBucket?: string; + /** Play Console > App content > Target audience and content: the age groups you select. Any group under 13 puts + * the app under the Families policy (`storebound scan` checks ad SDKs, the advertising ID and location for it). */ + targetAges?: PlayAgeGroup[]; + /** Developer account type. New personal accounts (created after 2023-11-13) must run a closed test with at least + * 12 opted-in testers for 14 days before they can apply for production (`storebound scan` reminds you). */ + accountType?: 'personal' | 'organization'; + /** When the Play developer account was created (YYYY-MM-DD), for the personal-account testing requirement. */ + accountCreated?: string; + /** Play billing programs the app is enrolled in that allow another payment method next to Play Billing for + * digital goods (user choice billing, alternative billing only, external offers / external content links). */ + billingPrograms?: ('user-choice-billing' | 'alternative-billing' | 'external-offers' | 'external-content-links')[]; }; apple?: { bundleId: string; appId?: string; primaryLocale?: string; listing?: string; info?: AppleAppInfo; reviewShots?: string; @@ -554,6 +570,12 @@ export function validateConfig(c: unknown): string[] { e.push('play.video: a plain YouTube video URL (https://www.youtube.com/watch?v=... or https://youtu.be/...), no playlist, channel or extra parameters'); if (cfg.play?.reportsBucket && !/^(gs:\/\/)?pubsite_prod(_rev)?_\d+\/?$/.test(cfg.play.reportsBucket)) e.push('play.reportsBucket: the Play reports bucket, e.g. "pubsite_prod_rev_" (Play Console > Download reports > Copy Cloud Storage URI)'); + if (cfg.play?.targetAges !== undefined && !(Array.isArray(cfg.play.targetAges) && cfg.play.targetAges.length && cfg.play.targetAges.every(a => PLAY_AGE_GROUPS.includes(a)))) + e.push(`play.targetAges: a list of ${PLAY_AGE_GROUPS.join(' | ')}`); + if (cfg.play?.accountType !== undefined && cfg.play.accountType !== 'personal' && cfg.play.accountType !== 'organization') e.push('play.accountType: personal | organization'); + if (cfg.play?.accountCreated !== undefined && !/^\d{4}-\d{2}-\d{2}$/.test(cfg.play.accountCreated)) e.push('play.accountCreated: a date, YYYY-MM-DD'); + if (cfg.play?.billingPrograms !== undefined && !(Array.isArray(cfg.play.billingPrograms) && cfg.play.billingPrograms.every(b => (PLAY_BILLING_PROGRAMS as readonly string[]).includes(b)))) + e.push(`play.billingPrograms: a list of ${PLAY_BILLING_PROGRAMS.join(' | ')}`); if (cfg.apple) { if (!ID_RE.test(cfg.apple.bundleId ?? '')) e.push('apple.bundleId: not a bundle id (com.example.game)'); if (cfg.apple.appId && !/^\d+$/.test(cfg.apple.appId)) e.push('apple.appId: numeric Apple ID of the app (App Store Connect > App Information)'); diff --git a/cli/lib/scan/index.ts b/cli/lib/scan/index.ts index 894b715a..f20d8470 100644 --- a/cli/lib/scan/index.ts +++ b/cli/lib/scan/index.ts @@ -51,11 +51,18 @@ export async function runScan(dir: string, o: { config?: string } = {}): Promise }; const configFile = configPath ? { path: rel(configPath), text: readFileSync(configPath, 'utf8') } : null; const declarations = proposeDeclarations(facts, config, configFile); - const findings = scanRules({ facts, config, configFile, listings, demoAccount: !!reviewDemoAccount(dir), labelGaps: declarations.labelGaps }); + const dataMerges = config?.dataSafety ? declarations.diff.filter(d => d.change === 'merge' && d.before).map(d => { + const b = d.before!; + const missing = [...d.after.collect.filter(x => !b.collect.includes(x)).map(x => `collected for ${x}`), ...(d.after.shared && !b.shared ? ['shared'] : []), + ...(d.after.share ?? []).filter(x => !(b.share ?? []).includes(x)).map(x => `shared for ${x}`)]; + return { type: d.type, missing: [...new Set(missing)].join(', '), evidence: d.evidence }; + }).filter(d => d.missing) : []; + const findings = scanRules({ facts, config, configFile, listings, demoAccount: !!reviewDemoAccount(dir), labelGaps: declarations.labelGaps, dataMerges }); const counts = { blocker: 0, high: 0, medium: 0, low: 0, accepted: 0 }; for (const f of findings) { if (f.accepted) counts.accepted++; else counts[f.severity]++; } const notes: string[] = []; - if (facts.android && facts.androidInfo.manifests.length) notes.push('Android: libraries add permissions when the manifest is merged; check the merged manifest (Android Studio > Merged Manifest, or the AAB) too.'); + if (facts.android && facts.androidInfo.mergedManifest) notes.push(`Android: permissions include the merged manifest of the last local build (${facts.androidInfo.mergedManifest}); rebuild after dependency changes.`); + else if (facts.android && facts.androidInfo.manifests.length) notes.push('Android: libraries add permissions when the manifest is merged and no local build output (build/intermediates) was found; check the merged manifest (Android Studio > Merged Manifest, or the AAB) too.'); if (facts.ios && !facts.plistSources.length) notes.push('iOS: no Info.plist settings found (generated at build time?): purpose string, ATS and export compliance checks were skipped.'); if (!facts.sources.length) notes.push('No app source files found: code checks (sign-in, deletion, restore, ATT prompt) could not run.'); const report: ScanReport = { diff --git a/cli/lib/scan/play-rules.ts b/cli/lib/scan/play-rules.ts new file mode 100644 index 00000000..56aaa4d5 --- /dev/null +++ b/cli/lib/scan/play-rules.ts @@ -0,0 +1,429 @@ +// Google Play policy rules for `storebound scan` (rejections, update blocks, suspensions and policy strikes), next to +// the App Store rules in rules.ts. Pure, like rules.ts: project facts + config + listings in, findings out. A rule only +// reports what a file or the config proves; where the policy turns on something no file shows (the app's core purpose, +// what happens at runtime) the finding says what to check and which Play Console declaration it needs. +// +// Sources, each fetched live and checked 2026-10-11 (Play Console Help / Policy Center, developer.android.com): +// - Permissions and APIs that Access Sensitive Information: support.google.com/googleplay/android-developer/answer/9888170 +// (index of the restricted permissions below). +// - Background location: answer/9799150 "Understanding location in the background permissions": core feature only, +// App content > Sensitive app permissions > Location permissions declaration with a video (30 s or less), a +// prominent disclosure before the runtime prompt that says "location" and "background" / "when the app is closed". +// - Photo and video permissions: answer/14115180: READ_MEDIA_IMAGES / READ_MEDIA_VIDEO only when the system photo +// picker is not enough for the app's core purpose (gallery-type apps), with a declaration; enforced since 2025-05-28. +// - All files access: answer/10467955: MANAGE_EXTERNAL_STORAGE only for file managers, backup and restore, +// anti-virus, document management, on-device search, disk encryption, device migration; declaration form. +// - AccessibilityService API: answer/10964491: isAccessibilityTool only for tools for people with disabilities; every +// other use needs an in-app disclosure, affirmative consent and the declaration (with a video). +// - REQUEST_INSTALL_PACKAGES: answer/12085295: core function must be sending / receiving packages and user-initiated +// installs; Permissions Declaration Form. +// - Health Connect: answer/12991134 (android.permission.health.*: each permission justified, permitted use cases, +// privacy policy) and the Health apps declaration every app completes: answer/14738291. +// - Full-screen intent: answer/13392821: on Android 14+ granted by default only to calling and alarm apps; App +// content declaration since 2024-05-31; other apps ask the user and handle a denial. +// - VpnService: answer/12564964: VPN as the core function (or the listed exceptions), disclosure + consent, declaration. +// - Device admin (BIND_DEVICE_ADMIN): no Play policy page covers it (checked the pages above, Device and Network Abuse +// answer/9888379 and User Data answer/10144311): no rule, nothing invented. +// - User Data: answer/10144311: prominent disclosure in the app, during normal use, right before the runtime request, +// describing the data and its use (not only in the privacy policy); a privacy policy for every app, in Play Console +// and inside the app; Data safety must include what SDKs collect. +// - Families: answer/9893335 (only Families Self-Certified Ads SDKs for children; child-only apps do not transmit the +// advertising ID and should not request AD_ID on API 33+; child-only apps may not request location) and the +// certified list answer/9859768 (in sdks.ts `families`; AppLovin left the program, Meta Audience Network is not on it). +// - Advertising ID: answer/6048248: apps targeting Android 13+ that use the advertising ID declare +// com.google.android.gms.permission.AD_ID (Google Mobile Ads merges it from its own manifest). +// - 16 KB page sizes: developer.android.com/guide/practices/page-sizes: apps targeting Android 15+ must support 16 KB +// pages on 64-bit devices; from 2027-02-01 updates that don't cannot be released. AGP 8.5.1+ zip-aligns uncompressed +// .so files (older: useLegacyPackaging), NDK r28+ aligns by default (r27 and older: flags). Unity: 6000.0.38f1, +// 2022.3.56f1, 2021.3.48f1, 6000.1+ (discussions.unity.com/t/info-unity-engine-support-for-16-kb-memory-page-sizes-android-15/1589588). +// React Native: 0.77 (reactnative.dev/blog/2025/01/21/version-0.77). Flutter: no official version found, not checked. +// - Testing for new personal developer accounts: answer/14151465: accounts created after 2023-11-13 run a closed test +// with at least 12 opted-in testers for 14 days in a row before applying for production. +// - Metadata: answer/9898842: title 30 characters or less; no emoji, emoticons or repeated special characters; no +// rank / performance / price / promotion / Play program terms ("#1", "best", "top", "popular", "free", "new", "sale", +// "% off") in the title, icon or developer name; avoid ALL CAPS unless it is the brand; no repeated or unrelated +// keywords, no comparisons with other apps, no other brands without permission. +// - Ads: answer/9857753 (no interstitials that show unexpectedly, before the splash screen or while the user does +// something else) and Better Ads Experiences answer/12271244 (apps without a splash screen wait for the home screen). +// Statically visible: an interstitial shown from the launcher activity's onCreate (Android native). Unity Start(), +// Flutter and React Native launch paths are not reliable from files: review-only. +// - Payments: answer/9858738 (Play Billing for digital goods; physical goods and services exempt; no steering outside +// user choice billing answer/13821247, external offers answer/14372887, US external content links answer/16470497). +// - Impersonation: answer/9888374 (don't imply a relation with someone you are not, e.g. in the title or developer +// name). The brand list below is storebound's own short list of well-known app brands, reported as low "check". +// Play Integrity / anti-tamper is not a policy: no rule. +import { PLAY_AGE_GROUPS } from '../config'; +import { allSubscriptions } from '../subscriptions'; +import { grep, type Hit, type ProjectFacts } from './project'; +import type { ScanFinding, ScanInput } from './rules'; +import { versionAtLeast } from './sdks'; + +const PLAY = 'https://support.google.com/googleplay/android-developer/answer/'; +export const PLAY_REFS = { + sensitive: `${PLAY}9888170`, backgroundLocation: `${PLAY}9799150`, photoVideo: `${PLAY}14115180`, allFiles: `${PLAY}10467955`, + accessibility: `${PLAY}10964491`, installPackages: `${PLAY}12085295`, healthConnect: `${PLAY}12991134`, healthDeclaration: `${PLAY}14738291`, + fullScreenIntent: `${PLAY}13392821`, vpn: `${PLAY}12564964`, userData: `${PLAY}10144311`, families: `${PLAY}9893335`, familiesSdks: `${PLAY}9859768`, + adId: `${PLAY}6048248`, pageSize: 'https://developer.android.com/guide/practices/page-sizes', testing: `${PLAY}14151465`, metadata: `${PLAY}9898842`, + ads: `${PLAY}9857753`, betterAds: `${PLAY}12271244`, payments: `${PLAY}9858738`, impersonation: `${PLAY}9888374`, +} as const; +/** From this date Play refuses updates that don't support 16 KB pages (developer.android.com/guide/practices/page-sizes). */ +export const PAGE_SIZE_DEADLINE = '2027-02-01'; +/** Personal accounts created after this date have the closed-testing requirement (answer/14151465). */ +export const PERSONAL_TESTING_SINCE = '2023-11-13'; +export const PERSONAL_TESTING = { testers: 12, days: 14 } as const; +/** First Unity version of each stream with 16 KB page size support (Unity forum post above); older streams have none. */ +export const UNITY_16KB: Record = { '2021.3': '2021.3.48f1', '2022.3': '2022.3.56f1', '6000.0': '6000.0.38f1' }; +const AD_ID = 'com.google.android.gms.permission.AD_ID'; +const BRANDS = ['instagram', 'tiktok', 'whatsapp', 'facebook', 'snapchat', 'youtube', 'netflix', 'spotify', 'telegram', 'pinterest', 'chatgpt', 'openai', + 'minecraft', 'roblox', 'fortnite', 'pubg', 'pokemon', 'duolingo', 'gmail', 'google', 'playstation', 'xbox', 'nintendo']; +const OTHER_APPS = ['instagram', 'tiktok', 'whatsapp', 'facebook', 'snapchat', 'youtube', 'netflix', 'spotify', 'telegram', 'messenger', 'pinterest', 'uber', 'airbnb', + 'chatgpt', 'openai', 'minecraft', 'roblox', 'fortnite', 'pubg', 'candy crush', 'clash of clans', 'pokemon', 'pokémon', 'among us', 'subway surfers', 'temple run', + 'angry birds', 'tetris', 'wordle', 'duolingo', 'gmail', 'google maps', 'waze', 'shazam', 'tinder', 'evernote', 'photoshop', 'capcut']; +const CLAIMS = /#\s?1\b|\bno\.? ?1\b|\bnumber one\b|\bbest\b|\btop\b|\bpopular\b|app of the year|game of the year|best of play|editor'?s'? choice|\bsale\b|\bdiscount\b|\d+\s?% off|cash ?back|limited time|\$\d/i; +/** "free" and "new" are only examples in the policy as promotion ("free for limited time only") and Play program + * ("New") terms; a plain "free" or "new" can be part of a real name, so they are a low "check". */ +const SOFT_CLAIMS = /\bfree\b|\bnew\b/i; +const EMOJI = /\p{Extended_Pictographic}|[:;]-?[)(DP]|\(\s*[╯°□・ω^]+|([!?*★☆♥✓✔•~_=+|-])\1{1,}/u; +const DISCLOSURE = /shouldShowRequestPermissionRationale|PermissionRationale|prominent[_ ]?disclosure|data[_ ]?disclosure|\b(collects?|transmits?|syncs?|stores?|shares?|uses?)\b[^"<\n]{0,80}\b(location|contacts?|calendar|phone numbers?)\b|\b(location|contacts?|calendar)\b[^"<\n]{0,80}\b(collected|transmitted|synced|stored|shared|used)\b/i; +const BACKGROUND_DISCLOSURE = /location[^"<\n]{0,160}(background|when the app is closed|not in use|always in use)|(background|when the app is closed|not in use|always in use)[^"<\n]{0,160}location/i; +const EXTERNAL_BUY = /\b(buy|subscribe|purchase|upgrade|pay)\b[^.\n]{0,40}\b(on|at|via|from) (our )?(website|web ?site|web|site)\b/i; +const SENSITIVE_DATA: Record = { + ACCESS_FINE_LOCATION: 'location', ACCESS_COARSE_LOCATION: 'location', ACCESS_BACKGROUND_LOCATION: 'location', READ_CONTACTS: 'contacts', + READ_CALENDAR: 'calendar', READ_PHONE_NUMBERS: 'phone numbers', +}; + +type Add = (f: Omit & { ref: string }) => void; +export interface PlayCtx { + add: Add; + cfg: (needle: string | RegExp, text?: string) => Hit[]; + sdkHits: (pred: (s: ProjectFacts['sdks'][number]) => boolean) => Hit[]; + listingHits: (file: { path: string; text: string } | undefined, re: RegExp, o?: { fenced?: boolean; field?: RegExp }) => Hit[]; + /** Account creation evidence (rules.ts), restorable products / subscriptions, payment SDKs. */ + creates: Hit[]; + restorable: Hit[]; + paySdk: Hit[]; +} + +const esc = (s: string) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); +const permName = (n: string) => n.replace(/^android\.permission\./, ''); +const ev = (x: { at: { file: string; line: number } }, text: string): Hit => ({ ...x.at, text }); + +/** Text of the first fenced block under every heading matching `field`. */ +function fieldBlocks(file: { path: string; text: string } | undefined, field: RegExp): { at: Hit; text: string }[] { + if (!file) return []; + const out: { at: Hit; text: string }[] = []; + const lines = file.text.split('\n'); + for (let i = 0; i < lines.length; i++) { + if (!/^###\s/.test(lines[i]!) || !field.test(lines[i]!.slice(4))) continue; + let j = i + 1; + while (j < lines.length && !/^```/.test(lines[j]!) && !/^##/.test(lines[j]!)) j++; + if (j >= lines.length || !/^```/.test(lines[j]!)) continue; + let k = j + 1; + while (k < lines.length && !/^```/.test(lines[k]!)) k++; + out.push({ at: { file: file.path, line: j + 2, text: (lines[j + 1] ?? '').trim().slice(0, 160) }, text: lines.slice(j + 1, k).join('\n') }); + } + return out; +} + +const STOP = new Set(['app', 'apps', 'game', 'games', 'the', 'and', 'for', 'with', 'your', 'you', 'that', 'this', 'from', 'have', 'are', 'will', 'can', 'all', 'more', 'just', 'into', 'every', 'each', 'one', 'when', 'what', 'they', 'them', 'their', 'our', 'out', 'not', 'any', 'also']); + +export function playRules(inp: ScanInput, x: PlayCtx): void { + const { facts: p, config: c } = inp; + const { add, cfg, sdkHits } = x; + const a = p.androidInfo; + const android = p.android; + const perms = new Map(a.permissions.map(q => [permName(q.name), q] as const)); + const removed = new Map(a.removedPermissions.map(q => [permName(q.name), q] as const)); + const target = a.targetSdk?.value ?? null; + const ages = c?.play?.targetAges ?? []; + const kidsAges = ages.filter(g => PLAY_AGE_GROUPS.indexOf(g) < 3); + const childOnly = ages.length > 0 && kidsAges.length === ages.length; + const mixed = kidsAges.length > 0 && !childOnly; + const textSources = [...p.sources, ...a.strings]; + + // ---- sensitive permissions and APIs (each needs a Play Console declaration) ---- + if (android) { + const bg = perms.get('ACCESS_BACKGROUND_LOCATION'); + if (bg) + add({ rule: 'play-background-location', guideline: 'Play: Location permissions', severity: 'high', title: 'ACCESS_BACKGROUND_LOCATION needs a core feature that uses location in the background, the Location permissions declaration and a video', + evidence: [ev(bg, bg.name)], ref: PLAY_REFS.backgroundLocation, skill: 'store-declarations', + fix: 'Keep it only for one core, user-visible feature (never for ads or analytics alone); fill App content > Sensitive app permissions > Location permissions (one feature, a video of 30 s or less showing the prominent disclosure, the runtime prompt and the feature working in the background), and name the feature in the store description. Otherwise remove it (tools:node="remove" if a library adds it).' }); + const media = ['READ_MEDIA_IMAGES', 'READ_MEDIA_VIDEO'].map(n => perms.get(n)).filter(q => !!q); + if (media.length) + add({ rule: 'play-photo-video', guideline: 'Play: Photo and Video Permissions', severity: 'high', title: `${media.map(q => permName(q.name)).join(' / ')}: only for apps whose core purpose needs broad photo / video access; others use the photo picker`, + evidence: media.map(q => ev(q, q.name)), ref: PLAY_REFS.photoVideo, skill: 'store-declarations', + fix: 'Use the Android photo picker (androidx.activity 1.7.0+ PickVisualMedia, no permission) for one-time or occasional picks and remove the permissions; keep them only for gallery-type core features and fill the Photo and video permissions declaration.' }); + const mes = perms.get('MANAGE_EXTERNAL_STORAGE'); + if (mes) + add({ rule: 'play-all-files-access', guideline: 'Play: All files access', severity: 'high', title: 'MANAGE_EXTERNAL_STORAGE (All files access) is only for file managers, backup, anti-virus, document management, search and similar apps', + evidence: [ev(mes, mes.name)], ref: PLAY_REFS.allFiles, skill: 'store-declarations', + fix: 'Use the Storage Access Framework or MediaStore and remove the permission; apps whose core function needs it fill the All files access declaration and explain why those APIs are not enough.' }); + const acc = a.components.filter(q => q.kind === 'service' && (q.permission === 'android.permission.BIND_ACCESSIBILITY_SERVICE' || q.actions.includes('android.accessibilityservice.AccessibilityService'))); + if (acc.length) { + const tool = a.accessibilityConfigs.find(q => q.isTool); + add({ rule: 'play-accessibility', guideline: 'Play: AccessibilityService API', severity: tool ? 'medium' : 'high', + title: tool ? 'AccessibilityService marked isAccessibilityTool: only for tools whose primary purpose is helping people with disabilities' : `AccessibilityService ${acc[0]!.name} needs an in-app disclosure, affirmative consent and the AccessibilityService declaration`, + evidence: [...acc.slice(0, 2).map(q => ev(q, `service ${q.name}`)), ...(tool ? [ev(tool, 'android:isAccessibilityTool="true"')] : a.accessibilityConfigs.slice(0, 1).map(q => ev(q, 'accessibility-service')))], ref: PLAY_REFS.accessibility, skill: 'store-declarations', + fix: tool ? 'Keep isAccessibilityTool only for screen readers, switch, voice or braille input and similar tools (not automation, antivirus, launchers, cleaners, password managers); otherwise remove it and add the disclosure and consent. Fill the AccessibilityService declaration either way.' + : 'Show a disclosure during normal use that says what the service accesses and why, get an affirmative "accept", keep it separate from other disclosures, and fill the AccessibilityService declaration with a video (open the app, disclosure, accept and decline, the feature). Autonomous AI-style actions through the API are not allowed.' }); + } + const rip = perms.get('REQUEST_INSTALL_PACKAGES'); + if (rip) + add({ rule: 'play-install-packages', guideline: 'Play: REQUEST_INSTALL_PACKAGES', severity: 'high', title: 'REQUEST_INSTALL_PACKAGES is only for apps whose core function is sending or receiving app packages for user-initiated installs', + evidence: [ev(rip, rip.name)], ref: PLAY_REFS.installPackages, skill: 'store-declarations', + fix: 'Remove it (self-updates must go through Play); browsers, file managers, messengers with attachments, backup and enterprise apps keep it and fill the Permissions Declaration Form.' }); + const health = a.permissions.filter(q => /^android\.permission\.health\./.test(q.name)); + if (health.length) + add({ rule: 'play-health-connect', guideline: 'Play: Health Connect permissions', severity: 'high', title: `Health Connect permissions (${health.slice(0, 3).map(q => permName(q.name).replace(/^health\./, '')).join(', ')}${health.length > 3 ? ', ...' : ''}) need a justification for each one and a permitted use case`, + evidence: health.slice(0, 3).map(q => ev(q, q.name)), ref: PLAY_REFS.healthConnect, skill: 'store-declarations', + fix: 'Request only the data types a feature uses, justify each permission in the Health Connect declaration, show the privacy policy in the app, and answer App content > Health apps (answer/14738291). Ads, data sales and child-only apps are not allowed to use it.' }); + const fsi = perms.get('USE_FULL_SCREEN_INTENT'); + if (fsi && (target === null || target >= 34)) + add({ rule: 'play-full-screen-intent', guideline: 'Play: Full-screen intent', severity: 'high', title: 'USE_FULL_SCREEN_INTENT: on Android 14+ only calling and alarm apps get it by default, and every app declares it in Play Console', + evidence: [ev(fsi, fsi.name)], ref: PLAY_REFS.fullScreenIntent, skill: 'store-declarations', + fix: 'Remove it unless the core function is alarms or phone / video calls (an SDK may add it: check the merged manifest); otherwise fill App content > Full-screen intent, ask the user with ACTION_MANAGE_APP_USE_FULL_SCREEN_INTENT and handle a denial. Never for ads.' }); + const vpn = a.components.filter(q => q.kind === 'service' && (q.permission === 'android.permission.BIND_VPN_SERVICE' || q.actions.includes('android.net.VpnService'))); + if (vpn.length) + add({ rule: 'play-vpn', guideline: 'Play: VpnService', severity: 'high', title: `VpnService ${vpn[0]!.name}: only for VPN apps and the listed exceptions, with a disclosure, consent and the VpnService declaration`, + evidence: vpn.slice(0, 2).map(q => ev(q, `service ${q.name}`)), ref: PLAY_REFS.vpn, skill: 'store-declarations', + fix: 'Use VpnService only when it is the core function (or parental control, enterprise, app usage tracking, device security, network tools, browsers); describe it in the listing, encrypt traffic to the tunnel, show an in-app disclosure with affirmative consent, and fill the VpnService declaration (videos of 90 s or less).' }); + } + + // ---- prominent disclosure (User Data) ---- + if (android && (p.sources.length || a.strings.length)) { + const bg = perms.get('ACCESS_BACKGROUND_LOCATION'); + const own = (q: { at: { file: string } }) => !a.mergedManifest || q.at.file !== a.mergedManifest; + if (bg && own(bg) && !grep(textSources, BACKGROUND_DISCLOSURE, 1).length) + add({ rule: 'play-prominent-disclosure', guideline: 'Play: User Data (prominent disclosure)', severity: 'high', title: 'Background location without a prominent disclosure that says "location" and "background" / "when the app is closed"', + evidence: [ev(bg, bg.name)], ref: PLAY_REFS.backgroundLocation, skill: 'store-declarations', + fix: 'Before the runtime prompt, show a dialog during normal use, e.g. " collects location data to enable even when the app is closed or not in use." List every feature that uses it (and ads, if they do). It cannot live only in the privacy policy.' }); + const sensitive = [...perms.entries()].filter(([n, q]) => SENSITIVE_DATA[n] && own(q) && n !== 'ACCESS_BACKGROUND_LOCATION'); + if (sensitive.length && !grep(textSources, DISCLOSURE, 1).length) + add({ rule: 'play-prominent-disclosure', guideline: 'Play: User Data (prominent disclosure)', severity: 'medium', + title: `${[...new Set(sensitive.map(([n]) => SENSITIVE_DATA[n]))].join(', ')} access without a disclosure or rationale text in the app's sources or strings`, + evidence: sensitive.slice(0, 3).map(([, q]) => ev(q, q.name)), ref: PLAY_REFS.userData, skill: 'store-declarations', + fix: 'When people would not expect the collection, show an in-app disclosure right before the permission request that says which data is collected and how it is used or shared (" collects to enable , ."), and ask for an affirmative accept; the privacy policy alone is not enough.' }); + } + + // ---- Data safety: SDK disclosures the config's answers miss (additions are the privacy-labels rule in rules.ts) ---- + for (const g of inp.dataMerges ?? []) + add({ rule: 'privacy-labels', guideline: 'Play: User Data (Data safety)', severity: 'medium', title: `Data safety answer for ${g.type} is narrower than what is detected: ${g.missing}`, evidence: g.evidence.slice(0, 2), + ref: 'https://support.google.com/googleplay/android-developer/answer/10787469', skill: 'store-declarations', + fix: 'Check the SDK\'s Data safety guidance (sdks.ts names the page), widen the answer with `storebound scan --write`, then `storebound play data-safety`.' }); + if (c?.play && !c.dataSafety && p.sdks.some(s => s.sdk.data.length)) + add({ rule: 'privacy-labels', guideline: 'Play: User Data (Data safety)', severity: 'medium', title: 'SDKs that collect data, but the config has no dataSafety answers', evidence: sdkHits(s => s.sdk.data.length > 0).slice(0, 3), + ref: 'https://support.google.com/googleplay/android-developer/answer/10787469', skill: 'store-declarations', + fix: 'Run `storebound scan` and read the declarations proposal, confirm it with each SDK\'s disclosure page, `storebound scan --write`, then `storebound play data-safety`.' }); + + // ---- privacy policy in the app ---- + if (p.sources.length && android) { + const link = grep(textSources, /privacy|gizlilik|datenschutz|confidentialit|privacidad/i, 1); + const url = c?.app.privacyPolicyUrl ? grep(textSources, new RegExp(esc(c.app.privacyPolicyUrl)), 1) : []; + if (!link.length && !url.length) { + const collects = p.sdks.length > 0 || x.creates.length > 0 || [...perms.keys()].some(n => SENSITIVE_DATA[n]); + add({ rule: 'play-privacy-policy', guideline: 'Play: User Data (privacy policy)', severity: collects ? 'medium' : 'low', title: 'No privacy policy link found in the app\'s sources (Play wants it in Play Console and inside the app)', + evidence: [...cfg('privacyPolicyUrl'), ...sdkHits(() => true)].slice(0, 2).concat(p.sources.slice(0, 1).map(s => ({ file: s.path, line: 1, text: 'app sources' }))).slice(0, 3), + ref: PLAY_REFS.userData, skill: 'privacy-policy', + fix: 'Link app.privacyPolicyUrl from inside the app (e.g. Settings > Privacy policy, and the sign-up screen). It must be a public, non-geofenced https page, not a PDF, labelled as a privacy policy.' }); + } + const insecure = grep(textSources, /["'>]http:\/\/[^"'<\s]*privacy/i, 1); + if (insecure.length) + add({ rule: 'play-privacy-policy', guideline: 'Play: User Data (privacy policy)', severity: 'medium', title: 'The in-app privacy policy link uses http://', evidence: insecure, + ref: PLAY_REFS.userData, skill: 'privacy-policy', fix: 'Use the https URL (the same as app.privacyPolicyUrl).' }); + } + + // ---- Families ---- + const adSdks = p.sdks.filter(s => s.sdk.category === 'ads'); + if (kidsAges.length) { + const agesEv = cfg('targetAges'); + for (const s of adSdks) { + const fam = s.sdk.families; + const gradleDep = s.deps.find(d => d.eco === 'gradle' && d.version); + const old = fam?.certified && fam.since && gradleDep ? versionAtLeast(gradleDep.version!, fam.since) === false : false; + if (fam?.certified && !old) continue; + add({ rule: 'play-families-ads', guideline: 'Play: Families policy', severity: 'high', + title: old ? `${s.sdk.name} ${gradleDep!.version} is older than ${fam!.since}, the first Families self-certified version` : `${s.sdk.name} is not a Families Self-Certified Ads SDK (${fam?.note ?? 'not on the list'}), but the target audience includes children`, + evidence: [...sdkHits(q => q.sdk.id === s.sdk.id), ...agesEv].slice(0, 3), ref: PLAY_REFS.familiesSdks, skill: 'ads-mediation-checks', + fix: old ? `Update to ${fam!.since} or newer and turn on child-directed treatment.` : 'Ads shown to children (or users of unknown age) may only come from Families Self-Certified Ads SDKs (AdMob, ironSource / LevelPlay, Unity Ads and others on answer/9859768): remove this SDK and its mediation adapters, or take children out of the target audience.' }); + } + const adIdFromSdk = p.sdks.filter(s => s.sdk.mergesAdId); + const adId = perms.get(AD_ID); + if (childOnly && (target === null || target >= 33) && !removed.has(AD_ID) && (adId || adIdFromSdk.length)) + add({ rule: 'play-families-ad-id', guideline: 'Play: Families policy', severity: 'high', title: 'App only for children with the advertising ID permission (AD_ID): child-only apps must not transmit the advertising ID', + evidence: [...(adId ? [ev(adId, AD_ID)] : sdkHits(s => !!s.sdk.mergesAdId)), ...agesEv].slice(0, 3), ref: PLAY_REFS.families, skill: 'store-declarations', + fix: 'Remove it from the merged manifest: , turn on child-directed treatment in every ad SDK, and answer the Advertising ID declaration accordingly.' }); + else if (mixed && p.sdks.some(s => s.sdk.tracking && (s.sdk.category === 'ads' || s.sdk.category === 'attribution'))) + add({ rule: 'play-families-ad-id', guideline: 'Play: Families policy', severity: 'medium', title: 'Mixed audience with ad / attribution SDKs: no advertising ID or interest-based ads for children or users of unknown age', + evidence: [...sdkHits(s => s.sdk.tracking && (s.sdk.category === 'ads' || s.sdk.category === 'attribution')), ...agesEv].slice(0, 3), ref: PLAY_REFS.families, skill: 'ads-mediation-checks', + fix: 'Add a neutral age screen; for children and unknown ages turn on child-directed treatment (no advertising ID, no personalized ads or remarketing) in every SDK before it starts.' }); + const loc = ['ACCESS_FINE_LOCATION', 'ACCESS_COARSE_LOCATION', 'ACCESS_BACKGROUND_LOCATION'].map(n => perms.get(n)).filter(q => !!q); + if (childOnly && loc.length) + add({ rule: 'play-families-location', guideline: 'Play: Families policy', severity: 'high', title: 'App only for children requests location', evidence: [...loc.slice(0, 2).map(q => ev(q, q.name)), ...agesEv].slice(0, 3), + ref: PLAY_REFS.families, skill: 'store-declarations', fix: 'Remove the location permissions (tools:node="remove" for ones an SDK adds); apps only for children may not request location.' }); + } + + // ---- advertising ID permission (Android 13+) ---- + if (android && !childOnly && (target === null || target >= 33)) { + const users = p.sdks.filter(s => s.sdk.tracking && (s.sdk.category === 'ads' || s.sdk.category === 'attribution')); + if (users.length && !perms.has(AD_ID) && !removed.has(AD_ID) && !users.some(s => s.sdk.mergesAdId)) { + const merged = !!a.mergedManifest; + add({ rule: 'play-ad-id', guideline: 'Play: Advertising ID', severity: merged ? 'medium' : 'low', + title: merged ? `The merged manifest has no AD_ID permission, but ${users.map(s => s.sdk.name).join(', ')} ${users.length > 1 ? 'use' : 'uses'} the advertising ID` : `${users.map(s => s.sdk.name).join(', ')} ${users.length > 1 ? 'use' : 'uses'} the advertising ID: check that the merged manifest declares AD_ID (targetSdk 33+)`, + evidence: [...sdkHits(s => users.includes(s)), ...(merged ? [{ file: a.mergedManifest!, line: 1, text: 'merged AndroidManifest.xml' }] : [])].slice(0, 3), ref: PLAY_REFS.adId, skill: 'store-declarations', + fix: 'Apps targeting Android 13+ that use the advertising ID declare (without it the ID reads as zeros); answer the Advertising ID question in App content the same way.' }); + } + } + + // ---- 16 KB page sizes ---- + if (android) { + const n = p.native; + const ps: { title: string; evidence: Hit[]; fix: string; severity?: 'medium' }[] = []; + if (n.unityVersion) { + const v = n.unityVersion.value; + const stream = /^(\d+\.\d+)/.exec(v)?.[1] ?? ''; + const min = UNITY_16KB[stream]; + const ok = min ? unityPatch(v) >= unityPatch(min) : Number(stream.split('.')[0]) >= 6000; + if (!ok) + ps.push({ title: `Unity ${v} builds without 16 KB page size support (needs ${min ?? '6000.0.38f1, 2022.3.56f1 or 2021.3.48f1 (Extended LTS)'} or newer)`, evidence: [{ ...n.unityVersion.at, text: `m_EditorVersion: ${v}` }], + fix: `Update the editor to ${min ?? 'a supported LTS (6000.0.38f1+, 2022.3.56f1+)'} or newer and rebuild; plugins with their own .so files need 16 KB aligned builds too.` }); + } + const rn = p.deps.find(d => d.eco === 'npm' && d.name === 'react-native' && d.version); + if (rn && versionAtLeast(rn.version!, '0.77') === false) + ps.push({ title: `React Native ${rn.version} is older than 0.77, the first version with full 16 KB page size support`, evidence: [{ file: rn.file, line: rn.line, text: `react-native ${rn.version}` }], + fix: 'Upgrade React Native to 0.77 or newer (and native modules with their own .so files to aligned builds).' }); + const ndkMajor = n.ndkVersion ? Number(/^\d+/.exec(n.ndkVersion.value)?.[0]) : null; + if (n.nativeBuild && ndkMajor !== null && ndkMajor < 28 && !n.flexiblePageSizes) + ps.push({ title: `NDK ${n.ndkVersion!.value} (r${ndkMajor}) does not build 16 KB aligned libraries by default`, evidence: [{ ...n.ndkVersion!.at, text: `ndkVersion ${n.ndkVersion!.value}` }, { ...n.nativeBuild, text: 'native build' }], + fix: `Use NDK r28 or newer, or ${ndkMajor === 27 ? 'set -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON' : 'add -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384 to the linker flags (and link libc++ statically on r26 and older)'}.` }); + const hasNative = n.libs.length > 0 || !!n.nativeBuild || p.stacks.some(s => s === 'flutter' || s === 'react-native' || s === 'godot'); + const compressed = n.legacyPackaging || (a.extractNativeLibs?.value ? a.extractNativeLibs.at : null); + if (hasNative && n.agp && versionAtLeast(n.agp.value, '8.5.1') === false && !compressed) + ps.push({ title: `Android Gradle Plugin ${n.agp.value} does not 16 KB zip-align uncompressed native libraries (needs 8.5.1+)`, + evidence: [{ ...n.agp.at, text: `AGP ${n.agp.value}` }, ...(a.extractNativeLibs ? [{ ...a.extractNativeLibs.at, text: `android:extractNativeLibs="${a.extractNativeLibs.value}"` }] : [])], + fix: 'Update AGP to 8.5.1 or newer; until then set packaging { jniLibs { useLegacyPackaging = true } } (compressed libraries, bigger install; on AGP 8.0 or lower also android.bundle.enableUncompressedNativeLibs=false in gradle.properties).' }); + const own = n.libs.filter(f => !/(^|\/)(armeabi-v7a|armeabi|x86)\//.test(f)); + if (!ps.length && own.length) + ps.push({ title: `${own.length} prebuilt native librar${own.length === 1 ? 'y' : 'ies'} (.so) in the project: check they are 16 KB aligned`, evidence: own.slice(0, 3).map(f => ({ file: f, line: 1, text: f.split('/').pop()! })), + severity: 'medium', fix: 'Check the built app: zipalign -v -c -P 16 4 app.apk and check_elf_alignment.sh (LOAD segments align 2**14), or APK Analyzer; ask the vendor for an aligned build of any library that fails.' }); + for (const q of ps) + add({ rule: 'play-16kb', guideline: 'Play: 16 KB page sizes', severity: q.severity ?? 'high', + title: `${q.title}; from ${PAGE_SIZE_DEADLINE} Play blocks updates without 16 KB support (apps targeting Android 15+)`, evidence: q.evidence, fix: q.fix, ref: PLAY_REFS.pageSize, skill: 'play-first-release' }); + } + + // ---- new personal developer accounts: closed testing before production ---- + if (c?.play) { + const t = c.play.accountType; + const created = c.play.accountCreated; + if (t === 'personal' && (!created || created > PERSONAL_TESTING_SINCE)) + add({ rule: 'play-testing-requirement', guideline: 'Play: Testing for new personal accounts', severity: 'medium', + title: `Personal developer account${created ? ` created ${created}` : ''}: production needs a closed test with at least ${PERSONAL_TESTING.testers} opted-in testers for ${PERSONAL_TESTING.days} days in a row first`, + evidence: cfg('accountType'), ref: PLAY_REFS.testing, skill: 'play-first-release', + fix: `Start the closed test early (testers opted in for ${PERSONAL_TESTING.days} continuous days), then apply for production access on the Dashboard; accounts created on or before ${PERSONAL_TESTING_SINCE} and organization accounts are exempt. Ignore this when production access is already granted.` }); + else if (!t) + add({ rule: 'play-testing-requirement', guideline: 'Play: Testing for new personal accounts', severity: 'low', + title: `Play account type unknown: new personal accounts need ${PERSONAL_TESTING.testers} testers for ${PERSONAL_TESTING.days} days in a closed test before production`, + evidence: cfg(/play\s*:/), ref: PLAY_REFS.testing, skill: 'play-first-release', + fix: `Set play.accountType ('personal' | 'organization') and play.accountCreated (YYYY-MM-DD) so scan can tell; personal accounts created after ${PERSONAL_TESTING_SINCE} need the closed test.` }); + } + + // ---- Play listing metadata ---- + if (c?.play || inp.listings.play) { + const listing = inp.listings.play; + const titles: Hit[] = fieldBlocks(listing, /\btitle\b/i).map(b => ({ ...b.at, text: b.text.trim() })); + if (!titles.length && c?.app.name) titles.push(...cfg(/\bname\s*:/, c.app.name).map(h => ({ ...h, text: c.app.name }))); + const long = titles.filter(t => [...t.text].length > 30); + if (long.length) + add({ rule: 'play-metadata', guideline: 'Play: Metadata', severity: 'high', title: `Play title longer than 30 characters: "${long[0]!.text}" (${[...long[0]!.text].length})`, evidence: long.slice(0, 2), + ref: PLAY_REFS.metadata, skill: 'aso-basics', fix: 'Shorten the title to 30 characters or less (a "### title" block in store/listing.md, else app.name).' }); + const emoji = titles.filter(t => EMOJI.test(t.text)); + if (emoji.length) + add({ rule: 'play-metadata', guideline: 'Play: Metadata', severity: 'high', title: 'Emoji, emoticons or repeated special characters in the Play title', evidence: emoji.slice(0, 2), + ref: PLAY_REFS.metadata, skill: 'aso-basics', fix: 'Use plain words in the title (and the developer name and icon).' }); + const caps = titles.filter(t => /[A-Z]{4,}/.test(t.text) && t.text === t.text.toUpperCase()); + if (caps.length) + add({ rule: 'play-metadata', guideline: 'Play: Metadata', severity: 'medium', title: `ALL CAPS Play title: "${caps[0]!.text}"`, evidence: caps.slice(0, 2), + ref: PLAY_REFS.metadata, skill: 'aso-basics', fix: 'Write the title in normal case unless the capitals are your registered brand.' }); + const claims = titles.filter(t => CLAIMS.test(t.text)); + if (claims.length) + add({ rule: 'play-metadata', guideline: 'Play: Metadata', severity: 'high', title: 'Rank, performance, price or promotion terms in the Play title ("#1", "best", "top", "popular", "sale", "% off")', evidence: claims.slice(0, 2), + ref: PLAY_REFS.metadata, skill: 'aso-basics', fix: 'Remove claims and promotions from the title (and the icon and developer name); describe what the app does instead.' }); + const soft = titles.filter(t => !CLAIMS.test(t.text) && SOFT_CLAIMS.test(t.text)); + if (soft.length) + add({ rule: 'play-metadata', guideline: 'Play: Metadata', severity: 'low', title: `"Free" or "New" in the Play title: "${soft[0]!.text}"`, evidence: soft.slice(0, 2), + ref: PLAY_REFS.metadata, skill: 'aso-basics', fix: 'Keep it only when it is part of the real name; as a price, promotion or "New" label it is not allowed in the title.' }); + const others = new RegExp(`(^|[^\\p{L}])(${OTHER_APPS.map(esc).join('|')})(?=$|[^\\p{L}])`, 'iu'); + const named = [...titles.filter(t => others.test(t.text)), ...fieldBlocks(listing, /\bshort\b/i).filter(b => others.test(b.text)).map(b => b.at)]; + if (named.length) + add({ rule: 'play-metadata', guideline: 'Play: Metadata', severity: 'medium', title: 'Other apps or brands named in the Play title or short description', evidence: named.slice(0, 2), + ref: PLAY_REFS.metadata, skill: 'aso-basics', fix: 'Remove other apps\' names and comparisons; name a brand only for a real integration you are allowed to mention, and never in a way that implies an endorsement.' }); + for (const b of fieldBlocks(listing, /\bfull\b/i)) { + const words = b.text.toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean); + const counts = new Map(); + for (const w of words) if (w.length > 3 && !STOP.has(w)) counts.set(w, (counts.get(w) ?? 0) + 1); + const rep = words.length >= 80 ? [...counts].filter(([, k]) => k >= 6 && k / words.length > 0.03).sort((q, r) => r[1] - q[1]) : []; + const lists = b.text.split('\n').map((l, i) => ({ l, i })).filter(({ l }) => l.split(/[,|]/).length >= 8 && l.split(/[,|]/).every(s => s.trim().split(/\s+/).length <= 3)); + if (rep.length || lists.length) + add({ rule: 'play-metadata', guideline: 'Play: Metadata', severity: 'medium', + title: [rep.length ? `repeated keywords (${rep.slice(0, 3).map(([w, k]) => `"${w}" ${k}x`).join(', ')})` : '', lists.length ? 'a keyword list' : ''].filter(Boolean).join(' and ').replace(/^./, s => s.toUpperCase()) + ' in the full description', + evidence: [...(rep.length ? [b.at] : []), ...(lists.length ? [{ file: b.at.file, line: b.at.line + lists[0]!.i, text: lists[0]!.l.trim().slice(0, 160) }] : [])], ref: PLAY_REFS.metadata, skill: 'aso-basics', + fix: 'Write the description for people: say each thing once, no keyword lists or repeated terms (Play treats them as spam).' }); + } + } + + // ---- ads at app launch (Android native: the launcher activity) ---- + if (android) { + const launcher = a.components.find(q => q.kind === 'activity' && q.categories.includes('android.intent.category.LAUNCHER') && (!a.mergedManifest || q.at.file !== a.mergedManifest)); + const cls = launcher?.name.split('.').pop(); + const file = cls ? p.sources.find(s => /\.(kt|java)$/.test(s.path) && new RegExp(`\\bclass\\s+${esc(cls)}\\b`).test(s.text)) : undefined; + if (file) { + const lines = file.text.split('\n'); + const start = lines.findIndex(l => /\bonCreate\s*\(/.test(l) && !/^\s*(\/\/|\*)/.test(l)); + if (start >= 0) { + const indent = /^\s*/.exec(lines[start]!)![0].length; + let end = start + 1; + while (end < lines.length && !(/\S/.test(lines[end]!) && /^\s*/.exec(lines[end]!)![0].length <= indent && /^\s*(override\s+|public\s+|protected\s+|private\s+|fun\s|void\s|@)/.test(lines[end]!))) end++; + const body = lines.slice(start, end); + const show = body.findIndex(l => /interstitial\w*\??\.show(?:Ad)?\s*\(|showInterstitial\s*\(|IronSource\.showInterstitial|UnityAds\.show\s*\(|\bad\??\.show\s*\(\s*(this|this@\w+|activity|requireActivity\(\))/i.test(l) && !/^\s*(\/\/|\*)/.test(l)); + if (show >= 0 && body.some(l => /interstitial/i.test(l))) + add({ rule: 'play-ads-launch', guideline: 'Play: Ads (Better Ads Experiences)', severity: 'medium', title: `An interstitial is shown from ${cls}.onCreate, the launcher activity (an ad before the app has loaded)`, + evidence: [{ file: file.path, line: start + show + 1, text: body[show]!.trim().slice(0, 160) }, ev(launcher!, `launcher ${launcher!.name}`)], ref: PLAY_REFS.betterAds, skill: 'ads-mediation-checks', + fix: 'Show interstitials only at natural breaks after the app has loaded (after a level or a finished task), never at launch before the home screen or while people are doing something else.' }); + } + } + } + + // ---- payments outside Play Billing ---- + const programs = c?.play?.billingPrograms ?? []; + if (c?.play || android) { + const extPay = sdkHits(s => s.sdk.category === 'external-payments'); + const digital = x.restorable.length || x.paySdk.length || (c?.products?.length ?? 0) > 0 || (c ? allSubscriptions(c.subscriptions).length > 0 : false); + if (extPay.length && digital && !programs.length) + add({ rule: 'play-payments', guideline: 'Play: Payments', severity: 'medium', title: 'A card / PayPal payment SDK next to in-app products: digital goods on Play must use Play Billing', evidence: [...extPay, ...x.restorable].slice(0, 3), + ref: PLAY_REFS.payments, skill: 'store-iap-setup', + fix: 'Sell unlocks, coins, subscriptions and ad removal through Play Billing; keep Stripe / PayPal for physical goods and services. Enrolled in user choice billing, external offers or US external content links? Set play.billingPrograms.' }); + const nonApple = (q: string) => !/\.(swift|m|mm|h)$/.test(q); + const steer = programs.length ? [] : [...x.listingHits(inp.listings.play, EXTERNAL_BUY), ...grep(p.sources, EXTERNAL_BUY, 2, nonApple)]; + if (steer.length && (c?.play || android)) + add({ rule: 'play-payments', guideline: 'Play: Payments', severity: 'medium', title: 'A call to action to buy outside the app (website) in the Play listing or the app', evidence: steer.slice(0, 3), + ref: PLAY_REFS.payments, skill: 'review-rejections', fix: 'Outside the alternative billing and external offers programs, do not lead people to pay for digital content elsewhere; remove the text or enroll and set play.billingPrograms.' }); + } + + // ---- impersonation ---- + if (c?.play) { + const pkg = c.play.packageName.toLowerCase(); + const segs = pkg.split('.'); + const brandIn = (s: string) => BRANDS.find(b => s.split(/[_\d]+/).includes(b) || (b.length >= 6 && s.includes(b))); + const owner = segs[1] ?? ''; + const hitPkg = segs.slice(1).map(brandIn).find(b => b && b !== owner); + const nameRe = new RegExp(`(^|[^\\p{L}])(${BRANDS.map(esc).join('|')})(?=$|[^\\p{L}])`, 'iu'); + const hitName = nameRe.exec(c.app.name)?.[2]; + if ((hitPkg && !brandIn(owner)) || hitName) + add({ rule: 'play-impersonation', guideline: 'Play: Impersonation', severity: 'low', title: `${hitPkg ? `Package name ${c.play.packageName}` : `App name "${c.app.name}"`} contains "${hitPkg ?? hitName}": check that it does not suggest a relation with that brand`, + evidence: [...(hitPkg ? cfg('packageName') : []), ...(hitName ? cfg(/\bname\s*:/) : [])].slice(0, 2), ref: PLAY_REFS.impersonation, skill: 'review-rejections', + fix: 'Don\'t imply that the app is made or endorsed by another company: remove the brand from the name and package (it can\'t change after the first upload), or have written permission ready for an appeal.' }); + } +} + +/** Unity patch number for comparison inside one stream ("2022.3.56f1" -> 56). */ +function unityPatch(v: string): number { return Number(/^\d+\.\d+\.(\d+)/.exec(v)?.[1] ?? 0); } + diff --git a/cli/lib/scan/project.ts b/cli/lib/scan/project.ts index 7a610179..99874b78 100644 --- a/cli/lib/scan/project.ts +++ b/cli/lib/scan/project.ts @@ -16,6 +16,18 @@ export type Stack = 'ios-native' | 'android-native' | 'react-native' | 'expo' | export interface DetectedSdk { sdk: SdkDef; deps: DepRef[] } +export interface AndroidComponent { + kind: 'activity' | 'service' | 'receiver'; + name: string; + /** android:permission (e.g. BIND_ACCESSIBILITY_SERVICE, BIND_VPN_SERVICE, BIND_DEVICE_ADMIN). */ + permission: string | null; + fgsType: string | null; + actions: string[]; + categories: string[]; + meta: string[]; + at: Loc; +} + export interface ProjectFacts { root: string; stacks: Stack[]; @@ -38,6 +50,36 @@ export interface ProjectFacts { /** targetSdk is set by a tool we cannot read (Flutter SDK, Expo SDK, Unity "automatic"). */ targetSdkFrom: string | null; formFactor: 'phone' | 'wear' | 'tv' | 'automotive'; + /** : permissions the app strips from the merged manifest (e.g. AD_ID). */ + removedPermissions: { name: string; at: Loc }[]; + /** Activities, services and receivers with their android:permission, intent-filter actions and meta-data names. */ + components: AndroidComponent[]; + /** */ + extractNativeLibs: { value: boolean; at: Loc } | null; + /** A merged manifest from a local build (build/intermediates), read for the permissions libraries add. */ + mergedManifest: string | null; + /** res/xml accessibility-service configs (android:isAccessibilityTool). */ + accessibilityConfigs: { at: Loc; isTool: boolean }[]; + /** res/values*\/strings.xml (for disclosure texts). */ + strings: { path: string; text: string }[]; + }; + /** Native code and the toolchain versions that decide 16 KB page size support. */ + native: { + /** Prebuilt .so files in the project (jniLibs, Unity Plugins/Android, ...). */ + libs: string[]; + ndkVersion: { value: string; at: Loc } | null; + /** The NDK version is set by a tool (flutter.ndkVersion). */ + ndkFrom: string | null; + /** Android Gradle Plugin version. */ + agp: { value: string; at: Loc } | null; + /** The project builds C / C++ itself (externalNativeBuild, CMakeLists.txt, Android.mk). */ + nativeBuild: Loc | null; + /** ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON or -Wl,-z,max-page-size=16384 in the native build. */ + flexiblePageSizes: Loc | null; + /** jniLibs.useLegacyPackaging = true (compressed native libraries). */ + legacyPackaging: Loc | null; + /** ProjectSettings/ProjectVersion.txt m_EditorVersion. */ + unityVersion: { value: string; at: Loc } | null; }; /** Capacitor server.url / Cordova pointing at a remote site. */ remoteStart: { url: string; at: Loc } | null; @@ -49,13 +91,14 @@ export interface ProjectFacts { const SKIP_DIRS = new Set(['.git', 'node_modules', 'Pods', 'build', 'Build', 'DerivedData', '.gradle', '.dart_tool', '.build', 'Library', 'Temp', 'Logs', 'obj', 'UserSettings', '.storebound', 'renders', '.idea', '.vscode', '.expo', 'vendor', 'xcuserdata', 'Carthage', '.next', 'coverage', '.godot', - 'intermediates', 'generated', 'outputs', 'tmp', '.cxx', 'fastlane', 'dist', 'www', 'public', 'clips', 'frames', 'fonts']); + 'intermediates', 'generated', 'outputs', 'tmp', '.cxx', 'fastlane', 'dist', 'www', 'public', 'clips', 'frames', 'fonts', '.fvm']); const SRC_EXT = new Set(['.swift', '.m', '.mm', '.h', '.kt', '.java', '.dart', '.js', '.jsx', '.ts', '.tsx', '.cs', '.gd', '.html', '.vue', '.svelte']); const MAX_FILES = 25_000; const MAX_TEXT = 1_500_000; -/** Every file under root (relative paths), skipping build output, dependency folders and VCS data. */ -export function listFiles(root: string): string[] { +/** Every file under root (relative paths), skipping build output, dependency folders and VCS data. Native libraries + * (.so) of any size also go into `bins` when given (they are not read, only listed). */ +export function listFiles(root: string, bins?: string[]): string[] { const out: string[] = []; const walk = (dir: string, depth: number) => { if (depth > 14 || out.length >= MAX_FILES) return; @@ -70,7 +113,10 @@ export function listFiles(root: string): string[] { // compiled frameworks are SDK binaries, not app code if (/\.(xc)?framework$|\.xcassets$|\.bundle$|\.app$|\.dSYM$/.test(n)) continue; walk(p, depth + 1); - } else if (st.size <= MAX_TEXT) out.push(relative(root, p).split(sep).join('/')); + } else { + if (bins && n.endsWith('.so')) bins.push(relative(root, p).split(sep).join('/')); + if (st.size <= MAX_TEXT) out.push(relative(root, p).split(sep).join('/')); + } if (out.length >= MAX_FILES) return; } }; @@ -186,7 +232,8 @@ function versionCatalog(file: string, text: string): DepRef[] { const body = m[1]!; const mod = /module\s*=\s*"([^":]+):([^"]+)"/.exec(body); const grp = /group\s*=\s*"([^"]+)"/.exec(body), nm = /name\s*=\s*"([^"]+)"/.exec(body); - const name = mod ? `${mod[1]}:${mod[2]}` : grp && nm ? `${grp[1]}:${nm[1]}` : null; + const plugin = /\bid\s*=\s*"(com\.android\.(?:application|library))"/.exec(body); + const name = mod ? `${mod[1]}:${mod[2]}` : grp && nm ? `${grp[1]}:${nm[1]}` : plugin ? 'com.android.application' : null; if (!name) continue; const ver = /version\.ref\s*=\s*"([^"]+)"/.exec(body)?.[1]; out.push({ eco: 'gradle', name, version: ver ? versions.get(ver) ?? null : /version\s*=\s*"([^"]+)"/.exec(body)?.[1] ?? null, file, line: lineAt(text, m.index!) }); @@ -238,7 +285,8 @@ const GODOT_KEYS: Record = { }; export function detectProject(root: string): ProjectFacts { - const files = listFiles(root); + const bins: string[] = []; + const files = listFiles(root, bins); const cache = new Map(); const read = (f: string): string => { if (!cache.has(f)) { try { cache.set(f, readFileSync(join(root, f), 'utf8')); } catch { cache.set(f, ''); } } @@ -251,7 +299,9 @@ export function detectProject(root: string): ProjectFacts { const entitlements = new Map(); const privacyManifests: Manifest[] = []; const setKey = (m: Map, key: string, value: unknown, at: Loc) => { if (!m.has(key)) m.set(key, { key, value, at }); }; - const android: ProjectFacts['androidInfo'] = { manifests: [], permissions: [], services: [], targetSdk: null, targetSdkFrom: null, formFactor: 'phone' }; + const android: ProjectFacts['androidInfo'] = { manifests: [], permissions: [], services: [], targetSdk: null, targetSdkFrom: null, formFactor: 'phone', + removedPermissions: [], components: [], extractNativeLibs: null, mergedManifest: null, accessibilityConfigs: [], strings: [] }; + const native: ProjectFacts['native'] = { libs: bins, ndkVersion: null, ndkFrom: null, agp: null, nativeBuild: null, flexiblePageSizes: null, legacyPackaging: null, unityVersion: null }; const sdkHits: { value: number; at: Loc; prio: number }[] = []; let remoteStart: ProjectFacts['remoteStart'] = null; const sources: { path: string; text: string }[] = []; @@ -288,24 +338,31 @@ export function detectProject(root: string): ProjectFacts { for (const m of t.matchAll(/\btargetSdk(?:Version)?\s*(?:=|\s)\s*\(?\s*(\d{2})\b/g)) sdkHits.push({ value: Number(m[1]), at: { file: f, line: lineAt(t, m.index!) }, prio: /(^|\/)app\/|variables\.gradle/.test(f) ? 0 : 1 }); if (/targetSdk(?:Version)?\s*(?:=|\s)\s*flutter\.targetSdkVersion/.test(t)) android.targetSdkFrom = 'the Flutter SDK (flutter.targetSdkVersion)'; + gradleNative(f, t, native, deps); } else if (n === 'libs.versions.toml') { const t = read(f); deps.push(...versionCatalog(f, t)); for (const m of t.matchAll(/^\s*(?:target-?sdk|targetSdk|android-?target-?sdk)\w*\s*=\s*"(\d{2})"/gim)) sdkHits.push({ value: Number(m[1]), at: { file: f, line: lineAt(t, m.index!) }, prio: 0 }); + const nd = /^\s*ndk(?:-?version)?\s*=\s*"(\d+\.[\d.]+)"/im.exec(t); + if (nd && !native.ndkVersion) native.ndkVersion = { value: nd[1]!, at: { file: f, line: lineAt(t, nd.index) } }; } else if (n === 'AndroidManifest.xml' && /(^|\/)src\/main\/AndroidManifest\.xml$|^AndroidManifest\.xml$|Plugins\/Android\/AndroidManifest\.xml$/.test(f) && !testy) { - const t = read(f); android.manifests.push(f); - for (const m of t.matchAll(/]*?)\/?>/g)) { - const name = /android:name="([^"]+)"/.exec(m[1]!)?.[1]; - if (name && !/tools:node="remove"/.test(m[1]!)) android.permissions.push({ name, at: { file: f, line: lineAt(t, m.index!) } }); - } - for (const m of t.matchAll(/]*?)(\/>|>)/g)) { - const name = /android:name="([^"]+)"/.exec(m[1]!)?.[1] ?? '?'; - android.services.push({ name, fgsType: /android:foregroundServiceType="([^"]+)"/.exec(m[1]!)?.[1] ?? null, at: { file: f, line: lineAt(t, m.index!) } }); - } - if (/android\.hardware\.type\.watch/.test(t)) android.formFactor = 'wear'; - else if (/android\.software\.leanback"[^>]*android:required="true"|android:required="true"[^>]*android\.software\.leanback/.test(t)) android.formFactor = 'tv'; - else if (/android\.hardware\.type\.automotive/.test(t)) android.formFactor = 'automotive'; + readManifest(f, read(f), android); + } else if (/\/res\/xml\/[^/]+\.xml$/.test(f) && read(f).includes(']*/.exec(t)!; + android.accessibilityConfigs.push({ at: { file: f, line: lineAt(t, m.index) }, isTool: /android:isAccessibilityTool="true"/.test(m[0]) }); + } else if (n === 'strings.xml' && /(^|\/)res\/values[^/]*\/strings\.xml$/.test(f) && !testy) { + android.strings.push({ path: f, text: read(f) }); + } else if (n === 'CMakeLists.txt' || n === 'Android.mk' || n === 'Application.mk') { + const t = read(f); + if (!native.nativeBuild) native.nativeBuild = { file: f, line: 1 }; + const fl = FLEXIBLE_PAGES.exec(t); + if (fl && !native.flexiblePageSizes) native.flexiblePageSizes = { file: f, line: lineAt(t, fl.index) }; + } else if (n === 'ProjectVersion.txt' && /(^|\/)ProjectSettings\//.test(f)) { + const t = read(f); + const m = /^m_EditorVersion:\s*(\S+)/m.exec(t); + if (m) native.unityVersion = { value: m[1]!, at: { file: f, line: lineAt(t, m.index) } }; } else if (n === 'package.json' && !f.includes('/node_modules/')) { const t = read(f); const d = packageJson(f, t); @@ -402,7 +459,101 @@ export function detectProject(root: string): ProjectFacts { const hits = deps.filter(d => matchesSdk(d, s)); if (hits.length) sdks.push({ sdk: s, deps: hits }); } - return { root, stacks: [...stacks], ios, android: isAndroid, deps, sdks, plist, plistSources, entitlements, privacyManifests, androidInfo: android, remoteStart, sources, scanned: files.length }; + // the Android Gradle Plugin: buildscript classpath, plugins { id(...) version }, or the version catalog + const agp = deps.find(d => (d.name === 'com.android.tools.build:gradle' || d.name === 'com.android.application') && d.version && /^\d/.test(d.version)); + if (agp) native.agp = { value: agp.version!, at: { file: agp.file, line: agp.line } }; + // the merged manifest of a local build, when there is one (libraries add permissions there: AD_ID, location, ...) + if (isAndroid) { + const merged = findMergedManifest(root, android.manifests, stacks.has('flutter')); + let t = ''; + if (merged) { try { t = readFileSync(join(root, merged), 'utf8'); } catch { /* unreadable */ } } + if (merged && t) { + android.mergedManifest = merged; + const extra: ProjectFacts['androidInfo'] = { ...android, permissions: [], services: [], components: [], removedPermissions: [], extractNativeLibs: null }; + readManifest(merged, t, extra); + const removed = new Set(android.removedPermissions.map(x => x.name)); + const have = new Set(android.permissions.map(x => x.name)); + for (const x of extra.permissions) if (!have.has(x.name) && !removed.has(x.name)) { android.permissions.push(x); have.add(x.name); } + const key = (k: string, n: string) => `${k}:${n.split('.').pop()}`; + const comps = new Set(android.components.map(x => key(x.kind, x.name))); + for (const x of extra.components) if (!comps.has(key(x.kind, x.name))) android.components.push(x); + const svc = new Set(android.services.map(x => key('service', x.name))); + for (const x of extra.services) if (!svc.has(key('service', x.name))) android.services.push(x); + } + } + return { root, stacks: [...stacks], ios, android: isAndroid, deps, sdks, plist, plistSources, entitlements, privacyManifests, androidInfo: android, native, remoteStart, sources, scanned: files.length }; +} + +/** NDK r27 flag and the linker flag of older NDKs that make native libraries 16 KB aligned. */ +const FLEXIBLE_PAGES = /ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES\s*=?\s*ON|max-page-size=16384/; + +/** Permissions, components and settings of one AndroidManifest.xml, added to `a`. */ +function readManifest(f: string, t: string, a: ProjectFacts['androidInfo']): void { + for (const m of t.matchAll(/]*?)\/?>/g)) { + const name = /android:name="([^"]+)"/.exec(m[1]!)?.[1]; + if (!name) continue; + const at = { file: f, line: lineAt(t, m.index!) }; + if (/tools:node="remove"/.test(m[1]!)) a.removedPermissions.push({ name, at }); + else a.permissions.push({ name, at }); + } + for (const kind of ['activity', 'activity-alias', 'service', 'receiver'] as const) { + for (const m of t.matchAll(new RegExp(`<${kind}\\b([^>]*?)(/>|>([\\s\\S]*?))`, 'g'))) { + const attrs = m[1]!, body = m[3] ?? ''; + if (/tools:node="remove"/.test(attrs)) continue; + const c: AndroidComponent = { + kind: kind === 'activity-alias' ? 'activity' : kind, + name: /android:name="([^"]+)"/.exec(attrs)?.[1] ?? '?', + permission: /android:permission="([^"]+)"/.exec(attrs)?.[1] ?? null, + fgsType: /android:foregroundServiceType="([^"]+)"/.exec(attrs)?.[1] ?? null, + actions: [...body.matchAll(/ x[1]!), + categories: [...body.matchAll(/ x[1]!), + meta: [...body.matchAll(/ x[1]!), + at: { file: f, line: lineAt(t, m.index!) }, + }; + a.components.push(c); + if (c.kind === 'service') a.services.push({ name: c.name, fgsType: c.fgsType, at: c.at }); + } + } + const app = /]*/.exec(t); + const ex = app ? /android:extractNativeLibs="(true|false)"/.exec(app[0]) : null; + if (app && ex && !a.extractNativeLibs) a.extractNativeLibs = { value: ex[1] === 'true', at: { file: f, line: lineAt(t, app.index + ex.index) } }; + if (/android\.hardware\.type\.watch/.test(t)) a.formFactor = 'wear'; + else if (/android\.software\.leanback"[^>]*android:required="true"|android:required="true"[^>]*android\.software\.leanback/.test(t)) a.formFactor = 'tv'; + else if (/android\.hardware\.type\.automotive/.test(t)) a.formFactor = 'automotive'; +} + +/** NDK version, AGP plugin version, native build and packaging settings in one Gradle file. */ +function gradleNative(f: string, t: string, n: ProjectFacts['native'], deps: DepRef[]): void { + const nd = /\bndkVersion\s*=?\s*\(?\s*["'](\d+\.[\d.]+)["']/.exec(t); + if (nd && !n.ndkVersion) n.ndkVersion = { value: nd[1]!, at: { file: f, line: lineAt(t, nd.index) } }; + if (/\bndkVersion\s*=?\s*flutter\.ndkVersion/.test(t)) n.ndkFrom = 'the Flutter SDK (flutter.ndkVersion)'; + const ext = /\bexternalNativeBuild\s*\{/.exec(t); + if (ext && !n.nativeBuild) n.nativeBuild = { file: f, line: lineAt(t, ext.index) }; + const fl = FLEXIBLE_PAGES.exec(t); + if (fl && !n.flexiblePageSizes) n.flexiblePageSizes = { file: f, line: lineAt(t, fl.index) }; + const lp = /\buseLegacyPackaging\s*(?:=\s*)?true\b/.exec(t); + if (lp && !n.legacyPackaging) n.legacyPackaging = { file: f, line: lineAt(t, lp.index) }; + for (const m of t.matchAll(/\bid\s*\(?\s*["']com\.android\.(?:application|library)["']\s*\)?\s*version\s*["']([^"']+)["']/g)) + deps.push({ eco: 'gradle', name: 'com.android.application', version: m[1]!, file: f, line: lineAt(t, m.index!) }); +} + +/** A merged AndroidManifest.xml of a local build under /build/intermediates (release first), relative to + * root; Flutter builds into build/app/ at the project root. null when the project was not built here. */ +function findMergedManifest(root: string, manifests: string[], flutter: boolean): string | null { + const modules = new Set(manifests.filter(m => m.endsWith('src/main/AndroidManifest.xml')).map(m => `${m.slice(0, -'src/main/AndroidManifest.xml'.length)}build/`)); + if (flutter) modules.add('build/app/'); + const found: string[] = []; + const walk = (dir: string, depth: number) => { + if (depth > 4) return; + let names: string[]; + try { names = readdirSync(join(root, dir)); } catch { return; } + for (const n of names.sort()) { + if (n === 'AndroidManifest.xml') found.push(`${dir}/${n}`); + else if (!n.includes('.')) walk(`${dir}/${n}`, depth + 1); + } + }; + for (const m of modules) for (const sub of ['merged_manifest', 'merged_manifests', 'packaged_manifests']) walk(`${m}intermediates/${sub}`, 0); + return found.find(f => /release/i.test(f)) ?? found[0] ?? null; } const COMMENT = /^\s*(\/\/|#|\*|\/\*| +### title +``` +Clean Notes: Scan & Organize +``` + ### short ``` Notes that stay tidy, and paper notes turned into text. diff --git a/tests/fixtures/scan/clean/storebound.config.ts b/tests/fixtures/scan/clean/storebound.config.ts index 378a33f9..d72f16a6 100644 --- a/tests/fixtures/scan/clean/storebound.config.ts +++ b/tests/fixtures/scan/clean/storebound.config.ts @@ -12,7 +12,7 @@ export default { accounts: { enabled: true, deletionUrl: 'https://example.com/delete-account', inApp: 'Settings > Account > Delete account' }, reviewAccess: { signInRequired: true, instructions: 'Sign in with the demo account.' }, languages: [{ id: 'en', play: 'en-US', apple: 'en-US' }], - play: { packageName: 'org.example.cleannotes' }, + play: { packageName: 'org.example.cleannotes', accountType: 'organization', targetAges: ['13-15', '16-17', '18+'] }, apple: { bundleId: 'org.example.cleannotes', usesNonExemptEncryption: false }, appPrivacy: { tracking: true, trackingDomains: ['ads.example.com'] }, products: [ diff --git a/tests/fixtures/scan/play-android/README.md b/tests/fixtures/scan/play-android/README.md new file mode 100644 index 00000000..f24fdca7 --- /dev/null +++ b/tests/fixtures/scan/play-android/README.md @@ -0,0 +1,9 @@ +# play-android fixture + +A made-up Kotlin hiking app with planted Google Play policy problems for `storebound scan` tests: background +location without a prominent disclosure, READ_MEDIA_IMAGES / READ_MEDIA_VIDEO, MANAGE_EXTERNAL_STORAGE, +REQUEST_INSTALL_PACKAGES, Health Connect permissions, an AccessibilityService without isAccessibilityTool, a +VpnService, USE_FULL_SCREEN_INTENT added by a library (only in the committed merged manifest under +app/build/intermediates), AppLovin without AD_ID in the merged manifest, an interstitial shown from the launcher +activity's onCreate, Stripe next to an in-app product, no privacy policy link in the app, and a personal developer +account created after 2023-11-13. Not a buildable project. diff --git a/tests/fixtures/scan/play-android/app/build.gradle.kts b/tests/fixtures/scan/play-android/app/build.gradle.kts new file mode 100644 index 00000000..d9cb7009 --- /dev/null +++ b/tests/fixtures/scan/play-android/app/build.gradle.kts @@ -0,0 +1,23 @@ +plugins { + id("com.android.application") + id("org.jetbrains.kotlin.android") +} + +android { + namespace = "org.example.trailmate" + compileSdk = 36 + defaultConfig { + applicationId = "org.example.trailmate" + minSdk = 26 + targetSdk = 36 + versionCode = 3 + versionName = "1.2.0" + } +} + +dependencies { + implementation("com.applovin:applovin-sdk:13.0.1") + implementation("com.stripe:stripe-android:21.2.0") + implementation("com.android.billingclient:billing:7.1.1") + implementation("androidx.health.connect:connect-client:1.1.0-rc01") +} diff --git a/tests/fixtures/scan/play-android/app/build/intermediates/merged_manifest/release/processReleaseMainManifest/AndroidManifest.xml b/tests/fixtures/scan/play-android/app/build/intermediates/merged_manifest/release/processReleaseMainManifest/AndroidManifest.xml new file mode 100644 index 00000000..9a32d3e6 --- /dev/null +++ b/tests/fixtures/scan/play-android/app/build/intermediates/merged_manifest/release/processReleaseMainManifest/AndroidManifest.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/scan/play-android/app/src/main/AndroidManifest.xml b/tests/fixtures/scan/play-android/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..2ca9bd29 --- /dev/null +++ b/tests/fixtures/scan/play-android/app/src/main/AndroidManifest.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/fixtures/scan/play-android/app/src/main/java/org/example/trailmate/MainActivity.kt b/tests/fixtures/scan/play-android/app/src/main/java/org/example/trailmate/MainActivity.kt new file mode 100644 index 00000000..26f18273 --- /dev/null +++ b/tests/fixtures/scan/play-android/app/src/main/java/org/example/trailmate/MainActivity.kt @@ -0,0 +1,21 @@ +package org.example.trailmate + +import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity +import com.applovin.mediation.ads.MaxInterstitialAd + +class MainActivity : AppCompatActivity() { + private lateinit var interstitialAd: MaxInterstitialAd + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + interstitialAd = MaxInterstitialAd("launch-unit", this) + interstitialAd.loadAd() + if (interstitialAd.isReady) interstitialAd.showAd() + } + + override fun onResume() { + super.onResume() + } +} diff --git a/tests/fixtures/scan/play-android/app/src/main/res/values/strings.xml b/tests/fixtures/scan/play-android/app/src/main/res/values/strings.xml new file mode 100644 index 00000000..5c3788a1 --- /dev/null +++ b/tests/fixtures/scan/play-android/app/src/main/res/values/strings.xml @@ -0,0 +1,4 @@ + + Trail Mate + Start hike + diff --git a/tests/fixtures/scan/play-android/app/src/main/res/xml/accessibility_service_config.xml b/tests/fixtures/scan/play-android/app/src/main/res/xml/accessibility_service_config.xml new file mode 100644 index 00000000..588eed4e --- /dev/null +++ b/tests/fixtures/scan/play-android/app/src/main/res/xml/accessibility_service_config.xml @@ -0,0 +1,4 @@ + + diff --git a/tests/fixtures/scan/play-android/settings.gradle.kts b/tests/fixtures/scan/play-android/settings.gradle.kts new file mode 100644 index 00000000..8ee97160 --- /dev/null +++ b/tests/fixtures/scan/play-android/settings.gradle.kts @@ -0,0 +1,8 @@ +pluginManagement { + plugins { + id("com.android.application") version "8.7.3" + id("org.jetbrains.kotlin.android") version "2.0.21" + } +} +rootProject.name = "TrailMate" +include(":app") diff --git a/tests/fixtures/scan/play-android/storebound.config.ts b/tests/fixtures/scan/play-android/storebound.config.ts new file mode 100644 index 00000000..7065805e --- /dev/null +++ b/tests/fixtures/scan/play-android/storebound.config.ts @@ -0,0 +1,24 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Trail Mate', + profile: 'app', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + languages: [{ id: 'en', play: 'en-US' }], + play: { packageName: 'org.example.trailmate', accountType: 'personal', accountCreated: '2025-03-01' }, + products: [ + { id: 'org.example.trailmate.pro', type: 'non_consumable', usd: 4.99, listings: { en: { title: 'Pro', description: 'Offline maps' } } }, + ], + dataSafety: { + collectsData: true, + encryptedInTransit: true, + deletionRequest: false, + data: { + PSL_DEVICE_ID: { shared: false, collect: ['analytics'] }, + }, + }, +}; diff --git a/tests/fixtures/scan/play-families/Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml b/tests/fixtures/scan/play-families/Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml new file mode 100644 index 00000000..027ac2ec --- /dev/null +++ b/tests/fixtures/scan/play-families/Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/tests/fixtures/scan/play-families/Assets/Plugins/Android/AndroidManifest.xml b/tests/fixtures/scan/play-families/Assets/Plugins/Android/AndroidManifest.xml new file mode 100644 index 00000000..710c3aff --- /dev/null +++ b/tests/fixtures/scan/play-families/Assets/Plugins/Android/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/tests/fixtures/scan/play-families/Packages/manifest.json b/tests/fixtures/scan/play-families/Packages/manifest.json new file mode 100644 index 00000000..19bd687f --- /dev/null +++ b/tests/fixtures/scan/play-families/Packages/manifest.json @@ -0,0 +1,6 @@ +{ + "dependencies": { + "com.applovin.mediation.ads": "8.0.1", + "com.unity.ugui": "1.0.0" + } +} diff --git a/tests/fixtures/scan/play-families/ProjectSettings/ProjectSettings.asset b/tests/fixtures/scan/play-families/ProjectSettings/ProjectSettings.asset new file mode 100644 index 00000000..6e43b49a --- /dev/null +++ b/tests/fixtures/scan/play-families/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + productName: Puzzle Pals + companyName: Example Studio + AndroidMinSdkVersion: 23 + AndroidTargetSdkVersion: 36 diff --git a/tests/fixtures/scan/play-families/ProjectSettings/ProjectVersion.txt b/tests/fixtures/scan/play-families/ProjectSettings/ProjectVersion.txt new file mode 100644 index 00000000..10a392d4 --- /dev/null +++ b/tests/fixtures/scan/play-families/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 2022.3.20f1 +m_EditorVersionWithRevision: 2022.3.20f1 (000000000000) diff --git a/tests/fixtures/scan/play-families/README.md b/tests/fixtures/scan/play-families/README.md new file mode 100644 index 00000000..d4337687 --- /dev/null +++ b/tests/fixtures/scan/play-families/README.md @@ -0,0 +1,6 @@ +# play-families fixture + +A made-up Unity game for children (Play target audience 0-12 only) with planted Families policy problems for +`storebound scan` tests: AppLovin MAX (not a Families Self-Certified Ads SDK), Google Mobile Ads 18.3.0 (older than +the first certified version), the AD_ID permission and a location permission in the Android plugin manifest, and +Unity 2022.3.20f1 (before 16 KB page size support). Not a buildable project. diff --git a/tests/fixtures/scan/play-families/storebound.config.ts b/tests/fixtures/scan/play-families/storebound.config.ts new file mode 100644 index 00000000..2dc33c2d --- /dev/null +++ b/tests/fixtures/scan/play-families/storebound.config.ts @@ -0,0 +1,24 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Puzzle Pals', + profile: 'game', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + languages: [{ id: 'en', play: 'en-US' }], + play: { packageName: 'org.example.puzzlepals', accountType: 'organization', targetAges: ['0-5', '6-8', '9-12'] }, + dataSafety: { + collectsData: true, + encryptedInTransit: true, + deletionRequest: false, + data: { + PSL_DEVICE_ID: { shared: true, collect: ['advertising', 'analytics', 'fraud'], share: ['advertising'] }, + PSL_APPROX_LOCATION: { shared: true, collect: ['advertising', 'analytics', 'fraud'], share: ['advertising'] }, + PSL_USER_INTERACTION: { shared: true, collect: ['advertising', 'analytics'], share: ['advertising'] }, + PSL_PERFORMANCE_DIAGNOSTICS: { shared: false, collect: ['analytics'] }, + }, + }, +}; diff --git a/tests/fixtures/scan/play-listing/README.md b/tests/fixtures/scan/play-listing/README.md new file mode 100644 index 00000000..b1e103dc --- /dev/null +++ b/tests/fixtures/scan/play-listing/README.md @@ -0,0 +1,6 @@ +# play-listing fixture + +A made-up photo app whose Google Play listing breaks the Metadata policy for `storebound scan` tests: a title longer +than 30 characters with an emoji, "#1", "best" and "free", an ALL CAPS title in a second language, another app named +in the short description, a repeated keyword and a keyword list in the full description, a "buy on our website" call +to action, and a package name that contains a well-known brand. Config and listing only. diff --git a/tests/fixtures/scan/play-listing/store/listing.md b/tests/fixtures/scan/play-listing/store/listing.md new file mode 100644 index 00000000..135efaee --- /dev/null +++ b/tests/fixtures/scan/play-listing/store/listing.md @@ -0,0 +1,43 @@ +# Snap Saver · Google Play listing copy (fixture with planted Metadata policy problems) + +## English + + +### title +``` +🔥 #1 Best Free Photo Saver App Pro +``` + +### short +``` +Save photos faster than Instagram and keep every album tidy. +``` + +### full +``` +Snap Saver keeps your photo library tidy. Save a photo, sort a photo, share a photo. + +Photo albums, photo backup, photo sorting and photo sharing in one place. Every photo stays on your phone, and every +photo album can be locked. Find any photo by date or place, and move a photo between albums with one tap. +Unlock Pro: buy the Pro version on our website for the lowest price. + +photo, gallery, album, saver, backup, cleaner, editor, collage, picture, camera +``` + +## Deutsch + + +### title +``` +FOTO SPEICHER +``` + +### short +``` +Fotos sichern und Alben ordnen. +``` + +### full +``` +Snap Saver ordnet deine Fotos in Alben und sichert sie auf deinem Telefon. +``` diff --git a/tests/fixtures/scan/play-listing/storebound.config.ts b/tests/fixtures/scan/play-listing/storebound.config.ts new file mode 100644 index 00000000..690d3bc7 --- /dev/null +++ b/tests/fixtures/scan/play-listing/storebound.config.ts @@ -0,0 +1,13 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Snap Saver', + profile: 'app', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + languages: [{ id: 'en', play: 'en-US' }, { id: 'de', play: 'de-DE' }], + play: { packageName: 'org.example.instagramsaver', accountType: 'organization' }, +}; diff --git a/tests/fixtures/scan/play-native/README.md b/tests/fixtures/scan/play-native/README.md new file mode 100644 index 00000000..42d35057 --- /dev/null +++ b/tests/fixtures/scan/play-native/README.md @@ -0,0 +1,5 @@ +# play-native fixture + +A made-up Flutter audio app with its own C++ code for `storebound scan` 16 KB page size tests: NDK r25 without the +16 KB linker flags, Android Gradle Plugin 8.1.0 with uncompressed native libraries (extractNativeLibs="false"), and a +prebuilt vendor library under jniLibs/arm64-v8a (a placeholder file, not a real ELF). Not a buildable project. diff --git a/tests/fixtures/scan/play-native/android/app/build.gradle b/tests/fixtures/scan/play-native/android/app/build.gradle new file mode 100644 index 00000000..7705c3d8 --- /dev/null +++ b/tests/fixtures/scan/play-native/android/app/build.gradle @@ -0,0 +1,21 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + +android { + namespace "org.example.echotuner" + compileSdk flutter.compileSdkVersion + ndkVersion "25.1.8937393" + defaultConfig { + applicationId "org.example.echotuner" + minSdk flutter.minSdkVersion + targetSdk 36 + } + externalNativeBuild { + cmake { + path "src/main/cpp/CMakeLists.txt" + } + } +} diff --git a/tests/fixtures/scan/play-native/android/app/src/main/AndroidManifest.xml b/tests/fixtures/scan/play-native/android/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..a7688a5e --- /dev/null +++ b/tests/fixtures/scan/play-native/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tests/fixtures/scan/play-native/android/app/src/main/cpp/CMakeLists.txt b/tests/fixtures/scan/play-native/android/app/src/main/cpp/CMakeLists.txt new file mode 100644 index 00000000..9b7b0b4b --- /dev/null +++ b/tests/fixtures/scan/play-native/android/app/src/main/cpp/CMakeLists.txt @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 3.22.1) +project(pitch) +add_library(pitch SHARED pitch.cpp) diff --git a/tests/fixtures/scan/play-native/android/app/src/main/jniLibs/arm64-v8a/libvendorfx.so b/tests/fixtures/scan/play-native/android/app/src/main/jniLibs/arm64-v8a/libvendorfx.so new file mode 100644 index 00000000..19ff39f8 --- /dev/null +++ b/tests/fixtures/scan/play-native/android/app/src/main/jniLibs/arm64-v8a/libvendorfx.so @@ -0,0 +1 @@ +placeholder for a prebuilt vendor library (storebound scan only lists .so files, it never reads them) diff --git a/tests/fixtures/scan/play-native/android/settings.gradle b/tests/fixtures/scan/play-native/android/settings.gradle new file mode 100644 index 00000000..23e5c2be --- /dev/null +++ b/tests/fixtures/scan/play-native/android/settings.gradle @@ -0,0 +1,11 @@ +pluginManagement { + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") +} + +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.1.0" apply false + id "org.jetbrains.kotlin.android" version "1.8.22" apply false +} + +include ":app" diff --git a/tests/fixtures/scan/play-native/pubspec.yaml b/tests/fixtures/scan/play-native/pubspec.yaml new file mode 100644 index 00000000..d485ea78 --- /dev/null +++ b/tests/fixtures/scan/play-native/pubspec.yaml @@ -0,0 +1,11 @@ +name: echo_tuner +description: A made-up tuner app for storebound tests. +version: 1.0.0+4 + +environment: + sdk: ">=3.5.0 <4.0.0" + +dependencies: + flutter: + sdk: flutter + ffi: ^2.1.3 diff --git a/tests/fixtures/scan/play-native/storebound.config.ts b/tests/fixtures/scan/play-native/storebound.config.ts new file mode 100644 index 00000000..d4b881c1 --- /dev/null +++ b/tests/fixtures/scan/play-native/storebound.config.ts @@ -0,0 +1,13 @@ +// Fixture config (made up, example.com placeholders only). +export default { + app: { + name: 'Echo Tuner', + profile: 'app', + privacyPolicyUrl: 'https://example.com/privacy', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + languages: [{ id: 'en', play: 'en-US' }], + play: { packageName: 'org.example.echotuner', accountType: 'organization' }, +}; diff --git a/tests/scan.test.ts b/tests/scan.test.ts index 3c6e560c..f279316c 100644 --- a/tests/scan.test.ts +++ b/tests/scan.test.ts @@ -1,14 +1,16 @@ // storebound scan: project detection, every rejection-risk rule on the fixtures (true positives) and the clean // fixture (no false positives), the declarations proposal and --write, validate / MCP integration, the demo projects. import { afterAll, beforeEach, describe, expect, test } from 'bun:test'; -import { cpSync, mkdtempSync, readFileSync, rmSync } from 'node:fs'; +import { cpSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; import { FORBIDDEN_ARGS, TOOLS, toArgv } from '../cli/mcp-tools'; import { JSON_TOOLS } from '../cli/serve'; import { scanAsFindings } from '../cli/validate'; import { matchBrace, toTs, upsertBlock } from '../cli/lib/scan/config-edit'; +import { validateConfig } from '../cli/lib/config'; import { runScan } from '../cli/lib/scan'; +import { PLAY_REFS } from '../cli/lib/scan/play-rules'; import { vaguePurpose } from '../cli/lib/scan/permissions'; import { detectProject, parsePlist } from '../cli/lib/scan/project'; import type { ScanFinding } from '../cli/lib/scan/rules'; @@ -130,6 +132,123 @@ describe('rules: planted issues are found', () => { }); }); +/** A temp copy of a fixture, changed by `edit` (file -> new content from old), for the variants of one fixture. */ +async function scanVariant(name: string, edit: Record string>) { + const dir = mkdtempSync(join(tmpdir(), 'sb-scan-play-')); + try { + cpSync(join(FX, name), dir, { recursive: true }); + for (const [f, fn] of Object.entries(edit)) writeFileSync(join(dir, f), fn(existsSync(join(dir, f)) ? readFileSync(join(dir, f), 'utf8') : '')); + return (await runScan(dir)).report; + } finally { rmSync(dir, { recursive: true, force: true }); } +} + +describe('Google Play rules', () => { + test('detection: merged manifest, components, accessibility config, strings, native toolchain', () => { + const a = detectProject(join(FX, 'play-android')); + expect(a.androidInfo.mergedManifest).toBe('app/build/intermediates/merged_manifest/release/processReleaseMainManifest/AndroidManifest.xml'); + expect(a.androidInfo.permissions.find(x => x.name.endsWith('USE_FULL_SCREEN_INTENT'))!.at.file).toBe(a.androidInfo.mergedManifest!); + expect(a.androidInfo.permissions.find(x => x.name.endsWith('ACCESS_BACKGROUND_LOCATION'))!.at).toEqual({ file: 'app/src/main/AndroidManifest.xml', line: 5 }); + expect(a.androidInfo.components.filter(c => c.kind === 'service').map(c => c.name)).toEqual(['.TrailAssistService', '.OfflineMapVpnService']); + expect(a.androidInfo.components.find(c => c.categories.includes('android.intent.category.LAUNCHER'))!.name).toBe('.MainActivity'); + expect(a.androidInfo.accessibilityConfigs).toEqual([{ at: { file: 'app/src/main/res/xml/accessibility_service_config.xml', line: 2 }, isTool: false }]); + expect(a.androidInfo.strings.map(s => s.path)).toEqual(['app/src/main/res/values/strings.xml']); + expect(a.native.agp).toEqual({ value: '8.7.3', at: { file: 'settings.gradle.kts', line: 3 } }); + const n = detectProject(join(FX, 'play-native')); + expect(n.native.libs).toEqual(['android/app/src/main/jniLibs/arm64-v8a/libvendorfx.so']); + expect(n.native.ndkVersion).toEqual({ value: '25.1.8937393', at: { file: 'android/app/build.gradle', line: 10 } }); + expect(n.native.agp!.value).toBe('8.1.0'); + expect(n.native.nativeBuild).toEqual({ file: 'android/app/build.gradle', line: 16 }); + expect(n.androidInfo.extractNativeLibs).toEqual({ value: false, at: { file: 'android/app/src/main/AndroidManifest.xml', line: 3 } }); + expect(n.androidInfo.mergedManifest).toBeNull(); + expect(detectProject(join(FX, 'play-families')).native.unityVersion).toEqual({ value: '2022.3.20f1', at: { file: 'ProjectSettings/ProjectVersion.txt', line: 1 } }); + }); + test('sensitive permissions, prominent disclosure, privacy policy, ads at launch, payments, testing (play-android)', async () => { + const r = await scan('play-android'); + for (const id of ['play-background-location', 'play-photo-video', 'play-all-files-access', 'play-accessibility', 'play-install-packages', 'play-health-connect', + 'play-full-screen-intent', 'play-vpn', 'play-prominent-disclosure', 'play-privacy-policy', 'play-ad-id', 'play-ads-launch', 'play-payments', 'play-testing-requirement', 'privacy-labels']) + expect(rules(r.findings, 'play')).toContain(id); + expect(rules(r.findings, 'apple').size).toBe(0); + expect(find(r.findings, 'play-full-screen-intent')!.evidence[0]!.file).toContain('build/intermediates/merged_manifest'); + expect(find(r.findings, 'play-accessibility')!.severity).toBe('high'); + expect(r.findings.filter(f => f.rule === 'play-prominent-disclosure').map(f => f.severity)).toEqual(['high', 'medium']); + expect(find(r.findings, 'play-ads-launch')!.evidence[0]).toMatchObject({ file: 'app/src/main/java/org/example/trailmate/MainActivity.kt', line: 15 }); + expect(find(r.findings, 'play-ad-id')!.severity).toBe('medium'); + expect(find(r.findings, 'play-testing-requirement')).toMatchObject({ severity: 'medium', title: expect.stringContaining('12 opted-in testers for 14 days') }); + expect(r.findings.find(f => f.rule === 'privacy-labels' && f.title.includes('narrower'))!.title).toContain('PSL_DEVICE_ID'); + expect(rules(r.findings)).not.toContain('play-16kb'); + for (const f of r.findings) { expect(f.ref).toMatch(/^https:\/\/(support\.google\.com|developer\.android\.com)\//); expect(f.evidence.length).toBeGreaterThan(0); expect(f.fix.length).toBeGreaterThan(20); } + }); + test('variants: isAccessibilityTool, a disclosure string, organization account, billing program', async () => { + const r = await scanVariant('play-android', { + 'app/src/main/res/xml/accessibility_service_config.xml': s => s.replace('android:canRetrieveWindowContent', 'android:isAccessibilityTool="true"\n android:canRetrieveWindowContent'), + 'app/src/main/res/values/strings.xml': s => s.replace('', ' Trail Mate collects location data to record your hike even when the app is closed or not in use.\n'), + 'storebound.config.ts': s => s.replace("accountType: 'personal', accountCreated: '2025-03-01'", "accountType: 'organization', billingPrograms: ['user-choice-billing']"), + }); + expect(find(r.findings, 'play-accessibility')!.severity).toBe('medium'); + expect(rules(r.findings)).not.toContain('play-prominent-disclosure'); + expect(rules(r.findings)).not.toContain('play-testing-requirement'); + expect(rules(r.findings)).not.toContain('play-payments'); + const old = await scanVariant('play-android', { 'storebound.config.ts': s => s.replace("accountCreated: '2025-03-01'", "accountCreated: '2023-11-13'") }); + expect(rules(old.findings)).not.toContain('play-testing-requirement'); + }); + test('16 KB page sizes: old NDK and AGP (play-native), Unity versions, prebuilt libraries', async () => { + const r = await scan('play-native'); + const k = r.findings.filter(f => f.rule === 'play-16kb'); + expect(k.map(f => f.severity)).toEqual(['high', 'high']); + expect(k[0]!.title).toContain('NDK 25.1.8937393'); + expect(k[1]!.title).toContain('Android Gradle Plugin 8.1.0'); + expect(k.every(f => f.title.includes('2027-02-01'))).toBe(true); + const fixed = await scanVariant('play-native', { + 'android/app/build.gradle': s => s.replace('25.1.8937393', '27.2.12479018').replace('path "src/main/cpp/CMakeLists.txt"', 'path "src/main/cpp/CMakeLists.txt"\n arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"'), + 'android/settings.gradle': s => s.replace('"8.1.0"', '"8.7.3"'), + }); + const left = fixed.findings.filter(f => f.rule === 'play-16kb'); + expect(left.map(f => [f.severity, f.evidence[0]!.file])).toEqual([['medium', 'android/app/src/main/jniLibs/arm64-v8a/libvendorfx.so']]); + const legacy = await scanVariant('play-native', { 'android/app/build.gradle': s => s.replace('externalNativeBuild', 'packaging { jniLibs { useLegacyPackaging = true } }\n externalNativeBuild') }); + expect(legacy.findings.filter(f => f.rule === 'play-16kb').map(f => f.title)).toEqual([expect.stringContaining('NDK')]); + for (const [v, flagged] of [['2022.3.56f1', false], ['2021.3.47f1', true], ['6000.0.38f1', false], ['6000.0.37f1', true], ['6000.1.2f1', false], ['2023.2.20f1', true]] as const) { + const u = await scanVariant('play-families', { 'ProjectSettings/ProjectVersion.txt': () => `m_EditorVersion: ${v}\n` }); + expect([v, rules(u.findings).has('play-16kb')]).toEqual([v, flagged]); + } + }); + test('Families: uncertified and old ad SDKs, AD_ID, location (play-families)', async () => { + const r = await scan('play-families'); + const ads = r.findings.filter(f => f.rule === 'play-families-ads'); + expect(ads.map(f => f.title)).toEqual([expect.stringContaining('AdMob 18.3.0 is older than 19.0.0'), expect.stringContaining('AppLovin MAX is not a Families Self-Certified')]); + expect(find(r.findings, 'play-families-ad-id')!.severity).toBe('high'); + expect(find(r.findings, 'play-families-location')!.evidence[0]).toMatchObject({ file: 'Assets/Plugins/Android/AndroidManifest.xml', line: 3 }); + expect(rules(r.findings)).not.toContain('kids-ads'); + expect(rules(r.findings)).not.toContain('play-ad-id'); + const mixed = await scanVariant('play-families', { 'storebound.config.ts': s => s.replace("['0-5', '6-8', '9-12']", "['9-12', '13-15', '16-17']") }); + expect(find(mixed.findings, 'play-families-ad-id')!.severity).toBe('medium'); + expect(rules(mixed.findings)).not.toContain('play-families-location'); + const adult = await scanVariant('play-families', { 'storebound.config.ts': s => s.replace("['0-5', '6-8', '9-12']", "['18+']") }); + expect([...rules(adult.findings)].filter(x => x.startsWith('play-families'))).toEqual([]); + }); + test('Play listing metadata, steering to the web, impersonation (play-listing)', async () => { + const r = await scan('play-listing'); + const m = r.findings.filter(f => f.rule === 'play-metadata').map(f => f.title); + for (const t of ['longer than 30 characters', 'Emoji', 'Rank, performance', 'ALL CAPS', 'Other apps or brands', 'Repeated keywords ("photo"']) + expect(m.some(x => x.includes(t))).toBe(true); + expect(m.find(x => x.includes('Repeated'))).toContain('and a keyword list'); + expect(find(r.findings, 'play-payments')!.evidence[0]).toMatchObject({ file: 'store/listing.md', line: 22 }); + expect(find(r.findings, 'play-impersonation')).toMatchObject({ severity: 'low', title: expect.stringContaining('"instagram"') }); + const ok = await scanVariant('play-listing', { 'storebound.config.ts': s => s.replace('org.example.instagramsaver', 'org.example.snapsaver') }); + expect(rules(ok.findings)).not.toContain('play-impersonation'); + const soft = await scanVariant('play-listing', { 'store/listing.md': s => s.replace('🔥 #1 Best Free Photo Saver App Pro', 'Free Photo Saver') }); + expect(soft.findings.filter(f => f.rule === 'play-metadata' && f.title.includes('Free Photo Saver')).map(f => f.severity)).toEqual(['low']); + expect(rules(await scan('ios-native').then(x => x.findings), 'play').size).toBe(0); + }); + test('the policy tables cite their sources', () => { + for (const u of Object.values(PLAY_REFS)) expect(u).toMatch(/^https:\/\//); + const fam = SDKS.filter(s => s.category === 'ads').map(s => [s.id, s.families?.certified]); + expect(fam).toEqual([['admob', true], ['applovin', false], ['levelplay', true], ['unity-ads', true], ['meta-an', false]]); + expect(validateConfig({ app: { name: 'X', privacyPolicyUrl: 'https://example.com/p', supportUrl: 'https://example.com/s', website: 'https://example.com', contactEmail: 'support@example.com' }, languages: [{ id: 'en' }], + play: { packageName: 'org.example.x', targetAges: ['7-9'], accountType: 'person', accountCreated: '2024', billingPrograms: ['stripe'] } })) + .toEqual(expect.arrayContaining([expect.stringContaining('play.targetAges'), expect.stringContaining('play.accountType'), expect.stringContaining('play.accountCreated'), expect.stringContaining('play.billingPrograms')])); + }); +}); + describe('rules: no false positives', () => { test('clean fixture has no finding at all', async () => { process.env.REVIEW_DEMO_USER = 'demo@example.com'; process.env.REVIEW_DEMO_PASSWORD = 'example';