@keystrokehq/polymarket 0.1.2 → 0.1.4
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 +16 -2
- package/dist/actions/cancel-all-open-orders.d.mts +16 -2
- 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 +18 -3
- package/dist/actions/cancel-multiple-orders.d.mts +18 -3
- 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 +16 -2
- package/dist/actions/cancel-order.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/close-position-order.d.mts +16 -2
- 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 +18 -3
- package/dist/actions/create-multiple-orders.d.mts +18 -3
- 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 +16 -2
- package/dist/actions/create-order.d.mts +16 -2
- 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 +18 -4
- package/dist/actions/get-account-balances.d.cts.map +1 -1
- package/dist/actions/get-account-balances.d.mts +18 -4
- package/dist/actions/get-account-balances.d.mts.map +1 -1
- 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 +16 -2
- package/dist/actions/get-activities.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-event-by-id.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-event-by-slug.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-league-by-slug.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-market-bbo.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-market-book.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-market-by-id.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-market-by-slug.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-market-settlement.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-markets-for-subject-by-slug.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-markets-for-subject.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-open-orders.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-order.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-series-by-id.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-sport-by-slug.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-subject-by-id.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-subject-by-slug.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-tag-by-id.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-tag-by-slug.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/get-user-positions.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-events-for-league.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-events-for-series.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-events-for-sport.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-events.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-featured-tags.d.cts.map +1 -1
- package/dist/actions/list-featured-tags.d.mts +16 -2
- package/dist/actions/list-featured-tags.d.mts.map +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 +16 -2
- package/dist/actions/list-leagues.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-markets.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-series.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-sports-teams-for-provider.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-sports-teams.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-sports.d.cts.map +1 -1
- package/dist/actions/list-sports.d.mts +16 -2
- package/dist/actions/list-sports.d.mts.map +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 +16 -2
- package/dist/actions/list-subjects.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/list-tags.d.mts +16 -2
- 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 +18 -3
- package/dist/actions/modify-multiple-orders.d.mts +18 -3
- 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 +16 -2
- package/dist/actions/modify-order.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/preview-order.d.mts +16 -2
- 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 +16 -2
- package/dist/actions/search-markets-and-events.d.mts +16 -2
- package/dist/actions/search-markets-and-events.mjs +1 -1
- package/dist/actions/search-markets-and-events.mjs.map +1 -1
- package/dist/app.cjs +8 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +10 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +10 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +6 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,10 +6,24 @@ 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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetSeriesById };
|
|
15
29
|
//# sourceMappingURL=get-series-by-id.d.mts.map
|
|
@@ -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,10 +6,24 @@ 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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetSportBySlug };
|
|
15
29
|
//# sourceMappingURL=get-sport-by-slug.d.cts.map
|
|
@@ -6,10 +6,24 @@ 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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetSportBySlug };
|
|
15
29
|
//# sourceMappingURL=get-sport-by-slug.d.mts.map
|
|
@@ -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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subject-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-subject-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSubjectByIdInput = z.object({\n id: z.number().int().describe(\"Numeric subject ID returned by List Subjects or a market response.\"),\n});\nexport const PolymarketGetSubjectByIdOutput = z.object({\n subject: z.record(z.string(), z.unknown()).describe(\"Subject metadata, including name, display name, slug, subject type, image, and styling fields.\"),\n});\n\nexport const polymarketGetSubjectById = action(\"POLYMARKET_GET_SUBJECT_BY_ID\", {\n slug: \"polymarket-get-subject-by-id\",\n name: \"Get Subject By ID\",\n description: \"Get a Polymarket US subject entity by numeric ID. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent already has a subject ID and needs its slug, type, or display metadata. This action does not require API key authentication.\",\n input: PolymarketGetSubjectByIdInput,\n output: PolymarketGetSubjectByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,EACpG,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG,EACtJ,CAAC;
|
|
1
|
+
{"version":3,"file":"get-subject-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-subject-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSubjectByIdInput = z.object({\n id: z.number().int().describe(\"Numeric subject ID returned by List Subjects or a market response.\"),\n});\nexport const PolymarketGetSubjectByIdOutput = z.object({\n subject: z.record(z.string(), z.unknown()).describe(\"Subject metadata, including name, display name, slug, subject type, image, and styling fields.\"),\n}).passthrough();\n\nexport const polymarketGetSubjectById = action(\"POLYMARKET_GET_SUBJECT_BY_ID\", {\n slug: \"polymarket-get-subject-by-id\",\n name: \"Get Subject By ID\",\n description: \"Get a Polymarket US subject entity by numeric ID. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent already has a subject ID and needs its slug, type, or display metadata. This action does not require API key authentication.\",\n input: PolymarketGetSubjectByIdInput,\n output: PolymarketGetSubjectByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,EACpG,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG,EACtJ,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,10 +6,24 @@ declare const PolymarketGetSubjectByIdInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetSubjectByIdOutput: z.ZodObject<{
|
|
8
8
|
subject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetSubjectById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetSubjectById };
|
|
15
29
|
//# sourceMappingURL=get-subject-by-id.d.cts.map
|
|
@@ -6,10 +6,24 @@ declare const PolymarketGetSubjectByIdInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetSubjectByIdOutput: z.ZodObject<{
|
|
8
8
|
subject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetSubjectById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetSubjectById };
|
|
15
29
|
//# sourceMappingURL=get-subject-by-id.d.mts.map
|
|
@@ -5,7 +5,7 @@ const polymarketGetSubjectById = action("POLYMARKET_GET_SUBJECT_BY_ID", {
|
|
|
5
5
|
name: "Get Subject By ID",
|
|
6
6
|
description: "Get a Polymarket US subject entity by numeric ID. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent already has a subject ID and needs its slug, type, or display metadata. This action does not require API key authentication.",
|
|
7
7
|
input: z.object({ id: z.number().int().describe("Numeric subject ID returned by List Subjects or a market response.") }),
|
|
8
|
-
output: z.object({ subject: z.record(z.string(), z.unknown()).describe("Subject metadata, including name, display name, slug, subject type, image, and styling fields.") })
|
|
8
|
+
output: z.object({ subject: z.record(z.string(), z.unknown()).describe("Subject metadata, including name, display name, slug, subject type, image, and styling fields.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetSubjectById };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subject-by-id.mjs","names":[],"sources":["../../src/actions/get-subject-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSubjectByIdInput = z.object({\n id: z.number().int().describe(\"Numeric subject ID returned by List Subjects or a market response.\"),\n});\nexport const PolymarketGetSubjectByIdOutput = z.object({\n subject: z.record(z.string(), z.unknown()).describe(\"Subject metadata, including name, display name, slug, subject type, image, and styling fields.\"),\n});\n\nexport const polymarketGetSubjectById = action(\"POLYMARKET_GET_SUBJECT_BY_ID\", {\n slug: \"polymarket-get-subject-by-id\",\n name: \"Get Subject By ID\",\n description: \"Get a Polymarket US subject entity by numeric ID. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent already has a subject ID and needs its slug, type, or display metadata. This action does not require API key authentication.\",\n input: PolymarketGetSubjectByIdInput,\n output: PolymarketGetSubjectByIdOutput,\n});\n"],"mappings":";;AAWA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX2C,EAAE,OAAO,EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,EACpG,CASS;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG,EACtJ,
|
|
1
|
+
{"version":3,"file":"get-subject-by-id.mjs","names":[],"sources":["../../src/actions/get-subject-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSubjectByIdInput = z.object({\n id: z.number().int().describe(\"Numeric subject ID returned by List Subjects or a market response.\"),\n});\nexport const PolymarketGetSubjectByIdOutput = z.object({\n subject: z.record(z.string(), z.unknown()).describe(\"Subject metadata, including name, display name, slug, subject type, image, and styling fields.\"),\n}).passthrough();\n\nexport const polymarketGetSubjectById = action(\"POLYMARKET_GET_SUBJECT_BY_ID\", {\n slug: \"polymarket-get-subject-by-id\",\n name: \"Get Subject By ID\",\n description: \"Get a Polymarket US subject entity by numeric ID. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent already has a subject ID and needs its slug, type, or display metadata. This action does not require API key authentication.\",\n input: PolymarketGetSubjectByIdInput,\n output: PolymarketGetSubjectByIdOutput,\n});\n"],"mappings":";;AAWA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX2C,EAAE,OAAO,EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,EACpG,CASS;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG,EACtJ,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-slug.ts
|
|
4
4
|
const PolymarketGetSubjectBySlugInput = zod.z.object({ slug: zod.z.string().describe("URL-safe subject slug for a team, person, candidate, player, nominee, or other market entity.") });
|
|
5
|
-
const PolymarketGetSubjectBySlugOutput = zod.z.object({ subject: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Subject metadata, including ID, name, display name, subject type, image, and styling fields.") });
|
|
5
|
+
const PolymarketGetSubjectBySlugOutput = zod.z.object({ subject: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Subject metadata, including ID, name, display name, subject type, image, and styling fields.") }).passthrough();
|
|
6
6
|
const polymarketGetSubjectBySlug = require_action.action("POLYMARKET_GET_SUBJECT_BY_SLUG", {
|
|
7
7
|
slug: "polymarket-get-subject-by-slug",
|
|
8
8
|
name: "Get Subject By Slug",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subject-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-subject-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSubjectBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe subject slug for a team, person, candidate, player, nominee, or other market entity.\"),\n});\nexport const PolymarketGetSubjectBySlugOutput = z.object({\n subject: z.record(z.string(), z.unknown()).describe(\"Subject metadata, including ID, name, display name, subject type, image, and styling fields.\"),\n});\n\nexport const polymarketGetSubjectBySlug = action(\"POLYMARKET_GET_SUBJECT_BY_SLUG\", {\n slug: \"polymarket-get-subject-by-slug\",\n name: \"Get Subject By Slug\",\n description: \"Get a Polymarket US subject entity by slug. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent has a subject slug from a URL or search result and needs the subject ID or display metadata. This action does not require API key authentication.\",\n input: PolymarketGetSubjectBySlugInput,\n output: PolymarketGetSubjectBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,EAC3H,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,EACpJ,CAAC;
|
|
1
|
+
{"version":3,"file":"get-subject-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-subject-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSubjectBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe subject slug for a team, person, candidate, player, nominee, or other market entity.\"),\n});\nexport const PolymarketGetSubjectBySlugOutput = z.object({\n subject: z.record(z.string(), z.unknown()).describe(\"Subject metadata, including ID, name, display name, subject type, image, and styling fields.\"),\n}).passthrough();\n\nexport const polymarketGetSubjectBySlug = action(\"POLYMARKET_GET_SUBJECT_BY_SLUG\", {\n slug: \"polymarket-get-subject-by-slug\",\n name: \"Get Subject By Slug\",\n description: \"Get a Polymarket US subject entity by slug. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent has a subject slug from a URL or search result and needs the subject ID or display metadata. This action does not require API key authentication.\",\n input: PolymarketGetSubjectBySlugInput,\n output: PolymarketGetSubjectBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,EAC3H,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,EACpJ,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,10 +6,24 @@ declare const PolymarketGetSubjectBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetSubjectBySlugOutput: z.ZodObject<{
|
|
8
8
|
subject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetSubjectBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetSubjectBySlug };
|
|
15
29
|
//# sourceMappingURL=get-subject-by-slug.d.cts.map
|
|
@@ -6,10 +6,24 @@ declare const PolymarketGetSubjectBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetSubjectBySlugOutput: z.ZodObject<{
|
|
8
8
|
subject: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetSubjectBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetSubjectBySlug };
|
|
15
29
|
//# sourceMappingURL=get-subject-by-slug.d.mts.map
|
|
@@ -5,7 +5,7 @@ const polymarketGetSubjectBySlug = action("POLYMARKET_GET_SUBJECT_BY_SLUG", {
|
|
|
5
5
|
name: "Get Subject By Slug",
|
|
6
6
|
description: "Get a Polymarket US subject entity by slug. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent has a subject slug from a URL or search result and needs the subject ID or display metadata. This action does not require API key authentication.",
|
|
7
7
|
input: z.object({ slug: z.string().describe("URL-safe subject slug for a team, person, candidate, player, nominee, or other market entity.") }),
|
|
8
|
-
output: z.object({ subject: z.record(z.string(), z.unknown()).describe("Subject metadata, including ID, name, display name, subject type, image, and styling fields.") })
|
|
8
|
+
output: z.object({ subject: z.record(z.string(), z.unknown()).describe("Subject metadata, including ID, name, display name, subject type, image, and styling fields.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetSubjectBySlug };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subject-by-slug.mjs","names":[],"sources":["../../src/actions/get-subject-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSubjectBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe subject slug for a team, person, candidate, player, nominee, or other market entity.\"),\n});\nexport const PolymarketGetSubjectBySlugOutput = z.object({\n subject: z.record(z.string(), z.unknown()).describe(\"Subject metadata, including ID, name, display name, subject type, image, and styling fields.\"),\n});\n\nexport const polymarketGetSubjectBySlug = action(\"POLYMARKET_GET_SUBJECT_BY_SLUG\", {\n slug: \"polymarket-get-subject-by-slug\",\n name: \"Get Subject By Slug\",\n description: \"Get a Polymarket US subject entity by slug. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent has a subject slug from a URL or search result and needs the subject ID or display metadata. This action does not require API key authentication.\",\n input: PolymarketGetSubjectBySlugInput,\n output: PolymarketGetSubjectBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,EAC3H,CASS;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,EACpJ,
|
|
1
|
+
{"version":3,"file":"get-subject-by-slug.mjs","names":[],"sources":["../../src/actions/get-subject-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetSubjectBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe subject slug for a team, person, candidate, player, nominee, or other market entity.\"),\n});\nexport const PolymarketGetSubjectBySlugOutput = z.object({\n subject: z.record(z.string(), z.unknown()).describe(\"Subject metadata, including ID, name, display name, subject type, image, and styling fields.\"),\n}).passthrough();\n\nexport const polymarketGetSubjectBySlug = action(\"POLYMARKET_GET_SUBJECT_BY_SLUG\", {\n slug: \"polymarket-get-subject-by-slug\",\n name: \"Get Subject By Slug\",\n description: \"Get a Polymarket US subject entity by slug. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent has a subject slug from a URL or search result and needs the subject ID or display metadata. This action does not require API key authentication.\",\n input: PolymarketGetSubjectBySlugInput,\n output: PolymarketGetSubjectBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX6C,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,EAC3H,CASS;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8FAA8F,EACpJ,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-tag-by-id.ts
|
|
4
4
|
const PolymarketGetTagByIdInput = zod.z.object({ id: zod.z.number().int().describe("Numeric tag ID returned by List Tags or another tag response.") });
|
|
5
|
-
const PolymarketGetTagByIdOutput = zod.z.object({ tag: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Tag metadata, including label, slug, optional sport/league details, parent ID, and child subtags when available.") });
|
|
5
|
+
const PolymarketGetTagByIdOutput = zod.z.object({ tag: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Tag metadata, including label, slug, optional sport/league details, parent ID, and child subtags when available.") }).passthrough();
|
|
6
6
|
const polymarketGetTagById = require_action.action("POLYMARKET_GET_TAG_BY_ID", {
|
|
7
7
|
slug: "polymarket-get-tag-by-id",
|
|
8
8
|
name: "Get Tag By ID",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tag-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-tag-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetTagByIdInput = z.object({\n id: z.number().int().describe(\"Numeric tag ID returned by List Tags or another tag response.\"),\n});\nexport const PolymarketGetTagByIdOutput = z.object({\n tag: z.record(z.string(), z.unknown()).describe(\"Tag metadata, including label, slug, optional sport/league details, parent ID, and child subtags when available.\"),\n});\n\nexport const polymarketGetTagById = action(\"POLYMARKET_GET_TAG_BY_ID\", {\n slug: \"polymarket-get-tag-by-id\",\n name: \"Get Tag By ID\",\n description: \"Get a Polymarket US topic, sport, or league tag by numeric ID. Use this action after List Tags or a market/event response returns a tag ID and the agent needs the tag label, slug, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.\",\n input: PolymarketGetTagByIdInput,\n output: PolymarketGetTagByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,EACpK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-tag-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-tag-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetTagByIdInput = z.object({\n id: z.number().int().describe(\"Numeric tag ID returned by List Tags or another tag response.\"),\n});\nexport const PolymarketGetTagByIdOutput = z.object({\n tag: z.record(z.string(), z.unknown()).describe(\"Tag metadata, including label, slug, optional sport/league details, parent ID, and child subtags when available.\"),\n}).passthrough();\n\nexport const polymarketGetTagById = action(\"POLYMARKET_GET_TAG_BY_ID\", {\n slug: \"polymarket-get-tag-by-id\",\n name: \"Get Tag By ID\",\n description: \"Get a Polymarket US topic, sport, or league tag by numeric ID. Use this action after List Tags or a market/event response returns a tag ID and the agent needs the tag label, slug, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.\",\n input: PolymarketGetTagByIdInput,\n output: PolymarketGetTagByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,EACpK,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,10 +6,24 @@ declare const PolymarketGetTagByIdInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetTagByIdOutput: z.ZodObject<{
|
|
8
8
|
tag: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetTagById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetTagById };
|
|
15
29
|
//# sourceMappingURL=get-tag-by-id.d.cts.map
|
|
@@ -6,10 +6,24 @@ declare const PolymarketGetTagByIdInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetTagByIdOutput: z.ZodObject<{
|
|
8
8
|
tag: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetTagById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
id: number;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetTagById };
|
|
15
29
|
//# sourceMappingURL=get-tag-by-id.d.mts.map
|
|
@@ -5,7 +5,7 @@ const polymarketGetTagById = action("POLYMARKET_GET_TAG_BY_ID", {
|
|
|
5
5
|
name: "Get Tag By ID",
|
|
6
6
|
description: "Get a Polymarket US topic, sport, or league tag by numeric ID. Use this action after List Tags or a market/event response returns a tag ID and the agent needs the tag label, slug, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.",
|
|
7
7
|
input: z.object({ id: z.number().int().describe("Numeric tag ID returned by List Tags or another tag response.") }),
|
|
8
|
-
output: z.object({ tag: z.record(z.string(), z.unknown()).describe("Tag metadata, including label, slug, optional sport/league details, parent ID, and child subtags when available.") })
|
|
8
|
+
output: z.object({ tag: z.record(z.string(), z.unknown()).describe("Tag metadata, including label, slug, optional sport/league details, parent ID, and child subtags when available.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetTagById };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tag-by-id.mjs","names":[],"sources":["../../src/actions/get-tag-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetTagByIdInput = z.object({\n id: z.number().int().describe(\"Numeric tag ID returned by List Tags or another tag response.\"),\n});\nexport const PolymarketGetTagByIdOutput = z.object({\n tag: z.record(z.string(), z.unknown()).describe(\"Tag metadata, including label, slug, optional sport/league details, parent ID, and child subtags when available.\"),\n});\n\nexport const polymarketGetTagById = action(\"POLYMARKET_GET_TAG_BY_ID\", {\n slug: \"polymarket-get-tag-by-id\",\n name: \"Get Tag By ID\",\n description: \"Get a Polymarket US topic, sport, or league tag by numeric ID. Use this action after List Tags or a market/event response returns a tag ID and the agent needs the tag label, slug, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.\",\n input: PolymarketGetTagByIdInput,\n output: PolymarketGetTagByIdOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CASS;CACP,QATwC,EAAE,OAAO,EACjD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,EACpK,
|
|
1
|
+
{"version":3,"file":"get-tag-by-id.mjs","names":[],"sources":["../../src/actions/get-tag-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetTagByIdInput = z.object({\n id: z.number().int().describe(\"Numeric tag ID returned by List Tags or another tag response.\"),\n});\nexport const PolymarketGetTagByIdOutput = z.object({\n tag: z.record(z.string(), z.unknown()).describe(\"Tag metadata, including label, slug, optional sport/league details, parent ID, and child subtags when available.\"),\n}).passthrough();\n\nexport const polymarketGetTagById = action(\"POLYMARKET_GET_TAG_BY_ID\", {\n slug: \"polymarket-get-tag-by-id\",\n name: \"Get Tag By ID\",\n description: \"Get a Polymarket US topic, sport, or league tag by numeric ID. Use this action after List Tags or a market/event response returns a tag ID and the agent needs the tag label, slug, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.\",\n input: PolymarketGetTagByIdInput,\n output: PolymarketGetTagByIdOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,EAC/F,CASS;CACP,QATwC,EAAE,OAAO,EACjD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kHAAkH,EACpK,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-tag-by-slug.ts
|
|
4
4
|
const PolymarketGetTagBySlugInput = zod.z.object({ slug: zod.z.string().describe("URL-safe tag slug for a topic, sport, or league filter.") });
|
|
5
|
-
const PolymarketGetTagBySlugOutput = zod.z.object({ tag: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Tag metadata, including label, ID, optional sport/league details, parent ID, and child subtags when available.") });
|
|
5
|
+
const PolymarketGetTagBySlugOutput = zod.z.object({ tag: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Tag metadata, including label, ID, optional sport/league details, parent ID, and child subtags when available.") }).passthrough();
|
|
6
6
|
const polymarketGetTagBySlug = require_action.action("POLYMARKET_GET_TAG_BY_SLUG", {
|
|
7
7
|
slug: "polymarket-get-tag-by-slug",
|
|
8
8
|
name: "Get Tag By Slug",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tag-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-tag-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetTagBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe tag slug for a topic, sport, or league filter.\"),\n});\nexport const PolymarketGetTagBySlugOutput = z.object({\n tag: z.record(z.string(), z.unknown()).describe(\"Tag metadata, including label, ID, optional sport/league details, parent ID, and child subtags when available.\"),\n});\n\nexport const polymarketGetTagBySlug = action(\"POLYMARKET_GET_TAG_BY_SLUG\", {\n slug: \"polymarket-get-tag-by-slug\",\n name: \"Get Tag By Slug\",\n description: \"Get a Polymarket US topic, sport, or league tag by slug. Use this action when an agent has a URL-safe tag slug, such as nba or sports, and needs the tag ID, label, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.\",\n input: PolymarketGetTagBySlugInput,\n output: PolymarketGetTagBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACrF,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,EAClK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-tag-by-slug.cjs","names":["z","action"],"sources":["../../src/actions/get-tag-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetTagBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe tag slug for a topic, sport, or league filter.\"),\n});\nexport const PolymarketGetTagBySlugOutput = z.object({\n tag: z.record(z.string(), z.unknown()).describe(\"Tag metadata, including label, ID, optional sport/league details, parent ID, and child subtags when available.\"),\n}).passthrough();\n\nexport const polymarketGetTagBySlug = action(\"POLYMARKET_GET_TAG_BY_SLUG\", {\n slug: \"polymarket-get-tag-by-slug\",\n name: \"Get Tag By Slug\",\n description: \"Get a Polymarket US topic, sport, or league tag by slug. Use this action when an agent has a URL-safe tag slug, such as nba or sports, and needs the tag ID, label, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.\",\n input: PolymarketGetTagBySlugInput,\n output: PolymarketGetTagBySlugOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACrF,CAAC;AACD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,EAClK,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,10 +6,24 @@ declare const PolymarketGetTagBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetTagBySlugOutput: z.ZodObject<{
|
|
8
8
|
tag: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetTagBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetTagBySlug };
|
|
15
29
|
//# sourceMappingURL=get-tag-by-slug.d.cts.map
|
|
@@ -6,10 +6,24 @@ declare const PolymarketGetTagBySlugInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PolymarketGetTagBySlugOutput: z.ZodObject<{
|
|
8
8
|
tag: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const polymarketGetTagBySlug: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
slug: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
13
|
+
connectionId: z.ZodString;
|
|
14
|
+
entityId: z.ZodString;
|
|
15
|
+
instanceId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
secret_key: z.ZodString;
|
|
18
|
+
key_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"polymarket", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
secret_key: z.ZodString;
|
|
25
|
+
key_id: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
13
27
|
//#endregion
|
|
14
28
|
export { polymarketGetTagBySlug };
|
|
15
29
|
//# sourceMappingURL=get-tag-by-slug.d.mts.map
|
|
@@ -5,7 +5,7 @@ const polymarketGetTagBySlug = action("POLYMARKET_GET_TAG_BY_SLUG", {
|
|
|
5
5
|
name: "Get Tag By Slug",
|
|
6
6
|
description: "Get a Polymarket US topic, sport, or league tag by slug. Use this action when an agent has a URL-safe tag slug, such as nba or sports, and needs the tag ID, label, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.",
|
|
7
7
|
input: z.object({ slug: z.string().describe("URL-safe tag slug for a topic, sport, or league filter.") }),
|
|
8
|
-
output: z.object({ tag: z.record(z.string(), z.unknown()).describe("Tag metadata, including label, ID, optional sport/league details, parent ID, and child subtags when available.") })
|
|
8
|
+
output: z.object({ tag: z.record(z.string(), z.unknown()).describe("Tag metadata, including label, ID, optional sport/league details, parent ID, and child subtags when available.") }).passthrough()
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { polymarketGetTagBySlug };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-tag-by-slug.mjs","names":[],"sources":["../../src/actions/get-tag-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetTagBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe tag slug for a topic, sport, or league filter.\"),\n});\nexport const PolymarketGetTagBySlugOutput = z.object({\n tag: z.record(z.string(), z.unknown()).describe(\"Tag metadata, including label, ID, optional sport/league details, parent ID, and child subtags when available.\"),\n});\n\nexport const polymarketGetTagBySlug = action(\"POLYMARKET_GET_TAG_BY_SLUG\", {\n slug: \"polymarket-get-tag-by-slug\",\n name: \"Get Tag By Slug\",\n description: \"Get a Polymarket US topic, sport, or league tag by slug. Use this action when an agent has a URL-safe tag slug, such as nba or sports, and needs the tag ID, label, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.\",\n input: PolymarketGetTagBySlugInput,\n output: PolymarketGetTagBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXyC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACrF,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,EAClK,
|
|
1
|
+
{"version":3,"file":"get-tag-by-slug.mjs","names":[],"sources":["../../src/actions/get-tag-by-slug.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetTagBySlugInput = z.object({\n slug: z.string().describe(\"URL-safe tag slug for a topic, sport, or league filter.\"),\n});\nexport const PolymarketGetTagBySlugOutput = z.object({\n tag: z.record(z.string(), z.unknown()).describe(\"Tag metadata, including label, ID, optional sport/league details, parent ID, and child subtags when available.\"),\n}).passthrough();\n\nexport const polymarketGetTagBySlug = action(\"POLYMARKET_GET_TAG_BY_SLUG\", {\n slug: \"polymarket-get-tag-by-slug\",\n name: \"Get Tag By Slug\",\n description: \"Get a Polymarket US topic, sport, or league tag by slug. Use this action when an agent has a URL-safe tag slug, such as nba or sports, and needs the tag ID, label, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.\",\n input: PolymarketGetTagBySlugInput,\n output: PolymarketGetTagBySlugOutput,\n});\n"],"mappings":";;AAWA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXyC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACrF,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,EAClK,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const PolymarketGetUserPositionsOutput = zod.z.object({
|
|
|
11
11
|
positions: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of market slug to this authenticated account's position details."),
|
|
12
12
|
nextCursor: zod.z.string().describe("Cursor for the next page, when another page exists.").nullable().optional(),
|
|
13
13
|
availablePositions: zod.z.array(zod.z.string()).describe("Position quantities available to trade after accounting for open orders.").nullable().optional()
|
|
14
|
-
});
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const polymarketGetUserPositions = require_action.action("POLYMARKET_GET_USER_POSITIONS", {
|
|
16
16
|
slug: "polymarket-get-user-positions",
|
|
17
17
|
name: "Get User Positions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-positions.cjs","names":["z","action"],"sources":["../../src/actions/get-user-positions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetUserPositionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of account-specific positions to return per page. Use with cursor for pagination; omit cursor on the first request.\").optional(),\n cursor: z.string().describe(\"Pagination cursor from a previous response's nextCursor field. Omit for the first page.\").optional(),\n market: z.string().describe(\"Optional market slug to filter the authenticated account's positions. When omitted, returns positions across all markets for the signed-in Polymarket US account.\").optional(),\n});\nexport const PolymarketGetUserPositionsOutput = z.object({\n eof: z.boolean().describe(\"Whether the current page is the last page.\").nullable(),\n positions: z.record(z.string(), z.unknown()).describe(\"Map of market slug to this authenticated account's position details.\"),\n nextCursor: z.string().describe(\"Cursor for the next page, when another page exists.\").nullable().optional(),\n availablePositions: z.array(z.string()).describe(\"Position quantities available to trade after accounting for open orders.\").nullable().optional(),\n});\n\nexport const polymarketGetUserPositions = action(\"POLYMARKET_GET_USER_POSITIONS\", {\n slug: \"polymarket-get-user-positions\",\n name: \"Get User Positions\",\n description: \"Get the authenticated user's Polymarket US trading positions across all markets or filtered by a specific market slug. Requires Polymarket US signed authentication and only returns positions for that account. Use this read-only action to verify API credentials and inspect current exposure.\",\n input: PolymarketGetUserPositionsInput,\n output: PolymarketGetUserPositionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAChL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAChI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;AAC5M,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE;CAC5H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC;
|
|
1
|
+
{"version":3,"file":"get-user-positions.cjs","names":["z","action"],"sources":["../../src/actions/get-user-positions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolymarketGetUserPositionsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of account-specific positions to return per page. Use with cursor for pagination; omit cursor on the first request.\").optional(),\n cursor: z.string().describe(\"Pagination cursor from a previous response's nextCursor field. Omit for the first page.\").optional(),\n market: z.string().describe(\"Optional market slug to filter the authenticated account's positions. When omitted, returns positions across all markets for the signed-in Polymarket US account.\").optional(),\n});\nexport const PolymarketGetUserPositionsOutput = z.object({\n eof: z.boolean().describe(\"Whether the current page is the last page.\").nullable(),\n positions: z.record(z.string(), z.unknown()).describe(\"Map of market slug to this authenticated account's position details.\"),\n nextCursor: z.string().describe(\"Cursor for the next page, when another page exists.\").nullable().optional(),\n availablePositions: z.array(z.string()).describe(\"Position quantities available to trade after accounting for open orders.\").nullable().optional(),\n}).passthrough();\n\nexport const polymarketGetUserPositions = action(\"POLYMARKET_GET_USER_POSITIONS\", {\n slug: \"polymarket-get-user-positions\",\n name: \"Get User Positions\",\n description: \"Get the authenticated user's Polymarket US trading positions across all markets or filtered by a specific market slug. Requires Polymarket US signed authentication and only returns positions for that account. Use this read-only action to verify API credentials and inspect current exposure.\",\n input: PolymarketGetUserPositionsInput,\n output: PolymarketGetUserPositionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAChL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAChI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;AAC5M,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE;CAC5H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|