@wiro-ai/wiro-agent-connectors 0.2.0 → 0.2.2
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.
- package/CHANGELOG.md +13 -0
- package/README.md +57 -3
- package/dist/vendors/adapty.js +5 -1
- package/dist/vendors/adjust.js +5 -1
- package/dist/vendors/apollo.js +5 -1
- package/dist/vendors/apple-appstore.js +58 -27
- package/dist/vendors/beehiiv.js +5 -1
- package/dist/vendors/blogger.js +5 -1
- package/dist/vendors/bluesky.js +5 -1
- package/dist/vendors/brevo.js +5 -1
- package/dist/vendors/calendarific.js +5 -1
- package/dist/vendors/devto.js +5 -1
- package/dist/vendors/facebook-pages.js +5 -1
- package/dist/vendors/firebase.js +5 -1
- package/dist/vendors/ga4.js +5 -1
- package/dist/vendors/gmail.js +5 -1
- package/dist/vendors/google-ads.js +5 -1
- package/dist/vendors/google-business.js +5 -1
- package/dist/vendors/google-calendar.js +5 -1
- package/dist/vendors/google-drive.js +5 -1
- package/dist/vendors/google-merchant-center.js +5 -1
- package/dist/vendors/google-play.js +39 -14
- package/dist/vendors/google-search-console.js +5 -1
- package/dist/vendors/hashnode.js +5 -1
- package/dist/vendors/instagram.js +5 -1
- package/dist/vendors/kaggle.js +5 -1
- package/dist/vendors/keepa.js +5 -1
- package/dist/vendors/linkedin.js +5 -1
- package/dist/vendors/mailchimp.js +5 -1
- package/dist/vendors/mastodon.js +5 -1
- package/dist/vendors/meta-ads.js +5 -1
- package/dist/vendors/notion.js +5 -1
- package/dist/vendors/pinterest.js +5 -1
- package/dist/vendors/qiita.js +5 -1
- package/dist/vendors/reddit.js +5 -1
- package/dist/vendors/revenuecat.js +5 -1
- package/dist/vendors/roasit.js +5 -1
- package/dist/vendors/sendgrid.js +5 -1
- package/dist/vendors/serper.js +5 -1
- package/dist/vendors/shopify.js +5 -1
- package/dist/vendors/threads.js +5 -1
- package/dist/vendors/tiktok.js +5 -1
- package/dist/vendors/tumblr.js +5 -1
- package/dist/vendors/twitter.js +5 -1
- package/dist/vendors/woocommerce.js +5 -1
- package/dist/vendors/wordpress.js +5 -1
- package/dist/vendors/youtube.js +5 -1
- package/package.json +12 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.2 (2026-11-27)
|
|
4
|
+
|
|
5
|
+
- A JSON:API error reply (App Store Connect's, for one) now gives its `detail`, or else its `title`, as the vendor's words in the error, as a `message` already did: "App Store Connect refused the request (HTTP 403): The API key in use does not allow this request."
|
|
6
|
+
- `apple-appstore`: `get_app_metadata` returns what the key's role can read and leaves out, with a line in `notes`, a part App Store Connect refuses with HTTP 403 (app info, versions, version texts); only the app's own record still fails the call. `list_subscriptions` and `list_in_app_purchases` say on a 403 that reading them needs a key with the Admin or App Manager role, instead of a bare refusal.
|
|
7
|
+
- `google-play`: `list_in_app_products` reads the one-time products by default (`catalog: one_time_products`); the legacy in-app products API stays as `catalog: in_app_products`. Google Play answers that API, and others of the legacy publishing API, with HTTP 403 "Please migrate to the new publishing API." for an app whose catalog has moved: the error now says so and where the products are read, instead of asking to invite the service account. `get_store_listing` answers `available: false` with a note for an app with no public store page in the country (HTTP 404), instead of an error.
|
|
8
|
+
|
|
9
|
+
## 0.2.1 (2026-11-25)
|
|
10
|
+
|
|
11
|
+
- The package names its entry in the official MCP Registry, `ai.wiro/agent-connectors`, in `mcpName`, and `server.json` describes it there: the connector is the first argument, with every connector's name as a choice, and `CONNECTOR_ACCOUNTS` is the optional account lock.
|
|
12
|
+
- A Dockerfile, and a release workflow that publishes the image `wiroai/wiro-agent-connectors` to Docker Hub for amd64 and arm64: `docker run -i --rm -e SERPER_APIKEY wiroai/wiro-agent-connectors serper`.
|
|
13
|
+
- An agent skill, [`skills/wiro-agent-connectors`](./skills/wiro-agent-connectors/SKILL.md), for skills.sh and ClawHub: picking a connector and its variables, adding it to Claude Code, Claude Desktop or Cursor, account locks, how the tools behave, and loading the modules into a host of your own.
|
|
14
|
+
- README: screenshots from MCP Inspector, the agent skill and the "More from Wiro AI" table. The npm keywords name more of the services.
|
|
15
|
+
|
|
3
16
|
## 0.2.0 (2026-11-25)
|
|
4
17
|
|
|
5
18
|
- 42 new connectors, 45 in all. Each has its own README (what it does, every credential step by step with how to revoke it, its tools and limits), tests on recorded responses and a smoke plan; connectors whose tools act on one of several accounts declare account pickers, and most reach the rest of their service's API through generic tools (`api_get` and `api_request`, or GraphQL queries and mutations).
|
package/README.md
CHANGED
|
@@ -16,6 +16,16 @@ MCP connectors for services that have no official MCP server. One small, depende
|
|
|
16
16
|
|
|
17
17
|
Many services an AI agent should work with, such as a blog platform, a social network or a search API, have a good HTTP API and no MCP server. This repository closes that gap with one connector per service. Each connector is a single file with a list of tools and a `call` function, and it has no dependencies: every request goes through a `fetch` that the host hands it, so the host decides where it may connect. Run any connector locally over stdio with `npx`, or load the modules into your own MCP host. Your credentials stay with you: they come from your environment on each call, and a connector never stores or logs them.
|
|
18
18
|
|
|
19
|
+
## See it run
|
|
20
|
+
|
|
21
|
+
The `youtube` connector in [MCP Inspector](https://github.com/modelcontextprotocol/inspector), with its 16 tools and the description and fields of `upload_video`:
|
|
22
|
+
|
|
23
|
+
<img src="https://raw.githubusercontent.com/wiroai/Wiro-Agent-Connectors/main/.github/assets/screenshots/inspector-youtube-tools.png" alt="MCP Inspector connected to the youtube connector: the list of its 16 tools, and Upload a video to YouTube open with its description and its video_url, title and description fields" width="820">
|
|
24
|
+
|
|
25
|
+
The `calendarific` connector answering a real call, `list_upcoming_holidays` for the United States, with the Calendarific API's own data:
|
|
26
|
+
|
|
27
|
+
<img src="https://raw.githubusercontent.com/wiroai/Wiro-Agent-Connectors/main/.github/assets/screenshots/inspector-calendarific-call.png" alt="MCP Inspector after a call to list_upcoming_holidays of the calendarific connector for the US: 65 holidays from 2026-11-26 to 2026-12-25, Thanksgiving Day first, and the tools/call message answered OK" width="820">
|
|
28
|
+
|
|
19
29
|
## Connectors
|
|
20
30
|
|
|
21
31
|
Each connector links to its own page: what it does, every credential step by step (where to get it and how to revoke it), its tools and its limits.
|
|
@@ -178,6 +188,14 @@ Add to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in a project:
|
|
|
178
188
|
|
|
179
189
|
Run several connectors side by side by adding one entry per connector.
|
|
180
190
|
|
|
191
|
+
## Agent skill
|
|
192
|
+
|
|
193
|
+
This repository includes an agent skill, `wiro-agent-connectors`, in [`skills/wiro-agent-connectors/SKILL.md`](./skills/wiro-agent-connectors/SKILL.md). It shows coding agents such as Claude Code and Cursor how to pick a connector, set its variables, add it to an MCP client, limit it to chosen accounts and load the modules into a host of their own. Add it to your agent with:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
npx skills add wiroai/Wiro-Agent-Connectors --skill wiro-agent-connectors
|
|
197
|
+
```
|
|
198
|
+
|
|
181
199
|
## Tools
|
|
182
200
|
|
|
183
201
|
Every tool carries honest MCP annotations, derived from what it does: a read tool can only send GET requests (or a request that changes nothing, such as a sign-in or a search sent by POST), and each write tool says whether it adds, overwrites or removes. `api_request`, which can do any of these, claims neither read-only nor idempotent.
|
|
@@ -256,7 +274,7 @@ Every tool carries honest MCP annotations, derived from what it does: a read too
|
|
|
256
274
|
| Tool | Kind | What it does |
|
|
257
275
|
| --- | --- | --- |
|
|
258
276
|
| `list_apps` | read | The apps the key can see: Apple ID, name, bundle ID, SKU, primary locale, with `selected: true` on the apps chosen for the connection. Lists the candidates of the `apps` account picker. |
|
|
259
|
-
| `get_app_metadata` | read | What an app is: its record, app info for one locale (subtitle, categories, age rating, privacy URL), latest versions, the live version's description, keywords, promotional text and what's new, and the public App Store listing of one country (price, genre, rating, rating count, live description). |
|
|
277
|
+
| `get_app_metadata` | read | What an app is: its record, app info for one locale (subtitle, categories, age rating, privacy URL), latest versions, the live version's description, keywords, promotional text and what's new, and the public App Store listing of one country (price, genre, rating, rating count, live description). A part the key's role cannot read is left out, and `notes` says which. |
|
|
260
278
|
| `list_subscriptions` | read | Auto-renewable subscriptions, group by group (or one group), with their current price in one territory (default USA), their introductory offers (free trial, pay as you go, pay up front) and whether one on the page has a free trial; pages with a cursor. |
|
|
261
279
|
| `list_in_app_purchases` | read | Consumable, non-consumable and non-renewing purchases: name, product ID, type, state, and the current price in one territory (manual, or the automatic equalized one); up to 20 a page with prices. |
|
|
262
280
|
| `list_reviews` | read | Customer reviews with rating, title, text, nickname, territory, date and the developer response; filters for rating, territory and answered or not. |
|
|
@@ -582,10 +600,10 @@ Every tool carries honest MCP annotations, derived from what it does: a read too
|
|
|
582
600
|
| `list_reviews` | read | Reviews with text from the last week, newest first, with stars, language, app version, device and the developer reply; only unanswered ones on request; translated on request. |
|
|
583
601
|
| `get_review` | read | One review with its reply. |
|
|
584
602
|
| `reply_to_review` | update | Posts the reply to a review, or replaces the earlier one: up to 350 characters of plain text. |
|
|
585
|
-
| `get_store_listing` | read | The live store listing as people see it, from the app's public store page in one language and country: title, short and full description, category, developer, content rating, star rating, price and icon. It opens no edit and needs no Play Console permission. |
|
|
603
|
+
| `get_store_listing` | read | The live store listing as people see it, from the app's public store page in one language and country: title, short and full description, category, developer, content rating, star rating, price and icon. It opens no edit and needs no Play Console permission. An app with no public store page in that country gives `available: false`. |
|
|
586
604
|
| `update_store_listing` | update | Changes the listing in one language (title, short or full description, video) in an edit and commits it; Google Play reviews the change before it shows on the store page. |
|
|
587
605
|
| `list_subscriptions` | read | Subscriptions with listings, base plans (state, billing period, price in one country) and offers with their phases, and whether an active offer starts with a free trial. |
|
|
588
|
-
| `list_in_app_products` | read |
|
|
606
|
+
| `list_in_app_products` | read | One-time products with their purchase options and regional price (the default), or the legacy in-app products (sku, status, name, default and regional price), which Google Play no longer serves for an app whose catalog has moved to one-time products. |
|
|
589
607
|
| `api_get` | read | Any other GET of the Android Developer API under `/androidpublisher/v3/applications/{packageName}/` for a chosen app, such as tracks in an edit or a purchase. |
|
|
590
608
|
| `api_request` | write | A POST, PUT, PATCH or DELETE under the same paths, for a chosen app. User and permission management (`/androidpublisher/v3/developers/`) is left out. Sent once, never retried. |
|
|
591
609
|
|
|
@@ -1282,6 +1300,42 @@ npm run smoke -- devto --write # plus one live write
|
|
|
1282
1300
|
|
|
1283
1301
|
`npm run build` writes the CLI to `dist/` and each connector to `dist/vendors/<vendor>.js`.
|
|
1284
1302
|
|
|
1303
|
+
## More from Wiro AI
|
|
1304
|
+
|
|
1305
|
+
| Repository | What it is |
|
|
1306
|
+
| --- | --- |
|
|
1307
|
+
| [Wiro-MCP](https://github.com/wiroai/Wiro-MCP) | Official MCP server for Wiro AI, [`@wiro-ai/wiro-mcp` on npm](https://www.npmjs.com/package/@wiro-ai/wiro-mcp) |
|
|
1308
|
+
| [Wiro-Plugin](https://github.com/wiroai/Wiro-Plugin) | Wiro AI plugin for Cursor, Claude Code, Gemini CLI, Devin, Antigravity and Kiro |
|
|
1309
|
+
| [Wiro-Skills](https://github.com/wiroai/Wiro-Skills) | Agent skills for images, image edits, video, music, speech, transcripts, 3D and model search |
|
|
1310
|
+
| [Wiro-LLM](https://github.com/wiroai/Wiro-LLM) | Vercel AI SDK provider for chat, images, speech, transcription and video, [`@wiro-ai/wiro-llm` on npm](https://www.npmjs.com/package/@wiro-ai/wiro-llm) |
|
|
1311
|
+
| [Wiro-Chromium-Extension](https://github.com/wiroai/Wiro-Chromium-Extension) | Wiro AI extension for Chrome, Edge, Opera and Brave |
|
|
1312
|
+
| [Wiro-Firefox-Extension](https://github.com/wiroai/Wiro-Firefox-Extension) | Wiro AI add-on for Firefox |
|
|
1313
|
+
| [Wiro-Safari-Extension](https://github.com/wiroai/Wiro-Safari-Extension) | Wiro AI extension for Safari on the Mac |
|
|
1314
|
+
| [Swift-QuickStart](https://github.com/wiroai/Swift-QuickStart) | WiroKit, the Wiro AI SDK for iOS |
|
|
1315
|
+
| [Kotlin-QuickStart](https://github.com/wiroai/Kotlin-QuickStart) | WiroKit, the Wiro AI SDK for Android |
|
|
1316
|
+
| [Dart-QuickStart](https://github.com/wiroai/Dart-QuickStart) | Wiro AI SDK for Dart and Flutter, [`wiro` on pub.dev](https://pub.dev/packages/wiro) |
|
|
1317
|
+
| [ReactNative-QuickStart](https://github.com/wiroai/ReactNative-QuickStart) | Wiro AI SDK for React Native and Expo, [`@wiro-ai/wiro-react-native` on npm](https://www.npmjs.com/package/@wiro-ai/wiro-react-native) |
|
|
1318
|
+
| [Swift-Realtime](https://github.com/wiroai/Swift-Realtime) | Realtime voice AI example for iOS |
|
|
1319
|
+
| [Kotlin-Realtime](https://github.com/wiroai/Kotlin-Realtime) | Realtime voice AI example for Android |
|
|
1320
|
+
| [Dart-Realtime](https://github.com/wiroai/Dart-Realtime) | Realtime voice AI example for Flutter |
|
|
1321
|
+
| [ReactNative-Realtime](https://github.com/wiroai/ReactNative-Realtime) | Realtime voice AI example for React Native |
|
|
1322
|
+
| [n8n-nodes-wiro](https://github.com/wiroai/n8n-nodes-wiro) | One Wiro AI node for n8n with a searchable model picker, [`@wiro-ai/n8n-nodes-wiro` on npm](https://www.npmjs.com/package/@wiro-ai/n8n-nodes-wiro) |
|
|
1323
|
+
| [Wiro-Dify-Plugin](https://github.com/wiroai/Wiro-Dify-Plugin) | Wiro AI plugins for Dify: the LLM gateway as a model provider, plus image, video, speech and music tools |
|
|
1324
|
+
| [Wiro-ComfyUI](https://github.com/wiroai/Wiro-ComfyUI) | Wiro AI nodes for ComfyUI |
|
|
1325
|
+
| [Wiro-Hermes](https://github.com/wiroai/Wiro-Hermes) | Wiro AI plugins for Hermes Agent: image, video, audio and 3D tools, plus the LLM gateway as a model provider |
|
|
1326
|
+
| [Wiro-Zed](https://github.com/wiroai/Wiro-Zed) | Wiro AI MCP server extension for Zed |
|
|
1327
|
+
| [Wiro-Action](https://github.com/wiroai/Wiro-Action) | GitHub Action for Wiro AI models and the LLM gateway, [on the GitHub Marketplace](https://github.com/marketplace/actions/wiro-ai-action) |
|
|
1328
|
+
| [Wiro-Raycast](https://github.com/wiroai/Wiro-Raycast) | Wiro AI extension for Raycast: image and video generation, LLM chat and model search |
|
|
1329
|
+
| [Wiro-WordPress](https://github.com/wiroai/Wiro-WordPress) | Wiro AI plugin for WordPress: featured images, image edits, alt text, narration and SEO suggestions |
|
|
1330
|
+
| [Wiro-Obsidian](https://github.com/wiroai/Wiro-Obsidian) | Wiro AI plugin for Obsidian: images, video, speech, music, transcription and text tools |
|
|
1331
|
+
| [Wiro-Blender](https://github.com/wiroai/Wiro-Blender) | Wiro AI add-on for Blender: text to 3D, image to 3D and textures |
|
|
1332
|
+
| [Wiro-Figma](https://github.com/wiroai/Wiro-Figma) | Wiro AI plugin for Figma: images, vectors, image edits and text |
|
|
1333
|
+
| [Wiro-Next-Starter](https://github.com/wiroai/Wiro-Next-Starter) | Next.js starter for Wiro AI: Playground, image, video and audio tools, and LLM chat, ready for Vercel and Railway |
|
|
1334
|
+
| [Wiro-Docs](https://github.com/wiroai/Wiro-Docs) | Source of the Wiro AI API docs |
|
|
1335
|
+
| [wiroai.github.io](https://wiroai.github.io) | Every open-source project from Wiro AI on one page, with a page for each repository |
|
|
1336
|
+
|
|
1337
|
+
[Website](https://wiro.ai) · [Models](https://wiro.ai/models) · [Docs](https://wiro.ai/docs) · [X](https://x.com/wiroai)
|
|
1338
|
+
|
|
1285
1339
|
## License
|
|
1286
1340
|
|
|
1287
1341
|
MIT, see [LICENSE](./LICENSE).
|
package/dist/vendors/adapty.js
CHANGED
|
@@ -222,7 +222,11 @@ function vendorMessage(data) {
|
|
|
222
222
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
223
223
|
}
|
|
224
224
|
if (Array.isArray(record["errors"])) {
|
|
225
|
-
const messages = record["errors"].map((item) =>
|
|
225
|
+
const messages = record["errors"].map((item) => {
|
|
226
|
+
if (typeof item === "string") return item;
|
|
227
|
+
const entry = item;
|
|
228
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
229
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
226
230
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
227
231
|
}
|
|
228
232
|
return void 0;
|
package/dist/vendors/adjust.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/apollo.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -429,7 +429,11 @@ function vendorMessage(data) {
|
|
|
429
429
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
430
430
|
}
|
|
431
431
|
if (Array.isArray(record["errors"])) {
|
|
432
|
-
const messages = record["errors"].map((item) =>
|
|
432
|
+
const messages = record["errors"].map((item) => {
|
|
433
|
+
if (typeof item === "string") return item;
|
|
434
|
+
const entry = item;
|
|
435
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
436
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
433
437
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
434
438
|
}
|
|
435
439
|
return void 0;
|
|
@@ -1219,7 +1223,7 @@ async function applePage(h, api, options) {
|
|
|
1219
1223
|
const state = h.cursor(options.cursor);
|
|
1220
1224
|
const appleCursor = typeof state?.["c"] === "string" ? state["c"] : void 0;
|
|
1221
1225
|
const skip = typeof state?.["o"] === "number" ? state["o"] : 0;
|
|
1222
|
-
const data = await api.get(options.path, { ...options.query, ...appleCursor ? { cursor: appleCursor } : {} });
|
|
1226
|
+
const data = await api.get(options.path, { ...options.query, ...appleCursor ? { cursor: appleCursor } : {} }, options.errors);
|
|
1223
1227
|
const items = (Array.isArray(data?.data) ? data.data : []).map((item) => options.map(item, data)).slice(skip);
|
|
1224
1228
|
if (options.enrich) await options.enrich(items);
|
|
1225
1229
|
const next = nextAppleCursor(data);
|
|
@@ -1620,6 +1624,21 @@ async function uploadEventImage(h, api, args) {
|
|
|
1620
1624
|
|
|
1621
1625
|
// src/vendors/apple-appstore/metadata.ts
|
|
1622
1626
|
var LIVE_STATES = /* @__PURE__ */ new Set(["READY_FOR_SALE", "READY_FOR_DISTRIBUTION"]);
|
|
1627
|
+
var ROLE_NEEDED = "an App Store Connect key with the Admin or App Manager role";
|
|
1628
|
+
function roleRefusal(what) {
|
|
1629
|
+
return `Reading ${what} needs ${ROLE_NEEDED}, and the connected key's role does not allow it`;
|
|
1630
|
+
}
|
|
1631
|
+
async function optionalPart(notes, what, read) {
|
|
1632
|
+
try {
|
|
1633
|
+
return await read();
|
|
1634
|
+
} catch (error) {
|
|
1635
|
+
if (error instanceof ToolFailure && error.details.status === 403) {
|
|
1636
|
+
notes.push(`${what[0]?.toUpperCase()}${what.slice(1)} left out: reading it needs ${ROLE_NEEDED}, and the connected key's role does not allow it (HTTP 403).`);
|
|
1637
|
+
return void 0;
|
|
1638
|
+
}
|
|
1639
|
+
throw error;
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1623
1642
|
function trimAppInfo(item, localizations, locale) {
|
|
1624
1643
|
const a = item?.attributes ?? {};
|
|
1625
1644
|
const refs = Array.isArray(item?.relationships?.appInfoLocalizations?.data) ? item.relationships.appInfoLocalizations.data : [];
|
|
@@ -1692,41 +1711,47 @@ async function appMetadata(h, api, args) {
|
|
|
1692
1711
|
}, { 404: `App Store Connect has no app ${appId} that this key can see` });
|
|
1693
1712
|
const a = app?.data?.attributes ?? {};
|
|
1694
1713
|
const locale = args.locale ?? (typeof a.primaryLocale === "string" ? a.primaryLocale : "en-US");
|
|
1695
|
-
const
|
|
1714
|
+
const notes = [];
|
|
1715
|
+
const infos = await optionalPart(notes, "the app info (subtitle, categories, age rating, privacy policy URL)", () => api.get(`/v1/apps/${appId}/appInfos`, {
|
|
1696
1716
|
include: "appInfoLocalizations,primaryCategory,secondaryCategory",
|
|
1697
1717
|
"fields[appInfos]": "appStoreState,state,appStoreAgeRating,appInfoLocalizations,primaryCategory,secondaryCategory",
|
|
1698
1718
|
"fields[appInfoLocalizations]": "locale,name,subtitle,privacyPolicyUrl",
|
|
1699
1719
|
"limit[appInfoLocalizations]": 50,
|
|
1700
1720
|
limit: 5
|
|
1701
|
-
});
|
|
1721
|
+
}));
|
|
1702
1722
|
const infoLocalizations = includedMap(infos, "appInfoLocalizations");
|
|
1703
|
-
const appInfos = (Array.isArray(infos?.data) ? infos.data : []).map((item) => trimAppInfo(item, infoLocalizations, locale));
|
|
1704
|
-
const versionsReply = await api.get(`/v1/apps/${appId}/appStoreVersions`, {
|
|
1723
|
+
const appInfos = infos === void 0 ? void 0 : (Array.isArray(infos?.data) ? infos.data : []).map((item) => trimAppInfo(item, infoLocalizations, locale));
|
|
1724
|
+
const versionsReply = await optionalPart(notes, "the versions and their texts", () => api.get(`/v1/apps/${appId}/appStoreVersions`, {
|
|
1705
1725
|
"fields[appStoreVersions]": "platform,versionString,appStoreState,appVersionState,releaseType,createdDate",
|
|
1706
1726
|
limit: 5
|
|
1707
|
-
});
|
|
1727
|
+
}));
|
|
1708
1728
|
const versionItems = Array.isArray(versionsReply?.data) ? versionsReply.data : [];
|
|
1709
|
-
const versions = versionItems.map(trimVersion);
|
|
1729
|
+
const versions = versionsReply === void 0 ? void 0 : versionItems.map(trimVersion);
|
|
1710
1730
|
const shown = versionItems.find((item) => LIVE_STATES.has(item?.attributes?.appVersionState) || LIVE_STATES.has(item?.attributes?.appStoreState)) ?? versionItems[0];
|
|
1711
1731
|
let versionLocalization;
|
|
1712
1732
|
if (shown?.id) {
|
|
1713
|
-
const localizations = await api.get(
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1733
|
+
const localizations = await optionalPart(notes, "the version texts (description, keywords, promotional text, what's new)", () => api.get(
|
|
1734
|
+
`/v1/appStoreVersions/${encodeURIComponent(shown.id)}/appStoreVersionLocalizations`,
|
|
1735
|
+
{
|
|
1736
|
+
"filter[locale]": locale,
|
|
1737
|
+
"fields[appStoreVersionLocalizations]": "locale,description,keywords,promotionalText,whatsNew,marketingUrl,supportUrl",
|
|
1738
|
+
limit: 1
|
|
1739
|
+
}
|
|
1740
|
+
));
|
|
1718
1741
|
const l = (Array.isArray(localizations?.data) ? localizations.data[0] : void 0)?.attributes;
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1742
|
+
if (localizations !== void 0) {
|
|
1743
|
+
versionLocalization = l ? compact({
|
|
1744
|
+
versionId: shown.id,
|
|
1745
|
+
versionString: shown.attributes?.versionString,
|
|
1746
|
+
locale: l.locale,
|
|
1747
|
+
description: text(l.description, 4e3),
|
|
1748
|
+
keywords: l.keywords,
|
|
1749
|
+
promotionalText: l.promotionalText,
|
|
1750
|
+
whatsNew: text(l.whatsNew, 4e3),
|
|
1751
|
+
marketingUrl: l.marketingUrl,
|
|
1752
|
+
supportUrl: l.supportUrl
|
|
1753
|
+
}) : { versionId: shown.id, locale, note: `The version has no ${locale} localization.` };
|
|
1754
|
+
}
|
|
1730
1755
|
}
|
|
1731
1756
|
return compact({
|
|
1732
1757
|
app: compact({
|
|
@@ -1741,7 +1766,8 @@ async function appMetadata(h, api, args) {
|
|
|
1741
1766
|
appInfos,
|
|
1742
1767
|
versions,
|
|
1743
1768
|
versionLocalization,
|
|
1744
|
-
storeListing: args.include_store_listing ? await storeListing(h, appId, args.country) : void 0
|
|
1769
|
+
storeListing: args.include_store_listing ? await storeListing(h, appId, args.country) : void 0,
|
|
1770
|
+
notes: notes.length ? notes : void 0
|
|
1745
1771
|
});
|
|
1746
1772
|
}
|
|
1747
1773
|
function summarizeOffers(refs, offers) {
|
|
@@ -1836,7 +1862,11 @@ var GROUPS_SHOWN = 50;
|
|
|
1836
1862
|
async function subscriptions(h, api, args) {
|
|
1837
1863
|
const appId = args.app_id;
|
|
1838
1864
|
const territory = args.include_prices ? args.price_territory : void 0;
|
|
1839
|
-
const groupsReply = await api.get(
|
|
1865
|
+
const groupsReply = await api.get(
|
|
1866
|
+
`/v1/apps/${appId}/subscriptionGroups`,
|
|
1867
|
+
{ "fields[subscriptionGroups]": "referenceName", limit: 200 },
|
|
1868
|
+
{ 403: roleRefusal("the app's subscriptions") }
|
|
1869
|
+
);
|
|
1840
1870
|
const allGroups = (Array.isArray(groupsReply?.data) ? groupsReply.data : []).filter((group) => typeof group?.id === "string").map((group) => ({ id: group.id, referenceName: group?.attributes?.referenceName }));
|
|
1841
1871
|
const moreGroups = Boolean(nextAppleCursor(groupsReply));
|
|
1842
1872
|
const groups = args.group_id ? allGroups.filter((group) => group.id === args.group_id) : allGroups;
|
|
@@ -2247,7 +2277,7 @@ var connector = defineConnector({
|
|
|
2247
2277
|
name: "get_app_metadata",
|
|
2248
2278
|
kind: "read",
|
|
2249
2279
|
title: "Get App Store app details",
|
|
2250
|
-
description: "What an app is: its App Store Connect record (name, bundle ID, primary locale), app info (subtitle, categories, age rating, privacy URL) for one locale, its latest versions, the description, keywords, promotional text and what's new of the live version (or the newest), and, from the public App Store listing of one country, its price, genre, rating, rating count and live description. Up to five requests.",
|
|
2280
|
+
description: "What an app is: its App Store Connect record (name, bundle ID, primary locale), app info (subtitle, categories, age rating, privacy URL) for one locale, its latest versions, the description, keywords, promotional text and what's new of the live version (or the newest), and, from the public App Store listing of one country, its price, genre, rating, rating count and live description. Up to five requests. A part the key's role cannot read (App Store Connect answers HTTP 403) is left out, and notes says which and what key reads it.",
|
|
2251
2281
|
inputSchema: {
|
|
2252
2282
|
type: "object",
|
|
2253
2283
|
properties: {
|
|
@@ -2311,6 +2341,7 @@ var connector = defineConnector({
|
|
|
2311
2341
|
return applePage(h, api, {
|
|
2312
2342
|
key: "inAppPurchases",
|
|
2313
2343
|
path: `/v1/apps/${args.app_id}/inAppPurchasesV2`,
|
|
2344
|
+
errors: { 403: roleRefusal("the app's in-app purchases") },
|
|
2314
2345
|
query: {
|
|
2315
2346
|
"fields[inAppPurchases]": "name,productId,inAppPurchaseType,state,familySharable",
|
|
2316
2347
|
"filter[inAppPurchaseType]": args.type,
|
package/dist/vendors/beehiiv.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/blogger.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/bluesky.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/brevo.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -222,7 +222,11 @@ function vendorMessage(data) {
|
|
|
222
222
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
223
223
|
}
|
|
224
224
|
if (Array.isArray(record["errors"])) {
|
|
225
|
-
const messages = record["errors"].map((item) =>
|
|
225
|
+
const messages = record["errors"].map((item) => {
|
|
226
|
+
if (typeof item === "string") return item;
|
|
227
|
+
const entry = item;
|
|
228
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
229
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
226
230
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
227
231
|
}
|
|
228
232
|
return void 0;
|
package/dist/vendors/devto.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -425,7 +425,11 @@ function vendorMessage(data) {
|
|
|
425
425
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
426
426
|
}
|
|
427
427
|
if (Array.isArray(record["errors"])) {
|
|
428
|
-
const messages = record["errors"].map((item) =>
|
|
428
|
+
const messages = record["errors"].map((item) => {
|
|
429
|
+
if (typeof item === "string") return item;
|
|
430
|
+
const entry = item;
|
|
431
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
432
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
429
433
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
430
434
|
}
|
|
431
435
|
return void 0;
|
package/dist/vendors/firebase.js
CHANGED
|
@@ -234,7 +234,11 @@ function vendorMessage(data) {
|
|
|
234
234
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
235
235
|
}
|
|
236
236
|
if (Array.isArray(record["errors"])) {
|
|
237
|
-
const messages = record["errors"].map((item) =>
|
|
237
|
+
const messages = record["errors"].map((item) => {
|
|
238
|
+
if (typeof item === "string") return item;
|
|
239
|
+
const entry = item;
|
|
240
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
241
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
238
242
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
239
243
|
}
|
|
240
244
|
return void 0;
|
package/dist/vendors/ga4.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/gmail.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -425,7 +425,11 @@ function vendorMessage(data) {
|
|
|
425
425
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
426
426
|
}
|
|
427
427
|
if (Array.isArray(record["errors"])) {
|
|
428
|
-
const messages = record["errors"].map((item) =>
|
|
428
|
+
const messages = record["errors"].map((item) => {
|
|
429
|
+
if (typeof item === "string") return item;
|
|
430
|
+
const entry = item;
|
|
431
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
432
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
429
433
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
430
434
|
}
|
|
431
435
|
return void 0;
|
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -433,7 +433,11 @@ function vendorMessage(data) {
|
|
|
433
433
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
434
434
|
}
|
|
435
435
|
if (Array.isArray(record["errors"])) {
|
|
436
|
-
const messages = record["errors"].map((item) =>
|
|
436
|
+
const messages = record["errors"].map((item) => {
|
|
437
|
+
if (typeof item === "string") return item;
|
|
438
|
+
const entry = item;
|
|
439
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
440
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
437
441
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
438
442
|
}
|
|
439
443
|
return void 0;
|
|
@@ -433,7 +433,11 @@ function vendorMessage(data) {
|
|
|
433
433
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
434
434
|
}
|
|
435
435
|
if (Array.isArray(record["errors"])) {
|
|
436
|
-
const messages = record["errors"].map((item) =>
|
|
436
|
+
const messages = record["errors"].map((item) => {
|
|
437
|
+
if (typeof item === "string") return item;
|
|
438
|
+
const entry = item;
|
|
439
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
440
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
437
441
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
438
442
|
}
|
|
439
443
|
return void 0;
|
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -433,7 +433,11 @@ function vendorMessage(data) {
|
|
|
433
433
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
434
434
|
}
|
|
435
435
|
if (Array.isArray(record["errors"])) {
|
|
436
|
-
const messages = record["errors"].map((item) =>
|
|
436
|
+
const messages = record["errors"].map((item) => {
|
|
437
|
+
if (typeof item === "string") return item;
|
|
438
|
+
const entry = item;
|
|
439
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
440
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
437
441
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
438
442
|
}
|
|
439
443
|
return void 0;
|
|
@@ -1483,17 +1487,29 @@ var PACKAGE = {
|
|
|
1483
1487
|
var REVIEW_ID = { type: "string", pattern: "^(?!\\.{1,2}$)[A-Za-z0-9:_.\\-]{1,512}$", description: "The review id, e.g. gp:AOqpTOE... from list_reviews." };
|
|
1484
1488
|
var LANGUAGE = { type: "string", pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$", maxLength: 20, description: "A language code as Play uses it, e.g. en-US, tr-TR or es-419." };
|
|
1485
1489
|
var REGION = { type: "string", pattern: "^[A-Z]{2}$", default: "US", description: "The country whose prices to show, e.g. US (default) or TR." };
|
|
1486
|
-
|
|
1490
|
+
var LEGACY_API_REFUSAL = /migrate to the new publishing API/i;
|
|
1491
|
+
async function play(h, request) {
|
|
1487
1492
|
const who = serviceAccountWords(h);
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1493
|
+
try {
|
|
1494
|
+
return await googleApi(h, SCOPES, {
|
|
1495
|
+
...request,
|
|
1496
|
+
errors: {
|
|
1497
|
+
401: `Google Play did not accept ${who}: check that it is invited in Play Console -> Users and permissions`,
|
|
1498
|
+
403: `Google Play refused the request: invite ${who} in Play Console -> Users and permissions with access to this app and the permission the action needs (View app information to read, Reply to reviews to reply, Manage store presence for listings and products), and check that the Google Play Android Developer API is enabled for the key's project`,
|
|
1499
|
+
404: "Google Play found no such app or item: check the package name, and that the app is published on Google Play",
|
|
1500
|
+
...request.errors
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
} catch (error) {
|
|
1504
|
+
if (error instanceof ToolFailure && error.details.status === 403 && LEGACY_API_REFUSAL.test(error.message)) {
|
|
1505
|
+
const products = /\/inappproducts(?:\/|$)/.test(request.path ?? "") ? " The app's one-time products are read with list_in_app_products (catalog one_time_products), which calls .../oneTimeProducts." : "";
|
|
1506
|
+
throw new ToolFailure(
|
|
1507
|
+
`Google Play no longer answers this legacy publishing API call for the app (HTTP 403): it said "Please migrate to the new publishing API."${products}` + (/ Nothing was changed\.$/.test(error.message) ? " Nothing was changed." : ""),
|
|
1508
|
+
error.details
|
|
1509
|
+
);
|
|
1495
1510
|
}
|
|
1496
|
-
|
|
1511
|
+
throw error;
|
|
1512
|
+
}
|
|
1497
1513
|
}
|
|
1498
1514
|
function packageFor(h, given) {
|
|
1499
1515
|
if (given !== void 0) {
|
|
@@ -1535,7 +1551,10 @@ async function storePage(h, packageName, language, region) {
|
|
|
1535
1551
|
html = utf8Decode(bytes);
|
|
1536
1552
|
} catch (error) {
|
|
1537
1553
|
if (error instanceof ToolFailure && /HTTP 404/.test(error.message)) {
|
|
1538
|
-
|
|
1554
|
+
return {
|
|
1555
|
+
available: false,
|
|
1556
|
+
note: `Google Play has no public store page for ${packageName} in the country ${region} (HTTP 404): the app is not published yet, or not offered there.`
|
|
1557
|
+
};
|
|
1539
1558
|
}
|
|
1540
1559
|
throw error;
|
|
1541
1560
|
}
|
|
@@ -1690,7 +1709,7 @@ var connector = defineConnector({
|
|
|
1690
1709
|
name: "get_store_listing",
|
|
1691
1710
|
kind: "read",
|
|
1692
1711
|
title: "Get a Google Play store listing",
|
|
1693
|
-
description: "Returns an app's live store listing as Google Play shows it to people, from its public store page: title, short and full description, category, developer, content rating, star rating, price and icon, in one language (an app without that translation shows its default language). A change made with update_store_listing shows here once Google Play's review has passed. An app that is not published has no store page.",
|
|
1712
|
+
description: "Returns an app's live store listing as Google Play shows it to people, from its public store page: title, short and full description, category, developer, content rating, star rating, price and icon, in one language (an app without that translation shows its default language). A change made with update_store_listing shows here once Google Play's review has passed. An app that is not published, or not offered in that country, has no store page: then available is false.",
|
|
1694
1713
|
inputSchema: {
|
|
1695
1714
|
type: "object",
|
|
1696
1715
|
properties: {
|
|
@@ -1704,6 +1723,7 @@ var connector = defineConnector({
|
|
|
1704
1723
|
const packageName = packageFor(h, args.package_name);
|
|
1705
1724
|
const language = args.language ?? DEFAULT_LANGUAGE;
|
|
1706
1725
|
const details = await storePage(h, packageName, language, args.region);
|
|
1726
|
+
if (details["available"] === false) return { packageName, language, region: args.region, ...details };
|
|
1707
1727
|
return { packageName, language, region: args.region, url: `${STORE_PAGE}?id=${encodeURIComponent(packageName)}`, ...details };
|
|
1708
1728
|
}
|
|
1709
1729
|
},
|
|
@@ -1803,12 +1823,17 @@ var connector = defineConnector({
|
|
|
1803
1823
|
name: "list_in_app_products",
|
|
1804
1824
|
kind: "read",
|
|
1805
1825
|
title: "List Google Play in-app products",
|
|
1806
|
-
description: "Lists an app's one-time in-app products:
|
|
1826
|
+
description: "Lists an app's one-time products (in-app products): product id, name and description, and each purchase option with its state and price in one country. catalog in_app_products reads the legacy in-app products API instead (sku, status, default price), which Google Play no longer answers for an app whose catalog has moved to one-time products. Pass nextCursor back as cursor for more.",
|
|
1807
1827
|
inputSchema: {
|
|
1808
1828
|
type: "object",
|
|
1809
1829
|
properties: {
|
|
1810
1830
|
package_name: PACKAGE,
|
|
1811
|
-
catalog: {
|
|
1831
|
+
catalog: {
|
|
1832
|
+
type: "string",
|
|
1833
|
+
enum: ["one_time_products", "in_app_products"],
|
|
1834
|
+
default: "one_time_products",
|
|
1835
|
+
description: "one_time_products (default) or in_app_products (the legacy API)."
|
|
1836
|
+
},
|
|
1812
1837
|
region: REGION,
|
|
1813
1838
|
cursor: { type: "string", description: "nextCursor from the previous result." }
|
|
1814
1839
|
},
|
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/hashnode.js
CHANGED
|
@@ -222,7 +222,11 @@ function vendorMessage(data) {
|
|
|
222
222
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
223
223
|
}
|
|
224
224
|
if (Array.isArray(record["errors"])) {
|
|
225
|
-
const messages = record["errors"].map((item) =>
|
|
225
|
+
const messages = record["errors"].map((item) => {
|
|
226
|
+
if (typeof item === "string") return item;
|
|
227
|
+
const entry = item;
|
|
228
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
229
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
226
230
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
227
231
|
}
|
|
228
232
|
return void 0;
|
|
@@ -425,7 +425,11 @@ function vendorMessage(data) {
|
|
|
425
425
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
426
426
|
}
|
|
427
427
|
if (Array.isArray(record["errors"])) {
|
|
428
|
-
const messages = record["errors"].map((item) =>
|
|
428
|
+
const messages = record["errors"].map((item) => {
|
|
429
|
+
if (typeof item === "string") return item;
|
|
430
|
+
const entry = item;
|
|
431
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
432
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
429
433
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
430
434
|
}
|
|
431
435
|
return void 0;
|
package/dist/vendors/kaggle.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/keepa.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/linkedin.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/mastodon.js
CHANGED
|
@@ -425,7 +425,11 @@ function vendorMessage(data) {
|
|
|
425
425
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
426
426
|
}
|
|
427
427
|
if (Array.isArray(record["errors"])) {
|
|
428
|
-
const messages = record["errors"].map((item) =>
|
|
428
|
+
const messages = record["errors"].map((item) => {
|
|
429
|
+
if (typeof item === "string") return item;
|
|
430
|
+
const entry = item;
|
|
431
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
432
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
429
433
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
430
434
|
}
|
|
431
435
|
return void 0;
|
package/dist/vendors/meta-ads.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/notion.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/qiita.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/reddit.js
CHANGED
|
@@ -425,7 +425,11 @@ function vendorMessage(data) {
|
|
|
425
425
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
426
426
|
}
|
|
427
427
|
if (Array.isArray(record["errors"])) {
|
|
428
|
-
const messages = record["errors"].map((item) =>
|
|
428
|
+
const messages = record["errors"].map((item) => {
|
|
429
|
+
if (typeof item === "string") return item;
|
|
430
|
+
const entry = item;
|
|
431
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
432
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
429
433
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
430
434
|
}
|
|
431
435
|
return void 0;
|
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/roasit.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/sendgrid.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/serper.js
CHANGED
|
@@ -222,7 +222,11 @@ function vendorMessage(data) {
|
|
|
222
222
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
223
223
|
}
|
|
224
224
|
if (Array.isArray(record2["errors"])) {
|
|
225
|
-
const messages = record2["errors"].map((item) =>
|
|
225
|
+
const messages = record2["errors"].map((item) => {
|
|
226
|
+
if (typeof item === "string") return item;
|
|
227
|
+
const entry = item;
|
|
228
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
229
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
226
230
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
227
231
|
}
|
|
228
232
|
return void 0;
|
package/dist/vendors/shopify.js
CHANGED
|
@@ -226,7 +226,11 @@ function vendorMessage(data) {
|
|
|
226
226
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
227
227
|
}
|
|
228
228
|
if (Array.isArray(record["errors"])) {
|
|
229
|
-
const messages = record["errors"].map((item) =>
|
|
229
|
+
const messages = record["errors"].map((item) => {
|
|
230
|
+
if (typeof item === "string") return item;
|
|
231
|
+
const entry = item;
|
|
232
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
233
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
230
234
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
231
235
|
}
|
|
232
236
|
return void 0;
|
package/dist/vendors/threads.js
CHANGED
|
@@ -425,7 +425,11 @@ function vendorMessage(data) {
|
|
|
425
425
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
426
426
|
}
|
|
427
427
|
if (Array.isArray(record["errors"])) {
|
|
428
|
-
const messages = record["errors"].map((item) =>
|
|
428
|
+
const messages = record["errors"].map((item) => {
|
|
429
|
+
if (typeof item === "string") return item;
|
|
430
|
+
const entry = item;
|
|
431
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
432
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
429
433
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
430
434
|
}
|
|
431
435
|
return void 0;
|
package/dist/vendors/tiktok.js
CHANGED
|
@@ -425,7 +425,11 @@ function vendorMessage(data) {
|
|
|
425
425
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
426
426
|
}
|
|
427
427
|
if (Array.isArray(record["errors"])) {
|
|
428
|
-
const messages = record["errors"].map((item) =>
|
|
428
|
+
const messages = record["errors"].map((item) => {
|
|
429
|
+
if (typeof item === "string") return item;
|
|
430
|
+
const entry = item;
|
|
431
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
432
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
429
433
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
430
434
|
}
|
|
431
435
|
return void 0;
|
package/dist/vendors/tumblr.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/twitter.js
CHANGED
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
|
@@ -421,7 +421,11 @@ function vendorMessage(data) {
|
|
|
421
421
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
422
422
|
}
|
|
423
423
|
if (Array.isArray(record["errors"])) {
|
|
424
|
-
const messages = record["errors"].map((item) =>
|
|
424
|
+
const messages = record["errors"].map((item) => {
|
|
425
|
+
if (typeof item === "string") return item;
|
|
426
|
+
const entry = item;
|
|
427
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
428
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
425
429
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
426
430
|
}
|
|
427
431
|
return void 0;
|
package/dist/vendors/youtube.js
CHANGED
|
@@ -425,7 +425,11 @@ function vendorMessage(data) {
|
|
|
425
425
|
if (typeof nested === "string" && nested.trim()) return cleanVendorText(nested);
|
|
426
426
|
}
|
|
427
427
|
if (Array.isArray(record["errors"])) {
|
|
428
|
-
const messages = record["errors"].map((item) =>
|
|
428
|
+
const messages = record["errors"].map((item) => {
|
|
429
|
+
if (typeof item === "string") return item;
|
|
430
|
+
const entry = item;
|
|
431
|
+
return [entry?.message, entry?.detail, entry?.title].find((value) => typeof value === "string" && value.trim() !== "");
|
|
432
|
+
}).filter((item) => typeof item === "string" && item.trim() !== "");
|
|
429
433
|
if (messages.length) return cleanVendorText(messages.join("; "));
|
|
430
434
|
}
|
|
431
435
|
return void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wiro-ai/wiro-agent-connectors",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"mcpName": "ai.wiro/agent-connectors",
|
|
4
5
|
"description": "Dependency-free MCP connectors for services without an official MCP server. One small module per service, runnable over stdio with npx or loadable into your own MCP host.",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"mcp",
|
|
@@ -8,6 +9,16 @@
|
|
|
8
9
|
"mcp-server",
|
|
9
10
|
"connectors",
|
|
10
11
|
"ai-agents",
|
|
12
|
+
"gmail",
|
|
13
|
+
"google-ads",
|
|
14
|
+
"google-drive",
|
|
15
|
+
"youtube",
|
|
16
|
+
"instagram",
|
|
17
|
+
"linkedin",
|
|
18
|
+
"shopify",
|
|
19
|
+
"notion",
|
|
20
|
+
"wordpress",
|
|
21
|
+
"mailchimp",
|
|
11
22
|
"serper",
|
|
12
23
|
"devto",
|
|
13
24
|
"bluesky"
|