@structbuild/sdk 0.4.2 → 0.5.0
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 +28 -19
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2351,17 +2351,8 @@ export interface components {
|
|
|
2351
2351
|
* landed on `cohort_day`.
|
|
2352
2352
|
*/
|
|
2353
2353
|
cohort_size: number;
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
* the offset (in days). E.g. `{ "1": 0.42, "7": 0.21, "30": 0.08 }`.
|
|
2357
|
-
*/
|
|
2358
|
-
retention: {
|
|
2359
|
-
[key: string]: number;
|
|
2360
|
-
};
|
|
2361
|
-
/** @description Raw retained-trader counts per offset, same keys as `retention`. */
|
|
2362
|
-
retained: {
|
|
2363
|
-
[key: string]: number;
|
|
2364
|
-
};
|
|
2354
|
+
retained: components["schemas"]["RetainedCounts"];
|
|
2355
|
+
retention: components["schemas"]["RetentionFractions"];
|
|
2365
2356
|
};
|
|
2366
2357
|
/**
|
|
2367
2358
|
* @description One bucket × builder slot. `code` is a real builder hex code for top-N
|
|
@@ -4254,6 +4245,24 @@ export interface components {
|
|
|
4254
4245
|
slug?: string | null;
|
|
4255
4246
|
event_slug?: string | null;
|
|
4256
4247
|
};
|
|
4248
|
+
/** @description Counts of cohort traders active on day +1 / +7 / +30. */
|
|
4249
|
+
RetainedCounts: {
|
|
4250
|
+
/** Format: int64 */
|
|
4251
|
+
d1: number;
|
|
4252
|
+
/** Format: int64 */
|
|
4253
|
+
d7: number;
|
|
4254
|
+
/** Format: int64 */
|
|
4255
|
+
d30: number;
|
|
4256
|
+
};
|
|
4257
|
+
/** @description Retained counts as fractions of `cohort_size` (0 when cohort is empty). */
|
|
4258
|
+
RetentionFractions: {
|
|
4259
|
+
/** Format: double */
|
|
4260
|
+
d1: number;
|
|
4261
|
+
/** Format: double */
|
|
4262
|
+
d7: number;
|
|
4263
|
+
/** Format: double */
|
|
4264
|
+
d30: number;
|
|
4265
|
+
};
|
|
4257
4266
|
SearchResponse: {
|
|
4258
4267
|
events?: components["schemas"]["PolymarketEvent"][] | null;
|
|
4259
4268
|
events_pagination?: null | components["schemas"]["PaginationMeta"];
|
|
@@ -5290,8 +5299,8 @@ export interface operations {
|
|
|
5290
5299
|
query?: {
|
|
5291
5300
|
/** @description Ranking metric used to pick the top-N. Default: volume. */
|
|
5292
5301
|
metric?: components["schemas"]["BuilderSortBy"];
|
|
5293
|
-
/** @description Bucket size: 60 (hourly)
|
|
5294
|
-
resolution?:
|
|
5302
|
+
/** @description Bucket size. Default: 60 (hourly). */
|
|
5303
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5295
5304
|
/** @description Inclusive start ts (unix seconds). */
|
|
5296
5305
|
from?: number;
|
|
5297
5306
|
/** @description Inclusive end ts (unix seconds). */
|
|
@@ -5369,8 +5378,8 @@ export interface operations {
|
|
|
5369
5378
|
get_builder_global_deltas: {
|
|
5370
5379
|
parameters: {
|
|
5371
5380
|
query?: {
|
|
5372
|
-
/** @description Bucket size
|
|
5373
|
-
resolution?:
|
|
5381
|
+
/** @description Bucket size. Default: 60 (hourly). */
|
|
5382
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5374
5383
|
/** @description Start ts. */
|
|
5375
5384
|
from?: number;
|
|
5376
5385
|
/** @description End ts. */
|
|
@@ -5400,8 +5409,8 @@ export interface operations {
|
|
|
5400
5409
|
get_builder_global_timeseries: {
|
|
5401
5410
|
parameters: {
|
|
5402
5411
|
query?: {
|
|
5403
|
-
/** @description Bucket size
|
|
5404
|
-
resolution?:
|
|
5412
|
+
/** @description Bucket size. Default: 60 (hourly). */
|
|
5413
|
+
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5405
5414
|
/** @description Start ts (Unix seconds). */
|
|
5406
5415
|
from?: number;
|
|
5407
5416
|
/** @description End ts (Unix seconds). */
|
|
@@ -5745,13 +5754,13 @@ export interface operations {
|
|
|
5745
5754
|
};
|
|
5746
5755
|
requestBody?: never;
|
|
5747
5756
|
responses: {
|
|
5748
|
-
/** @description Builder metadata
|
|
5757
|
+
/** @description Builder metadata. Body is `null` when no metadata has been registered for this builder. */
|
|
5749
5758
|
200: {
|
|
5750
5759
|
headers: {
|
|
5751
5760
|
[name: string]: unknown;
|
|
5752
5761
|
};
|
|
5753
5762
|
content: {
|
|
5754
|
-
"application/json":
|
|
5763
|
+
"application/json": components["schemas"]["BuilderMetadata"];
|
|
5755
5764
|
};
|
|
5756
5765
|
};
|
|
5757
5766
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export type ConcentrationResponse = Schemas["ConcentrationResponse"];
|
|
|
31
31
|
export type GlobalBuilderTagRow = Schemas["GlobalBuilderTagRow"];
|
|
32
32
|
export type GlobalChangeTimeframe = Schemas["GlobalChangeTimeframe"];
|
|
33
33
|
export type GlobalPctChange = Schemas["GlobalPctChange"];
|
|
34
|
+
export type RetainedCounts = Schemas["RetainedCounts"];
|
|
35
|
+
export type RetentionFractions = Schemas["RetentionFractions"];
|
|
34
36
|
export type TagBuilderRow = Schemas["TagBuilderRow"];
|
|
35
37
|
export type TopTraderRow = Schemas["TopTraderRow"];
|
|
36
38
|
export type TopTradersSortBy = Schemas["TopTradersSortBy"];
|