@structbuild/sdk 0.4.2 → 0.4.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.
@@ -2351,17 +2351,8 @@ export interface components {
2351
2351
  * landed on `cohort_day`.
2352
2352
  */
2353
2353
  cohort_size: number;
2354
- /**
2355
- * @description Fraction of the cohort active on `cohort_day + offset`, keyed by
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), 240 (4-hour), D, W, M. Default: 60. */
5294
- resolution?: string;
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: 60, 240, D, W, M. Default: 60. */
5373
- resolution?: string;
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: 60, 240, D, W, M. Default: 60. */
5404
- resolution?: string;
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). */
@@ -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"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@structbuild/sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",