@keystrokehq/polymarket 0.0.8 → 0.0.15

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.
@@ -1,2 +1,2 @@
1
- import { r as polymarketBundle } from "../integration-CTzLOy9r.mjs";
1
+ import { r as polymarketBundle } from "../integration-BwWHe7Rh.mjs";
2
2
  export { polymarketBundle };
@@ -1,3 +1,3 @@
1
- import { n as polymarketBundle } from "../integration-KDxC97JC.mjs";
1
+ import { n as polymarketBundle } from "../integration-DX7CGwFx.mjs";
2
2
 
3
3
  export { polymarketBundle };
package/dist/data.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
3
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/data.d.ts
@@ -32,9 +31,7 @@ declare const listTrades: _keystrokehq_core0.Operation<z.ZodObject<{
32
31
  type: z.ZodOptional<z.ZodString>;
33
32
  }, z.core.$catchall<z.ZodJSONSchema>>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
34
33
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
35
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
36
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
37
- }, z.core.$strip>>[] | undefined>], undefined>;
34
+ }, z.core.$strip>>], undefined>;
38
35
  declare const getUserPositions: _keystrokehq_core0.Operation<z.ZodObject<{
39
36
  address: z.ZodString;
40
37
  sizeThreshold: z.ZodOptional<z.ZodNumber>;
@@ -64,9 +61,7 @@ declare const getUserPositions: _keystrokehq_core0.Operation<z.ZodObject<{
64
61
  eventTitle: z.ZodOptional<z.ZodString>;
65
62
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
66
63
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
67
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
68
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
69
- }, z.core.$strip>>[] | undefined>], undefined>;
64
+ }, z.core.$strip>>], undefined>;
70
65
  declare const getMarketHolders: _keystrokehq_core0.Operation<z.ZodObject<{
71
66
  conditionId: z.ZodString;
72
67
  limit: z.ZodOptional<z.ZodNumber>;
@@ -79,9 +74,7 @@ declare const getMarketHolders: _keystrokehq_core0.Operation<z.ZodObject<{
79
74
  position: z.ZodOptional<z.ZodString>;
80
75
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
81
76
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
82
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
83
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
84
- }, z.core.$strip>>[] | undefined>], undefined>;
77
+ }, z.core.$strip>>], undefined>;
85
78
  declare const getOpenInterest: _keystrokehq_core0.Operation<z.ZodObject<{
86
79
  conditionId: z.ZodString;
87
80
  }, z.core.$strip>, z.ZodObject<{
@@ -89,9 +82,7 @@ declare const getOpenInterest: _keystrokehq_core0.Operation<z.ZodObject<{
89
82
  openInterest: z.ZodOptional<z.ZodNumber>;
90
83
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
91
84
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
92
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
93
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
94
- }, z.core.$strip>>[] | undefined>], undefined>;
85
+ }, z.core.$strip>>], undefined>;
95
86
  declare const getLiveVolume: _keystrokehq_core0.Operation<z.ZodObject<{
96
87
  eventId: z.ZodString;
97
88
  }, z.core.$strip>, z.ZodObject<{
@@ -99,8 +90,6 @@ declare const getLiveVolume: _keystrokehq_core0.Operation<z.ZodObject<{
99
90
  volume24hr: z.ZodOptional<z.ZodNumber>;
100
91
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
101
92
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
102
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
103
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
104
- }, z.core.$strip>>[] | undefined>], undefined>;
93
+ }, z.core.$strip>>], undefined>;
105
94
  //#endregion
106
95
  export { getLiveVolume, getMarketHolders, getOpenInterest, getUserPositions, listTrades };
package/dist/data.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { D as createPolymarketClient, E as polymarketOperation, T as tradeSchema, a as holderSchema, c as liveVolumeSchema, m as positionSchema, u as openInterestSchema } from "./schemas-BHjW8Fcf.mjs";
1
+ import { D as createPolymarketClient, E as polymarketOperation, T as tradeSchema, a as holderSchema, c as liveVolumeSchema, m as positionSchema, u as openInterestSchema } from "./schemas-C_SM7qmm.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/data.ts
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
3
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/discovery.d.ts
@@ -9,9 +8,7 @@ declare const listTags: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$str
9
8
  slug: z.ZodOptional<z.ZodString>;
10
9
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
11
10
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
13
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>>[] | undefined>], undefined>;
11
+ }, z.core.$strip>>], undefined>;
15
12
  declare const listSeries: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{
16
13
  id: z.ZodString;
17
14
  title: z.ZodString;
@@ -19,9 +16,7 @@ declare const listSeries: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$s
19
16
  description: z.ZodOptional<z.ZodString>;
20
17
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
21
18
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
23
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
24
- }, z.core.$strip>>[] | undefined>], undefined>;
19
+ }, z.core.$strip>>], undefined>;
25
20
  declare const getSeries: _keystrokehq_core0.Operation<z.ZodObject<{
26
21
  id: z.ZodString;
27
22
  }, z.core.$strip>, z.ZodObject<{
@@ -31,9 +26,7 @@ declare const getSeries: _keystrokehq_core0.Operation<z.ZodObject<{
31
26
  description: z.ZodOptional<z.ZodString>;
32
27
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
33
28
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
35
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
36
- }, z.core.$strip>>[] | undefined>], undefined>;
29
+ }, z.core.$strip>>], undefined>;
37
30
  declare const search: _keystrokehq_core0.Operation<z.ZodObject<{
38
31
  q: z.ZodString;
39
32
  }, z.core.$strip>, z.ZodObject<{
@@ -46,9 +39,7 @@ declare const search: _keystrokehq_core0.Operation<z.ZodObject<{
46
39
  }, z.core.$strip>>;
47
40
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
48
41
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
49
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
50
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
51
- }, z.core.$strip>>[] | undefined>], undefined>;
42
+ }, z.core.$strip>>], undefined>;
52
43
  declare const getProfile: _keystrokehq_core0.Operation<z.ZodObject<{
53
44
  address: z.ZodString;
54
45
  }, z.core.$strip>, z.ZodObject<{
@@ -59,23 +50,15 @@ declare const getProfile: _keystrokehq_core0.Operation<z.ZodObject<{
59
50
  displayUsernamePublic: z.ZodOptional<z.ZodBoolean>;
60
51
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
61
52
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
62
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
63
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
64
- }, z.core.$strip>>[] | undefined>], undefined>;
53
+ }, z.core.$strip>>], undefined>;
65
54
  declare const getSportsMetadata: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
66
55
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
67
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
68
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
69
- }, z.core.$strip>>[] | undefined>], undefined>;
56
+ }, z.core.$strip>>], undefined>;
70
57
  declare const getSportsMarketTypes: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
71
58
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
72
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
73
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
74
- }, z.core.$strip>>[] | undefined>], undefined>;
59
+ }, z.core.$strip>>], undefined>;
75
60
  declare const getSportsTeams: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodUnknown, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
76
61
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
77
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
78
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
79
- }, z.core.$strip>>[] | undefined>], undefined>;
62
+ }, z.core.$strip>>], undefined>;
80
63
  //#endregion
81
64
  export { getProfile, getSeries, getSportsMarketTypes, getSportsMetadata, getSportsTeams, listSeries, listTags, search };
@@ -1,4 +1,4 @@
1
- import { D as createPolymarketClient, E as polymarketOperation, S as sportsTeamSchema, _ as profileSchema, b as sportsMarketTypeSchema, v as searchResultSchema, w as tagSchema, x as sportsMetadataSchema, y as seriesSchema } from "./schemas-BHjW8Fcf.mjs";
1
+ import { D as createPolymarketClient, E as polymarketOperation, S as sportsTeamSchema, _ as profileSchema, b as sportsMarketTypeSchema, v as searchResultSchema, w as tagSchema, x as sportsMetadataSchema, y as seriesSchema } from "./schemas-C_SM7qmm.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/discovery.ts
package/dist/events.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
3
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/events.d.ts
@@ -77,9 +76,7 @@ declare const listEvents: _keystrokehq_core0.Operation<z.ZodObject<{
77
76
  categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
78
77
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
79
78
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
80
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
81
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
82
- }, z.core.$strip>>[] | undefined>], undefined>;
79
+ }, z.core.$strip>>], undefined>;
83
80
  declare const getEvent: _keystrokehq_core0.Operation<z.ZodObject<{
84
81
  id: z.ZodString;
85
82
  }, z.core.$strip>, z.ZodObject<{
@@ -135,9 +132,7 @@ declare const getEvent: _keystrokehq_core0.Operation<z.ZodObject<{
135
132
  categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
136
133
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
137
134
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
138
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
139
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
140
- }, z.core.$strip>>[] | undefined>], undefined>;
135
+ }, z.core.$strip>>], undefined>;
141
136
  declare const getEventBySlug: _keystrokehq_core0.Operation<z.ZodObject<{
142
137
  slug: z.ZodString;
143
138
  }, z.core.$strip>, z.ZodObject<{
@@ -193,9 +188,7 @@ declare const getEventBySlug: _keystrokehq_core0.Operation<z.ZodObject<{
193
188
  categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
194
189
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
195
190
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
196
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
197
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
198
- }, z.core.$strip>>[] | undefined>], undefined>;
191
+ }, z.core.$strip>>], undefined>;
199
192
  declare const getEventTags: _keystrokehq_core0.Operation<z.ZodObject<{
200
193
  id: z.ZodString;
201
194
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
@@ -204,8 +197,6 @@ declare const getEventTags: _keystrokehq_core0.Operation<z.ZodObject<{
204
197
  slug: z.ZodOptional<z.ZodString>;
205
198
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
206
199
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
207
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
208
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
209
- }, z.core.$strip>>[] | undefined>], undefined>;
200
+ }, z.core.$strip>>], undefined>;
210
201
  //#endregion
211
202
  export { getEvent, getEventBySlug, getEventTags, listEvents };
package/dist/events.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { D as createPolymarketClient, E as polymarketOperation, i as eventSchema, o as listEventsParamsSchema, w as tagSchema } from "./schemas-BHjW8Fcf.mjs";
1
+ import { D as createPolymarketClient, E as polymarketOperation, i as eventSchema, o as listEventsParamsSchema, w as tagSchema } from "./schemas-C_SM7qmm.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/events.ts
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as polymarket, t as PolymarketCredentials } from "./integration-CTzLOy9r.mjs";
1
+ import { n as polymarket, t as PolymarketCredentials } from "./integration-BwWHe7Rh.mjs";
2
2
  import { getLiveVolume, getMarketHolders, getOpenInterest, getUserPositions, listTrades } from "./data.mjs";
3
3
  import { getProfile, getSeries, getSportsMarketTypes, getSportsMetadata, getSportsTeams, listSeries, listTags, search } from "./discovery.mjs";
4
4
  import { getEvent, getEventBySlug, getEventTags, listEvents } from "./events.mjs";
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { C as spreadSchema, D as createPolymarketClient, S as sportsTeamSchema, T as tradeSchema, _ as profileSchema, a as holderSchema, b as sportsMarketTypeSchema, c as liveVolumeSchema, d as orderBookEntrySchema, f as orderBookSummarySchema, g as priceHistoryResponseSchema, h as priceHistoryPointSchema, i as eventSchema, l as marketSchema, m as positionSchema, n as clobPriceSchema, o as listEventsParamsSchema, p as paginationParamsSchema, r as clobPricesMapSchema, s as listMarketsParamsSchema, t as clobMidpointSchema, u as openInterestSchema, v as searchResultSchema, w as tagSchema, x as sportsMetadataSchema, y as seriesSchema } from "./schemas-BHjW8Fcf.mjs";
2
- import { t as polymarket } from "./integration-KDxC97JC.mjs";
1
+ import { C as spreadSchema, D as createPolymarketClient, S as sportsTeamSchema, T as tradeSchema, _ as profileSchema, a as holderSchema, b as sportsMarketTypeSchema, c as liveVolumeSchema, d as orderBookEntrySchema, f as orderBookSummarySchema, g as priceHistoryResponseSchema, h as priceHistoryPointSchema, i as eventSchema, l as marketSchema, m as positionSchema, n as clobPriceSchema, o as listEventsParamsSchema, p as paginationParamsSchema, r as clobPricesMapSchema, s as listMarketsParamsSchema, t as clobMidpointSchema, u as openInterestSchema, v as searchResultSchema, w as tagSchema, x as sportsMetadataSchema, y as seriesSchema } from "./schemas-C_SM7qmm.mjs";
2
+ import { t as polymarket } from "./integration-DX7CGwFx.mjs";
3
3
  import { getLiveVolume, getMarketHolders, getOpenInterest, getUserPositions, listTrades } from "./data.mjs";
4
4
  import { getProfile, getSeries, getSportsMarketTypes, getSportsMetadata, getSportsTeams, listSeries, listTags, search } from "./discovery.mjs";
5
5
  import { getEvent, getEventBySlug, getEventTags, listEvents } from "./events.mjs";
@@ -1,8 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
- import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
5
3
  import * as _keystrokehq_core0 from "@keystrokehq/core";
4
+ import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
6
5
 
7
6
  //#region src/integration.d.ts
8
7
  declare const polymarketBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"polymarket", z.ZodObject<{
@@ -10,9 +9,7 @@ declare const polymarketBundle: _keystrokehq_integration_authoring_official0.Off
10
9
  }, z.core.$strip>>;
11
10
  declare const polymarket: _keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
12
11
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
14
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
15
- }, z.core.$strip>>[] | undefined>;
12
+ }, z.core.$strip>>;
16
13
  /**
17
14
  * Credentials injected into steps.
18
15
  * Derived from the integration definition.
@@ -13,6 +13,7 @@ const polymarketOfficialIntegration = {
13
13
  id: "polymarket",
14
14
  name: "Polymarket",
15
15
  description: "Polymarket — decentralized prediction market data",
16
+ credentialType: "manual",
16
17
  auth: polymarketAuthSchema,
17
18
  proxy: { hosts: [
18
19
  "gamma-api.polymarket.com",
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
3
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/markets.d.ts
@@ -62,9 +61,7 @@ declare const listMarkets: _keystrokehq_core0.Operation<z.ZodObject<{
62
61
  updatedAt: z.ZodOptional<z.ZodString>;
63
62
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
64
63
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
65
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
66
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
67
- }, z.core.$strip>>[] | undefined>], undefined>;
64
+ }, z.core.$strip>>], undefined>;
68
65
  declare const getMarket: _keystrokehq_core0.Operation<z.ZodObject<{
69
66
  id: z.ZodString;
70
67
  }, z.core.$strip>, z.ZodObject<{
@@ -98,9 +95,7 @@ declare const getMarket: _keystrokehq_core0.Operation<z.ZodObject<{
98
95
  updatedAt: z.ZodOptional<z.ZodString>;
99
96
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
100
97
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
101
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
102
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
103
- }, z.core.$strip>>[] | undefined>], undefined>;
98
+ }, z.core.$strip>>], undefined>;
104
99
  declare const getMarketBySlug: _keystrokehq_core0.Operation<z.ZodObject<{
105
100
  slug: z.ZodString;
106
101
  }, z.core.$strip>, z.ZodObject<{
@@ -134,9 +129,7 @@ declare const getMarketBySlug: _keystrokehq_core0.Operation<z.ZodObject<{
134
129
  updatedAt: z.ZodOptional<z.ZodString>;
135
130
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
136
131
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
137
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
138
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
139
- }, z.core.$strip>>[] | undefined>], undefined>;
132
+ }, z.core.$strip>>], undefined>;
140
133
  declare const getMarketTags: _keystrokehq_core0.Operation<z.ZodObject<{
141
134
  id: z.ZodString;
142
135
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
@@ -145,8 +138,6 @@ declare const getMarketTags: _keystrokehq_core0.Operation<z.ZodObject<{
145
138
  slug: z.ZodOptional<z.ZodString>;
146
139
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
147
140
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
148
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
149
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
150
- }, z.core.$strip>>[] | undefined>], undefined>;
141
+ }, z.core.$strip>>], undefined>;
151
142
  //#endregion
152
143
  export { getMarket, getMarketBySlug, getMarketTags, listMarkets };
package/dist/markets.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { D as createPolymarketClient, E as polymarketOperation, l as marketSchema, s as listMarketsParamsSchema, w as tagSchema } from "./schemas-BHjW8Fcf.mjs";
1
+ import { D as createPolymarketClient, E as polymarketOperation, l as marketSchema, s as listMarketsParamsSchema, w as tagSchema } from "./schemas-C_SM7qmm.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/markets.ts
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
3
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/orderbook.d.ts
@@ -23,9 +22,7 @@ declare const getOrderBook: _keystrokehq_core0.Operation<z.ZodObject<{
23
22
  neg_risk: z.ZodOptional<z.ZodBoolean>;
24
23
  }, z.core.$loose>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
25
24
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
27
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
28
- }, z.core.$strip>>[] | undefined>], undefined>;
25
+ }, z.core.$strip>>], undefined>;
29
26
  declare const batchGetOrderBooks: _keystrokehq_core0.Operation<z.ZodObject<{
30
27
  tokenIDs: z.ZodArray<z.ZodString>;
31
28
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
@@ -46,9 +43,7 @@ declare const batchGetOrderBooks: _keystrokehq_core0.Operation<z.ZodObject<{
46
43
  neg_risk: z.ZodOptional<z.ZodBoolean>;
47
44
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
48
45
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
49
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
50
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
51
- }, z.core.$strip>>[] | undefined>], undefined>;
46
+ }, z.core.$strip>>], undefined>;
52
47
  declare const batchGetSpreads: _keystrokehq_core0.Operation<z.ZodObject<{
53
48
  tokenIDs: z.ZodArray<z.ZodString>;
54
49
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
@@ -58,8 +53,6 @@ declare const batchGetSpreads: _keystrokehq_core0.Operation<z.ZodObject<{
58
53
  ask: z.ZodOptional<z.ZodString>;
59
54
  }, z.core.$loose>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
60
55
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
62
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
63
- }, z.core.$strip>>[] | undefined>], undefined>;
56
+ }, z.core.$strip>>], undefined>;
64
57
  //#endregion
65
58
  export { batchGetOrderBooks, batchGetSpreads, getOrderBook };
@@ -1,4 +1,4 @@
1
- import { C as spreadSchema, D as createPolymarketClient, E as polymarketOperation, f as orderBookSummarySchema } from "./schemas-BHjW8Fcf.mjs";
1
+ import { C as spreadSchema, D as createPolymarketClient, E as polymarketOperation, f as orderBookSummarySchema } from "./schemas-C_SM7qmm.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/orderbook.ts
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
3
2
  import * as _keystrokehq_core0 from "@keystrokehq/core";
4
3
 
5
4
  //#region src/pricing.d.ts
@@ -13,26 +12,20 @@ declare const getPrice: _keystrokehq_core0.Operation<z.ZodObject<{
13
12
  price: z.ZodString;
14
13
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
15
14
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
16
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
17
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strip>>[] | undefined>], undefined>;
15
+ }, z.core.$strip>>], undefined>;
19
16
  declare const getMidpoint: _keystrokehq_core0.Operation<z.ZodObject<{
20
17
  tokenID: z.ZodString;
21
18
  }, z.core.$strip>, z.ZodObject<{
22
19
  mid: z.ZodString;
23
20
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
24
21
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
25
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
26
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
27
- }, z.core.$strip>>[] | undefined>], undefined>;
22
+ }, z.core.$strip>>], undefined>;
28
23
  declare const listPrices: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodObject<{
29
24
  BUY: z.ZodString;
30
25
  SELL: z.ZodString;
31
26
  }, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
32
27
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
34
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
35
- }, z.core.$strip>>[] | undefined>], undefined>;
28
+ }, z.core.$strip>>], undefined>;
36
29
  declare const batchGetPrices: _keystrokehq_core0.Operation<z.ZodObject<{
37
30
  tokenIDs: z.ZodArray<z.ZodString>;
38
31
  }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -40,9 +33,7 @@ declare const batchGetPrices: _keystrokehq_core0.Operation<z.ZodObject<{
40
33
  SELL: z.ZodString;
41
34
  }, z.core.$strip>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
42
35
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
43
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
44
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
45
- }, z.core.$strip>>[] | undefined>], undefined>;
36
+ }, z.core.$strip>>], undefined>;
46
37
  declare const getPriceHistory: _keystrokehq_core0.Operation<z.ZodObject<{
47
38
  tokenID: z.ZodString;
48
39
  interval: z.ZodOptional<z.ZodString>;
@@ -56,8 +47,6 @@ declare const getPriceHistory: _keystrokehq_core0.Operation<z.ZodObject<{
56
47
  }, z.core.$strip>>;
57
48
  }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:polymarket", z.ZodObject<{
58
49
  POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
60
- POLYMARKET_API_KEY: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strip>>[] | undefined>], undefined>;
50
+ }, z.core.$strip>>], undefined>;
62
51
  //#endregion
63
52
  export { batchGetPrices, getMidpoint, getPrice, getPriceHistory, listPrices };
package/dist/pricing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { D as createPolymarketClient, E as polymarketOperation, g as priceHistoryResponseSchema, n as clobPriceSchema, r as clobPricesMapSchema, t as clobMidpointSchema } from "./schemas-BHjW8Fcf.mjs";
1
+ import { D as createPolymarketClient, E as polymarketOperation, g as priceHistoryResponseSchema, n as clobPriceSchema, r as clobPricesMapSchema, t as clobMidpointSchema } from "./schemas-C_SM7qmm.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/pricing.ts
@@ -1,4 +1,4 @@
1
- import { t as polymarket } from "./integration-KDxC97JC.mjs";
1
+ import { t as polymarket } from "./integration-DX7CGwFx.mjs";
2
2
  import { z } from "zod";
3
3
  import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/polymarket",
3
- "version": "0.0.8",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -44,18 +44,18 @@
44
44
  "LICENSE"
45
45
  ],
46
46
  "dependencies": {
47
- "@keystrokehq/integration-authoring": "^0.0.8",
47
+ "@keystrokehq/integration-authoring": "^0.0.9",
48
48
  "zod": "^4.3.6"
49
49
  },
50
50
  "peerDependencies": {
51
- "@keystrokehq/core": ">=0.0.8 <0.1.0"
51
+ "@keystrokehq/core": ">=0.0.13 <0.1.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^22.19.11",
55
55
  "tsdown": "^0.20.3",
56
56
  "typescript": "^5.9.3",
57
57
  "vitest": "^4.0.18",
58
- "@keystrokehq/core": "^0.0.8",
58
+ "@keystrokehq/core": "^0.0.13",
59
59
  "@keystrokehq/test-utils": "0.0.0",
60
60
  "@keystrokehq/typescript-config": "0.0.0"
61
61
  },