pmxt-core 2.39.0 → 2.39.1
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/exchanges/kalshi/api.d.ts +1 -1
- package/dist/exchanges/kalshi/api.js +1 -1
- package/dist/exchanges/limitless/api.d.ts +1 -1
- package/dist/exchanges/limitless/api.js +1 -1
- package/dist/exchanges/myriad/api.d.ts +1 -1
- package/dist/exchanges/myriad/api.js +1 -1
- package/dist/exchanges/opinion/api.d.ts +1 -1
- package/dist/exchanges/opinion/api.js +1 -1
- package/dist/exchanges/polymarket/api-clob.d.ts +1 -1
- package/dist/exchanges/polymarket/api-clob.js +1 -1
- package/dist/exchanges/polymarket/api-data.d.ts +1 -1
- package/dist/exchanges/polymarket/api-data.js +1 -1
- package/dist/exchanges/polymarket/api-gamma.d.ts +1 -1
- package/dist/exchanges/polymarket/api-gamma.js +1 -1
- package/dist/exchanges/polymarket/index.d.ts +2 -2
- package/dist/exchanges/polymarket/websocket.d.ts +51 -0
- package/dist/exchanges/polymarket/websocket.js +125 -0
- package/dist/exchanges/probable/api.d.ts +1 -1
- package/dist/exchanges/probable/api.js +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/kalshi/Kalshi.yaml
|
|
3
|
-
* Generated at: 2026-05-08T20:
|
|
3
|
+
* Generated at: 2026-05-08T20:51:55.489Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const kalshiApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.kalshiApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/kalshi/Kalshi.yaml
|
|
6
|
-
* Generated at: 2026-05-08T20:
|
|
6
|
+
* Generated at: 2026-05-08T20:51:55.489Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.kalshiApiSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/limitless/Limitless.yaml
|
|
3
|
-
* Generated at: 2026-05-08T20:
|
|
3
|
+
* Generated at: 2026-05-08T20:51:55.531Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const limitlessApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.limitlessApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/limitless/Limitless.yaml
|
|
6
|
-
* Generated at: 2026-05-08T20:
|
|
6
|
+
* Generated at: 2026-05-08T20:51:55.531Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.limitlessApiSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/myriad/myriad.yaml
|
|
3
|
-
* Generated at: 2026-05-08T20:
|
|
3
|
+
* Generated at: 2026-05-08T20:51:55.542Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const myriadApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.myriadApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/myriad/myriad.yaml
|
|
6
|
-
* Generated at: 2026-05-08T20:
|
|
6
|
+
* Generated at: 2026-05-08T20:51:55.542Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.myriadApiSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/opinion/opinion-openapi.yaml
|
|
3
|
-
* Generated at: 2026-05-08T20:
|
|
3
|
+
* Generated at: 2026-05-08T20:51:55.548Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const opinionApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.opinionApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/opinion/opinion-openapi.yaml
|
|
6
|
-
* Generated at: 2026-05-08T20:
|
|
6
|
+
* Generated at: 2026-05-08T20:51:55.548Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.opinionApiSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketClobAPI.yaml
|
|
3
|
-
* Generated at: 2026-05-08T20:
|
|
3
|
+
* Generated at: 2026-05-08T20:51:55.496Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const polymarketClobSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.polymarketClobSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketClobAPI.yaml
|
|
6
|
-
* Generated at: 2026-05-08T20:
|
|
6
|
+
* Generated at: 2026-05-08T20:51:55.496Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.polymarketClobSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/Polymarket_Data_API.yaml
|
|
3
|
-
* Generated at: 2026-05-08T20:
|
|
3
|
+
* Generated at: 2026-05-08T20:51:55.511Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const polymarketDataSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.polymarketDataSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/Polymarket_Data_API.yaml
|
|
6
|
-
* Generated at: 2026-05-08T20:
|
|
6
|
+
* Generated at: 2026-05-08T20:51:55.511Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.polymarketDataSpec = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketGammaAPI.yaml
|
|
3
|
-
* Generated at: 2026-05-08T20:
|
|
3
|
+
* Generated at: 2026-05-08T20:51:55.508Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const polymarketGammaSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.polymarketGammaSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/polymarket/PolymarketGammaAPI.yaml
|
|
6
|
-
* Generated at: 2026-05-08T20:
|
|
6
|
+
* Generated at: 2026-05-08T20:51:55.508Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.polymarketGammaSpec = {
|
|
@@ -3,8 +3,8 @@ import { SubscribedAddressSnapshot, SubscriptionOption } from '../../subscriber/
|
|
|
3
3
|
import { buildPolymarketTradesActivity, POLYMARKET_DEFAULT_SUBSCRIPTION } from '../../subscriber/external/goldsky';
|
|
4
4
|
import { WatcherConfig } from '../../subscriber/watcher';
|
|
5
5
|
import { Balance, BuiltOrder, CreateOrderParams, Order, OrderBook, Position, PriceCandle, Trade, UnifiedEvent, UnifiedMarket, UserTrade } from '../../types';
|
|
6
|
-
import { PolymarketWebSocketConfig } from './websocket';
|
|
7
|
-
export type { PolymarketWebSocketConfig, WatcherConfig };
|
|
6
|
+
import { PolymarketWebSocketConfig, UserChannelCallback, UserChannelEvent, PolymarketUserChannelCreds } from './websocket';
|
|
7
|
+
export type { PolymarketWebSocketConfig, WatcherConfig, UserChannelCallback, UserChannelEvent, PolymarketUserChannelCreds };
|
|
8
8
|
export { POLYMARKET_DEFAULT_SUBSCRIPTION, buildPolymarketTradesActivity };
|
|
9
9
|
export interface PolymarketExchangeOptions {
|
|
10
10
|
credentials?: ExchangeCredentials;
|
|
@@ -8,6 +8,34 @@
|
|
|
8
8
|
import { SubscribedAddressSnapshot, SubscriptionOption } from '../../subscriber/base';
|
|
9
9
|
import { WatcherConfig } from '../../subscriber/watcher';
|
|
10
10
|
import { OrderBook, Trade } from '../../types';
|
|
11
|
+
export interface PolymarketUserChannelCreds {
|
|
12
|
+
apiKey: string;
|
|
13
|
+
secret: string;
|
|
14
|
+
passphrase: string;
|
|
15
|
+
}
|
|
16
|
+
export interface UserTradeEvent {
|
|
17
|
+
asset_id: string;
|
|
18
|
+
event_type: 'trade';
|
|
19
|
+
price: string;
|
|
20
|
+
size: string;
|
|
21
|
+
side: string;
|
|
22
|
+
status: string;
|
|
23
|
+
maker_orders?: any[];
|
|
24
|
+
timestamp?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface UserOrderEvent {
|
|
27
|
+
asset_id: string;
|
|
28
|
+
event_type: 'order';
|
|
29
|
+
order_id: string;
|
|
30
|
+
price: string;
|
|
31
|
+
original_size: string;
|
|
32
|
+
matched_size?: string;
|
|
33
|
+
side: string;
|
|
34
|
+
type: string;
|
|
35
|
+
timestamp?: string;
|
|
36
|
+
}
|
|
37
|
+
export type UserChannelEvent = UserTradeEvent | UserOrderEvent;
|
|
38
|
+
export type UserChannelCallback = (event: UserChannelEvent) => void;
|
|
11
39
|
export interface PolymarketWebSocketConfig {
|
|
12
40
|
/** Reconnection check interval in milliseconds (default: 5000) */
|
|
13
41
|
reconnectIntervalMs?: number;
|
|
@@ -17,6 +45,8 @@ export interface PolymarketWebSocketConfig {
|
|
|
17
45
|
watcherConfig?: WatcherConfig;
|
|
18
46
|
/** Timeout in ms for watch methods to receive data (default: 30000). 0 = no timeout. */
|
|
19
47
|
watchTimeoutMs?: number;
|
|
48
|
+
/** API credentials for the authenticated user channel (fills/orders). */
|
|
49
|
+
userChannelCreds?: PolymarketUserChannelCreds;
|
|
20
50
|
}
|
|
21
51
|
/**
|
|
22
52
|
* Wrapper around @nevuamarkets/poly-websockets that provides CCXT Pro-style
|
|
@@ -36,6 +66,27 @@ export declare class PolymarketWebSocket {
|
|
|
36
66
|
watchTrades(outcomeId: string, address?: string): Promise<Trade[]>;
|
|
37
67
|
watchAddress(address: string, types: SubscriptionOption[]): Promise<SubscribedAddressSnapshot>;
|
|
38
68
|
unwatchAddress(address: string): Promise<void>;
|
|
69
|
+
private userWs;
|
|
70
|
+
private userCallbacks;
|
|
71
|
+
private userPingInterval;
|
|
72
|
+
private userReconnectTimer;
|
|
73
|
+
private userConditionIds;
|
|
74
|
+
/**
|
|
75
|
+
* Subscribe to authenticated fill/order events via Polymarket's user channel.
|
|
76
|
+
* Requires `userChannelCreds` in the config.
|
|
77
|
+
*
|
|
78
|
+
* @param conditionIds - Market condition IDs to monitor
|
|
79
|
+
* @param callback - Called for each trade or order event
|
|
80
|
+
*/
|
|
81
|
+
watchUserFills(conditionIds: string[], callback: UserChannelCallback): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Stop watching user fills and close the user channel WebSocket.
|
|
84
|
+
*/
|
|
85
|
+
unwatchUserFills(): Promise<void>;
|
|
86
|
+
private connectUserChannel;
|
|
87
|
+
private sendUserSubscription;
|
|
88
|
+
private scheduleUserReconnect;
|
|
89
|
+
private closeUserChannel;
|
|
39
90
|
close(): Promise<void>;
|
|
40
91
|
private ensureInitialized;
|
|
41
92
|
private handleBookSnapshot;
|
|
@@ -124,10 +124,135 @@ class PolymarketWebSocket {
|
|
|
124
124
|
async unwatchAddress(address) {
|
|
125
125
|
return this.watcher.unwatch(address);
|
|
126
126
|
}
|
|
127
|
+
// -----------------------------------------------------------------
|
|
128
|
+
// Authenticated User Channel (fills + order updates)
|
|
129
|
+
// -----------------------------------------------------------------
|
|
130
|
+
userWs = null;
|
|
131
|
+
userCallbacks = [];
|
|
132
|
+
userPingInterval = null;
|
|
133
|
+
userReconnectTimer = null;
|
|
134
|
+
userConditionIds = [];
|
|
135
|
+
/**
|
|
136
|
+
* Subscribe to authenticated fill/order events via Polymarket's user channel.
|
|
137
|
+
* Requires `userChannelCreds` in the config.
|
|
138
|
+
*
|
|
139
|
+
* @param conditionIds - Market condition IDs to monitor
|
|
140
|
+
* @param callback - Called for each trade or order event
|
|
141
|
+
*/
|
|
142
|
+
async watchUserFills(conditionIds, callback) {
|
|
143
|
+
const creds = this.config.userChannelCreds;
|
|
144
|
+
if (!creds) {
|
|
145
|
+
throw new Error('User channel requires API credentials. Pass userChannelCreds in PolymarketWebSocketConfig.');
|
|
146
|
+
}
|
|
147
|
+
this.userCallbacks.push(callback);
|
|
148
|
+
this.userConditionIds = [...new Set([...this.userConditionIds, ...conditionIds])];
|
|
149
|
+
if (this.userWs) {
|
|
150
|
+
// Already connected — just re-subscribe with updated condition IDs.
|
|
151
|
+
this.sendUserSubscription(creds);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
await this.connectUserChannel(creds);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Stop watching user fills and close the user channel WebSocket.
|
|
158
|
+
*/
|
|
159
|
+
async unwatchUserFills() {
|
|
160
|
+
this.userCallbacks = [];
|
|
161
|
+
this.userConditionIds = [];
|
|
162
|
+
this.closeUserChannel();
|
|
163
|
+
}
|
|
164
|
+
async connectUserChannel(creds) {
|
|
165
|
+
const WebSocket = (await Promise.resolve().then(() => __importStar(require('ws')))).default;
|
|
166
|
+
const url = 'wss://ws-subscriptions-clob.polymarket.com/ws/user';
|
|
167
|
+
this.userWs = new WebSocket(url);
|
|
168
|
+
this.userWs.on('open', () => {
|
|
169
|
+
console.log('[polymarket-ws] user channel connected');
|
|
170
|
+
this.sendUserSubscription(creds);
|
|
171
|
+
// Ping every 10 seconds to keep the connection alive.
|
|
172
|
+
if (this.userPingInterval)
|
|
173
|
+
clearInterval(this.userPingInterval);
|
|
174
|
+
this.userPingInterval = setInterval(() => {
|
|
175
|
+
if (this.userWs?.readyState === WebSocket.OPEN) {
|
|
176
|
+
this.userWs.ping();
|
|
177
|
+
}
|
|
178
|
+
}, 10_000);
|
|
179
|
+
});
|
|
180
|
+
this.userWs.on('message', (raw) => {
|
|
181
|
+
try {
|
|
182
|
+
const events = JSON.parse(raw.toString());
|
|
183
|
+
const arr = Array.isArray(events) ? events : [events];
|
|
184
|
+
for (const event of arr) {
|
|
185
|
+
for (const cb of this.userCallbacks) {
|
|
186
|
+
try {
|
|
187
|
+
cb(event);
|
|
188
|
+
}
|
|
189
|
+
catch (e) {
|
|
190
|
+
console.error('[polymarket-ws] user callback error:', e);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
catch {
|
|
196
|
+
// Non-JSON control message (pong, etc.) — ignore.
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
this.userWs.on('close', () => {
|
|
200
|
+
console.warn('[polymarket-ws] user channel disconnected, reconnecting in 5s');
|
|
201
|
+
this.scheduleUserReconnect(creds);
|
|
202
|
+
});
|
|
203
|
+
this.userWs.on('error', (err) => {
|
|
204
|
+
console.error('[polymarket-ws] user channel error:', err.message);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
sendUserSubscription(creds) {
|
|
208
|
+
if (!this.userWs || this.userWs.readyState !== 1)
|
|
209
|
+
return;
|
|
210
|
+
const msg = JSON.stringify({
|
|
211
|
+
auth: {
|
|
212
|
+
apiKey: creds.apiKey,
|
|
213
|
+
secret: creds.secret,
|
|
214
|
+
passphrase: creds.passphrase,
|
|
215
|
+
},
|
|
216
|
+
markets: this.userConditionIds,
|
|
217
|
+
type: 'user',
|
|
218
|
+
});
|
|
219
|
+
this.userWs.send(msg);
|
|
220
|
+
}
|
|
221
|
+
scheduleUserReconnect(creds) {
|
|
222
|
+
if (this.userReconnectTimer)
|
|
223
|
+
return;
|
|
224
|
+
this.userReconnectTimer = setTimeout(async () => {
|
|
225
|
+
this.userReconnectTimer = null;
|
|
226
|
+
if (this.userCallbacks.length > 0) {
|
|
227
|
+
try {
|
|
228
|
+
await this.connectUserChannel(creds);
|
|
229
|
+
}
|
|
230
|
+
catch (e) {
|
|
231
|
+
console.error('[polymarket-ws] reconnect failed:', e.message);
|
|
232
|
+
this.scheduleUserReconnect(creds);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}, 5000);
|
|
236
|
+
}
|
|
237
|
+
closeUserChannel() {
|
|
238
|
+
if (this.userPingInterval) {
|
|
239
|
+
clearInterval(this.userPingInterval);
|
|
240
|
+
this.userPingInterval = null;
|
|
241
|
+
}
|
|
242
|
+
if (this.userReconnectTimer) {
|
|
243
|
+
clearTimeout(this.userReconnectTimer);
|
|
244
|
+
this.userReconnectTimer = null;
|
|
245
|
+
}
|
|
246
|
+
if (this.userWs) {
|
|
247
|
+
this.userWs.close();
|
|
248
|
+
this.userWs = null;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
127
251
|
async close() {
|
|
128
252
|
if (this.manager) {
|
|
129
253
|
await this.manager.clearState();
|
|
130
254
|
}
|
|
255
|
+
this.closeUserChannel();
|
|
131
256
|
this.watcher.close();
|
|
132
257
|
}
|
|
133
258
|
async ensureInitialized() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/probable/probable.yaml
|
|
3
|
-
* Generated at: 2026-05-08T20:
|
|
3
|
+
* Generated at: 2026-05-08T20:51:55.535Z
|
|
4
4
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
5
5
|
*/
|
|
6
6
|
export declare const probableApiSpec: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.probableApiSpec = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Auto-generated from /home/runner/work/pmxt/pmxt/core/specs/probable/probable.yaml
|
|
6
|
-
* Generated at: 2026-05-08T20:
|
|
6
|
+
* Generated at: 2026-05-08T20:51:55.535Z
|
|
7
7
|
* Do not edit manually -- run "npm run fetch:openapi" to regenerate.
|
|
8
8
|
*/
|
|
9
9
|
exports.probableApiSpec = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxt-core",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.1",
|
|
4
4
|
"description": "pmxt is a unified prediction market data API. The ccxt for prediction markets.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"test": "jest -c jest.config.js",
|
|
30
30
|
"server": "tsx watch src/server/index.ts",
|
|
31
31
|
"server:prod": "node dist/server/index.js",
|
|
32
|
-
"generate:sdk:python": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g python -o ../sdks/python/generated --package-name pmxt_internal --additional-properties=projectName=pmxt-internal,packageVersion=2.39.
|
|
33
|
-
"generate:sdk:typescript": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g typescript-fetch -o ../sdks/typescript/generated --additional-properties=npmName=pmxtjs,npmVersion=2.39.
|
|
32
|
+
"generate:sdk:python": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g python -o ../sdks/python/generated --package-name pmxt_internal --additional-properties=projectName=pmxt-internal,packageVersion=2.39.1,library=urllib3",
|
|
33
|
+
"generate:sdk:typescript": "npx @openapitools/openapi-generator-cli generate -i src/server/openapi.yaml -g typescript-fetch -o ../sdks/typescript/generated --additional-properties=npmName=pmxtjs,npmVersion=2.39.1,supportsES6=true,typescriptThreePlus=true && node ../sdks/typescript/scripts/fix-generated.js",
|
|
34
34
|
"fetch:openapi": "node scripts/fetch-openapi-specs.js",
|
|
35
35
|
"extract:jsdoc": "node ../scripts/extract-jsdoc.js",
|
|
36
36
|
"generate:docs": "npm run extract:jsdoc && node ../scripts/generate-api-docs.js",
|