Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions components/airtop/actions/create-window/create-window.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "airtop-create-window",
name: "Create Window",
description: "Create a new browser window in an active session. [See the documentation](https://docs.airtop.ai/api-reference/airtop-api/windows/create)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
app,
Expand Down Expand Up @@ -61,9 +61,7 @@ export default {
},
});

const windowId = response.id;

$.export("$summary", `Successfully created window ${windowId}`);
$.export("$summary", `Successfully created window ${response.windowId}`);
return response;
},
};
Expand Down
10 changes: 4 additions & 6 deletions components/airtop/actions/query-page/query-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "airtop-query-page",
name: "Query Page",
description: "Extract data or ask questions about page content using AI. [See the documentation](https://docs.airtop.ai/api-reference/airtop-api/windows/page-query)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
app,
Expand Down Expand Up @@ -63,11 +63,9 @@ export default {
windowId,
data: {
prompt,
configuration: {
followPaginationLinks,
costThresholdCredits,
timeThresholdSeconds,
},
followPaginationLinks,
costThresholdCredits,
timeThresholdSeconds,
},
Comment on lines 64 to 69
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify the flattened payload structure matches the Airtop API specification.

The fields are now passed at the top level of the data object instead of nested under a configuration object. This appears to be a correction to align with the API spec.


🌐 Web query:

What is the correct request payload structure for the Airtop page query API endpoint? Specifically, should followPaginationLinks, costThresholdCredits, and timeThresholdSeconds be at the top level or nested under a configuration object?

💡 Result:

They belong inside the request's configuration object (i.e., nested under "configuration"), not at the top level. See the page-query and related endpoint docs showing costThresholdCredits, timeThresholdSeconds and followPaginationLinks documented as properties of the configuration object. [1][2]

Sources:
[1] Airtop "Query a page" API docs.
[2] Airtop "Query a page with pagination" / "type" docs.


Nest pagination and threshold fields under configuration
Move followPaginationLinks, costThresholdCredits, and timeThresholdSeconds into data.configuration in components/airtop/actions/query-page/query-page.mjs (lines 64–69) to match the Airtop API spec.

🤖 Prompt for AI Agents
In components/airtop/actions/query-page/query-page.mjs around lines 64 to 69,
the pagination and threshold fields are currently top-level in the request data;
move followPaginationLinks, costThresholdCredits, and timeThresholdSeconds under
a nested data.configuration object to match the Airtop API spec. Update the data
payload so it includes configuration: { followPaginationLinks,
costThresholdCredits, timeThresholdSeconds } while leaving prompt at the
top-level of data; ensure any callers or serialization use the new shape and run
tests or linting to confirm no other references expect the old flat fields.

});

Expand Down
2 changes: 1 addition & 1 deletion components/airtop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/airtop",
"version": "0.1.0",
"version": "0.1.1",
"description": "Pipedream Airtop Components",
"main": "airtop.app.mjs",
"keywords": [
Expand Down
Loading