@structbuild/sdk 0.1.19 → 0.1.20
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 +1 -2
- package/dist/generated/polymarket.d.ts +18 -137
- package/dist/generated/webhooks.d.ts +397 -51
- package/dist/index.cjs +1 -9
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +1 -9
- package/dist/index.js.map +3 -3
- package/dist/namespaces/series.d.ts +1 -3
- package/dist/types/index.d.ts +5 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,8 +89,7 @@ const history = await client.holders.getMarketHoldersHistory({ condition_id: "0x
|
|
|
89
89
|
|
|
90
90
|
```typescript
|
|
91
91
|
const series = await client.series.getSeriesList();
|
|
92
|
-
const
|
|
93
|
-
const seriesEvents = await client.series.getSeriesEvents({ identifier: "my-series" });
|
|
92
|
+
const outcomes = await client.series.getSeriesOutcomes({ series_slug: "my-series" });
|
|
94
93
|
```
|
|
95
94
|
|
|
96
95
|
### Search, Tags, Bonds
|
|
@@ -511,8 +511,8 @@ export interface paths {
|
|
|
511
511
|
cookie?: never;
|
|
512
512
|
};
|
|
513
513
|
/**
|
|
514
|
-
*
|
|
515
|
-
* @description Retrieve
|
|
514
|
+
* List or get series
|
|
515
|
+
* @description Retrieve series. Use `id` or `series_slug` for single lookup, `series_ids` or `series_slugs` (comma-separated, max 250, mutually exclusive) for multi-lookup, or paginate with `active_only`.
|
|
516
516
|
*/
|
|
517
517
|
get: operations["get_series_list"];
|
|
518
518
|
put?: never;
|
|
@@ -543,46 +543,6 @@ export interface paths {
|
|
|
543
543
|
patch?: never;
|
|
544
544
|
trace?: never;
|
|
545
545
|
};
|
|
546
|
-
"/polymarket/series/{identifier}": {
|
|
547
|
-
parameters: {
|
|
548
|
-
query?: never;
|
|
549
|
-
header?: never;
|
|
550
|
-
path?: never;
|
|
551
|
-
cookie?: never;
|
|
552
|
-
};
|
|
553
|
-
/**
|
|
554
|
-
* Get series by ID
|
|
555
|
-
* @description Retrieve a single series by its ID or slug
|
|
556
|
-
*/
|
|
557
|
-
get: operations["get_series_by_id"];
|
|
558
|
-
put?: never;
|
|
559
|
-
post?: never;
|
|
560
|
-
delete?: never;
|
|
561
|
-
options?: never;
|
|
562
|
-
head?: never;
|
|
563
|
-
patch?: never;
|
|
564
|
-
trace?: never;
|
|
565
|
-
};
|
|
566
|
-
"/polymarket/series/{identifier}/events": {
|
|
567
|
-
parameters: {
|
|
568
|
-
query?: never;
|
|
569
|
-
header?: never;
|
|
570
|
-
path?: never;
|
|
571
|
-
cookie?: never;
|
|
572
|
-
};
|
|
573
|
-
/**
|
|
574
|
-
* Get events from series
|
|
575
|
-
* @description Retrieve all events belonging to a specific series
|
|
576
|
-
*/
|
|
577
|
-
get: operations["get_series_events"];
|
|
578
|
-
put?: never;
|
|
579
|
-
post?: never;
|
|
580
|
-
delete?: never;
|
|
581
|
-
options?: never;
|
|
582
|
-
head?: never;
|
|
583
|
-
patch?: never;
|
|
584
|
-
trace?: never;
|
|
585
|
-
};
|
|
586
546
|
"/polymarket/tags": {
|
|
587
547
|
parameters: {
|
|
588
548
|
query?: never;
|
|
@@ -1733,25 +1693,6 @@ export interface components {
|
|
|
1733
1693
|
events: unknown;
|
|
1734
1694
|
traders: components["schemas"]["Trader"][];
|
|
1735
1695
|
};
|
|
1736
|
-
SeriesFullResponse: {
|
|
1737
|
-
id: string;
|
|
1738
|
-
slug?: string | null;
|
|
1739
|
-
ticker?: string | null;
|
|
1740
|
-
title?: string | null;
|
|
1741
|
-
description?: string | null;
|
|
1742
|
-
series_type?: string | null;
|
|
1743
|
-
recurrence?: string | null;
|
|
1744
|
-
image_url?: string | null;
|
|
1745
|
-
active: boolean;
|
|
1746
|
-
closed: boolean;
|
|
1747
|
-
archived: boolean;
|
|
1748
|
-
featured: boolean;
|
|
1749
|
-
restricted: boolean;
|
|
1750
|
-
pyth_token_id?: string | null;
|
|
1751
|
-
cg_asset_name?: string | null;
|
|
1752
|
-
tags: components["schemas"]["PolymarketTag"][];
|
|
1753
|
-
events: components["schemas"]["PolymarketEvent"][];
|
|
1754
|
-
};
|
|
1755
1696
|
SimpleTimeframeMetrics: {
|
|
1756
1697
|
/**
|
|
1757
1698
|
* Format: double
|
|
@@ -2943,9 +2884,15 @@ export interface operations {
|
|
|
2943
2884
|
get_series_list: {
|
|
2944
2885
|
parameters: {
|
|
2945
2886
|
query?: {
|
|
2946
|
-
/** @description
|
|
2887
|
+
/** @description Single series ID for direct lookup */
|
|
2888
|
+
id?: string;
|
|
2889
|
+
/** @description Comma-separated series IDs (max 250). Mutually exclusive with series_slugs. */
|
|
2890
|
+
series_ids?: string;
|
|
2891
|
+
/** @description Comma-separated series slugs (max 250). Mutually exclusive with series_ids. */
|
|
2892
|
+
series_slugs?: string;
|
|
2893
|
+
/** @description Only active series (default: true). Ignored when series_ids or series_slugs are provided. */
|
|
2947
2894
|
active_only?: boolean;
|
|
2948
|
-
/** @description Results limit (default: 10) */
|
|
2895
|
+
/** @description Results limit (default: 10, max: 250) */
|
|
2949
2896
|
limit?: number;
|
|
2950
2897
|
/** @description Cursor for pagination: id of the last series from the previous page */
|
|
2951
2898
|
pagination_key?: string;
|
|
@@ -2956,7 +2903,7 @@ export interface operations {
|
|
|
2956
2903
|
};
|
|
2957
2904
|
requestBody?: never;
|
|
2958
2905
|
responses: {
|
|
2959
|
-
/** @description
|
|
2906
|
+
/** @description Series or list of series */
|
|
2960
2907
|
200: {
|
|
2961
2908
|
headers: {
|
|
2962
2909
|
[name: string]: unknown;
|
|
@@ -2965,6 +2912,13 @@ export interface operations {
|
|
|
2965
2912
|
"application/json": components["schemas"]["PolymarketSeries"][];
|
|
2966
2913
|
};
|
|
2967
2914
|
};
|
|
2915
|
+
/** @description series_ids and series_slugs cannot both be provided */
|
|
2916
|
+
400: {
|
|
2917
|
+
headers: {
|
|
2918
|
+
[name: string]: unknown;
|
|
2919
|
+
};
|
|
2920
|
+
content?: never;
|
|
2921
|
+
};
|
|
2968
2922
|
};
|
|
2969
2923
|
};
|
|
2970
2924
|
get_series_outcomes: {
|
|
@@ -2999,79 +2953,6 @@ export interface operations {
|
|
|
2999
2953
|
};
|
|
3000
2954
|
};
|
|
3001
2955
|
};
|
|
3002
|
-
get_series_by_id: {
|
|
3003
|
-
parameters: {
|
|
3004
|
-
query?: {
|
|
3005
|
-
/** @description Return minimal data without events (default: false) */
|
|
3006
|
-
slim?: boolean;
|
|
3007
|
-
/** @description Events to include (default: 20, max: 100) */
|
|
3008
|
-
event_limit?: number;
|
|
3009
|
-
/** @description Event pagination offset */
|
|
3010
|
-
event_offset?: number;
|
|
3011
|
-
};
|
|
3012
|
-
header?: never;
|
|
3013
|
-
path: {
|
|
3014
|
-
/** @description Series slug or ID */
|
|
3015
|
-
identifier: string;
|
|
3016
|
-
};
|
|
3017
|
-
cookie?: never;
|
|
3018
|
-
};
|
|
3019
|
-
requestBody?: never;
|
|
3020
|
-
responses: {
|
|
3021
|
-
/** @description Series details with events and tags */
|
|
3022
|
-
200: {
|
|
3023
|
-
headers: {
|
|
3024
|
-
[name: string]: unknown;
|
|
3025
|
-
};
|
|
3026
|
-
content: {
|
|
3027
|
-
"application/json": components["schemas"]["SeriesFullResponse"];
|
|
3028
|
-
};
|
|
3029
|
-
};
|
|
3030
|
-
/** @description Series not found */
|
|
3031
|
-
404: {
|
|
3032
|
-
headers: {
|
|
3033
|
-
[name: string]: unknown;
|
|
3034
|
-
};
|
|
3035
|
-
content?: never;
|
|
3036
|
-
};
|
|
3037
|
-
};
|
|
3038
|
-
};
|
|
3039
|
-
get_series_events: {
|
|
3040
|
-
parameters: {
|
|
3041
|
-
query?: {
|
|
3042
|
-
/** @description Only active events (default: false) */
|
|
3043
|
-
active_only?: boolean;
|
|
3044
|
-
/** @description Include tags array (default: true) */
|
|
3045
|
-
include_tags?: boolean;
|
|
3046
|
-
/** @description Include markets array with outcomes (default: true) */
|
|
3047
|
-
include_markets?: boolean;
|
|
3048
|
-
/** @description Include metrics object with all timeframes (default: true) */
|
|
3049
|
-
include_metrics?: boolean;
|
|
3050
|
-
/** @description Results limit (default: 10) */
|
|
3051
|
-
limit?: number;
|
|
3052
|
-
/** @description Offset-based pagination key (integer offset into result set) */
|
|
3053
|
-
pagination_key?: string;
|
|
3054
|
-
};
|
|
3055
|
-
header?: never;
|
|
3056
|
-
path: {
|
|
3057
|
-
/** @description Series slug or ID */
|
|
3058
|
-
identifier: string;
|
|
3059
|
-
};
|
|
3060
|
-
cookie?: never;
|
|
3061
|
-
};
|
|
3062
|
-
requestBody?: never;
|
|
3063
|
-
responses: {
|
|
3064
|
-
/** @description Events belonging to this series with nested tags and markets */
|
|
3065
|
-
200: {
|
|
3066
|
-
headers: {
|
|
3067
|
-
[name: string]: unknown;
|
|
3068
|
-
};
|
|
3069
|
-
content: {
|
|
3070
|
-
"application/json": components["schemas"]["PolymarketEvent"][];
|
|
3071
|
-
};
|
|
3072
|
-
};
|
|
3073
|
-
};
|
|
3074
|
-
};
|
|
3075
2956
|
get_tags: {
|
|
3076
2957
|
parameters: {
|
|
3077
2958
|
query?: {
|