aso-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +227 -0
  3. package/build/cache/sqlite-cache.d.ts +10 -0
  4. package/build/cache/sqlite-cache.d.ts.map +1 -0
  5. package/build/cache/sqlite-cache.js +51 -0
  6. package/build/cache/sqlite-cache.js.map +1 -0
  7. package/build/data-sources/app-store-connect.d.ts +12 -0
  8. package/build/data-sources/app-store-connect.d.ts.map +1 -0
  9. package/build/data-sources/app-store-connect.js +415 -0
  10. package/build/data-sources/app-store-connect.js.map +1 -0
  11. package/build/data-sources/app-store.d.ts +7 -0
  12. package/build/data-sources/app-store.d.ts.map +1 -0
  13. package/build/data-sources/app-store.js +28 -0
  14. package/build/data-sources/app-store.js.map +1 -0
  15. package/build/data-sources/aso-scoring.d.ts +15 -0
  16. package/build/data-sources/aso-scoring.d.ts.map +1 -0
  17. package/build/data-sources/aso-scoring.js +140 -0
  18. package/build/data-sources/aso-scoring.js.map +1 -0
  19. package/build/data-sources/custom-scoring.d.ts +52 -0
  20. package/build/data-sources/custom-scoring.d.ts.map +1 -0
  21. package/build/data-sources/custom-scoring.js +83 -0
  22. package/build/data-sources/custom-scoring.js.map +1 -0
  23. package/build/server.d.ts +3 -0
  24. package/build/server.d.ts.map +1 -0
  25. package/build/server.js +69 -0
  26. package/build/server.js.map +1 -0
  27. package/build/tools/analyze-competitors.d.ts +3 -0
  28. package/build/tools/analyze-competitors.d.ts.map +1 -0
  29. package/build/tools/analyze-competitors.js +112 -0
  30. package/build/tools/analyze-competitors.js.map +1 -0
  31. package/build/tools/analyze-reviews.d.ts +3 -0
  32. package/build/tools/analyze-reviews.d.ts.map +1 -0
  33. package/build/tools/analyze-reviews.js +188 -0
  34. package/build/tools/analyze-reviews.js.map +1 -0
  35. package/build/tools/clear-cache.d.ts +3 -0
  36. package/build/tools/clear-cache.d.ts.map +1 -0
  37. package/build/tools/clear-cache.js +32 -0
  38. package/build/tools/clear-cache.js.map +1 -0
  39. package/build/tools/connect-get-app.d.ts +3 -0
  40. package/build/tools/connect-get-app.d.ts.map +1 -0
  41. package/build/tools/connect-get-app.js +56 -0
  42. package/build/tools/connect-get-app.js.map +1 -0
  43. package/build/tools/connect-get-metadata.d.ts +3 -0
  44. package/build/tools/connect-get-metadata.d.ts.map +1 -0
  45. package/build/tools/connect-get-metadata.js +73 -0
  46. package/build/tools/connect-get-metadata.js.map +1 -0
  47. package/build/tools/connect-list-localizations.d.ts +3 -0
  48. package/build/tools/connect-list-localizations.d.ts.map +1 -0
  49. package/build/tools/connect-list-localizations.js +55 -0
  50. package/build/tools/connect-list-localizations.js.map +1 -0
  51. package/build/tools/connect-setup.d.ts +3 -0
  52. package/build/tools/connect-setup.d.ts.map +1 -0
  53. package/build/tools/connect-setup.js +47 -0
  54. package/build/tools/connect-setup.js.map +1 -0
  55. package/build/tools/connect-update-metadata.d.ts +3 -0
  56. package/build/tools/connect-update-metadata.d.ts.map +1 -0
  57. package/build/tools/connect-update-metadata.js +176 -0
  58. package/build/tools/connect-update-metadata.js.map +1 -0
  59. package/build/tools/discover-keywords.d.ts +3 -0
  60. package/build/tools/discover-keywords.d.ts.map +1 -0
  61. package/build/tools/discover-keywords.js +195 -0
  62. package/build/tools/discover-keywords.js.map +1 -0
  63. package/build/tools/generate-aso-brief.d.ts +3 -0
  64. package/build/tools/generate-aso-brief.d.ts.map +1 -0
  65. package/build/tools/generate-aso-brief.js +295 -0
  66. package/build/tools/generate-aso-brief.js.map +1 -0
  67. package/build/tools/get-app-details.d.ts +3 -0
  68. package/build/tools/get-app-details.d.ts.map +1 -0
  69. package/build/tools/get-app-details.js +89 -0
  70. package/build/tools/get-app-details.js.map +1 -0
  71. package/build/tools/get-aso-report.d.ts +3 -0
  72. package/build/tools/get-aso-report.d.ts.map +1 -0
  73. package/build/tools/get-aso-report.js +168 -0
  74. package/build/tools/get-aso-report.js.map +1 -0
  75. package/build/tools/keyword-gap.d.ts +3 -0
  76. package/build/tools/keyword-gap.d.ts.map +1 -0
  77. package/build/tools/keyword-gap.js +116 -0
  78. package/build/tools/keyword-gap.js.map +1 -0
  79. package/build/tools/localized-keywords.d.ts +3 -0
  80. package/build/tools/localized-keywords.d.ts.map +1 -0
  81. package/build/tools/localized-keywords.js +107 -0
  82. package/build/tools/localized-keywords.js.map +1 -0
  83. package/build/tools/optimize-metadata.d.ts +3 -0
  84. package/build/tools/optimize-metadata.d.ts.map +1 -0
  85. package/build/tools/optimize-metadata.js +156 -0
  86. package/build/tools/optimize-metadata.js.map +1 -0
  87. package/build/tools/search-keywords.d.ts +3 -0
  88. package/build/tools/search-keywords.d.ts.map +1 -0
  89. package/build/tools/search-keywords.js +65 -0
  90. package/build/tools/search-keywords.js.map +1 -0
  91. package/build/tools/suggest-keywords.d.ts +3 -0
  92. package/build/tools/suggest-keywords.d.ts.map +1 -0
  93. package/build/tools/suggest-keywords.js +71 -0
  94. package/build/tools/suggest-keywords.js.map +1 -0
  95. package/build/tools/track-ranking.d.ts +3 -0
  96. package/build/tools/track-ranking.d.ts.map +1 -0
  97. package/build/tools/track-ranking.js +94 -0
  98. package/build/tools/track-ranking.js.map +1 -0
  99. package/build/types/index.d.ts +151 -0
  100. package/build/types/index.d.ts.map +1 -0
  101. package/build/types/index.js +2 -0
  102. package/build/types/index.js.map +1 -0
  103. package/build/utils/constants.d.ts +40 -0
  104. package/build/utils/constants.d.ts.map +1 -0
  105. package/build/utils/constants.js +35 -0
  106. package/build/utils/constants.js.map +1 -0
  107. package/build/utils/formatters.d.ts +9 -0
  108. package/build/utils/formatters.d.ts.map +1 -0
  109. package/build/utils/formatters.js +37 -0
  110. package/build/utils/formatters.js.map +1 -0
  111. package/build/utils/localization.d.ts +7 -0
  112. package/build/utils/localization.d.ts.map +1 -0
  113. package/build/utils/localization.js +63 -0
  114. package/build/utils/localization.js.map +1 -0
  115. package/build/utils/rate-limiter.d.ts +7 -0
  116. package/build/utils/rate-limiter.d.ts.map +1 -0
  117. package/build/utils/rate-limiter.js +23 -0
  118. package/build/utils/rate-limiter.js.map +1 -0
  119. package/package.json +60 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kenan Atmaca
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,227 @@
1
+ # ASO MCP Server
2
+
3
+ [![npm version](https://img.shields.io/npm/v/aso-mcp.svg)](https://www.npmjs.com/package/aso-mcp)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
5
+ [![Node.js](https://img.shields.io/badge/Node.js-22%2B-green.svg)](https://nodejs.org)
6
+ [![MCP](https://img.shields.io/badge/MCP-Compatible-purple.svg)](https://modelcontextprotocol.io)
7
+
8
+ **App Store Optimization toolkit for AI assistants.** Keyword research, competitor analysis, review sentiment, metadata optimization — all through the Model Context Protocol.
9
+
10
+ > **No API key required.** Works out of the box with real App Store data. Supports 155+ countries.
11
+
12
+ ## Quick Start
13
+
14
+ ```bash
15
+ npx aso-mcp
16
+ ```
17
+
18
+ Or install globally:
19
+
20
+ ```bash
21
+ npm install -g aso-mcp
22
+ ```
23
+
24
+ ## Why aso-mcp?
25
+
26
+ - **18 specialized ASO tools** — from keyword discovery to App Store Connect metadata management
27
+ - **Real App Store data** — live search results, ratings, reviews, and suggestions
28
+ - **Custom scoring engine** — proprietary algorithm independent of Apple Search Ads API issues
29
+ - **No API key needed** — zero configuration, install and go
30
+ - **Smart caching** — SQLite-backed cache for fast repeated queries
31
+ - **Rate limiting** — built-in request management to avoid Apple throttling
32
+ - **Multi-country** — analyze keywords across 155+ App Store markets
33
+
34
+ ## Integration
35
+
36
+ ### Claude Desktop
37
+
38
+ Add to your config file:
39
+
40
+ | OS | Path |
41
+ |----|------|
42
+ | macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
43
+ | Windows | `%APPDATA%\Claude\claude_desktop_config.json` |
44
+ | Linux | `~/.config/Claude/claude_desktop_config.json` |
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "aso-mcp": {
50
+ "command": "aso-mcp"
51
+ }
52
+ }
53
+ }
54
+ ```
55
+
56
+ <details>
57
+ <summary>Running from source instead?</summary>
58
+
59
+ ```json
60
+ {
61
+ "mcpServers": {
62
+ "aso-mcp": {
63
+ "command": "npx",
64
+ "args": ["tsx", "/ABSOLUTE/PATH/TO/aso-mcp/src/server.ts"],
65
+ "cwd": "/ABSOLUTE/PATH/TO/aso-mcp"
66
+ }
67
+ }
68
+ }
69
+ ```
70
+
71
+ </details>
72
+
73
+ ### Claude Code
74
+
75
+ ```bash
76
+ claude mcp add -s user aso-mcp -- npx aso-mcp
77
+ ```
78
+
79
+ ### Other MCP Clients
80
+
81
+ Any MCP-compatible client (ChatGPT, Cursor, Windsurf, etc.) can connect via stdio transport. Point it to the `aso-mcp` command.
82
+
83
+ ## Tools
84
+
85
+ ### Phase 1 — Keyword Research
86
+
87
+ | Tool | Description |
88
+ |------|-------------|
89
+ | `search_keywords` | Traffic/difficulty scores + top-ranking apps for a keyword |
90
+ | `suggest_keywords` | Keyword suggestions by app ID (category, similar, competition strategies) |
91
+ | `get_app_details` | Full ASO info for an app + metadata analysis |
92
+
93
+ ### Phase 2 — Competitor Analysis & Optimization
94
+
95
+ | Tool | Description |
96
+ |------|-------------|
97
+ | `analyze_competitors` | Metadata comparison of top apps for a keyword + keyword gap |
98
+ | `optimize_metadata` | Title/subtitle/keyword field suggestions with character limit checks |
99
+ | `analyze_reviews` | Sentiment analysis, complaint and feature request extraction |
100
+ | `track_ranking` | App's ranking position across multiple keywords |
101
+ | `keyword_gap` | Keyword difference between two apps + opportunity analysis |
102
+
103
+ ### Phase 3 — Localization & Reporting
104
+
105
+ | Tool | Description |
106
+ |------|-------------|
107
+ | `localized_keywords` | Keyword performance comparison across different countries |
108
+ | `get_aso_report` | Comprehensive ASO report: scores + competitors + reviews in one call |
109
+
110
+ ### Phase 4 — ASO Generation
111
+
112
+ | Tool | Description |
113
+ |------|-------------|
114
+ | `discover_keywords` | Keyword discovery from scratch for a new app |
115
+ | `generate_aso_brief` | Complete ASO brief with keyword pool, competitor patterns, and metadata suggestions |
116
+
117
+ ### Phase 5 — App Store Connect
118
+
119
+ Directly read and update your app's metadata on App Store Connect without leaving the AI assistant.
120
+
121
+ | Tool | Description |
122
+ |------|-------------|
123
+ | `connect_setup` | Configure & validate App Store Connect API credentials |
124
+ | `connect_get_app` | Find app by bundle ID, get ASC ID + version status |
125
+ | `connect_get_metadata` | Read current metadata (title, subtitle, keywords, description) for a locale |
126
+ | `connect_update_metadata` | Update metadata with character limit validation + before/after diff |
127
+ | `connect_list_localizations` | List all locales and metadata completeness status |
128
+
129
+ <details>
130
+ <summary>App Store Connect Setup</summary>
131
+
132
+ Requires an [App Store Connect API Key](https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api):
133
+
134
+ **Option A — Environment variables:**
135
+ ```bash
136
+ export ASC_ISSUER_ID="your-issuer-id"
137
+ export ASC_KEY_ID="your-key-id"
138
+ export ASC_PRIVATE_KEY_PATH="/path/to/AuthKey_XXXXX.p8"
139
+ ```
140
+
141
+ **Option B — Use the setup tool:**
142
+ ```
143
+ "Set up App Store Connect with issuer ID xxx, key ID yyy, and key at /path/to/AuthKey.p8"
144
+ ```
145
+
146
+ Credentials are saved to `~/.aso-mcp/connect-config.json` for future sessions.
147
+
148
+ </details>
149
+
150
+ ### Utility
151
+
152
+ | Tool | Description |
153
+ |------|-------------|
154
+ | `clear_cache` | Clears the local data cache for fresh App Store results |
155
+
156
+ ## Usage Examples
157
+
158
+ Just ask your AI assistant naturally:
159
+
160
+ ```
161
+ "How competitive is the 'fitness' keyword in the US?"
162
+
163
+ "Analyze Spotify's competitors and find keyword opportunities"
164
+
165
+ "Generate an ASO report for com.spotify.client"
166
+
167
+ "Compare 'music' and 'podcast' keywords across US, UK, and DE markets"
168
+
169
+ "Do a keyword gap analysis: Spotify vs Apple Music"
170
+
171
+ "Analyze Shazam's user reviews"
172
+
173
+ "Suggest title and subtitle for my fitness app targeting: workout, training, exercise"
174
+
175
+ "Discover keywords for a new calorie tracking app"
176
+
177
+ "Update my app's subtitle to 'AI Workout Planner' on App Store Connect"
178
+
179
+ "Show all locales and metadata status for my app"
180
+ ```
181
+
182
+ ## Scoring Algorithm
183
+
184
+ The server calculates its own scores, independent of Apple Search Ads API:
185
+
186
+ | Score | Description |
187
+ |-------|-------------|
188
+ | **Visibility** | Based on rating, review count, and ranking position |
189
+ | **Competitive** | Difficulty derived from the strength of top-ranking apps |
190
+ | **Opportunity** | High traffic + low difficulty = high opportunity |
191
+ | **Overall** | Weighted combination of all scores (0-10) |
192
+
193
+ When the `aso` npm package fails to reach Apple (503 errors), the server automatically falls back to custom scoring using search result analysis — so scores are always available.
194
+
195
+ ## Development
196
+
197
+ ```bash
198
+ git clone https://github.com/kenanatmaca/aso-mcp.git
199
+ cd aso-mcp
200
+ npm install
201
+
202
+ npm run dev # Run with tsx (development)
203
+ npm run build # Compile TypeScript
204
+ npm run inspect # MCP Inspector UI
205
+
206
+ # Tests
207
+ npx tsx test.ts # Core tests (17)
208
+ npx tsx test-phase3.ts # Localization & report tests (4)
209
+ npx tsx test-generation.ts # ASO generation tests (8)
210
+ ```
211
+
212
+ ## Tech Stack
213
+
214
+ - **TypeScript** + **Node.js 22+**
215
+ - **[MCP SDK](https://modelcontextprotocol.io)** — Model Context Protocol
216
+ - **[app-store-scraper](https://www.npmjs.com/package/app-store-scraper)** — App Store data
217
+ - **[aso](https://www.npmjs.com/package/aso)** — ASO scoring with automatic fallback
218
+ - **[better-sqlite3](https://www.npmjs.com/package/better-sqlite3)** — Cache layer
219
+ - **[Zod](https://www.npmjs.com/package/zod)** — Schema validation
220
+
221
+ ## License
222
+
223
+ MIT
224
+
225
+ ## Author
226
+
227
+ [Kenan Atmaca](https://github.com/kenanatmaca)
@@ -0,0 +1,10 @@
1
+ export declare function initCache(): void;
2
+ export declare function getFromCache(key: string): string | null;
3
+ export declare function setCache(key: string, value: string, ttlSeconds?: number): void;
4
+ export declare function clearCache(): void;
5
+ export declare function getCacheStats(): {
6
+ totalEntries: number;
7
+ expiredEntries: number;
8
+ dbPath: string;
9
+ };
10
+ //# sourceMappingURL=sqlite-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-cache.d.ts","sourceRoot":"","sources":["../../src/cache/sqlite-cache.ts"],"names":[],"mappings":"AAOA,wBAAgB,SAAS,IAAI,IAAI,CAsBhC;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQvD;AAED,wBAAgB,QAAQ,CACtB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,UAAU,GAAE,MAAa,GACxB,IAAI,CAKN;AAED,wBAAgB,UAAU,IAAI,IAAI,CAEjC;AAED,wBAAgB,aAAa,IAAI;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB,CAeA"}
@@ -0,0 +1,51 @@
1
+ import Database from "better-sqlite3";
2
+ import path from "path";
3
+ import os from "os";
4
+ import fs from "fs";
5
+ let db;
6
+ export function initCache() {
7
+ const dataDir = path.join(os.homedir(), ".aso-mcp");
8
+ if (!fs.existsSync(dataDir)) {
9
+ fs.mkdirSync(dataDir, { recursive: true });
10
+ }
11
+ const dbPath = path.join(dataDir, "cache.db");
12
+ db = new Database(dbPath);
13
+ db.pragma("journal_mode = WAL");
14
+ db.exec(`
15
+ CREATE TABLE IF NOT EXISTS cache (
16
+ key TEXT PRIMARY KEY,
17
+ value TEXT NOT NULL,
18
+ expires_at INTEGER NOT NULL,
19
+ created_at INTEGER DEFAULT (strftime('%s', 'now'))
20
+ )
21
+ `);
22
+ // Clean up expired entries
23
+ db.exec(`DELETE FROM cache WHERE expires_at < strftime('%s', 'now')`);
24
+ }
25
+ export function getFromCache(key) {
26
+ const row = db
27
+ .prepare("SELECT value FROM cache WHERE key = ? AND expires_at > strftime('%s', 'now')")
28
+ .get(key);
29
+ return row?.value ?? null;
30
+ }
31
+ export function setCache(key, value, ttlSeconds = 3600) {
32
+ const expiresAt = Math.floor(Date.now() / 1000) + ttlSeconds;
33
+ db.prepare("INSERT OR REPLACE INTO cache (key, value, expires_at) VALUES (?, ?, ?)").run(key, value, expiresAt);
34
+ }
35
+ export function clearCache() {
36
+ db.exec("DELETE FROM cache");
37
+ }
38
+ export function getCacheStats() {
39
+ const total = db
40
+ .prepare("SELECT COUNT(*) as count FROM cache")
41
+ .get();
42
+ const expired = db
43
+ .prepare("SELECT COUNT(*) as count FROM cache WHERE expires_at < strftime('%s', 'now')")
44
+ .get();
45
+ return {
46
+ totalEntries: total.count,
47
+ expiredEntries: expired.count,
48
+ dbPath: path.join(os.homedir(), ".aso-mcp", "cache.db"),
49
+ };
50
+ }
51
+ //# sourceMappingURL=sqlite-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sqlite-cache.js","sourceRoot":"","sources":["../../src/cache/sqlite-cache.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,IAAI,EAAqB,CAAC;AAE1B,MAAM,UAAU,SAAS;IACvB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,UAAU,CAAC,CAAC;IACpD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IAC9C,EAAE,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE1B,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAEhC,EAAE,CAAC,IAAI,CAAC;;;;;;;GAOP,CAAC,CAAC;IAEH,2BAA2B;IAC3B,EAAE,CAAC,IAAI,CAAC,4DAA4D,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,MAAM,GAAG,GAAG,EAAE;SACX,OAAO,CACN,8EAA8E,CAC/E;SACA,GAAG,CAAC,GAAG,CAAkC,CAAC;IAE7C,OAAO,GAAG,EAAE,KAAK,IAAI,IAAI,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,QAAQ,CACtB,GAAW,EACX,KAAa,EACb,aAAqB,IAAI;IAEzB,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,UAAU,CAAC;IAC7D,EAAE,CAAC,OAAO,CACR,wEAAwE,CACzE,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,aAAa;IAK3B,MAAM,KAAK,GAAG,EAAE;SACb,OAAO,CAAC,qCAAqC,CAAC;SAC9C,GAAG,EAAuB,CAAC;IAC9B,MAAM,OAAO,GAAG,EAAE;SACf,OAAO,CACN,8EAA8E,CAC/E;SACA,GAAG,EAAuB,CAAC;IAE9B,OAAO;QACL,YAAY,EAAE,KAAK,CAAC,KAAK;QACzB,cAAc,EAAE,OAAO,CAAC,KAAK;QAC7B,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,UAAU,CAAC;KACxD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ConnectConfig, ConnectAppInfo, ConnectLocalization, ConnectLocalizationSummary, ConnectMetadataUpdate } from "../types/index.js";
2
+ export declare function loadConfig(): ConnectConfig | null;
3
+ export declare function saveConfig(config: ConnectConfig): void;
4
+ export declare function validateCredentials(config: ConnectConfig): Promise<boolean>;
5
+ export declare function getApp(config: ConnectConfig, bundleId: string): Promise<ConnectAppInfo>;
6
+ export declare function getMetadata(config: ConnectConfig, appId: string, locale?: string): Promise<ConnectLocalization>;
7
+ export declare function updateMetadata(config: ConnectConfig, appId: string, locale: string | undefined, updates: ConnectMetadataUpdate): Promise<{
8
+ before: ConnectLocalization;
9
+ after: ConnectLocalization;
10
+ }>;
11
+ export declare function listLocalizations(config: ConnectConfig, appId: string): Promise<ConnectLocalizationSummary[]>;
12
+ //# sourceMappingURL=app-store-connect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-store-connect.d.ts","sourceRoot":"","sources":["../../src/data-sources/app-store-connect.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAS3B,wBAAgB,UAAU,IAAI,aAAa,GAAG,IAAI,CAqBjD;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAKtD;AAqED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,OAAO,CAAC,CAWlB;AAED,wBAAsB,MAAM,CAC1B,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,cAAc,CAAC,CAuCzB;AAED,wBAAsB,WAAW,CAC/B,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAa,GACpB,OAAO,CAAC,mBAAmB,CAAC,CAuF9B;AA2HD,wBAAsB,cAAc,CAClC,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,YAAO,EACrB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC;IAAE,MAAM,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,mBAAmB,CAAA;CAAE,CAAC,CA8FtE;AAED,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,0BAA0B,EAAE,CAAC,CA8EvC"}