@structbuild/sdk 0.5.0 → 0.5.2
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 +40 -22
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2069,7 +2069,21 @@ export interface components {
|
|
|
2069
2069
|
*/
|
|
2070
2070
|
builder_taker_fee_rate_bps: number;
|
|
2071
2071
|
};
|
|
2072
|
-
/**
|
|
2072
|
+
/**
|
|
2073
|
+
* @description Documentation-only response shape for endpoints that embed display
|
|
2074
|
+
* metadata onto each row (`/`, `/{builder_code}`, `/tags/{tag}`). Mirrors
|
|
2075
|
+
* `BuilderLatestRow` and adds a nullable `metadata` field. Not used as a
|
|
2076
|
+
* data structure at runtime — the actual response is built by
|
|
2077
|
+
* `BuilderLatestRow` plus a JSON-level merge from the metadata cache, which
|
|
2078
|
+
* produces this exact shape.
|
|
2079
|
+
*/
|
|
2080
|
+
BuilderLatestRowWithMetadata: components["schemas"]["BuilderLatestRow"] & {
|
|
2081
|
+
metadata?: null | components["schemas"]["BuilderMetadataInline"];
|
|
2082
|
+
};
|
|
2083
|
+
/**
|
|
2084
|
+
* @description One row of `polymarket_builder_metadata`. Includes `builder_code` since
|
|
2085
|
+
* it's used as the keying field on the standalone metadata endpoints.
|
|
2086
|
+
*/
|
|
2073
2087
|
BuilderMetadata: {
|
|
2074
2088
|
builder_code: string;
|
|
2075
2089
|
name: string;
|
|
@@ -2078,6 +2092,19 @@ export interface components {
|
|
|
2078
2092
|
icon_url?: string | null;
|
|
2079
2093
|
description?: string | null;
|
|
2080
2094
|
};
|
|
2095
|
+
/**
|
|
2096
|
+
* @description Same fields as `BuilderMetadata` minus `builder_code`. Used when embedding
|
|
2097
|
+
* metadata under a `metadata` field on a row that already carries
|
|
2098
|
+
* `builder_code` at the top level (leaderboard / get / tag responses) so we
|
|
2099
|
+
* don't duplicate the key.
|
|
2100
|
+
*/
|
|
2101
|
+
BuilderMetadataInline: {
|
|
2102
|
+
name: string;
|
|
2103
|
+
website?: string | null;
|
|
2104
|
+
twitter?: string | null;
|
|
2105
|
+
icon_url?: string | null;
|
|
2106
|
+
description?: string | null;
|
|
2107
|
+
};
|
|
2081
2108
|
/** @description Per-metric percentage change for a builder over the requested lookback window. */
|
|
2082
2109
|
BuilderPctChange: {
|
|
2083
2110
|
/** Format: double */
|
|
@@ -2426,22 +2453,20 @@ export interface components {
|
|
|
2426
2453
|
av: number;
|
|
2427
2454
|
};
|
|
2428
2455
|
/**
|
|
2429
|
-
* @description
|
|
2430
|
-
*
|
|
2431
|
-
*
|
|
2432
|
-
* composition responses can carry hundreds of rows per builder.
|
|
2456
|
+
* @description Composition response: bucket rows plus a top-level `builder_metadata`
|
|
2457
|
+
* lookup keyed by `builder_code`. Metadata is returned once per builder
|
|
2458
|
+
* here rather than embedded on each bucket row.
|
|
2433
2459
|
*/
|
|
2434
2460
|
CompositionResponse: {
|
|
2435
2461
|
/** @description Bucket rows, ordered ascending by `t` and then by `r` within each bucket. */
|
|
2436
2462
|
data: components["schemas"]["CompositionBucketRow"][];
|
|
2437
2463
|
/**
|
|
2438
|
-
* @description Display metadata for each unique builder code present in `data
|
|
2439
|
-
* Builders with no registered metadata are
|
|
2440
|
-
* synthetic `"other"` aggregate row is never
|
|
2464
|
+
* @description Display metadata for each unique builder code present in `data`,
|
|
2465
|
+
* keyed by `builder_code`. Builders with no registered metadata are
|
|
2466
|
+
* absent from the map. The synthetic `"other"` aggregate row is never
|
|
2467
|
+
* a key here.
|
|
2441
2468
|
*/
|
|
2442
|
-
builder_metadata:
|
|
2443
|
-
[key: string]: components["schemas"]["BuilderMetadata"];
|
|
2444
|
-
};
|
|
2469
|
+
builder_metadata: Record<string, never>;
|
|
2445
2470
|
};
|
|
2446
2471
|
/**
|
|
2447
2472
|
* @description Series mode — cumulative end-of-bucket snapshot or in-bucket delta.
|
|
@@ -5283,13 +5308,13 @@ export interface operations {
|
|
|
5283
5308
|
};
|
|
5284
5309
|
requestBody?: never;
|
|
5285
5310
|
responses: {
|
|
5286
|
-
/** @description Ranked list of builders */
|
|
5311
|
+
/** @description Ranked list of builders, each with embedded display metadata. */
|
|
5287
5312
|
200: {
|
|
5288
5313
|
headers: {
|
|
5289
5314
|
[name: string]: unknown;
|
|
5290
5315
|
};
|
|
5291
5316
|
content: {
|
|
5292
|
-
"application/json": components["schemas"]["
|
|
5317
|
+
"application/json": components["schemas"]["BuilderLatestRowWithMetadata"][];
|
|
5293
5318
|
};
|
|
5294
5319
|
};
|
|
5295
5320
|
};
|
|
@@ -5548,21 +5573,14 @@ export interface operations {
|
|
|
5548
5573
|
};
|
|
5549
5574
|
requestBody?: never;
|
|
5550
5575
|
responses: {
|
|
5551
|
-
/** @description Builder snapshot */
|
|
5576
|
+
/** @description Builder snapshot with embedded display metadata. */
|
|
5552
5577
|
200: {
|
|
5553
5578
|
headers: {
|
|
5554
5579
|
[name: string]: unknown;
|
|
5555
5580
|
};
|
|
5556
5581
|
content: {
|
|
5557
|
-
"application/json": components["schemas"]["
|
|
5558
|
-
};
|
|
5559
|
-
};
|
|
5560
|
-
/** @description Builder not found */
|
|
5561
|
-
404: {
|
|
5562
|
-
headers: {
|
|
5563
|
-
[name: string]: unknown;
|
|
5582
|
+
"application/json": components["schemas"]["BuilderLatestRowWithMetadata"];
|
|
5564
5583
|
};
|
|
5565
|
-
content?: never;
|
|
5566
5584
|
};
|
|
5567
5585
|
};
|
|
5568
5586
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,7 +17,9 @@ export type BuilderFeeRate = Schemas["BuilderFeeRate"];
|
|
|
17
17
|
export type BuilderFeeRateHistoryEntry = Schemas["BuilderFeeRateHistoryEntry"];
|
|
18
18
|
export type BuilderGlobalLatestRow = Schemas["BuilderGlobalLatestRow"];
|
|
19
19
|
export type BuilderLatestRow = Schemas["BuilderLatestRow"];
|
|
20
|
+
export type BuilderLatestRowWithMetadata = Schemas["BuilderLatestRowWithMetadata"];
|
|
20
21
|
export type BuilderMetadata = Schemas["BuilderMetadata"];
|
|
22
|
+
export type BuilderMetadataInline = Schemas["BuilderMetadataInline"];
|
|
21
23
|
export type BuilderPctChange = Schemas["BuilderPctChange"];
|
|
22
24
|
export type BuilderSortBy = Schemas["BuilderSortBy"];
|
|
23
25
|
export type BuilderTagRow = Schemas["BuilderTagRow"];
|