@0xinsider/sdk 0.27.0 → 0.27.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/README.md +7 -0
- package/dist/client.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/provenance.d.ts +2 -2
- package/dist/provenance.d.ts.map +1 -1
- package/dist/provenance.js +3 -3
- package/dist/provenance.js.map +1 -1
- package/dist/schema.d.ts +217 -19
- package/dist/schema.d.ts.map +1 -1
- package/dist/webhooks.d.ts +30 -234
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js.map +1 -1
- package/package.json +1 -1
package/dist/webhooks.d.ts
CHANGED
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
* across at-least-once retries. Terminal states never restart on polling or
|
|
42
42
|
* replay. The legacy synchronous method and its retry restriction remain.
|
|
43
43
|
*/
|
|
44
|
-
import type {
|
|
45
|
-
import type { WebhookEventType as ContractWebhookEventType } from "./schema.js";
|
|
44
|
+
import type { LargeTradesInsertedData, SharpMoneyFlowDetectedData, SuspiciousTradeFlaggedData, TraderSyncedData, WebhookEventData, WebhookEventType as ContractWebhookEventType } from "./schema.js";
|
|
46
45
|
/** Default replay tolerance; the published contract is 300 seconds. */
|
|
47
46
|
export declare const SIGNATURE_TOLERANCE_SECONDS = 300;
|
|
48
47
|
/** Header carrying the `v1=<hex>` signature. */
|
|
@@ -133,248 +132,51 @@ type Complete<T, Missing extends never> = T | Missing;
|
|
|
133
132
|
export type WebhookEventType = Complete<ContractWebhookEventType, Exclude<ContractWebhookEventType, (typeof WEBHOOK_EVENT_TYPES)[number]>>;
|
|
134
133
|
/**
|
|
135
134
|
* Common delivery envelope every webhook POST body carries. Source of truth:
|
|
136
|
-
*
|
|
137
|
-
*
|
|
135
|
+
* `WebhookEnvelope` in `backend/crates/core/src/webhook_payloads.rs`, which
|
|
136
|
+
* every entry of the OpenAPI document's `webhooks` map describes.
|
|
138
137
|
*/
|
|
139
138
|
export interface WebhookEventEnvelope<TType extends WebhookEventType = WebhookEventType, TData = unknown> {
|
|
140
139
|
/** Stable event id; identical across retries of the same logical event. */
|
|
141
140
|
id: string;
|
|
142
141
|
type: TType;
|
|
143
|
-
/** ISO-8601 timestamp of when the event was enqueued. */
|
|
144
|
-
created_at: string;
|
|
145
|
-
data: TData;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* `large_trade_inserted_v2` data (Pro and Max): one large trade, with the
|
|
149
|
-
* trade itself. Source: `LargeTradeInsertedV2` in
|
|
150
|
-
* `backend/crates/core/src/feed_event.rs`.
|
|
151
|
-
*
|
|
152
|
-
* The three amounts are decimal strings that keep the stored precision. Parse
|
|
153
|
-
* them with a decimal library when the exact value matters; `Number` rounds.
|
|
154
|
-
* The endpoint's `trade_filters` decide which trades it receives.
|
|
155
|
-
*/
|
|
156
|
-
export interface LargeTradeInsertedV2Data {
|
|
157
142
|
/**
|
|
158
|
-
*
|
|
159
|
-
*
|
|
143
|
+
* When the producer recorded the event (ISO 8601); for a trade event, the
|
|
144
|
+
* fill time. Retries resend the same body, so it is not the time of the
|
|
145
|
+
* attempt.
|
|
160
146
|
*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
whale_alert_id: number;
|
|
164
|
-
/** Polymarket condition id of the market. */
|
|
165
|
-
condition_id: string;
|
|
166
|
-
/** 0xinsider's numeric id for the wallet. */
|
|
167
|
-
trader_id: number;
|
|
168
|
-
/** Address of the wallet that made the trade. */
|
|
169
|
-
wallet: string;
|
|
170
|
-
/** The wallet's grade when the event was published; `null` when it has none. */
|
|
171
|
-
grade: Grade | null;
|
|
172
|
-
/** USD notional of the trade; decimal string. */
|
|
173
|
-
size_usd: string;
|
|
174
|
-
/** Shares traded; decimal string. */
|
|
175
|
-
shares: string;
|
|
176
|
-
/** Price paid per share; decimal string. */
|
|
177
|
-
price: string;
|
|
178
|
-
side: "BUY" | "SELL";
|
|
179
|
-
/** Polymarket's index of the outcome traded. */
|
|
180
|
-
outcome_index: number;
|
|
181
|
-
/** When the trade filled on Polymarket (ISO 8601). */
|
|
182
|
-
traded_at: string;
|
|
183
|
-
platform: "polymarket";
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* `large_trades_inserted` data (Pro and Max): new large trades were ingested.
|
|
187
|
-
* It carries a count and no trade; subscribe to `large_trade_inserted_v2` for
|
|
188
|
-
* the trade itself.
|
|
189
|
-
*
|
|
190
|
-
* Delivered identically under the deprecated spelling `whale_trades_inserted`
|
|
191
|
-
* (#16304) to an endpoint that registered that spelling; the payload is the
|
|
192
|
-
* same.
|
|
193
|
-
*/
|
|
194
|
-
export interface LargeTradesInsertedData {
|
|
195
|
-
count: number;
|
|
147
|
+
created_at: string;
|
|
148
|
+
data: TData;
|
|
196
149
|
}
|
|
150
|
+
export type { ExportJobCancelledData, ExportJobExpiredData, ExportJobFailedData, ExportJobReadyData, LargePositionsUpdatedData, LargeTradeInsertedV2Data, LargeTradesInsertedData, LiveSportsScoreEntry, LiveSportsUpdatedData, SharpMoneyFlowDetectedData, SuspiciousTradeFlaggedData, TraderSyncedData, WalletGradeChangedData, } from "./schema.js";
|
|
197
151
|
/**
|
|
198
152
|
* @deprecated Use `LargeTradesInsertedData`; renamed in #16304. The two event
|
|
199
153
|
* spellings are one event with one payload, so this is an alias.
|
|
200
154
|
*/
|
|
201
155
|
export type WhaleTradesInsertedData = LargeTradesInsertedData;
|
|
202
|
-
/** One side's score line inside a `live_sports_updated` pulse. */
|
|
203
|
-
export interface LiveSportsScoreEntry {
|
|
204
|
-
team: string;
|
|
205
|
-
score: string;
|
|
206
|
-
/** Esports series only: this side's current-map score. Absent on other sports. */
|
|
207
|
-
map_score?: string;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* `live_sports_updated` data: one bounded pulse for one live game.
|
|
211
|
-
*
|
|
212
|
-
* A pulse fires when a material field moved since this game's previous
|
|
213
|
-
* delivered pulse (`scores`, `status`, `period`, `live`, `ended`), at most once
|
|
214
|
-
* per game per 20 seconds. A `live` or `ended` transition is exempt from that
|
|
215
|
-
* interval, so a game going live or final is never coalesced away; the game
|
|
216
|
-
* clock alone never fires a pulse. Suppressed frames are folded into the next
|
|
217
|
-
* pulse's `changed` and its body carries the current state, so you see every
|
|
218
|
-
* field that moved but not every intermediate value.
|
|
219
|
-
*/
|
|
220
|
-
export interface LiveSportsUpdatedData {
|
|
221
|
-
/** The Polymarket event slug this game trades under. */
|
|
222
|
-
event_slug: string;
|
|
223
|
-
/** Provider game id, or `null` when the frame carried none. */
|
|
224
|
-
game_id: string | null;
|
|
225
|
-
/** League abbreviation, or `null`. */
|
|
226
|
-
league: string | null;
|
|
227
|
-
/**
|
|
228
|
-
* Durable per-game pulse ordinal, increasing by one per delivered pulse.
|
|
229
|
-
* Deliveries are not ordered, so drop a pulse whose version you already saw.
|
|
230
|
-
*/
|
|
231
|
-
version: number;
|
|
232
|
-
/** Material fields that moved since this game's previous delivered pulse. */
|
|
233
|
-
changed: Array<"scores" | "status" | "period" | "live" | "ended">;
|
|
234
|
-
/** Provider frame time (ISO 8601), or `null` when the frame carried none. */
|
|
235
|
-
observed_at: string | null;
|
|
236
|
-
/** When the pulse was admitted (ISO 8601). */
|
|
237
|
-
published_at: string;
|
|
238
|
-
status: string | null;
|
|
239
|
-
period: string | null;
|
|
240
|
-
/** Game clock. Not a material field: it never fires a pulse on its own. */
|
|
241
|
-
clock: string | null;
|
|
242
|
-
live: boolean | null;
|
|
243
|
-
ended: boolean;
|
|
244
|
-
scores: LiveSportsScoreEntry[];
|
|
245
|
-
/** Esports `BoN` series token, or `null` on every other sport. */
|
|
246
|
-
series_format: string | null;
|
|
247
|
-
/** Public game page; re-read it after a gap instead of replaying pulses. */
|
|
248
|
-
snapshot_url: string;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* `trader_synced` data: a tracked trader finished a sync pass.
|
|
252
|
-
*
|
|
253
|
-
* Delivered identically under the deprecated spelling `whale_trader_synced`
|
|
254
|
-
* (#16304) to an endpoint that registered that spelling; the payload is the
|
|
255
|
-
* same.
|
|
256
|
-
*/
|
|
257
|
-
export interface TraderSyncedData {
|
|
258
|
-
trader_id: number;
|
|
259
|
-
wallet: string;
|
|
260
|
-
}
|
|
261
156
|
/**
|
|
262
157
|
* @deprecated Use `TraderSyncedData`; renamed in #16304. The two event
|
|
263
158
|
* spellings are one event with one payload, so this is an alias.
|
|
264
159
|
*/
|
|
265
160
|
export type WhaleTraderSyncedData = TraderSyncedData;
|
|
266
|
-
/** `large_positions_updated` data. */
|
|
267
|
-
export interface LargePositionsUpdatedData {
|
|
268
|
-
count: number;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* `wallet_grade_changed` data (Pro and Max): a tracked wallet's grade moved.
|
|
272
|
-
* Source: `backend/crates/sync/src/periodic/heavy_pipeline.rs`.
|
|
273
|
-
*/
|
|
274
|
-
export interface WalletGradeChangedData {
|
|
275
|
-
wallet: string;
|
|
276
|
-
trader_id: number;
|
|
277
|
-
/** The grade before the move. Never equal to `new_grade`. */
|
|
278
|
-
old_grade: Grade;
|
|
279
|
-
new_grade: Grade;
|
|
280
|
-
/** `"upgrade"` when `new_grade` is better than `old_grade`, else `"downgrade"`. */
|
|
281
|
-
direction: "upgrade" | "downgrade";
|
|
282
|
-
skill_index: number;
|
|
283
|
-
final_score: number;
|
|
284
|
-
date: string;
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* `suspicious_trade_flagged` data (Pro and Max): a suspicion threshold was
|
|
288
|
-
* crossed on a fresh fill. Source: `insider_radar_flag_webhook_payload` in
|
|
289
|
-
* `backend/crates/core/src/trade_flagging/mod.rs`.
|
|
290
|
-
*
|
|
291
|
-
* Delivered identically under the deprecated spelling
|
|
292
|
-
* `insider_radar_flag_raised` (#16301) to an endpoint that registered that
|
|
293
|
-
* spelling; the payload is the same.
|
|
294
|
-
*/
|
|
295
|
-
export interface SuspiciousTradeFlaggedData {
|
|
296
|
-
/**
|
|
297
|
-
* Numeric id of the flagged trade, a JSON number (SDK 0.25.0 and earlier
|
|
298
|
-
* typed it as a string, which the API never sent). It is the `id` that
|
|
299
|
-
* `GET /api/v1/large-trades/{id}` accepts.
|
|
300
|
-
*/
|
|
301
|
-
trade_id: number;
|
|
302
|
-
wallet: string;
|
|
303
|
-
trader_id: number;
|
|
304
|
-
condition_id: string;
|
|
305
|
-
suspicion_score: number;
|
|
306
|
-
/** The scoring track that raised the flag. */
|
|
307
|
-
track: "whale" | "fresh_conviction" | "sliced_position";
|
|
308
|
-
/** Outcome side the flagged fill took. */
|
|
309
|
-
side: "yes" | "no";
|
|
310
|
-
size: number;
|
|
311
|
-
price: number;
|
|
312
|
-
}
|
|
313
161
|
/**
|
|
314
162
|
* @deprecated Use `SuspiciousTradeFlaggedData`; renamed in #16301. The two
|
|
315
163
|
* event spellings are one event with one payload, so this is an alias.
|
|
316
164
|
*/
|
|
317
165
|
export type InsiderRadarFlagRaisedData = SuspiciousTradeFlaggedData;
|
|
318
166
|
/**
|
|
319
|
-
* `
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
* One payload for both spellings of the event: the deprecated
|
|
323
|
-
* `smart_money_flow_detected` delivers the same object (#16308).
|
|
167
|
+
* @deprecated Use `SharpMoneyFlowDetectedData`; renamed in #16308. The two
|
|
168
|
+
* event spellings are one event with one payload, so this is an alias.
|
|
324
169
|
*/
|
|
325
|
-
export
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
net_flow_usd: number;
|
|
329
|
-
abs_net_flow_usd: number;
|
|
330
|
-
/** Side the net flow leans: `"yes"` when `net_flow_usd >= 0`, else `"no"`. */
|
|
331
|
-
dominant_side: "yes" | "no";
|
|
332
|
-
/** Minimum trader grade included in the flow. */
|
|
333
|
-
grade_floor: Grade;
|
|
334
|
-
whale_trade_count: number;
|
|
335
|
-
/** Detection window, e.g. "24h". */
|
|
336
|
-
window: string;
|
|
337
|
-
}
|
|
338
|
-
/** `export_job_ready` data: the owner's async export can be downloaded. */
|
|
339
|
-
export interface ExportJobReadyData {
|
|
340
|
-
job_id: number;
|
|
341
|
-
status: "ready";
|
|
342
|
-
format: string;
|
|
343
|
-
next_action: "download";
|
|
344
|
-
total_trades: number | null;
|
|
345
|
-
processed_trades: number | null;
|
|
346
|
-
file_size: number | null;
|
|
347
|
-
data_as_of: string | null;
|
|
348
|
-
}
|
|
349
|
-
/** `export_job_failed` data: the owner's async export reached a terminal failure. */
|
|
350
|
-
export interface ExportJobFailedData {
|
|
351
|
-
job_id: number;
|
|
352
|
-
status: "failed";
|
|
353
|
-
format: string;
|
|
354
|
-
next_action: "resubmit";
|
|
355
|
-
failure_reason: string;
|
|
356
|
-
}
|
|
357
|
-
/** `export_job_expired` data: the owner's ready export passed retention. */
|
|
358
|
-
export interface ExportJobExpiredData {
|
|
359
|
-
job_id: number;
|
|
360
|
-
status: "expired";
|
|
361
|
-
format: string;
|
|
362
|
-
next_action: "resubmit";
|
|
363
|
-
}
|
|
364
|
-
/** `export_job_cancelled` data: the owner's export stopped because its owner cancelled it. */
|
|
365
|
-
export interface ExportJobCancelledData {
|
|
366
|
-
job_id: number;
|
|
367
|
-
status: "cancelled";
|
|
368
|
-
format: string;
|
|
369
|
-
next_action: "resubmit";
|
|
370
|
-
}
|
|
170
|
+
export type SmartMoneyFlowDetectedData = SharpMoneyFlowDetectedData;
|
|
171
|
+
/** One event type's delivery: the envelope around the payload the document declares for it. */
|
|
172
|
+
type EventFor<TType extends WebhookEventType> = WebhookEventEnvelope<TType, WebhookEventData[TType]>;
|
|
371
173
|
/**
|
|
372
174
|
* One large trade per delivery (Pro and Max, #16149). The envelope `id` equals
|
|
373
175
|
* `data.event_id`, and `created_at` is the trade's fill time
|
|
374
176
|
* (`data.traded_at`), not the time the delivery was queued.
|
|
375
177
|
*/
|
|
376
|
-
export type LargeTradeInsertedV2Event =
|
|
377
|
-
export type LargeTradesInsertedEvent =
|
|
178
|
+
export type LargeTradeInsertedV2Event = EventFor<"large_trade_inserted_v2">;
|
|
179
|
+
export type LargeTradesInsertedEvent = EventFor<"large_trades_inserted">;
|
|
378
180
|
/**
|
|
379
181
|
* @deprecated Use `LargeTradesInsertedEvent`; renamed in #16304. This stays a
|
|
380
182
|
* distinct envelope rather than an alias of it because the delivered `type`
|
|
@@ -382,9 +184,9 @@ export type LargeTradesInsertedEvent = WebhookEventEnvelope<"large_trades_insert
|
|
|
382
184
|
* to `whale_trades_inserted` keeps receiving that literal, so narrowing on it
|
|
383
185
|
* keeps working.
|
|
384
186
|
*/
|
|
385
|
-
export type WhaleTradesInsertedEvent =
|
|
386
|
-
export type LiveSportsUpdatedEvent =
|
|
387
|
-
export type TraderSyncedEvent =
|
|
187
|
+
export type WhaleTradesInsertedEvent = EventFor<"whale_trades_inserted">;
|
|
188
|
+
export type LiveSportsUpdatedEvent = EventFor<"live_sports_updated">;
|
|
189
|
+
export type TraderSyncedEvent = EventFor<"trader_synced">;
|
|
388
190
|
/**
|
|
389
191
|
* @deprecated Use `TraderSyncedEvent`; renamed in #16304. This stays a
|
|
390
192
|
* distinct envelope rather than an alias of it because the delivered `type`
|
|
@@ -392,10 +194,10 @@ export type TraderSyncedEvent = WebhookEventEnvelope<"trader_synced", TraderSync
|
|
|
392
194
|
* to `whale_trader_synced` keeps receiving that literal, so narrowing on it
|
|
393
195
|
* keeps working.
|
|
394
196
|
*/
|
|
395
|
-
export type WhaleTraderSyncedEvent =
|
|
396
|
-
export type LargePositionsUpdatedEvent =
|
|
397
|
-
export type WalletGradeChangedEvent =
|
|
398
|
-
export type SuspiciousTradeFlaggedEvent =
|
|
197
|
+
export type WhaleTraderSyncedEvent = EventFor<"whale_trader_synced">;
|
|
198
|
+
export type LargePositionsUpdatedEvent = EventFor<"large_positions_updated">;
|
|
199
|
+
export type WalletGradeChangedEvent = EventFor<"wallet_grade_changed">;
|
|
200
|
+
export type SuspiciousTradeFlaggedEvent = EventFor<"suspicious_trade_flagged">;
|
|
399
201
|
/**
|
|
400
202
|
* @deprecated Use `SuspiciousTradeFlaggedEvent`; renamed in #16301. This stays
|
|
401
203
|
* a distinct envelope rather than an alias of it because the delivered `type`
|
|
@@ -403,13 +205,8 @@ export type SuspiciousTradeFlaggedEvent = WebhookEventEnvelope<"suspicious_trade
|
|
|
403
205
|
* to `insider_radar_flag_raised` keeps receiving that literal, so narrowing on
|
|
404
206
|
* it keeps working.
|
|
405
207
|
*/
|
|
406
|
-
export type InsiderRadarFlagRaisedEvent =
|
|
407
|
-
|
|
408
|
-
* @deprecated Use `SharpMoneyFlowDetectedData`; renamed in #16308. The two
|
|
409
|
-
* event spellings are one event with one payload, so this is an alias.
|
|
410
|
-
*/
|
|
411
|
-
export type SmartMoneyFlowDetectedData = SharpMoneyFlowDetectedData;
|
|
412
|
-
export type SharpMoneyFlowDetectedEvent = WebhookEventEnvelope<"sharp_money_flow_detected", SharpMoneyFlowDetectedData>;
|
|
208
|
+
export type InsiderRadarFlagRaisedEvent = EventFor<"insider_radar_flag_raised">;
|
|
209
|
+
export type SharpMoneyFlowDetectedEvent = EventFor<"sharp_money_flow_detected">;
|
|
413
210
|
/**
|
|
414
211
|
* @deprecated Use `SharpMoneyFlowDetectedEvent`; renamed in #16308. This stays
|
|
415
212
|
* a distinct envelope rather than an alias of it because the delivered `type`
|
|
@@ -417,11 +214,11 @@ export type SharpMoneyFlowDetectedEvent = WebhookEventEnvelope<"sharp_money_flow
|
|
|
417
214
|
* to `smart_money_flow_detected` keeps receiving that literal, so narrowing on
|
|
418
215
|
* it keeps working.
|
|
419
216
|
*/
|
|
420
|
-
export type SmartMoneyFlowDetectedEvent =
|
|
421
|
-
export type ExportJobReadyEvent =
|
|
422
|
-
export type ExportJobFailedEvent =
|
|
423
|
-
export type ExportJobExpiredEvent =
|
|
424
|
-
export type ExportJobCancelledEvent =
|
|
217
|
+
export type SmartMoneyFlowDetectedEvent = EventFor<"smart_money_flow_detected">;
|
|
218
|
+
export type ExportJobReadyEvent = EventFor<"export_job_ready">;
|
|
219
|
+
export type ExportJobFailedEvent = EventFor<"export_job_failed">;
|
|
220
|
+
export type ExportJobExpiredEvent = EventFor<"export_job_expired">;
|
|
221
|
+
export type ExportJobCancelledEvent = EventFor<"export_job_cancelled">;
|
|
425
222
|
/**
|
|
426
223
|
* Discriminated union over every typed webhook delivery payload.
|
|
427
224
|
*
|
|
@@ -441,5 +238,4 @@ export type WebhookEvent = LargeTradeInsertedV2Event | LargeTradesInsertedEvent
|
|
|
441
238
|
* `verifySignature` passes (parsing first would let an unverified payload in).
|
|
442
239
|
*/
|
|
443
240
|
export declare function parseWebhookEvent(body: string): WebhookEvent;
|
|
444
|
-
export {};
|
|
445
241
|
//# sourceMappingURL=webhooks.d.ts.map
|
package/dist/webhooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAIH,OAAO,KAAK,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,aAAa,CAAC;AAErB,uEAAuE;AACvE,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,gDAAgD;AAChD,eAAO,MAAM,gBAAgB,0BAA0B,CAAC;AACxD,0DAA0D;AAC1D,eAAO,MAAM,gBAAgB,0BAA0B,CAAC;AAExD,MAAM,WAAW,oBAAoB;IACnC,2GAA2G;IAC3G,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC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AC;AAChF;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AACjE,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AAEvE;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,YAAY,GACpB,yBAAyB,GACzB,wBAAwB,GACxB,wBAAwB,GACxB,sBAAsB,GACtB,iBAAiB,GACjB,sBAAsB,GACtB,0BAA0B,GAC1B,uBAAuB,GACvB,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,2BAA2B,GAC3B,mBAAmB,GACnB,oBAAoB,GACpB,qBAAqB,GACrB,uBAAuB,CAAC;AAE5B;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAE5D"}
|
package/dist/webhooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAW1D,uEAAuE;AACvE,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,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AC;AACjD,CAAC;AAED,iCAAiC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,uBAAuB;IACvB,uBAAuB;IACvB,qBAAqB;IACrB,eAAe;IACf,qBAAqB;IACrB,yBAAyB;IACzB,sBAAsB;IACtB,0BAA0B;IAC1B,2BAA2B;IAC3B,2EAA2E;IAC3E,qDAAqD;IACrD,2EAA2E;IAC3E,sDAAsD;IACtD,2BAA2B;IAC3B,2BAA2B;IAC3B,kBAAkB;IAClB,mBAAmB;IACnB,oBAAoB;IACpB,sBAAsB;IACtB,sEAAsE;IACtE,qEAAqE;IACrE,yBAAyB;CACyB,CAAC;AA2KrD;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAiB,CAAC;AAC1C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xinsider/sdk",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
4
4
|
"description": "Official TypeScript SDK for the 0xinsider API - analytics for Polymarket sports and esports markets (REST, cursor pagination, SSE stream, webhook verification)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|