@polyester/sdk 0.34.1-devnet-20261106033258 → 0.35.0-devnet-20261108030630
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/CHANGELOG.md +21 -1
- package/README.md +12 -0
- package/dist/gen/auth/v1/auth_pb.d.ts +9 -1
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +9 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +28 -9
- package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +2 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +2 -0
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +23 -7
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/realtime/client.d.ts.map +1 -1
- package/dist/realtime/client.js +178 -29
- package/dist/realtime/client.js.map +1 -1
- package/dist/realtime/index.d.ts +2 -2
- package/dist/realtime/types.d.ts +21 -2
- package/dist/realtime/types.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/changelog/changelog.d.ts +6 -3
- package/dist/services/changelog/changelog.d.ts.map +1 -1
- package/dist/services/changelog/changelog.js +6 -3
- package/dist/services/changelog/changelog.js.map +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +37 -3
- package/dist/services/changelog/changelog.schemas.d.ts.map +1 -1
- package/dist/services/changelog/changelog.schemas.js +10 -2
- package/dist/services/changelog/changelog.schemas.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +42 -42
- package/dist/services/orderbook/orderbook.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +1 -1
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +39 -39
- package/dist/services/orders/orders-input.schemas.d.ts +3 -3
- package/dist/services/orders/orders-output.schemas.d.ts +14 -14
- package/dist/services/orders/orders.d.ts +9 -1
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +9 -1
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +3 -3
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +5 -5
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +18 -18
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +7 -3
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +7 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +2 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/rate-limit.js +18 -0
- package/dist/shared/error-details/rate-limit.js.map +1 -0
- package/dist/shared/errors.d.ts +12 -3
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +13 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/subscription-errors.d.ts +2 -0
- package/dist/shared/subscription-errors.d.ts.map +1 -1
- package/dist/shared/subscription-errors.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,8 @@ var ChangelogService = class {
|
|
|
17
17
|
/**
|
|
18
18
|
* Lists post summaries newest first, with change counts by kind. Pass the previous
|
|
19
19
|
* `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more posts.
|
|
20
|
-
* Use `limit: 1` to poll for the latest post.
|
|
20
|
+
* Use `limit: 1` to poll for the latest post. To follow edits to published posts, read a
|
|
21
|
+
* post again when its `revision` differs from the one you hold.
|
|
21
22
|
*/
|
|
22
23
|
async listPosts(input = {}, options) {
|
|
23
24
|
const request = parse(ListChangelogPostsInputSchema, input);
|
|
@@ -25,7 +26,7 @@ var ChangelogService = class {
|
|
|
25
26
|
return parse(ListChangelogPostsResultSchema, response);
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
|
-
* Returns one post with every section and change. A slug is the post's coverage cutoff date,
|
|
29
|
+
* Returns one post at its current revision, with every section and change. A slug is the post's coverage cutoff date,
|
|
29
30
|
* `YYYY-MM-DD`, with `-2`, `-3` for later posts on the same day. An unknown slug throws a
|
|
30
31
|
* not-found error. Large posts can hold hundreds of changes; page them with `listChanges`
|
|
31
32
|
* and `postSlug` instead.
|
|
@@ -39,7 +40,9 @@ var ChangelogService = class {
|
|
|
39
40
|
* Lists individual changes across posts, posts newest first unless `sort` is `"asc"`;
|
|
40
41
|
* changes keep publication order inside each post. Changes addressed to `all_users` match
|
|
41
42
|
* every `audiences` filter. Reuse a `pageToken` only with the same filters, time bounds and
|
|
42
|
-
* sort.
|
|
43
|
+
* sort. When the post a `pageToken` points into was republished since, paging restarts at
|
|
44
|
+
* that post's first change, so changes you already received can appear again: deduplicate
|
|
45
|
+
* by `id`, which stays the same across revisions.
|
|
43
46
|
*/
|
|
44
47
|
async listChanges(input = {}, options) {
|
|
45
48
|
const request = parse(ListChangelogChangesInputSchema, input);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.js","names":["#client","Proto.ChangelogService"],"sources":["../../../src/services/changelog/changelog.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/changelog/v1/changelog_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { PublicApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetChangelogPostInputSchema,\n GetChangelogPostResultSchema,\n ListChangelogChangesInputSchema,\n ListChangelogChangesResultSchema,\n ListChangelogPostsInputSchema,\n ListChangelogPostsResultSchema,\n type ChangelogPost,\n type GetChangelogPostInput,\n type ListChangelogChangesInput,\n type ListChangelogChangesResult,\n type ListChangelogPostsInput,\n type ListChangelogPostsResult,\n} from \"./changelog.schemas.js\";\n\n/**\n * Reads the product changelog published for the environment the client calls. Public and\n * read-only: no authentication, cacheable GET requests, rate-limited per client address.\n * Enum values the SDK does not know decode as `\"unspecified\"`.\n */\nexport class ChangelogService {\n #client: Client<typeof Proto.ChangelogService>;\n\n constructor(transports: PublicApiTransports) {\n this.#client = createClient(Proto.ChangelogService, transports.publicApi);\n }\n\n /**\n * Lists post summaries newest first, with change counts by kind. Pass the previous\n * `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more posts.\n * Use `limit: 1` to poll for the latest post.\n */\n async listPosts(\n input: ListChangelogPostsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListChangelogPostsResult> {\n const request = parse(ListChangelogPostsInputSchema, input);\n const response = await this.#client.listPosts(request, toConnectCallOptions(options));\n return parse(ListChangelogPostsResultSchema, response);\n }\n\n /**\n * Returns one post with every section and change. A slug is the post's coverage cutoff date,\n * `YYYY-MM-DD`, with `-2`, `-3` for later posts on the same day. An unknown slug throws a\n * not-found error. Large posts can hold hundreds of changes; page them with `listChanges`\n * and `postSlug` instead.\n */\n async getPost(\n input: GetChangelogPostInput,\n options?: PolyesterRequestOptions,\n ): Promise<ChangelogPost> {\n const request = parse(GetChangelogPostInputSchema, input);\n const response = await this.#client.getPost(request, toConnectCallOptions(options));\n return parse(GetChangelogPostResultSchema, response).post;\n }\n\n /**\n * Lists individual changes across posts, posts newest first unless `sort` is `\"asc\"`;\n * changes keep publication order inside each post. Changes addressed to `all_users` match\n * every `audiences` filter. Reuse a `pageToken` only with the same filters, time bounds and\n * sort.\n */\n async listChanges(\n input: ListChangelogChangesInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListChangelogChangesResult> {\n const request = parse(ListChangelogChangesInputSchema, input);\n const response = await this.#client.listChanges(request, toConnectCallOptions(options));\n return parse(ListChangelogChangesResultSchema, response);\n }\n}\n"],"mappings":";;;;;;;;;;;AA4BA,IAAa,mBAAb,MAA8B;CAC1B;CAEA,YAAY,YAAiC;EACzC,KAAKA,UAAU,aAAaC,oBAAwB,WAAW,SAAS;CAC5E
|
|
1
|
+
{"version":3,"file":"changelog.js","names":["#client","Proto.ChangelogService"],"sources":["../../../src/services/changelog/changelog.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/changelog/v1/changelog_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { PublicApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetChangelogPostInputSchema,\n GetChangelogPostResultSchema,\n ListChangelogChangesInputSchema,\n ListChangelogChangesResultSchema,\n ListChangelogPostsInputSchema,\n ListChangelogPostsResultSchema,\n type ChangelogPost,\n type GetChangelogPostInput,\n type ListChangelogChangesInput,\n type ListChangelogChangesResult,\n type ListChangelogPostsInput,\n type ListChangelogPostsResult,\n} from \"./changelog.schemas.js\";\n\n/**\n * Reads the product changelog published for the environment the client calls. Public and\n * read-only: no authentication, cacheable GET requests, rate-limited per client address.\n * Enum values the SDK does not know decode as `\"unspecified\"`.\n */\nexport class ChangelogService {\n #client: Client<typeof Proto.ChangelogService>;\n\n constructor(transports: PublicApiTransports) {\n this.#client = createClient(Proto.ChangelogService, transports.publicApi);\n }\n\n /**\n * Lists post summaries newest first, with change counts by kind. Pass the previous\n * `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more posts.\n * Use `limit: 1` to poll for the latest post. To follow edits to published posts, read a\n * post again when its `revision` differs from the one you hold.\n */\n async listPosts(\n input: ListChangelogPostsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListChangelogPostsResult> {\n const request = parse(ListChangelogPostsInputSchema, input);\n const response = await this.#client.listPosts(request, toConnectCallOptions(options));\n return parse(ListChangelogPostsResultSchema, response);\n }\n\n /**\n * Returns one post at its current revision, with every section and change. A slug is the post's coverage cutoff date,\n * `YYYY-MM-DD`, with `-2`, `-3` for later posts on the same day. An unknown slug throws a\n * not-found error. Large posts can hold hundreds of changes; page them with `listChanges`\n * and `postSlug` instead.\n */\n async getPost(\n input: GetChangelogPostInput,\n options?: PolyesterRequestOptions,\n ): Promise<ChangelogPost> {\n const request = parse(GetChangelogPostInputSchema, input);\n const response = await this.#client.getPost(request, toConnectCallOptions(options));\n return parse(GetChangelogPostResultSchema, response).post;\n }\n\n /**\n * Lists individual changes across posts, posts newest first unless `sort` is `\"asc\"`;\n * changes keep publication order inside each post. Changes addressed to `all_users` match\n * every `audiences` filter. Reuse a `pageToken` only with the same filters, time bounds and\n * sort. When the post a `pageToken` points into was republished since, paging restarts at\n * that post's first change, so changes you already received can appear again: deduplicate\n * by `id`, which stays the same across revisions.\n */\n async listChanges(\n input: ListChangelogChangesInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListChangelogChangesResult> {\n const request = parse(ListChangelogChangesInputSchema, input);\n const response = await this.#client.listChanges(request, toConnectCallOptions(options));\n return parse(ListChangelogChangesResultSchema, response);\n }\n}\n"],"mappings":";;;;;;;;;;;AA4BA,IAAa,mBAAb,MAA8B;CAC1B;CAEA,YAAY,YAAiC;EACzC,KAAKA,UAAU,aAAaC,oBAAwB,WAAW,SAAS;CAC5E;;;;;;;CAQA,MAAM,UACF,QAAiC,CAAC,GAClC,SACiC;EACjC,MAAM,UAAU,MAAM,+BAA+B,KAAK;EAC1D,MAAM,WAAW,MAAM,KAAKD,QAAQ,UAAU,SAAS,qBAAqB,OAAO,CAAC;EACpF,OAAO,MAAM,gCAAgC,QAAQ;CACzD;;;;;;;CAQA,MAAM,QACF,OACA,SACsB;EACtB,MAAM,UAAU,MAAM,6BAA6B,KAAK;EACxD,MAAM,WAAW,MAAM,KAAKA,QAAQ,QAAQ,SAAS,qBAAqB,OAAO,CAAC;EAClF,OAAO,MAAM,8BAA8B,QAAQ,CAAC,CAAC;CACzD;;;;;;;;;CAUA,MAAM,YACF,QAAmC,CAAC,GACpC,SACmC;EACnC,MAAM,UAAU,MAAM,iCAAiC,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKA,QAAQ,YAAY,SAAS,qBAAqB,OAAO,CAAC;EACtF,OAAO,MAAM,kCAAkC,QAAQ;CAC3D;AACJ"}
|
|
@@ -13,7 +13,7 @@ declare const GetChangelogPostInputSchema: v.StrictObjectSchema<{
|
|
|
13
13
|
type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;
|
|
14
14
|
/**
|
|
15
15
|
* Filters on different fields combine with AND; values within one field combine with OR.
|
|
16
|
-
* Times are epoch milliseconds on post publication time: `startTime` inclusive, `endTime`
|
|
16
|
+
* Times are epoch milliseconds on first post publication time: `startTime` inclusive, `endTime`
|
|
17
17
|
* exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server
|
|
18
18
|
* default of 100.
|
|
19
19
|
*/
|
|
@@ -94,7 +94,13 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
|
94
94
|
}, undefined>, undefined>, readonly []>;
|
|
95
95
|
}, undefined>;
|
|
96
96
|
type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;
|
|
97
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.
|
|
99
|
+
* A post can be republished to correct its copy or withdraw a change: `revision` starts at 1
|
|
100
|
+
* and increases with each republication, and `updatedAt` is when the current revision was
|
|
101
|
+
* published (equal to `publishedAt` for revision 1). `slug` and `publishedAt` never change.
|
|
102
|
+
* A server that predates post revisions sends `revision` 0 and no `updatedAt`.
|
|
103
|
+
*/
|
|
98
104
|
declare const ChangelogPostSummarySchema: v.ObjectSchema<{
|
|
99
105
|
readonly slug: v.StringSchema<undefined>;
|
|
100
106
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -106,6 +112,14 @@ declare const ChangelogPostSummarySchema: v.ObjectSchema<{
|
|
|
106
112
|
seconds: bigint;
|
|
107
113
|
nanos: number;
|
|
108
114
|
}, number>]>;
|
|
115
|
+
readonly updatedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
116
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
117
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
118
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
119
|
+
seconds: bigint;
|
|
120
|
+
nanos: number;
|
|
121
|
+
} | undefined, number | undefined>]>;
|
|
122
|
+
readonly revision: v.NumberSchema<undefined>;
|
|
109
123
|
readonly coverageCutoff: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
110
124
|
readonly seconds: v.BigintSchema<undefined>;
|
|
111
125
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -133,6 +147,14 @@ declare const ListChangelogPostsResultSchema: v.ObjectSchema<{
|
|
|
133
147
|
seconds: bigint;
|
|
134
148
|
nanos: number;
|
|
135
149
|
}, number>]>;
|
|
150
|
+
readonly updatedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
151
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
152
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
153
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
154
|
+
seconds: bigint;
|
|
155
|
+
nanos: number;
|
|
156
|
+
} | undefined, number | undefined>]>;
|
|
157
|
+
readonly revision: v.NumberSchema<undefined>;
|
|
136
158
|
readonly coverageCutoff: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
137
159
|
readonly seconds: v.BigintSchema<undefined>;
|
|
138
160
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -162,6 +184,14 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
162
184
|
seconds: bigint;
|
|
163
185
|
nanos: number;
|
|
164
186
|
}, number>]>;
|
|
187
|
+
readonly updatedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
188
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
189
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
190
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
191
|
+
seconds: bigint;
|
|
192
|
+
nanos: number;
|
|
193
|
+
} | undefined, number | undefined>]>;
|
|
194
|
+
readonly revision: v.NumberSchema<undefined>;
|
|
165
195
|
readonly coverageCutoff: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
166
196
|
readonly seconds: v.BigintSchema<undefined>;
|
|
167
197
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -198,6 +228,8 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
198
228
|
title: string;
|
|
199
229
|
introduction: string;
|
|
200
230
|
publishedAt: number;
|
|
231
|
+
updatedAt?: number | undefined;
|
|
232
|
+
revision: number;
|
|
201
233
|
coverageCutoff?: number | undefined;
|
|
202
234
|
changeCount: number;
|
|
203
235
|
breakingChangeCount: number;
|
|
@@ -243,6 +275,8 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
243
275
|
title: string;
|
|
244
276
|
introduction: string;
|
|
245
277
|
publishedAt: number;
|
|
278
|
+
updatedAt?: number | undefined;
|
|
279
|
+
revision: number;
|
|
246
280
|
coverageCutoff?: number | undefined;
|
|
247
281
|
changeCount: number;
|
|
248
282
|
breakingChangeCount: number;
|
|
@@ -302,7 +336,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
302
336
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
303
337
|
surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
304
338
|
}>]>;
|
|
305
|
-
/** A change with the slug, publication time and section heading of the post that announced it. */
|
|
339
|
+
/** A change with the slug, first publication time and section heading of the post that announced it. */
|
|
306
340
|
type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;
|
|
307
341
|
declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
308
342
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.schemas.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"mappings":";;;;cA6Ba,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,kBAAkB;cAE7C,6BAA2B,EAAA;;;KAI5B,wBAAwB,EAAE,kBAAkB;;;;;;;cAQ3C,iCAA+B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BhC,4BAA4B,EAAE,kBAAkB;;cAG/C,uBAAqB,EAAA;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@ const ListChangelogPostsInputSchema = v.strictObject({
|
|
|
15
15
|
const GetChangelogPostInputSchema = v.strictObject({ slug: SlugInputSchema });
|
|
16
16
|
/**
|
|
17
17
|
* Filters on different fields combine with AND; values within one field combine with OR.
|
|
18
|
-
* Times are epoch milliseconds on post publication time: `startTime` inclusive, `endTime`
|
|
18
|
+
* Times are epoch milliseconds on first post publication time: `startTime` inclusive, `endTime`
|
|
19
19
|
* exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server
|
|
20
20
|
* default of 100.
|
|
21
21
|
*/
|
|
@@ -58,12 +58,20 @@ const ChangelogSectionSchema = v.object({
|
|
|
58
58
|
surface: enumLabelSchema(ChangelogSurfaceCodec.protoToOutput),
|
|
59
59
|
changes: v.optional(v.array(ChangelogChangeSchema), [])
|
|
60
60
|
});
|
|
61
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.
|
|
63
|
+
* A post can be republished to correct its copy or withdraw a change: `revision` starts at 1
|
|
64
|
+
* and increases with each republication, and `updatedAt` is when the current revision was
|
|
65
|
+
* published (equal to `publishedAt` for revision 1). `slug` and `publishedAt` never change.
|
|
66
|
+
* A server that predates post revisions sends `revision` 0 and no `updatedAt`.
|
|
67
|
+
*/
|
|
62
68
|
const ChangelogPostSummarySchema = v.object({
|
|
63
69
|
slug: v.string(),
|
|
64
70
|
title: v.string(),
|
|
65
71
|
introduction: v.string(),
|
|
66
72
|
publishedAt: TimestampMsSchema,
|
|
73
|
+
updatedAt: OptionalTimestampMsSchema,
|
|
74
|
+
revision: v.number(),
|
|
67
75
|
coverageCutoff: OptionalTimestampMsSchema,
|
|
68
76
|
changeCount: v.number(),
|
|
69
77
|
breakingChangeCount: v.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.schemas.js","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n OptionalTimestampMsSchema,\n PublicIdSchema,\n TimestampMsSchema,\n} from \"../../shared/schemas.js\";\nimport { msToTimestamp } from \"../../utils/timestamp.js\";\nimport {\n CHANGELOG_AUDIENCE_VALUES,\n CHANGELOG_CHANGE_CATEGORY_VALUES,\n CHANGELOG_SORT_VALUES,\n CHANGELOG_SURFACE_VALUES,\n ChangelogAudienceCodec,\n ChangelogChangeCategoryCodec,\n ChangelogSortCodec,\n ChangelogSurfaceCodec,\n} from \"./changelog.codecs.js\";\n\nconst PageTokenInputSchema = v.optional(v.pipe(v.string(), v.trim()), \"\");\nconst SlugInputSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst TimestampMsInputSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.maxValue(Number.MAX_SAFE_INTEGER),\n);\n\n/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */\nexport const ListChangelogPostsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100)), 0),\n pageToken: PageTokenInputSchema,\n});\n\nexport type ListChangelogPostsInput = v.InferInput<typeof ListChangelogPostsInputSchema>;\n\nexport const GetChangelogPostInputSchema = v.strictObject({\n slug: SlugInputSchema,\n});\n\nexport type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;\n\n/**\n * Filters on different fields combine with AND; values within one field combine with OR.\n * Times are epoch milliseconds on post publication time: `startTime` inclusive, `endTime`\n * exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server\n * default of 100.\n */\nexport const ListChangelogChangesInputSchema = v.pipe(\n v.strictObject({\n categories: v.optional(v.array(v.picklist(CHANGELOG_CHANGE_CATEGORY_VALUES)), []),\n actionRequired: v.optional(v.boolean()),\n surfaces: v.optional(v.array(v.picklist(CHANGELOG_SURFACE_VALUES)), []),\n audiences: v.optional(v.array(v.picklist(CHANGELOG_AUDIENCE_VALUES)), []),\n startTime: v.optional(TimestampMsInputSchema),\n endTime: v.optional(TimestampMsInputSchema),\n postSlug: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n sort: v.optional(v.picklist(CHANGELOG_SORT_VALUES)),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(500)), 0),\n pageToken: PageTokenInputSchema,\n }),\n v.check(\n ({ startTime, endTime }) =>\n startTime === undefined || endTime === undefined || endTime > startTime,\n \"endTime: must be after startTime\",\n ),\n v.transform(({ categories, surfaces, audiences, startTime, endTime, sort, ...rest }) => ({\n ...rest,\n categories: categories.map((value) => ChangelogChangeCategoryCodec.inputToProto[value]),\n surfaces: surfaces.map((value) => ChangelogSurfaceCodec.inputToProto[value]),\n audiences: audiences.map((value) => ChangelogAudienceCodec.inputToProto[value]),\n startTime: startTime === undefined ? undefined : msToTimestamp(startTime),\n endTime: endTime === undefined ? undefined : msToTimestamp(endTime),\n sort: sort === undefined ? undefined : ChangelogSortCodec.inputToProto[sort],\n })),\n);\n\nexport type ListChangelogChangesInput = v.InferInput<typeof ListChangelogChangesInputSchema>;\n\n/** `id` is the public base58 identifier, stable across environments. */\nexport const ChangelogChangeSchema = v.object({\n id: PublicIdSchema,\n title: v.string(),\n summary: v.string(),\n details: v.optional(v.string()),\n category: enumLabelSchema(ChangelogChangeCategoryCodec.protoToOutput),\n actionRequired: v.boolean(),\n migrationGuidance: v.optional(v.string()),\n audiences: v.optional(v.array(enumLabelSchema(ChangelogAudienceCodec.protoToOutput)), []),\n surfaces: v.optional(v.array(enumLabelSchema(ChangelogSurfaceCodec.protoToOutput)), []),\n});\n\nexport type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;\n\n/** `surface` is the product area the section covers, `\"unspecified\"` when it spans several. */\nexport const ChangelogSectionSchema = v.object({\n heading: v.string(),\n summary: v.optional(v.string()),\n surface: enumLabelSchema(ChangelogSurfaceCodec.protoToOutput),\n changes: v.optional(v.array(ChangelogChangeSchema), []),\n});\n\nexport type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;\n\n/** `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown. */\nexport const ChangelogPostSummarySchema = v.object({\n slug: v.string(),\n title: v.string(),\n introduction: v.string(),\n publishedAt: TimestampMsSchema,\n coverageCutoff: OptionalTimestampMsSchema,\n changeCount: v.number(),\n breakingChangeCount: v.number(),\n actionRequiredCount: v.number(),\n newFeatureCount: v.number(),\n improvementCount: v.number(),\n bugFixCount: v.number(),\n});\n\nexport type ChangelogPostSummary = v.InferOutput<typeof ChangelogPostSummarySchema>;\n\nexport const ListChangelogPostsResultSchema = v.object({\n posts: v.optional(v.array(ChangelogPostSummarySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogPostsResult = v.InferOutput<typeof ListChangelogPostsResultSchema>;\n\nexport const ChangelogPostSchema = v.pipe(\n v.object({\n summary: ChangelogPostSummarySchema,\n sections: v.optional(v.array(ChangelogSectionSchema), []),\n }),\n v.transform(({ summary, sections }) => ({ ...summary, sections })),\n);\n\nexport type ChangelogPost = v.InferOutput<typeof ChangelogPostSchema>;\n\nexport const GetChangelogPostResultSchema = v.object({ post: ChangelogPostSchema });\n\nexport const ChangelogChangeEntrySchema = v.pipe(\n v.object({\n change: ChangelogChangeSchema,\n postSlug: v.string(),\n publishedAt: TimestampMsSchema,\n sectionHeading: v.string(),\n }),\n v.transform(({ change, ...entry }) => ({ ...change, ...entry })),\n);\n\n/** A change with the slug, publication time and section heading of the post that announced it. */\nexport type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;\n\nexport const ListChangelogChangesResultSchema = v.object({\n changes: v.optional(v.array(ChangelogChangeEntrySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogChangesResult = v.InferOutput<typeof ListChangelogChangesResultSchema>;\n"],"mappings":";;;;;;AAmBA,MAAM,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE;AACxE,M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AAqB,EAAE,OAAO;CAC9B,qBAAqB,EAAE,OAAO;CAC9B,iBAAiB,EAAE,OAAO;CAC1B,kBAAkB,EAAE,OAAO;CAC3B,aAAa,EAAE,OAAO;AAC1B,CAAC;AAID,MAAa,iCAAiC,EAAE,OAAO;CACnD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CACzD,eAAe,EAAE,OAAO;AAC5B,CAAC;AAID,MAAa,sBAAsB,EAAE,KACjC,EAAE,OAAO;CACL,SAAS;CACT,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAC5D,CAAC,GACD,EAAE,WAAW,EAAE,SAAS,gBAAgB;CAAE,GAAG;CAAS;AAAS,EAAE,CACrE;AAIA,MAAa,+BAA+B,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElF,MAAa,6BAA6B,EAAE,KACxC,EAAE,OAAO;CACL,QAAQ;CACR,UAAU,EAAE,OAAO;CACnB,aAAa;CACb,gBAAgB,EAAE,OAAO;AAC7B,CAAC,GACD,EAAE,WAAW,EAAE,QAAQ,GAAG,aAAa;CAAE,GAAG;CAAQ,GAAG;AAAM,EAAE,CACnE;AAKA,MAAa,mCAAmC,EAAE,OAAO;CACrD,SAAS,EAAE,SAAS,EAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CAC3D,eAAe,EAAE,OAAO;AAC5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"changelog.schemas.js","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n OptionalTimestampMsSchema,\n PublicIdSchema,\n TimestampMsSchema,\n} from \"../../shared/schemas.js\";\nimport { msToTimestamp } from \"../../utils/timestamp.js\";\nimport {\n CHANGELOG_AUDIENCE_VALUES,\n CHANGELOG_CHANGE_CATEGORY_VALUES,\n CHANGELOG_SORT_VALUES,\n CHANGELOG_SURFACE_VALUES,\n ChangelogAudienceCodec,\n ChangelogChangeCategoryCodec,\n ChangelogSortCodec,\n ChangelogSurfaceCodec,\n} from \"./changelog.codecs.js\";\n\nconst PageTokenInputSchema = v.optional(v.pipe(v.string(), v.trim()), \"\");\nconst SlugInputSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst TimestampMsInputSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.maxValue(Number.MAX_SAFE_INTEGER),\n);\n\n/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */\nexport const ListChangelogPostsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100)), 0),\n pageToken: PageTokenInputSchema,\n});\n\nexport type ListChangelogPostsInput = v.InferInput<typeof ListChangelogPostsInputSchema>;\n\nexport const GetChangelogPostInputSchema = v.strictObject({\n slug: SlugInputSchema,\n});\n\nexport type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;\n\n/**\n * Filters on different fields combine with AND; values within one field combine with OR.\n * Times are epoch milliseconds on first post publication time: `startTime` inclusive, `endTime`\n * exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server\n * default of 100.\n */\nexport const ListChangelogChangesInputSchema = v.pipe(\n v.strictObject({\n categories: v.optional(v.array(v.picklist(CHANGELOG_CHANGE_CATEGORY_VALUES)), []),\n actionRequired: v.optional(v.boolean()),\n surfaces: v.optional(v.array(v.picklist(CHANGELOG_SURFACE_VALUES)), []),\n audiences: v.optional(v.array(v.picklist(CHANGELOG_AUDIENCE_VALUES)), []),\n startTime: v.optional(TimestampMsInputSchema),\n endTime: v.optional(TimestampMsInputSchema),\n postSlug: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n sort: v.optional(v.picklist(CHANGELOG_SORT_VALUES)),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(500)), 0),\n pageToken: PageTokenInputSchema,\n }),\n v.check(\n ({ startTime, endTime }) =>\n startTime === undefined || endTime === undefined || endTime > startTime,\n \"endTime: must be after startTime\",\n ),\n v.transform(({ categories, surfaces, audiences, startTime, endTime, sort, ...rest }) => ({\n ...rest,\n categories: categories.map((value) => ChangelogChangeCategoryCodec.inputToProto[value]),\n surfaces: surfaces.map((value) => ChangelogSurfaceCodec.inputToProto[value]),\n audiences: audiences.map((value) => ChangelogAudienceCodec.inputToProto[value]),\n startTime: startTime === undefined ? undefined : msToTimestamp(startTime),\n endTime: endTime === undefined ? undefined : msToTimestamp(endTime),\n sort: sort === undefined ? undefined : ChangelogSortCodec.inputToProto[sort],\n })),\n);\n\nexport type ListChangelogChangesInput = v.InferInput<typeof ListChangelogChangesInputSchema>;\n\n/** `id` is the public base58 identifier, stable across environments. */\nexport const ChangelogChangeSchema = v.object({\n id: PublicIdSchema,\n title: v.string(),\n summary: v.string(),\n details: v.optional(v.string()),\n category: enumLabelSchema(ChangelogChangeCategoryCodec.protoToOutput),\n actionRequired: v.boolean(),\n migrationGuidance: v.optional(v.string()),\n audiences: v.optional(v.array(enumLabelSchema(ChangelogAudienceCodec.protoToOutput)), []),\n surfaces: v.optional(v.array(enumLabelSchema(ChangelogSurfaceCodec.protoToOutput)), []),\n});\n\nexport type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;\n\n/** `surface` is the product area the section covers, `\"unspecified\"` when it spans several. */\nexport const ChangelogSectionSchema = v.object({\n heading: v.string(),\n summary: v.optional(v.string()),\n surface: enumLabelSchema(ChangelogSurfaceCodec.protoToOutput),\n changes: v.optional(v.array(ChangelogChangeSchema), []),\n});\n\nexport type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;\n\n/**\n * `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.\n * A post can be republished to correct its copy or withdraw a change: `revision` starts at 1\n * and increases with each republication, and `updatedAt` is when the current revision was\n * published (equal to `publishedAt` for revision 1). `slug` and `publishedAt` never change.\n * A server that predates post revisions sends `revision` 0 and no `updatedAt`.\n */\nexport const ChangelogPostSummarySchema = v.object({\n slug: v.string(),\n title: v.string(),\n introduction: v.string(),\n publishedAt: TimestampMsSchema,\n updatedAt: OptionalTimestampMsSchema,\n revision: v.number(),\n coverageCutoff: OptionalTimestampMsSchema,\n changeCount: v.number(),\n breakingChangeCount: v.number(),\n actionRequiredCount: v.number(),\n newFeatureCount: v.number(),\n improvementCount: v.number(),\n bugFixCount: v.number(),\n});\n\nexport type ChangelogPostSummary = v.InferOutput<typeof ChangelogPostSummarySchema>;\n\nexport const ListChangelogPostsResultSchema = v.object({\n posts: v.optional(v.array(ChangelogPostSummarySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogPostsResult = v.InferOutput<typeof ListChangelogPostsResultSchema>;\n\nexport const ChangelogPostSchema = v.pipe(\n v.object({\n summary: ChangelogPostSummarySchema,\n sections: v.optional(v.array(ChangelogSectionSchema), []),\n }),\n v.transform(({ summary, sections }) => ({ ...summary, sections })),\n);\n\nexport type ChangelogPost = v.InferOutput<typeof ChangelogPostSchema>;\n\nexport const GetChangelogPostResultSchema = v.object({ post: ChangelogPostSchema });\n\nexport const ChangelogChangeEntrySchema = v.pipe(\n v.object({\n change: ChangelogChangeSchema,\n postSlug: v.string(),\n publishedAt: TimestampMsSchema,\n sectionHeading: v.string(),\n }),\n v.transform(({ change, ...entry }) => ({ ...change, ...entry })),\n);\n\n/** A change with the slug, first publication time and section heading of the post that announced it. */\nexport type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;\n\nexport const ListChangelogChangesResultSchema = v.object({\n changes: v.optional(v.array(ChangelogChangeEntrySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogChangesResult = v.InferOutput<typeof ListChangelogChangesResultSchema>;\n"],"mappings":";;;;;;AAmBA,MAAM,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE;AACxE,MAAM,kBAAkB,EAAE,KAAK,EAAE,OA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CACtB,qBAAqB,EAAE,OAAO;CAC9B,qBAAqB,EAAE,OAAO;CAC9B,iBAAiB,EAAE,OAAO;CAC1B,kBAAkB,EAAE,OAAO;CAC3B,aAAa,EAAE,OAAO;AAC1B,CAAC;AAID,MAAa,iCAAiC,EAAE,OAAO;CACnD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CACzD,eAAe,EAAE,OAAO;AAC5B,CAAC;AAID,MAAa,sBAAsB,EAAE,KACjC,EAAE,OAAO;CACL,SAAS;CACT,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAC5D,CAAC,GACD,EAAE,WAAW,EAAE,SAAS,gBAAgB;CAAE,GAAG;CAAS;AAAS,EAAE,CACrE;AAIA,MAAa,+BAA+B,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElF,MAAa,6BAA6B,EAAE,KACxC,EAAE,OAAO;CACL,QAAQ;CACR,UAAU,EAAE,OAAO;CACnB,aAAa;CACb,gBAAgB,EAAE,OAAO;AAC7B,CAAC,GACD,EAAE,WAAW,EAAE,QAAQ,GAAG,aAAa;CAAE,GAAG;CAAQ,GAAG;AAAM,EAAE,CACnE;AAKA,MAAa,mCAAmC,EAAE,OAAO;CACrD,SAAS,EAAE,SAAS,EAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CAC3D,eAAe,EAAE,OAAO;AAC5B,CAAC"}
|
|
@@ -14,7 +14,7 @@ type TimestampInit = {
|
|
|
14
14
|
declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
15
15
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
16
16
|
readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1s" | "1m" | "5m" | "1h", HeatmapInterval>]>;
|
|
17
|
-
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 | 1000 |
|
|
17
|
+
readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 | 1000 | 200 | 50, HeatmapDepth>]>;
|
|
18
18
|
readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
|
|
19
19
|
readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
|
|
20
20
|
readonly startTsSec: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, undefined>;
|
|
@@ -227,7 +227,7 @@ type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
|
|
|
227
227
|
declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
228
228
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
229
229
|
readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
|
|
230
|
-
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 |
|
|
230
|
+
readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 | 200 | 50>]>;
|
|
231
231
|
readonly chain: v.OptionalSchema<v.ObjectSchema<{
|
|
232
232
|
readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
|
|
233
233
|
readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
|
|
@@ -287,7 +287,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
287
287
|
}, undefined>, v.TransformAction<{
|
|
288
288
|
symbolId: number;
|
|
289
289
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
290
|
-
depth: 1 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 |
|
|
290
|
+
depth: 1 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 | 200 | 50;
|
|
291
291
|
chain?: {
|
|
292
292
|
baseKeyframe?: {
|
|
293
293
|
tsSec: number;
|
|
@@ -347,7 +347,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
|
|
|
347
347
|
}, {
|
|
348
348
|
symbolId: number;
|
|
349
349
|
interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
|
|
350
|
-
depth: 1 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 |
|
|
350
|
+
depth: 1 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 | 200 | 50;
|
|
351
351
|
chain: {
|
|
352
352
|
baseKeyframe: {
|
|
353
353
|
tsSec: number;
|