@keystrokehq/polymarket 0.1.2 → 0.1.3
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/dist/actions/cancel-all-open-orders.cjs +1 -1
- package/dist/actions/cancel-all-open-orders.cjs.map +1 -1
- package/dist/actions/cancel-all-open-orders.d.cts +1 -1
- package/dist/actions/cancel-all-open-orders.d.mts +1 -1
- package/dist/actions/cancel-all-open-orders.mjs +1 -1
- package/dist/actions/cancel-all-open-orders.mjs.map +1 -1
- package/dist/actions/cancel-multiple-orders.cjs +2 -2
- package/dist/actions/cancel-multiple-orders.cjs.map +1 -1
- package/dist/actions/cancel-multiple-orders.d.cts +3 -2
- package/dist/actions/cancel-multiple-orders.d.mts +3 -2
- package/dist/actions/cancel-multiple-orders.mjs +2 -2
- package/dist/actions/cancel-multiple-orders.mjs.map +1 -1
- package/dist/actions/cancel-order.cjs +1 -1
- package/dist/actions/cancel-order.cjs.map +1 -1
- package/dist/actions/cancel-order.d.cts +1 -1
- package/dist/actions/cancel-order.d.mts +1 -1
- package/dist/actions/cancel-order.mjs +1 -1
- package/dist/actions/cancel-order.mjs.map +1 -1
- package/dist/actions/close-position-order.cjs +1 -1
- package/dist/actions/close-position-order.cjs.map +1 -1
- package/dist/actions/close-position-order.d.cts +1 -1
- package/dist/actions/close-position-order.d.mts +1 -1
- package/dist/actions/close-position-order.mjs +1 -1
- package/dist/actions/close-position-order.mjs.map +1 -1
- package/dist/actions/create-multiple-orders.cjs +2 -2
- package/dist/actions/create-multiple-orders.cjs.map +1 -1
- package/dist/actions/create-multiple-orders.d.cts +3 -2
- package/dist/actions/create-multiple-orders.d.mts +3 -2
- package/dist/actions/create-multiple-orders.mjs +2 -2
- package/dist/actions/create-multiple-orders.mjs.map +1 -1
- package/dist/actions/create-order.cjs +1 -1
- package/dist/actions/create-order.cjs.map +1 -1
- package/dist/actions/create-order.d.cts +1 -1
- package/dist/actions/create-order.d.mts +1 -1
- package/dist/actions/create-order.mjs +1 -1
- package/dist/actions/create-order.mjs.map +1 -1
- package/dist/actions/get-account-balances.cjs +3 -3
- package/dist/actions/get-account-balances.cjs.map +1 -1
- package/dist/actions/get-account-balances.d.cts +3 -3
- package/dist/actions/get-account-balances.d.mts +3 -3
- package/dist/actions/get-account-balances.mjs +3 -3
- package/dist/actions/get-account-balances.mjs.map +1 -1
- package/dist/actions/get-activities.cjs +1 -1
- package/dist/actions/get-activities.cjs.map +1 -1
- package/dist/actions/get-activities.d.cts +1 -1
- package/dist/actions/get-activities.d.mts +1 -1
- package/dist/actions/get-activities.mjs +1 -1
- package/dist/actions/get-activities.mjs.map +1 -1
- package/dist/actions/get-event-by-id.cjs +1 -1
- package/dist/actions/get-event-by-id.cjs.map +1 -1
- package/dist/actions/get-event-by-id.d.cts +1 -1
- package/dist/actions/get-event-by-id.d.mts +1 -1
- package/dist/actions/get-event-by-id.mjs +1 -1
- package/dist/actions/get-event-by-id.mjs.map +1 -1
- package/dist/actions/get-event-by-slug.cjs +1 -1
- package/dist/actions/get-event-by-slug.cjs.map +1 -1
- package/dist/actions/get-event-by-slug.d.cts +1 -1
- package/dist/actions/get-event-by-slug.d.mts +1 -1
- package/dist/actions/get-event-by-slug.mjs +1 -1
- package/dist/actions/get-event-by-slug.mjs.map +1 -1
- package/dist/actions/get-league-by-slug.cjs +1 -1
- package/dist/actions/get-league-by-slug.cjs.map +1 -1
- package/dist/actions/get-league-by-slug.d.cts +1 -1
- package/dist/actions/get-league-by-slug.d.mts +1 -1
- package/dist/actions/get-league-by-slug.mjs +1 -1
- package/dist/actions/get-league-by-slug.mjs.map +1 -1
- package/dist/actions/get-market-bbo.cjs +1 -1
- package/dist/actions/get-market-bbo.cjs.map +1 -1
- package/dist/actions/get-market-bbo.d.cts +1 -1
- package/dist/actions/get-market-bbo.d.mts +1 -1
- package/dist/actions/get-market-bbo.mjs +1 -1
- package/dist/actions/get-market-bbo.mjs.map +1 -1
- package/dist/actions/get-market-book.cjs +1 -1
- package/dist/actions/get-market-book.cjs.map +1 -1
- package/dist/actions/get-market-book.d.cts +1 -1
- package/dist/actions/get-market-book.d.mts +1 -1
- package/dist/actions/get-market-book.mjs +1 -1
- package/dist/actions/get-market-book.mjs.map +1 -1
- package/dist/actions/get-market-by-id.cjs +1 -1
- package/dist/actions/get-market-by-id.cjs.map +1 -1
- package/dist/actions/get-market-by-id.d.cts +1 -1
- package/dist/actions/get-market-by-id.d.mts +1 -1
- package/dist/actions/get-market-by-id.mjs +1 -1
- package/dist/actions/get-market-by-id.mjs.map +1 -1
- package/dist/actions/get-market-by-slug.cjs +1 -1
- package/dist/actions/get-market-by-slug.cjs.map +1 -1
- package/dist/actions/get-market-by-slug.d.cts +1 -1
- package/dist/actions/get-market-by-slug.d.mts +1 -1
- package/dist/actions/get-market-by-slug.mjs +1 -1
- package/dist/actions/get-market-by-slug.mjs.map +1 -1
- package/dist/actions/get-market-settlement.cjs +1 -1
- package/dist/actions/get-market-settlement.cjs.map +1 -1
- package/dist/actions/get-market-settlement.d.cts +1 -1
- package/dist/actions/get-market-settlement.d.mts +1 -1
- package/dist/actions/get-market-settlement.mjs +1 -1
- package/dist/actions/get-market-settlement.mjs.map +1 -1
- package/dist/actions/get-markets-for-subject-by-slug.cjs +1 -1
- package/dist/actions/get-markets-for-subject-by-slug.cjs.map +1 -1
- package/dist/actions/get-markets-for-subject-by-slug.d.cts +1 -1
- package/dist/actions/get-markets-for-subject-by-slug.d.mts +1 -1
- package/dist/actions/get-markets-for-subject-by-slug.mjs +1 -1
- package/dist/actions/get-markets-for-subject-by-slug.mjs.map +1 -1
- package/dist/actions/get-markets-for-subject.cjs +1 -1
- package/dist/actions/get-markets-for-subject.cjs.map +1 -1
- package/dist/actions/get-markets-for-subject.d.cts +1 -1
- package/dist/actions/get-markets-for-subject.d.mts +1 -1
- package/dist/actions/get-markets-for-subject.mjs +1 -1
- package/dist/actions/get-markets-for-subject.mjs.map +1 -1
- package/dist/actions/get-open-orders.cjs +1 -1
- package/dist/actions/get-open-orders.cjs.map +1 -1
- package/dist/actions/get-open-orders.d.cts +1 -1
- package/dist/actions/get-open-orders.d.mts +1 -1
- package/dist/actions/get-open-orders.mjs +1 -1
- package/dist/actions/get-open-orders.mjs.map +1 -1
- package/dist/actions/get-order.cjs +1 -1
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +1 -1
- package/dist/actions/get-order.d.mts +1 -1
- package/dist/actions/get-order.mjs +1 -1
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-series-by-id.cjs +1 -1
- package/dist/actions/get-series-by-id.cjs.map +1 -1
- package/dist/actions/get-series-by-id.d.cts +1 -1
- package/dist/actions/get-series-by-id.d.mts +1 -1
- package/dist/actions/get-series-by-id.mjs +1 -1
- package/dist/actions/get-series-by-id.mjs.map +1 -1
- package/dist/actions/get-sport-by-slug.cjs +1 -1
- package/dist/actions/get-sport-by-slug.cjs.map +1 -1
- package/dist/actions/get-sport-by-slug.d.cts +1 -1
- package/dist/actions/get-sport-by-slug.d.mts +1 -1
- package/dist/actions/get-sport-by-slug.mjs +1 -1
- package/dist/actions/get-sport-by-slug.mjs.map +1 -1
- package/dist/actions/get-subject-by-id.cjs +1 -1
- package/dist/actions/get-subject-by-id.cjs.map +1 -1
- package/dist/actions/get-subject-by-id.d.cts +1 -1
- package/dist/actions/get-subject-by-id.d.mts +1 -1
- package/dist/actions/get-subject-by-id.mjs +1 -1
- package/dist/actions/get-subject-by-id.mjs.map +1 -1
- package/dist/actions/get-subject-by-slug.cjs +1 -1
- package/dist/actions/get-subject-by-slug.cjs.map +1 -1
- package/dist/actions/get-subject-by-slug.d.cts +1 -1
- package/dist/actions/get-subject-by-slug.d.mts +1 -1
- package/dist/actions/get-subject-by-slug.mjs +1 -1
- package/dist/actions/get-subject-by-slug.mjs.map +1 -1
- package/dist/actions/get-tag-by-id.cjs +1 -1
- package/dist/actions/get-tag-by-id.cjs.map +1 -1
- package/dist/actions/get-tag-by-id.d.cts +1 -1
- package/dist/actions/get-tag-by-id.d.mts +1 -1
- package/dist/actions/get-tag-by-id.mjs +1 -1
- package/dist/actions/get-tag-by-id.mjs.map +1 -1
- package/dist/actions/get-tag-by-slug.cjs +1 -1
- package/dist/actions/get-tag-by-slug.cjs.map +1 -1
- package/dist/actions/get-tag-by-slug.d.cts +1 -1
- package/dist/actions/get-tag-by-slug.d.mts +1 -1
- package/dist/actions/get-tag-by-slug.mjs +1 -1
- package/dist/actions/get-tag-by-slug.mjs.map +1 -1
- package/dist/actions/get-user-positions.cjs +1 -1
- package/dist/actions/get-user-positions.cjs.map +1 -1
- package/dist/actions/get-user-positions.d.cts +1 -1
- package/dist/actions/get-user-positions.d.mts +1 -1
- package/dist/actions/get-user-positions.mjs +1 -1
- package/dist/actions/get-user-positions.mjs.map +1 -1
- package/dist/actions/list-events-for-league.cjs +1 -1
- package/dist/actions/list-events-for-league.cjs.map +1 -1
- package/dist/actions/list-events-for-league.d.cts +1 -1
- package/dist/actions/list-events-for-league.d.mts +1 -1
- package/dist/actions/list-events-for-league.mjs +1 -1
- package/dist/actions/list-events-for-league.mjs.map +1 -1
- package/dist/actions/list-events-for-series.cjs +1 -1
- package/dist/actions/list-events-for-series.cjs.map +1 -1
- package/dist/actions/list-events-for-series.d.cts +1 -1
- package/dist/actions/list-events-for-series.d.mts +1 -1
- package/dist/actions/list-events-for-series.mjs +1 -1
- package/dist/actions/list-events-for-series.mjs.map +1 -1
- package/dist/actions/list-events-for-sport.cjs +1 -1
- package/dist/actions/list-events-for-sport.cjs.map +1 -1
- package/dist/actions/list-events-for-sport.d.cts +1 -1
- package/dist/actions/list-events-for-sport.d.mts +1 -1
- package/dist/actions/list-events-for-sport.mjs +1 -1
- package/dist/actions/list-events-for-sport.mjs.map +1 -1
- package/dist/actions/list-events.cjs +1 -1
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +1 -1
- package/dist/actions/list-events.d.mts +1 -1
- package/dist/actions/list-events.mjs +1 -1
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-featured-tags.cjs +1 -1
- package/dist/actions/list-featured-tags.cjs.map +1 -1
- package/dist/actions/list-featured-tags.d.cts +1 -1
- package/dist/actions/list-featured-tags.d.mts +1 -1
- package/dist/actions/list-featured-tags.mjs +1 -1
- package/dist/actions/list-featured-tags.mjs.map +1 -1
- package/dist/actions/list-leagues.cjs +1 -1
- package/dist/actions/list-leagues.cjs.map +1 -1
- package/dist/actions/list-leagues.d.cts +1 -1
- package/dist/actions/list-leagues.d.mts +1 -1
- package/dist/actions/list-leagues.mjs +1 -1
- package/dist/actions/list-leagues.mjs.map +1 -1
- package/dist/actions/list-markets.cjs +1 -1
- package/dist/actions/list-markets.cjs.map +1 -1
- package/dist/actions/list-markets.d.cts +1 -1
- package/dist/actions/list-markets.d.mts +1 -1
- package/dist/actions/list-markets.mjs +1 -1
- package/dist/actions/list-markets.mjs.map +1 -1
- package/dist/actions/list-series.cjs +1 -1
- package/dist/actions/list-series.cjs.map +1 -1
- package/dist/actions/list-series.d.cts +1 -1
- package/dist/actions/list-series.d.mts +1 -1
- package/dist/actions/list-series.mjs +1 -1
- package/dist/actions/list-series.mjs.map +1 -1
- package/dist/actions/list-sports-teams-for-provider.cjs +1 -1
- package/dist/actions/list-sports-teams-for-provider.cjs.map +1 -1
- package/dist/actions/list-sports-teams-for-provider.d.cts +1 -1
- package/dist/actions/list-sports-teams-for-provider.d.mts +1 -1
- package/dist/actions/list-sports-teams-for-provider.mjs +1 -1
- package/dist/actions/list-sports-teams-for-provider.mjs.map +1 -1
- package/dist/actions/list-sports-teams.cjs +1 -1
- package/dist/actions/list-sports-teams.cjs.map +1 -1
- package/dist/actions/list-sports-teams.d.cts +1 -1
- package/dist/actions/list-sports-teams.d.mts +1 -1
- package/dist/actions/list-sports-teams.mjs +1 -1
- package/dist/actions/list-sports-teams.mjs.map +1 -1
- package/dist/actions/list-sports.cjs +1 -1
- package/dist/actions/list-sports.cjs.map +1 -1
- package/dist/actions/list-sports.d.cts +1 -1
- package/dist/actions/list-sports.d.mts +1 -1
- package/dist/actions/list-sports.mjs +1 -1
- package/dist/actions/list-sports.mjs.map +1 -1
- package/dist/actions/list-subjects.cjs +1 -1
- package/dist/actions/list-subjects.cjs.map +1 -1
- package/dist/actions/list-subjects.d.cts +1 -1
- package/dist/actions/list-subjects.d.mts +1 -1
- package/dist/actions/list-subjects.mjs +1 -1
- package/dist/actions/list-subjects.mjs.map +1 -1
- package/dist/actions/list-tags.cjs +1 -1
- package/dist/actions/list-tags.cjs.map +1 -1
- package/dist/actions/list-tags.d.cts +1 -1
- package/dist/actions/list-tags.d.mts +1 -1
- package/dist/actions/list-tags.mjs +1 -1
- package/dist/actions/list-tags.mjs.map +1 -1
- package/dist/actions/modify-multiple-orders.cjs +2 -2
- package/dist/actions/modify-multiple-orders.cjs.map +1 -1
- package/dist/actions/modify-multiple-orders.d.cts +3 -2
- package/dist/actions/modify-multiple-orders.d.mts +3 -2
- package/dist/actions/modify-multiple-orders.mjs +2 -2
- package/dist/actions/modify-multiple-orders.mjs.map +1 -1
- package/dist/actions/modify-order.cjs +1 -1
- package/dist/actions/modify-order.cjs.map +1 -1
- package/dist/actions/modify-order.d.cts +1 -1
- package/dist/actions/modify-order.d.mts +1 -1
- package/dist/actions/modify-order.mjs +1 -1
- package/dist/actions/modify-order.mjs.map +1 -1
- package/dist/actions/preview-order.cjs +1 -1
- package/dist/actions/preview-order.cjs.map +1 -1
- package/dist/actions/preview-order.d.cts +1 -1
- package/dist/actions/preview-order.d.mts +1 -1
- package/dist/actions/preview-order.mjs +1 -1
- package/dist/actions/preview-order.mjs.map +1 -1
- package/dist/actions/search-markets-and-events.cjs +1 -1
- package/dist/actions/search-markets-and-events.cjs.map +1 -1
- package/dist/actions/search-markets-and-events.d.cts +1 -1
- package/dist/actions/search-markets-and-events.d.mts +1 -1
- package/dist/actions/search-markets-and-events.mjs +1 -1
- package/dist/actions/search-markets-and-events.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ declare const PolymarketGetMarketByIdInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetMarketByIdOutput: z.ZodObject<{
|
|
8
8
|
market: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetMarketById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const polymarketGetMarketById = action("POLYMARKET_GET_MARKET_BY_ID", {
|
|
|
5
5
|
name: "Get Market By ID",
|
|
6
6
|
description: "Get one Polymarket US market by numeric ID from the public gateway API. Use this after market discovery when the caller already has the integer market ID and needs full market metadata. Do not pass slugs here; use Get Market By Slug for slugs. For current pricing before an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.",
|
|
7
7
|
input: z.object({ id: z.number().int().describe("Numeric Polymarket US market ID from a discovery response. Do not pass a market slug.") }),
|
|
8
|
-
output: z.object({ market: z.record(z.string(), z.unknown()).describe("Market details.") })
|
|
8
|
+
output: z.object({ market: z.record(z.string(), z.unknown()).describe("Market details.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetMarketById };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-market-by-id.mjs","names":[],"sources":["../../src/actions/get-market-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketByIdInput = z.object({\n id: z.number().int().describe(\"Numeric Polymarket US market ID from a discovery response. Do not pass a market slug.\"),\n});\nexport const PolymarketGetMarketByIdOutput = z.object({\n market: z.record(z.string(), z.unknown()).describe(\"Market details.\"),\n});\n\nexport const polymarketGetMarketById = action(\"POLYMARKET_GET_MARKET_BY_ID\", {\n slug: \"polymarket-get-market-by-id\",\n name: \"Get Market By ID\",\n description: \"Get one Polymarket US market by numeric ID from the public gateway API. Use this after market discovery when the caller already has the integer market ID and needs full market metadata. Do not pass slugs here; use Get Market By Slug for slugs. For current pricing before an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.\",\n input: PolymarketGetMarketByIdInput,\n output: PolymarketGetMarketByIdOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,EACvH,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iBAAiB,EACtE,
|
|
1
|
+
{"version":3,"file":"get-market-by-id.mjs","names":[],"sources":["../../src/actions/get-market-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketByIdInput = z.object({\n id: z.number().int().describe(\"Numeric Polymarket US market ID from a discovery response. Do not pass a market slug.\"),\n});\nexport const PolymarketGetMarketByIdOutput = z.object({\n market: z.record(z.string(), z.unknown()).describe(\"Market details.\"),\n}).passthrough();\n\nexport const polymarketGetMarketById = action(\"POLYMARKET_GET_MARKET_BY_ID\", {\n slug: \"polymarket-get-market-by-id\",\n name: \"Get Market By ID\",\n description: \"Get one Polymarket US market by numeric ID from the public gateway API. Use this after market discovery when the caller already has the integer market ID and needs full market metadata. Do not pass slugs here; use Get Market By Slug for slugs. For current pricing before an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.\",\n input: PolymarketGetMarketByIdInput,\n output: PolymarketGetMarketByIdOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,EACvH,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iBAAiB,EACtE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-market-by-slug.ts
|
|
4
4
|
const PolymarketGetMarketBySlugInput = zod.z.object({ slug: zod.z.string().describe("Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.") });
|
|
5
|
-
const PolymarketGetMarketBySlugOutput = zod.z.object({ market: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Market details.") });
|
|
5
|
+
const PolymarketGetMarketBySlugOutput = zod.z.object({ market: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Market details.") }).passthrough();
|
|
6
6
|
const polymarketGetMarketBySlug = require_action.action("POLYMARKET_GET_MARKET_BY_SLUG", {
|
|
7
7
|
slug: "polymarket-get-market-by-slug",
|
|
8
8
|
name: "Get Market By Slug",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-market-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-market-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketBySlugInput = z.object({\n slug: z.string().describe(\"Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.\"),\n});\nexport const PolymarketGetMarketBySlugOutput = z.object({\n market: z.record(z.string(), z.unknown()).describe(\"Market details.\"),\n});\n\nexport const polymarketGetMarketBySlug = action(\"POLYMARKET_GET_MARKET_BY_SLUG\", {\n slug: \"polymarket-get-market-by-slug\",\n name: \"Get Market By Slug\",\n description: \"Get one Polymarket US market by slug from the public gateway API. Use this after search/list discovery or when parsing a Polymarket market URL. Do not pass numeric IDs here; use Get Market By ID for integer IDs. For current pricing before quoting, previewing, or placing an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.\",\n input: PolymarketGetMarketBySlugInput,\n output: PolymarketGetMarketBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACnI,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iBAAiB,EACtE,CAAC;
|
|
1
|
+
{"version":3,"file":"get-market-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-market-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketBySlugInput = z.object({\n slug: z.string().describe(\"Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.\"),\n});\nexport const PolymarketGetMarketBySlugOutput = z.object({\n market: z.record(z.string(), z.unknown()).describe(\"Market details.\"),\n}).passthrough();\n\nexport const polymarketGetMarketBySlug = action(\"POLYMARKET_GET_MARKET_BY_SLUG\", {\n slug: \"polymarket-get-market-by-slug\",\n name: \"Get Market By Slug\",\n description: \"Get one Polymarket US market by slug from the public gateway API. Use this after search/list discovery or when parsing a Polymarket market URL. Do not pass numeric IDs here; use Get Market By ID for integer IDs. For current pricing before quoting, previewing, or placing an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.\",\n input: PolymarketGetMarketBySlugInput,\n output: PolymarketGetMarketBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACnI,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iBAAiB,EACtE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetMarketBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetMarketBySlugOutput: z.ZodObject<{
|
|
8
8
|
market: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetMarketBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetMarketBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetMarketBySlugOutput: z.ZodObject<{
|
|
8
8
|
market: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetMarketBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const polymarketGetMarketBySlug = action("POLYMARKET_GET_MARKET_BY_SLUG", {
|
|
|
5
5
|
name: "Get Market By Slug",
|
|
6
6
|
description: "Get one Polymarket US market by slug from the public gateway API. Use this after search/list discovery or when parsing a Polymarket market URL. Do not pass numeric IDs here; use Get Market By ID for integer IDs. For current pricing before quoting, previewing, or placing an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.",
|
|
7
7
|
input: z.object({ slug: z.string().describe("Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.") }),
|
|
8
|
-
output: z.object({ market: z.record(z.string(), z.unknown()).describe("Market details.") })
|
|
8
|
+
output: z.object({ market: z.record(z.string(), z.unknown()).describe("Market details.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetMarketBySlug };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-market-by-slug.mjs","names":[],"sources":["../../src/actions/get-market-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketBySlugInput = z.object({\n slug: z.string().describe(\"Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.\"),\n});\nexport const PolymarketGetMarketBySlugOutput = z.object({\n market: z.record(z.string(), z.unknown()).describe(\"Market details.\"),\n});\n\nexport const polymarketGetMarketBySlug = action(\"POLYMARKET_GET_MARKET_BY_SLUG\", {\n slug: \"polymarket-get-market-by-slug\",\n name: \"Get Market By Slug\",\n description: \"Get one Polymarket US market by slug from the public gateway API. Use this after search/list discovery or when parsing a Polymarket market URL. Do not pass numeric IDs here; use Get Market By ID for integer IDs. For current pricing before quoting, previewing, or placing an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.\",\n input: PolymarketGetMarketBySlugInput,\n output: PolymarketGetMarketBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACnI,CASS;CACP,QAT6C,EAAE,OAAO,EACtD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iBAAiB,EACtE,
|
|
1
|
+
{"version":3,"file":"get-market-by-slug.mjs","names":[],"sources":["../../src/actions/get-market-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketBySlugInput = z.object({\n slug: z.string().describe(\"Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.\"),\n});\nexport const PolymarketGetMarketBySlugOutput = z.object({\n market: z.record(z.string(), z.unknown()).describe(\"Market details.\"),\n}).passthrough();\n\nexport const polymarketGetMarketBySlug = action(\"POLYMARKET_GET_MARKET_BY_SLUG\", {\n slug: \"polymarket-get-market-by-slug\",\n name: \"Get Market By Slug\",\n description: \"Get one Polymarket US market by slug from the public gateway API. Use this after search/list discovery or when parsing a Polymarket market URL. Do not pass numeric IDs here; use Get Market By ID for integer IDs. For current pricing before quoting, previewing, or placing an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.\",\n input: PolymarketGetMarketBySlugInput,\n output: PolymarketGetMarketBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX4C,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACnI,CASS;CACP,QAT6C,EAAE,OAAO,EACtD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iBAAiB,EACtE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const PolymarketGetMarketSettlementInput = zod.z.object({
|
|
|
5
5
|
slug: zod.z.string().describe("Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID."),
|
|
6
6
|
fromEp3: zod.z.boolean().describe("Whether to request settlement data from EP3. Leave unset unless the caller specifically needs the EP3 settlement source.").optional()
|
|
7
7
|
});
|
|
8
|
-
const PolymarketGetMarketSettlementOutput = zod.z.object({ settlement: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Market settlement details.") });
|
|
8
|
+
const PolymarketGetMarketSettlementOutput = zod.z.object({ settlement: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Market settlement details.") }).passthrough();
|
|
9
9
|
const polymarketGetMarketSettlement = require_action.action("POLYMARKET_GET_MARKET_SETTLEMENT", {
|
|
10
10
|
slug: "polymarket-get-market-settlement",
|
|
11
11
|
name: "Get Market Settlement",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-market-settlement.cjs","names":["z","action"],"sources":["../../src/actions/get-market-settlement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketSettlementInput = z.object({\n slug: z.string().describe(\"Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.\"),\n fromEp3: z.boolean().describe(\"Whether to request settlement data from EP3. Leave unset unless the caller specifically needs the EP3 settlement source.\").optional(),\n});\nexport const PolymarketGetMarketSettlementOutput = z.object({\n settlement: z.record(z.string(), z.unknown()).describe(\"Market settlement details.\"),\n});\n\nexport const polymarketGetMarketSettlement = action(\"POLYMARKET_GET_MARKET_SETTLEMENT\", {\n slug: \"polymarket-get-market-settlement\",\n name: \"Get Market Settlement\",\n description: \"Get settlement information for one Polymarket US market by slug. Use this only for resolved, closed, or historical market workflows where the caller needs public resolution or settlement details. It is not useful for discovering current markets or preparing trades on active markets. This endpoint requires the market slug, not the numeric market ID, and does not require API key authentication.\",\n input: PolymarketGetMarketSettlementInput,\n output: PolymarketGetMarketSettlementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CACjI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;AACrK,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,EACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-market-settlement.cjs","names":["z","action"],"sources":["../../src/actions/get-market-settlement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketSettlementInput = z.object({\n slug: z.string().describe(\"Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.\"),\n fromEp3: z.boolean().describe(\"Whether to request settlement data from EP3. Leave unset unless the caller specifically needs the EP3 settlement source.\").optional(),\n});\nexport const PolymarketGetMarketSettlementOutput = z.object({\n settlement: z.record(z.string(), z.unknown()).describe(\"Market settlement details.\"),\n}).passthrough();\n\nexport const polymarketGetMarketSettlement = action(\"POLYMARKET_GET_MARKET_SETTLEMENT\", {\n slug: \"polymarket-get-market-settlement\",\n name: \"Get Market Settlement\",\n description: \"Get settlement information for one Polymarket US market by slug. Use this only for resolved, closed, or historical market workflows where the caller needs public resolution or settlement details. It is not useful for discovering current markets or preparing trades on active markets. This endpoint requires the market slug, not the numeric market ID, and does not require API key authentication.\",\n input: PolymarketGetMarketSettlementInput,\n output: PolymarketGetMarketSettlementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CACjI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;AACrK,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,EACrF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const PolymarketGetMarketSettlementInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const PolymarketGetMarketSettlementOutput: z.ZodObject<{
|
|
9
9
|
settlement: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const polymarketGetMarketSettlement: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
slug: string;
|
|
13
13
|
fromEp3?: boolean | undefined;
|
|
@@ -7,7 +7,7 @@ declare const PolymarketGetMarketSettlementInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const PolymarketGetMarketSettlementOutput: z.ZodObject<{
|
|
9
9
|
settlement: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const polymarketGetMarketSettlement: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
slug: string;
|
|
13
13
|
fromEp3?: boolean | undefined;
|
|
@@ -8,7 +8,7 @@ const polymarketGetMarketSettlement = action("POLYMARKET_GET_MARKET_SETTLEMENT",
|
|
|
8
8
|
slug: z.string().describe("Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID."),
|
|
9
9
|
fromEp3: z.boolean().describe("Whether to request settlement data from EP3. Leave unset unless the caller specifically needs the EP3 settlement source.").optional()
|
|
10
10
|
}),
|
|
11
|
-
output: z.object({ settlement: z.record(z.string(), z.unknown()).describe("Market settlement details.") })
|
|
11
|
+
output: z.object({ settlement: z.record(z.string(), z.unknown()).describe("Market settlement details.") }).passthrough()
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { polymarketGetMarketSettlement };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-market-settlement.mjs","names":[],"sources":["../../src/actions/get-market-settlement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketSettlementInput = z.object({\n slug: z.string().describe(\"Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.\"),\n fromEp3: z.boolean().describe(\"Whether to request settlement data from EP3. Leave unset unless the caller specifically needs the EP3 settlement source.\").optional(),\n});\nexport const PolymarketGetMarketSettlementOutput = z.object({\n settlement: z.record(z.string(), z.unknown()).describe(\"Market settlement details.\"),\n});\n\nexport const polymarketGetMarketSettlement = action(\"POLYMARKET_GET_MARKET_SETTLEMENT\", {\n slug: \"polymarket-get-market-settlement\",\n name: \"Get Market Settlement\",\n description: \"Get settlement information for one Polymarket US market by slug. Use this only for resolved, closed, or historical market workflows where the caller needs public resolution or settlement details. It is not useful for discovering current markets or preparing trades on active markets. This endpoint requires the market slug, not the numeric market ID, and does not require API key authentication.\",\n input: PolymarketGetMarketSettlementInput,\n output: PolymarketGetMarketSettlementOutput,\n});\n"],"mappings":";;AAYA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;EACjI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACrK,CASS;CACP,QATiD,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,EACrF,
|
|
1
|
+
{"version":3,"file":"get-market-settlement.mjs","names":[],"sources":["../../src/actions/get-market-settlement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketSettlementInput = z.object({\n slug: z.string().describe(\"Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID.\"),\n fromEp3: z.boolean().describe(\"Whether to request settlement data from EP3. Leave unset unless the caller specifically needs the EP3 settlement source.\").optional(),\n});\nexport const PolymarketGetMarketSettlementOutput = z.object({\n settlement: z.record(z.string(), z.unknown()).describe(\"Market settlement details.\"),\n}).passthrough();\n\nexport const polymarketGetMarketSettlement = action(\"POLYMARKET_GET_MARKET_SETTLEMENT\", {\n slug: \"polymarket-get-market-settlement\",\n name: \"Get Market Settlement\",\n description: \"Get settlement information for one Polymarket US market by slug. Use this only for resolved, closed, or historical market workflows where the caller needs public resolution or settlement details. It is not useful for discovering current markets or preparing trades on active markets. This endpoint requires the market slug, not the numeric market ID, and does not require API key authentication.\",\n input: PolymarketGetMarketSettlementInput,\n output: PolymarketGetMarketSettlementOutput,\n});\n"],"mappings":";;AAYA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;EACjI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACrK,CASS;CACP,QATiD,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,EACrF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-markets-for-subject-by-slug.ts
|
|
4
4
|
const PolymarketGetMarketsForSubjectBySlugInput = zod.z.object({ slug: zod.z.string().describe("URL-safe subject slug for the team, person, candidate, player, nominee, or entity whose markets should be discovered.") });
|
|
5
|
-
const PolymarketGetMarketsForSubjectBySlugOutput = zod.z.object({ markets: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.") });
|
|
5
|
+
const PolymarketGetMarketsForSubjectBySlugOutput = zod.z.object({ markets: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.") }).passthrough();
|
|
6
6
|
const polymarketGetMarketsForSubjectBySlug = require_action.action("POLYMARKET_GET_MARKETS_FOR_SUBJECT_BY_SLUG", {
|
|
7
7
|
slug: "polymarket-get-markets-for-subject-by-slug",
|
|
8
8
|
name: "Get Markets For Subject By Slug",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-markets-for-subject-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-markets-for-subject-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketsForSubjectBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe subject slug for the team, person, candidate, player, nominee, or entity whose markets should be discovered.\"),\n});\nexport const PolymarketGetMarketsForSubjectBySlugOutput = z.object({\n markets: z.record(z.string(), z.unknown()).describe(\"Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.\"),\n});\n\nexport const polymarketGetMarketsForSubjectBySlug = action(\"POLYMARKET_GET_MARKETS_FOR_SUBJECT_BY_SLUG\", {\n slug: \"polymarket-get-markets-for-subject-by-slug\",\n name: \"Get Markets For Subject By Slug\",\n description: \"Discover Polymarket US markets associated with a subject slug. Use this action after List Subjects, Get Subject By Slug, or a Polymarket URL identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.\",\n input: PolymarketGetMarketsForSubjectBySlugInput,\n output: PolymarketGetMarketsForSubjectBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACnJ,CAAC;AACD,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAC9L,CAAC;
|
|
1
|
+
{"version":3,"file":"get-markets-for-subject-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-markets-for-subject-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketsForSubjectBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe subject slug for the team, person, candidate, player, nominee, or entity whose markets should be discovered.\"),\n});\nexport const PolymarketGetMarketsForSubjectBySlugOutput = z.object({\n markets: z.record(z.string(), z.unknown()).describe(\"Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.\"),\n}).passthrough();\n\nexport const polymarketGetMarketsForSubjectBySlug = action(\"POLYMARKET_GET_MARKETS_FOR_SUBJECT_BY_SLUG\", {\n slug: \"polymarket-get-markets-for-subject-by-slug\",\n name: \"Get Markets For Subject By Slug\",\n description: \"Discover Polymarket US markets associated with a subject slug. Use this action after List Subjects, Get Subject By Slug, or a Polymarket URL identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.\",\n input: PolymarketGetMarketsForSubjectBySlugInput,\n output: PolymarketGetMarketsForSubjectBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACnJ,CAAC;AACD,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAC9L,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uCAAuCC,eAAAA,OAAO,8CAA8C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetMarketsForSubjectBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetMarketsForSubjectBySlugOutput: z.ZodObject<{
|
|
8
8
|
markets: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetMarketsForSubjectBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetMarketsForSubjectBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetMarketsForSubjectBySlugOutput: z.ZodObject<{
|
|
8
8
|
markets: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetMarketsForSubjectBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const polymarketGetMarketsForSubjectBySlug = action("POLYMARKET_GET_MARKETS_FOR_
|
|
|
5
5
|
name: "Get Markets For Subject By Slug",
|
|
6
6
|
description: "Discover Polymarket US markets associated with a subject slug. Use this action after List Subjects, Get Subject By Slug, or a Polymarket URL identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.",
|
|
7
7
|
input: z.object({ slug: z.string().describe("URL-safe subject slug for the team, person, candidate, player, nominee, or entity whose markets should be discovered.") }),
|
|
8
|
-
output: z.object({ markets: z.record(z.string(), z.unknown()).describe("Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.") })
|
|
8
|
+
output: z.object({ markets: z.record(z.string(), z.unknown()).describe("Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetMarketsForSubjectBySlug };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-markets-for-subject-by-slug.mjs","names":[],"sources":["../../src/actions/get-markets-for-subject-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketsForSubjectBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe subject slug for the team, person, candidate, player, nominee, or entity whose markets should be discovered.\"),\n});\nexport const PolymarketGetMarketsForSubjectBySlugOutput = z.object({\n markets: z.record(z.string(), z.unknown()).describe(\"Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.\"),\n});\n\nexport const polymarketGetMarketsForSubjectBySlug = action(\"POLYMARKET_GET_MARKETS_FOR_SUBJECT_BY_SLUG\", {\n slug: \"polymarket-get-markets-for-subject-by-slug\",\n name: \"Get Markets For Subject By Slug\",\n description: \"Discover Polymarket US markets associated with a subject slug. Use this action after List Subjects, Get Subject By Slug, or a Polymarket URL identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.\",\n input: PolymarketGetMarketsForSubjectBySlugInput,\n output: PolymarketGetMarketsForSubjectBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,uCAAuC,OAAO,8CAA8C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuD,EAAE,OAAO,EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACnJ,CASS;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAC9L,
|
|
1
|
+
{"version":3,"file":"get-markets-for-subject-by-slug.mjs","names":[],"sources":["../../src/actions/get-markets-for-subject-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketsForSubjectBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe subject slug for the team, person, candidate, player, nominee, or entity whose markets should be discovered.\"),\n});\nexport const PolymarketGetMarketsForSubjectBySlugOutput = z.object({\n markets: z.record(z.string(), z.unknown()).describe(\"Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.\"),\n}).passthrough();\n\nexport const polymarketGetMarketsForSubjectBySlug = action(\"POLYMARKET_GET_MARKETS_FOR_SUBJECT_BY_SLUG\", {\n slug: \"polymarket-get-markets-for-subject-by-slug\",\n name: \"Get Markets For Subject By Slug\",\n description: \"Discover Polymarket US markets associated with a subject slug. Use this action after List Subjects, Get Subject By Slug, or a Polymarket URL identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.\",\n input: PolymarketGetMarketsForSubjectBySlugInput,\n output: PolymarketGetMarketsForSubjectBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,uCAAuC,OAAO,8CAA8C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuD,EAAE,OAAO,EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH,EACnJ,CASS;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAC9L,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-markets-for-subject.ts
|
|
4
4
|
const PolymarketGetMarketsForSubjectInput = zod.z.object({ id: zod.z.number().int().describe("Numeric subject ID for the team, person, candidate, player, nominee, or entity whose markets should be discovered.") });
|
|
5
|
-
const PolymarketGetMarketsForSubjectOutput = zod.z.object({ markets: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.") });
|
|
5
|
+
const PolymarketGetMarketsForSubjectOutput = zod.z.object({ markets: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.") }).passthrough();
|
|
6
6
|
const polymarketGetMarketsForSubject = require_action.action("POLYMARKET_GET_MARKETS_FOR_SUBJECT", {
|
|
7
7
|
slug: "polymarket-get-markets-for-subject",
|
|
8
8
|
name: "Get Markets For Subject",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-markets-for-subject.cjs","names":["z","action"],"sources":["../../src/actions/get-markets-for-subject.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketsForSubjectInput = z.object({\n id: z.number().int().describe(\"Numeric subject ID for the team, person, candidate, player, nominee, or entity whose markets should be discovered.\"),\n});\nexport const PolymarketGetMarketsForSubjectOutput = z.object({\n markets: z.record(z.string(), z.unknown()).describe(\"Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.\"),\n});\n\nexport const polymarketGetMarketsForSubject = action(\"POLYMARKET_GET_MARKETS_FOR_SUBJECT\", {\n slug: \"polymarket-get-markets-for-subject\",\n name: \"Get Markets For Subject\",\n description: \"Discover Polymarket US markets associated with a subject ID. Use this action after List Subjects or Get Subject By ID identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.\",\n input: PolymarketGetMarketsForSubjectInput,\n output: PolymarketGetMarketsForSubjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,EACpJ,CAAC;AACD,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAC9L,CAAC;
|
|
1
|
+
{"version":3,"file":"get-markets-for-subject.cjs","names":["z","action"],"sources":["../../src/actions/get-markets-for-subject.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketsForSubjectInput = z.object({\n id: z.number().int().describe(\"Numeric subject ID for the team, person, candidate, player, nominee, or entity whose markets should be discovered.\"),\n});\nexport const PolymarketGetMarketsForSubjectOutput = z.object({\n markets: z.record(z.string(), z.unknown()).describe(\"Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.\"),\n}).passthrough();\n\nexport const polymarketGetMarketsForSubject = action(\"POLYMARKET_GET_MARKETS_FOR_SUBJECT\", {\n slug: \"polymarket-get-markets-for-subject\",\n name: \"Get Markets For Subject\",\n description: \"Discover Polymarket US markets associated with a subject ID. Use this action after List Subjects or Get Subject By ID identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.\",\n input: PolymarketGetMarketsForSubjectInput,\n output: PolymarketGetMarketsForSubjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,EACpJ,CAAC;AACD,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAC9L,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetMarketsForSubjectInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetMarketsForSubjectOutput: z.ZodObject<{
|
|
8
8
|
markets: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetMarketsForSubject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetMarketsForSubjectInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetMarketsForSubjectOutput: z.ZodObject<{
|
|
8
8
|
markets: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetMarketsForSubject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const polymarketGetMarketsForSubject = action("POLYMARKET_GET_MARKETS_FOR_SUBJEC
|
|
|
5
5
|
name: "Get Markets For Subject",
|
|
6
6
|
description: "Discover Polymarket US markets associated with a subject ID. Use this action after List Subjects or Get Subject By ID identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.",
|
|
7
7
|
input: z.object({ id: z.number().int().describe("Numeric subject ID for the team, person, candidate, player, nominee, or entity whose markets should be discovered.") }),
|
|
8
|
-
output: z.object({ markets: z.record(z.string(), z.unknown()).describe("Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.") })
|
|
8
|
+
output: z.object({ markets: z.record(z.string(), z.unknown()).describe("Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetMarketsForSubject };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-markets-for-subject.mjs","names":[],"sources":["../../src/actions/get-markets-for-subject.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketsForSubjectInput = z.object({\n id: z.number().int().describe(\"Numeric subject ID for the team, person, candidate, player, nominee, or entity whose markets should be discovered.\"),\n});\nexport const PolymarketGetMarketsForSubjectOutput = z.object({\n markets: z.record(z.string(), z.unknown()).describe(\"Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.\"),\n});\n\nexport const polymarketGetMarketsForSubject = action(\"POLYMARKET_GET_MARKETS_FOR_SUBJECT\", {\n slug: \"polymarket-get-markets-for-subject\",\n name: \"Get Markets For Subject\",\n description: \"Discover Polymarket US markets associated with a subject ID. Use this action after List Subjects or Get Subject By ID identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.\",\n input: PolymarketGetMarketsForSubjectInput,\n output: PolymarketGetMarketsForSubjectOutput,\n});\n"],"mappings":";;AAWA,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXiD,EAAE,OAAO,EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,EACpJ,CASS;CACP,QATkD,EAAE,OAAO,EAC3D,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAC9L,
|
|
1
|
+
{"version":3,"file":"get-markets-for-subject.mjs","names":[],"sources":["../../src/actions/get-markets-for-subject.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetMarketsForSubjectInput = z.object({\n id: z.number().int().describe(\"Numeric subject ID for the team, person, candidate, player, nominee, or entity whose markets should be discovered.\"),\n});\nexport const PolymarketGetMarketsForSubjectOutput = z.object({\n markets: z.record(z.string(), z.unknown()).describe(\"Markets associated with the subject, including market questions, slugs, status fields, prices, sides, tags, and embedded subject data.\"),\n}).passthrough();\n\nexport const polymarketGetMarketsForSubject = action(\"POLYMARKET_GET_MARKETS_FOR_SUBJECT\", {\n slug: \"polymarket-get-markets-for-subject\",\n name: \"Get Markets For Subject\",\n description: \"Discover Polymarket US markets associated with a subject ID. Use this action after List Subjects or Get Subject By ID identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.\",\n input: PolymarketGetMarketsForSubjectInput,\n output: PolymarketGetMarketsForSubjectOutput,\n});\n"],"mappings":";;AAWA,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXiD,EAAE,OAAO,EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,EACpJ,CASS;CACP,QATkD,EAAE,OAAO,EAC3D,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAC9L,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-open-orders.ts
|
|
4
4
|
const PolymarketGetOpenOrdersInput = zod.z.object({ slugs: zod.z.array(zod.z.string()).describe("Optional market slugs to filter this authenticated account's open orders. Pass multiple slugs to restrict results to those markets; omit to return open orders across all markets.").optional() });
|
|
5
|
-
const PolymarketGetOpenOrdersOutput = zod.z.object({ orders: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Open orders for the authenticated Polymarket US account.").nullable().optional() });
|
|
5
|
+
const PolymarketGetOpenOrdersOutput = zod.z.object({ orders: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Open orders for the authenticated Polymarket US account.").nullable().optional() }).passthrough();
|
|
6
6
|
const polymarketGetOpenOrders = require_action.action("POLYMARKET_GET_OPEN_ORDERS", {
|
|
7
7
|
slug: "polymarket-get-open-orders",
|
|
8
8
|
name: "Get Open Orders",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-open-orders.cjs","names":["z","action"],"sources":["../../src/actions/get-open-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetOpenOrdersInput = z.object({\n slugs: z.array(z.string()).describe(\"Optional market slugs to filter this authenticated account's open orders. Pass multiple slugs to restrict results to those markets; omit to return open orders across all markets.\").optional(),\n});\nexport const PolymarketGetOpenOrdersOutput = z.object({\n orders: z.array(z.record(z.string(), z.unknown())).describe(\"Open orders for the authenticated Polymarket US account.\").nullable().optional(),\n});\n\nexport const polymarketGetOpenOrders = action(\"POLYMARKET_GET_OPEN_ORDERS\", {\n slug: \"polymarket-get-open-orders\",\n name: \"Get Open Orders\",\n description: \"Get all open orders for the authenticated Polymarket US user. Use this read-only action before modifying or canceling orders, or to inspect live order exposure. Requires signed authentication, supports optional market slug filters, and does not place, modify, or cancel orders.\",\n input: PolymarketGetOpenOrdersInput,\n output: PolymarketGetOpenOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS,EACrO,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC;
|
|
1
|
+
{"version":3,"file":"get-open-orders.cjs","names":["z","action"],"sources":["../../src/actions/get-open-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetOpenOrdersInput = z.object({\n slugs: z.array(z.string()).describe(\"Optional market slugs to filter this authenticated account's open orders. Pass multiple slugs to restrict results to those markets; omit to return open orders across all markets.\").optional(),\n});\nexport const PolymarketGetOpenOrdersOutput = z.object({\n orders: z.array(z.record(z.string(), z.unknown())).describe(\"Open orders for the authenticated Polymarket US account.\").nullable().optional(),\n}).passthrough();\n\nexport const polymarketGetOpenOrders = action(\"POLYMARKET_GET_OPEN_ORDERS\", {\n slug: \"polymarket-get-open-orders\",\n name: \"Get Open Orders\",\n description: \"Get all open orders for the authenticated Polymarket US user. Use this read-only action before modifying or canceling orders, or to inspect live order exposure. Requires signed authentication, supports optional market slug filters, and does not place, modify, or cancel orders.\",\n input: PolymarketGetOpenOrdersInput,\n output: PolymarketGetOpenOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS,EACrO,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetOpenOrdersInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetOpenOrdersOutput: z.ZodObject<{
|
|
8
8
|
orders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetOpenOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slugs?: string[] | undefined;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetOpenOrdersInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetOpenOrdersOutput: z.ZodObject<{
|
|
8
8
|
orders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetOpenOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slugs?: string[] | undefined;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const polymarketGetOpenOrders = action("POLYMARKET_GET_OPEN_ORDERS", {
|
|
|
5
5
|
name: "Get Open Orders",
|
|
6
6
|
description: "Get all open orders for the authenticated Polymarket US user. Use this read-only action before modifying or canceling orders, or to inspect live order exposure. Requires signed authentication, supports optional market slug filters, and does not place, modify, or cancel orders.",
|
|
7
7
|
input: z.object({ slugs: z.array(z.string()).describe("Optional market slugs to filter this authenticated account's open orders. Pass multiple slugs to restrict results to those markets; omit to return open orders across all markets.").optional() }),
|
|
8
|
-
output: z.object({ orders: z.array(z.record(z.string(), z.unknown())).describe("Open orders for the authenticated Polymarket US account.").nullable().optional() })
|
|
8
|
+
output: z.object({ orders: z.array(z.record(z.string(), z.unknown())).describe("Open orders for the authenticated Polymarket US account.").nullable().optional() }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetOpenOrders };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-open-orders.mjs","names":[],"sources":["../../src/actions/get-open-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetOpenOrdersInput = z.object({\n slugs: z.array(z.string()).describe(\"Optional market slugs to filter this authenticated account's open orders. Pass multiple slugs to restrict results to those markets; omit to return open orders across all markets.\").optional(),\n});\nexport const PolymarketGetOpenOrdersOutput = z.object({\n orders: z.array(z.record(z.string(), z.unknown())).describe(\"Open orders for the authenticated Polymarket US account.\").nullable().optional(),\n});\n\nexport const polymarketGetOpenOrders = action(\"POLYMARKET_GET_OPEN_ORDERS\", {\n slug: \"polymarket-get-open-orders\",\n name: \"Get Open Orders\",\n description: \"Get all open orders for the authenticated Polymarket US user. Use this read-only action before modifying or canceling orders, or to inspect live order exposure. Requires signed authentication, supports optional market slug filters, and does not place, modify, or cancel orders.\",\n input: PolymarketGetOpenOrdersInput,\n output: PolymarketGetOpenOrdersOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS,EACrO,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,
|
|
1
|
+
{"version":3,"file":"get-open-orders.mjs","names":[],"sources":["../../src/actions/get-open-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetOpenOrdersInput = z.object({\n slugs: z.array(z.string()).describe(\"Optional market slugs to filter this authenticated account's open orders. Pass multiple slugs to restrict results to those markets; omit to return open orders across all markets.\").optional(),\n});\nexport const PolymarketGetOpenOrdersOutput = z.object({\n orders: z.array(z.record(z.string(), z.unknown())).describe(\"Open orders for the authenticated Polymarket US account.\").nullable().optional(),\n}).passthrough();\n\nexport const polymarketGetOpenOrders = action(\"POLYMARKET_GET_OPEN_ORDERS\", {\n slug: \"polymarket-get-open-orders\",\n name: \"Get Open Orders\",\n description: \"Get all open orders for the authenticated Polymarket US user. Use this read-only action before modifying or canceling orders, or to inspect live order exposure. Requires signed authentication, supports optional market slug filters, and does not place, modify, or cancel orders.\",\n input: PolymarketGetOpenOrdersInput,\n output: PolymarketGetOpenOrdersOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS,EACrO,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-order.ts
|
|
4
4
|
const PolymarketGetOrderInput = zod.z.object({ orderId: zod.z.string().describe("Exchange-assigned order ID for an order owned by the authenticated account.") });
|
|
5
|
-
const PolymarketGetOrderOutput = zod.z.object({ order: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Order details visible to the authenticated Polymarket US account.") });
|
|
5
|
+
const PolymarketGetOrderOutput = zod.z.object({ order: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Order details visible to the authenticated Polymarket US account.") }).passthrough();
|
|
6
6
|
const polymarketGetOrder = require_action.action("POLYMARKET_GET_ORDER", {
|
|
7
7
|
slug: "polymarket-get-order",
|
|
8
8
|
name: "Get Order",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-order.cjs","names":["z","action"],"sources":["../../src/actions/get-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetOrderInput = z.object({\n orderId: z.string().describe(\"Exchange-assigned order ID for an order owned by the authenticated account.\"),\n});\nexport const PolymarketGetOrderOutput = z.object({\n order: z.record(z.string(), z.unknown()).describe(\"Order details visible to the authenticated Polymarket US account.\"),\n});\n\nexport const polymarketGetOrder = action(\"POLYMARKET_GET_ORDER\", {\n slug: \"polymarket-get-order\",\n name: \"Get Order\",\n description: \"Get an authenticated user's Polymarket US order by exchange-assigned order ID. Requires signed authentication and returns order details available to that account. Use this read-only action to inspect order state after creating, modifying, or canceling an order.\",\n input: PolymarketGetOrderInput,\n output: PolymarketGetOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,EAC5G,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACvH,CAAC;
|
|
1
|
+
{"version":3,"file":"get-order.cjs","names":["z","action"],"sources":["../../src/actions/get-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetOrderInput = z.object({\n orderId: z.string().describe(\"Exchange-assigned order ID for an order owned by the authenticated account.\"),\n});\nexport const PolymarketGetOrderOutput = z.object({\n order: z.record(z.string(), z.unknown()).describe(\"Order details visible to the authenticated Polymarket US account.\"),\n}).passthrough();\n\nexport const polymarketGetOrder = action(\"POLYMARKET_GET_ORDER\", {\n slug: \"polymarket-get-order\",\n name: \"Get Order\",\n description: \"Get an authenticated user's Polymarket US order by exchange-assigned order ID. Requires signed authentication and returns order details available to that account. Use this read-only action to inspect order state after creating, modifying, or canceling an order.\",\n input: PolymarketGetOrderInput,\n output: PolymarketGetOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,EAC5G,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACvH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetOrderInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetOrderOutput: z.ZodObject<{
|
|
8
8
|
order: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
orderId: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetOrderInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetOrderOutput: z.ZodObject<{
|
|
8
8
|
order: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
orderId: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const polymarketGetOrder = action("POLYMARKET_GET_ORDER", {
|
|
|
5
5
|
name: "Get Order",
|
|
6
6
|
description: "Get an authenticated user's Polymarket US order by exchange-assigned order ID. Requires signed authentication and returns order details available to that account. Use this read-only action to inspect order state after creating, modifying, or canceling an order.",
|
|
7
7
|
input: z.object({ orderId: z.string().describe("Exchange-assigned order ID for an order owned by the authenticated account.") }),
|
|
8
|
-
output: z.object({ order: z.record(z.string(), z.unknown()).describe("Order details visible to the authenticated Polymarket US account.") })
|
|
8
|
+
output: z.object({ order: z.record(z.string(), z.unknown()).describe("Order details visible to the authenticated Polymarket US account.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetOrder };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-order.mjs","names":[],"sources":["../../src/actions/get-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetOrderInput = z.object({\n orderId: z.string().describe(\"Exchange-assigned order ID for an order owned by the authenticated account.\"),\n});\nexport const PolymarketGetOrderOutput = z.object({\n order: z.record(z.string(), z.unknown()).describe(\"Order details visible to the authenticated Polymarket US account.\"),\n});\n\nexport const polymarketGetOrder = action(\"POLYMARKET_GET_ORDER\", {\n slug: \"polymarket-get-order\",\n name: \"Get Order\",\n description: \"Get an authenticated user's Polymarket US order by exchange-assigned order ID. Requires signed authentication and returns order details available to that account. Use this read-only action to inspect order state after creating, modifying, or canceling an order.\",\n input: PolymarketGetOrderInput,\n output: PolymarketGetOrderOutput,\n});\n"],"mappings":";;AAWA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXqC,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,EAC5G,CASS;CACP,QATsC,EAAE,OAAO,EAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACvH,
|
|
1
|
+
{"version":3,"file":"get-order.mjs","names":[],"sources":["../../src/actions/get-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetOrderInput = z.object({\n orderId: z.string().describe(\"Exchange-assigned order ID for an order owned by the authenticated account.\"),\n});\nexport const PolymarketGetOrderOutput = z.object({\n order: z.record(z.string(), z.unknown()).describe(\"Order details visible to the authenticated Polymarket US account.\"),\n}).passthrough();\n\nexport const polymarketGetOrder = action(\"POLYMARKET_GET_ORDER\", {\n slug: \"polymarket-get-order\",\n name: \"Get Order\",\n description: \"Get an authenticated user's Polymarket US order by exchange-assigned order ID. Requires signed authentication and returns order details available to that account. Use this read-only action to inspect order state after creating, modifying, or canceling an order.\",\n input: PolymarketGetOrderInput,\n output: PolymarketGetOrderOutput,\n});\n"],"mappings":";;AAWA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXqC,EAAE,OAAO,EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,EAC5G,CASS;CACP,QATsC,EAAE,OAAO,EAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,EACvH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-series-by-id.ts
|
|
4
4
|
const PolymarketGetSeriesByIdInput = zod.z.object({ id: zod.z.number().int().describe("Numeric series ID returned by List Series or related event data.") });
|
|
5
|
-
const PolymarketGetSeriesByIdOutput = zod.z.object({ series: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Series metadata for a recurring or grouped event collection, including slug, active status, recurrence, and related metadata when returned.") });
|
|
5
|
+
const PolymarketGetSeriesByIdOutput = zod.z.object({ series: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Series metadata for a recurring or grouped event collection, including slug, active status, recurrence, and related metadata when returned.") }).passthrough();
|
|
6
6
|
const polymarketGetSeriesById = require_action.action("POLYMARKET_GET_SERIES_BY_ID", {
|
|
7
7
|
slug: "polymarket-get-series-by-id",
|
|
8
8
|
name: "Get Series By ID",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-series-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-series-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSeriesByIdInput = z.object({\n id: z.number().int().describe(\"Numeric series ID returned by List Series or related event data.\"),\n});\nexport const PolymarketGetSeriesByIdOutput = z.object({\n series: z.record(z.string(), z.unknown()).describe(\"Series metadata for a recurring or grouped event collection, including slug, active status, recurrence, and related metadata when returned.\"),\n});\n\nexport const polymarketGetSeriesById = action(\"POLYMARKET_GET_SERIES_BY_ID\", {\n slug: \"polymarket-get-series-by-id\",\n name: \"Get Series By ID\",\n description: \"Get a Polymarket US series by numeric ID. Series are recurring or grouped event collections. Use this action when an agent has a series ID and needs the slug, active status, recurrence, or other public metadata before fetching related events or markets. This action does not require API key authentication.\",\n input: PolymarketGetSeriesByIdInput,\n output: PolymarketGetSeriesByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,EAClG,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6IAA6I,EAClM,CAAC;
|
|
1
|
+
{"version":3,"file":"get-series-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-series-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSeriesByIdInput = z.object({\n id: z.number().int().describe(\"Numeric series ID returned by List Series or related event data.\"),\n});\nexport const PolymarketGetSeriesByIdOutput = z.object({\n series: z.record(z.string(), z.unknown()).describe(\"Series metadata for a recurring or grouped event collection, including slug, active status, recurrence, and related metadata when returned.\"),\n}).passthrough();\n\nexport const polymarketGetSeriesById = action(\"POLYMARKET_GET_SERIES_BY_ID\", {\n slug: \"polymarket-get-series-by-id\",\n name: \"Get Series By ID\",\n description: \"Get a Polymarket US series by numeric ID. Series are recurring or grouped event collections. Use this action when an agent has a series ID and needs the slug, active status, recurrence, or other public metadata before fetching related events or markets. This action does not require API key authentication.\",\n input: PolymarketGetSeriesByIdInput,\n output: PolymarketGetSeriesByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,EAClG,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6IAA6I,EAClM,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetSeriesByIdInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetSeriesByIdOutput: z.ZodObject<{
|
|
8
8
|
series: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetSeriesById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetSeriesByIdInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetSeriesByIdOutput: z.ZodObject<{
|
|
8
8
|
series: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetSeriesById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const polymarketGetSeriesById = action("POLYMARKET_GET_SERIES_BY_ID", {
|
|
|
5
5
|
name: "Get Series By ID",
|
|
6
6
|
description: "Get a Polymarket US series by numeric ID. Series are recurring or grouped event collections. Use this action when an agent has a series ID and needs the slug, active status, recurrence, or other public metadata before fetching related events or markets. This action does not require API key authentication.",
|
|
7
7
|
input: z.object({ id: z.number().int().describe("Numeric series ID returned by List Series or related event data.") }),
|
|
8
|
-
output: z.object({ series: z.record(z.string(), z.unknown()).describe("Series metadata for a recurring or grouped event collection, including slug, active status, recurrence, and related metadata when returned.") })
|
|
8
|
+
output: z.object({ series: z.record(z.string(), z.unknown()).describe("Series metadata for a recurring or grouped event collection, including slug, active status, recurrence, and related metadata when returned.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetSeriesById };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-series-by-id.mjs","names":[],"sources":["../../src/actions/get-series-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSeriesByIdInput = z.object({\n id: z.number().int().describe(\"Numeric series ID returned by List Series or related event data.\"),\n});\nexport const PolymarketGetSeriesByIdOutput = z.object({\n series: z.record(z.string(), z.unknown()).describe(\"Series metadata for a recurring or grouped event collection, including slug, active status, recurrence, and related metadata when returned.\"),\n});\n\nexport const polymarketGetSeriesById = action(\"POLYMARKET_GET_SERIES_BY_ID\", {\n slug: \"polymarket-get-series-by-id\",\n name: \"Get Series By ID\",\n description: \"Get a Polymarket US series by numeric ID. Series are recurring or grouped event collections. Use this action when an agent has a series ID and needs the slug, active status, recurrence, or other public metadata before fetching related events or markets. This action does not require API key authentication.\",\n input: PolymarketGetSeriesByIdInput,\n output: PolymarketGetSeriesByIdOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,EAClG,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6IAA6I,EAClM,
|
|
1
|
+
{"version":3,"file":"get-series-by-id.mjs","names":[],"sources":["../../src/actions/get-series-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSeriesByIdInput = z.object({\n id: z.number().int().describe(\"Numeric series ID returned by List Series or related event data.\"),\n});\nexport const PolymarketGetSeriesByIdOutput = z.object({\n series: z.record(z.string(), z.unknown()).describe(\"Series metadata for a recurring or grouped event collection, including slug, active status, recurrence, and related metadata when returned.\"),\n}).passthrough();\n\nexport const polymarketGetSeriesById = action(\"POLYMARKET_GET_SERIES_BY_ID\", {\n slug: \"polymarket-get-series-by-id\",\n name: \"Get Series By ID\",\n description: \"Get a Polymarket US series by numeric ID. Series are recurring or grouped event collections. Use this action when an agent has a series ID and needs the slug, active status, recurrence, or other public metadata before fetching related events or markets. This action does not require API key authentication.\",\n input: PolymarketGetSeriesByIdInput,\n output: PolymarketGetSeriesByIdOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,EAClG,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6IAA6I,EAClM,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-sport-by-slug.ts
|
|
4
4
|
const PolymarketGetSportBySlugInput = zod.z.object({ slug: zod.z.string().describe("Current v2 sport slug from List Sports. Examples include 'football' and 'basketball'.") });
|
|
5
|
-
const PolymarketGetSportBySlugOutput = zod.z.object({ sport: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Sport details with attached leagues. Use league slugs from this response with Get League By Slug or List Events For League.") });
|
|
5
|
+
const PolymarketGetSportBySlugOutput = zod.z.object({ sport: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Sport details with attached leagues. Use league slugs from this response with Get League By Slug or List Events For League.") }).passthrough();
|
|
6
6
|
const polymarketGetSportBySlug = require_action.action("POLYMARKET_GET_SPORT_BY_SLUG", {
|
|
7
7
|
slug: "polymarket-get-sport-by-slug",
|
|
8
8
|
name: "Get Sport By Slug",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sport-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-sport-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSportBySlugInput = z.object({\n slug: z.string().describe(\"Current v2 sport slug from List Sports. Examples include 'football' and 'basketball'.\"),\n});\nexport const PolymarketGetSportBySlugOutput = z.object({\n sport: z.record(z.string(), z.unknown()).describe(\"Sport details with attached leagues. Use league slugs from this response with Get League By Slug or List Events For League.\"),\n});\n\nexport const polymarketGetSportBySlug = action(\"POLYMARKET_GET_SPORT_BY_SLUG\", {\n slug: \"polymarket-get-sport-by-slug\",\n name: \"Get Sport By Slug\",\n description: \"Get a current Polymarket US v2 sport by slug. Use List Sports first if the slug is unknown. The response includes the sport metadata and leagues attached to that sport, which helps agents move from broad sport browsing to league-specific event discovery. This action does not require API key authentication.\",\n input: PolymarketGetSportBySlugInput,\n output: PolymarketGetSportBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EACnH,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6HAA6H,EACjL,CAAC;
|
|
1
|
+
{"version":3,"file":"get-sport-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-sport-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSportBySlugInput = z.object({\n slug: z.string().describe(\"Current v2 sport slug from List Sports. Examples include 'football' and 'basketball'.\"),\n});\nexport const PolymarketGetSportBySlugOutput = z.object({\n sport: z.record(z.string(), z.unknown()).describe(\"Sport details with attached leagues. Use league slugs from this response with Get League By Slug or List Events For League.\"),\n}).passthrough();\n\nexport const polymarketGetSportBySlug = action(\"POLYMARKET_GET_SPORT_BY_SLUG\", {\n slug: \"polymarket-get-sport-by-slug\",\n name: \"Get Sport By Slug\",\n description: \"Get a current Polymarket US v2 sport by slug. Use List Sports first if the slug is unknown. The response includes the sport metadata and leagues attached to that sport, which helps agents move from broad sport browsing to league-specific event discovery. This action does not require API key authentication.\",\n input: PolymarketGetSportBySlugInput,\n output: PolymarketGetSportBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EACnH,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6HAA6H,EACjL,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetSportBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetSportBySlugOutput: z.ZodObject<{
|
|
8
8
|
sport: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetSportBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const PolymarketGetSportBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetSportBySlugOutput: z.ZodObject<{
|
|
8
8
|
sport: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetSportBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const polymarketGetSportBySlug = action("POLYMARKET_GET_SPORT_BY_SLUG", {
|
|
|
5
5
|
name: "Get Sport By Slug",
|
|
6
6
|
description: "Get a current Polymarket US v2 sport by slug. Use List Sports first if the slug is unknown. The response includes the sport metadata and leagues attached to that sport, which helps agents move from broad sport browsing to league-specific event discovery. This action does not require API key authentication.",
|
|
7
7
|
input: z.object({ slug: z.string().describe("Current v2 sport slug from List Sports. Examples include 'football' and 'basketball'.") }),
|
|
8
|
-
output: z.object({ sport: z.record(z.string(), z.unknown()).describe("Sport details with attached leagues. Use league slugs from this response with Get League By Slug or List Events For League.") })
|
|
8
|
+
output: z.object({ sport: z.record(z.string(), z.unknown()).describe("Sport details with attached leagues. Use league slugs from this response with Get League By Slug or List Events For League.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetSportBySlug };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sport-by-slug.mjs","names":[],"sources":["../../src/actions/get-sport-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSportBySlugInput = z.object({\n slug: z.string().describe(\"Current v2 sport slug from List Sports. Examples include 'football' and 'basketball'.\"),\n});\nexport const PolymarketGetSportBySlugOutput = z.object({\n sport: z.record(z.string(), z.unknown()).describe(\"Sport details with attached leagues. Use league slugs from this response with Get League By Slug or List Events For League.\"),\n});\n\nexport const polymarketGetSportBySlug = action(\"POLYMARKET_GET_SPORT_BY_SLUG\", {\n slug: \"polymarket-get-sport-by-slug\",\n name: \"Get Sport By Slug\",\n description: \"Get a current Polymarket US v2 sport by slug. Use List Sports first if the slug is unknown. The response includes the sport metadata and leagues attached to that sport, which helps agents move from broad sport browsing to league-specific event discovery. This action does not require API key authentication.\",\n input: PolymarketGetSportBySlugInput,\n output: PolymarketGetSportBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX2C,EAAE,OAAO,EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EACnH,CASS;CACP,QAT4C,EAAE,OAAO,EACrD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6HAA6H,EACjL,
|
|
1
|
+
{"version":3,"file":"get-sport-by-slug.mjs","names":[],"sources":["../../src/actions/get-sport-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSportBySlugInput = z.object({\n slug: z.string().describe(\"Current v2 sport slug from List Sports. Examples include 'football' and 'basketball'.\"),\n});\nexport const PolymarketGetSportBySlugOutput = z.object({\n sport: z.record(z.string(), z.unknown()).describe(\"Sport details with attached leagues. Use league slugs from this response with Get League By Slug or List Events For League.\"),\n}).passthrough();\n\nexport const polymarketGetSportBySlug = action(\"POLYMARKET_GET_SPORT_BY_SLUG\", {\n slug: \"polymarket-get-sport-by-slug\",\n name: \"Get Sport By Slug\",\n description: \"Get a current Polymarket US v2 sport by slug. Use List Sports first if the slug is unknown. The response includes the sport metadata and leagues attached to that sport, which helps agents move from broad sport browsing to league-specific event discovery. This action does not require API key authentication.\",\n input: PolymarketGetSportBySlugInput,\n output: PolymarketGetSportBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX2C,EAAE,OAAO,EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EACnH,CASS;CACP,QAT4C,EAAE,OAAO,EACrD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6HAA6H,EACjL,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-subject-by-id.ts
|
|
4
4
|
const PolymarketGetSubjectByIdInput = zod.z.object({ id: zod.z.number().int().describe("Numeric subject ID returned by List Subjects or a market response.") });
|
|
5
|
-
const PolymarketGetSubjectByIdOutput = zod.z.object({ subject: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Subject metadata, including name, display name, slug, subject type, image, and styling fields.") });
|
|
5
|
+
const PolymarketGetSubjectByIdOutput = zod.z.object({ subject: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Subject metadata, including name, display name, slug, subject type, image, and styling fields.") }).passthrough();
|
|
6
6
|
const polymarketGetSubjectById = require_action.action("POLYMARKET_GET_SUBJECT_BY_ID", {
|
|
7
7
|
slug: "polymarket-get-subject-by-id",
|
|
8
8
|
name: "Get Subject By ID",
|