@structbuild/sdk 0.3.10-staging.2 → 0.3.10-staging.3
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/generated/polymarket.d.ts +29 -21
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1247,6 +1247,14 @@ export interface paths {
|
|
|
1247
1247
|
export type webhooks = Record<string, never>;
|
|
1248
1248
|
export interface components {
|
|
1249
1249
|
schemas: {
|
|
1250
|
+
/**
|
|
1251
|
+
* @description Resolution for `/analytics/timeseries` and `/analytics/deltas`.
|
|
1252
|
+
* Superset of `CandlestickResolution` — adds 7-day (`W`/`1W`) and calendar
|
|
1253
|
+
* month (`M`/`1M`) buckets, which are pre-aggregated for global and tag
|
|
1254
|
+
* domains and re-bucketed from the `_1d` MV for market/event/trader.
|
|
1255
|
+
* @enum {string}
|
|
1256
|
+
*/
|
|
1257
|
+
AnalyticsResolution: "1" | "5" | "15" | "30" | "60" | "240" | "D" | "1D" | "W" | "1W" | "M" | "1M";
|
|
1250
1258
|
/** @description Output payload for ERC1155 setApprovalForAll events. */
|
|
1251
1259
|
ApprovalTrade: {
|
|
1252
1260
|
id: string;
|
|
@@ -3332,7 +3340,7 @@ export interface operations {
|
|
|
3332
3340
|
get_global_analytics_changes: {
|
|
3333
3341
|
parameters: {
|
|
3334
3342
|
query: {
|
|
3335
|
-
/** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
|
|
3343
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
3336
3344
|
timeframe: components["schemas"]["ChangeTimeframe"];
|
|
3337
3345
|
};
|
|
3338
3346
|
header?: never;
|
|
@@ -3375,8 +3383,8 @@ export interface operations {
|
|
|
3375
3383
|
get_global_analytics_deltas: {
|
|
3376
3384
|
parameters: {
|
|
3377
3385
|
query?: {
|
|
3378
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
3379
|
-
resolution?: components["schemas"]["
|
|
3386
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
3387
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
3380
3388
|
/** @description Start timestamp (Unix seconds). Omit for all-time. */
|
|
3381
3389
|
from?: number;
|
|
3382
3390
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -3406,8 +3414,8 @@ export interface operations {
|
|
|
3406
3414
|
get_global_analytics_timeseries: {
|
|
3407
3415
|
parameters: {
|
|
3408
3416
|
query?: {
|
|
3409
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
3410
|
-
resolution?: components["schemas"]["
|
|
3417
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
3418
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
3411
3419
|
/** @description Start timestamp (Unix seconds). Omit for all-time. */
|
|
3412
3420
|
from?: number;
|
|
3413
3421
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -3729,8 +3737,8 @@ export interface operations {
|
|
|
3729
3737
|
get_event_analytics_deltas: {
|
|
3730
3738
|
parameters: {
|
|
3731
3739
|
query?: {
|
|
3732
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
3733
|
-
resolution?: components["schemas"]["
|
|
3740
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
3741
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
3734
3742
|
/** @description Start timestamp (Unix seconds) */
|
|
3735
3743
|
from?: number;
|
|
3736
3744
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -3763,8 +3771,8 @@ export interface operations {
|
|
|
3763
3771
|
get_event_analytics_timeseries: {
|
|
3764
3772
|
parameters: {
|
|
3765
3773
|
query?: {
|
|
3766
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
3767
|
-
resolution?: components["schemas"]["
|
|
3774
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
3775
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
3768
3776
|
/** @description Start timestamp (Unix seconds) */
|
|
3769
3777
|
from?: number;
|
|
3770
3778
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -4694,8 +4702,8 @@ export interface operations {
|
|
|
4694
4702
|
get_market_analytics_deltas: {
|
|
4695
4703
|
parameters: {
|
|
4696
4704
|
query?: {
|
|
4697
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
4698
|
-
resolution?: components["schemas"]["
|
|
4705
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
4706
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
4699
4707
|
/** @description Start timestamp (Unix seconds) */
|
|
4700
4708
|
from?: number;
|
|
4701
4709
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -4728,8 +4736,8 @@ export interface operations {
|
|
|
4728
4736
|
get_market_analytics_timeseries: {
|
|
4729
4737
|
parameters: {
|
|
4730
4738
|
query?: {
|
|
4731
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
4732
|
-
resolution?: components["schemas"]["
|
|
4739
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
4740
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
4733
4741
|
/** @description Start timestamp (Unix seconds) */
|
|
4734
4742
|
from?: number;
|
|
4735
4743
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -5263,8 +5271,8 @@ export interface operations {
|
|
|
5263
5271
|
get_tag_analytics_deltas: {
|
|
5264
5272
|
parameters: {
|
|
5265
5273
|
query?: {
|
|
5266
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
5267
|
-
resolution?: components["schemas"]["
|
|
5274
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
5275
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5268
5276
|
/** @description Start timestamp (Unix seconds) */
|
|
5269
5277
|
from?: number;
|
|
5270
5278
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -5297,8 +5305,8 @@ export interface operations {
|
|
|
5297
5305
|
get_tag_analytics_timeseries: {
|
|
5298
5306
|
parameters: {
|
|
5299
5307
|
query?: {
|
|
5300
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
5301
|
-
resolution?: components["schemas"]["
|
|
5308
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
5309
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5302
5310
|
/** @description Start timestamp (Unix seconds) */
|
|
5303
5311
|
from?: number;
|
|
5304
5312
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -5792,8 +5800,8 @@ export interface operations {
|
|
|
5792
5800
|
get_trader_analytics_deltas: {
|
|
5793
5801
|
parameters: {
|
|
5794
5802
|
query?: {
|
|
5795
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
5796
|
-
resolution?: components["schemas"]["
|
|
5803
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
5804
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5797
5805
|
/** @description Start timestamp (Unix seconds) */
|
|
5798
5806
|
from?: number;
|
|
5799
5807
|
/** @description End timestamp (Unix seconds) */
|
|
@@ -5826,8 +5834,8 @@ export interface operations {
|
|
|
5826
5834
|
get_trader_analytics_timeseries: {
|
|
5827
5835
|
parameters: {
|
|
5828
5836
|
query?: {
|
|
5829
|
-
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
|
|
5830
|
-
resolution?: components["schemas"]["
|
|
5837
|
+
/** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
5838
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5831
5839
|
/** @description Start timestamp (Unix seconds) */
|
|
5832
5840
|
from?: number;
|
|
5833
5841
|
/** @description End timestamp (Unix seconds) */
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { Schemas, OperationQuery } from "./helpers.js";
|
|
|
9
9
|
import type { WebhookSchemas, WebhookOperationQuery, WebhookOperationRequestBody } from "./webhook-helpers.js";
|
|
10
10
|
type TimeframeKey = Schemas["MetricsTimeframe"];
|
|
11
11
|
type TimeframeRecord<V> = Partial<Record<TimeframeKey, V>>;
|
|
12
|
+
export type AnalyticsResolution = Schemas["AnalyticsResolution"];
|
|
12
13
|
export type BondMarket = Schemas["BondMarket"];
|
|
13
14
|
export type BondOutcome = Schemas["BondOutcome"];
|
|
14
15
|
export type BondsSortBy = Schemas["BondsSortBy"];
|