@totalis/hip4-client 0.88.0 → 0.89.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/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  `@totalis/hip4-client` follows [semantic versioning](https://semver.org).
4
4
  The contract version the generated types come from is `sdkVersion` in `./version`.
5
5
 
6
+ ## 0.89.0
7
+
8
+ ### Added
9
+
10
+ - `GET /v1/discovery` takes `combo=true`: only cards with a market whose
11
+ `combo.state` was `OPEN` at publication, with facets counted over those
12
+ cards, so a Combo picker can draw its list and its category and league
13
+ navigation from one read. It combines with `category`, `subcategory`,
14
+ `sort`, `limit`, `cursor` and `date_filter=all`; anything else, `live`
15
+ included, is 400 `INVALID_QUERY`. The response echoes `filters.combo: true`
16
+ only on such a page. Additive.
17
+
18
+ ## 0.88.1
19
+
20
+ ### Changed
21
+
22
+ - `requestComboCopyAgent`'s description says a Combo copy agent signs only
23
+ `TakerAccept` and `SellBack`; its Privy policy no longer allows
24
+ `CashoutTransfer` (TT-2700). No shape change.
25
+ - `GET /v1/rfqs/{rfq_id}` returns an open cash-out only to its owner or with
26
+ its backing maker's credential; anyone else gets 404 `NOT_FOUND`, as
27
+ `GET /v1/rfqs` already lists cash-outs only to their backing maker
28
+ (TT-2700). Open entry RFQs stay public. No shape change.
29
+
6
30
  ## 0.88.0
7
31
 
8
32
  ### Removed
@@ -64,6 +64,11 @@ export type components = {
64
64
  * @constant
65
65
  */
66
66
  readonly live?: true;
67
+ /**
68
+ * @description Only cards with at least one market whose combo.state was OPEN at publication, in the default or closing_soon order, with facets counted over the same cards. Send it only as true, beside at most category, subcategory, sort, limit and cursor (date_filter only as all); any other combination, live included, returns 400 INVALID_QUERY.
69
+ * @constant
70
+ */
71
+ readonly combo?: true;
67
72
  } & ({
68
73
  readonly category: components["schemas"]["CategorySlug"];
69
74
  } | {
@@ -75,6 +80,13 @@ export type components = {
75
80
  readonly frequency?: never;
76
81
  /** @constant */
77
82
  readonly date_filter?: "all";
83
+ }) & ({
84
+ readonly combo?: never;
85
+ } | {
86
+ readonly live?: never;
87
+ readonly frequency?: never;
88
+ /** @constant */
89
+ readonly date_filter?: "all";
78
90
  });
79
91
  readonly SearchQuery: {
80
92
  readonly category?: components["schemas"]["CategorySlug"];
@@ -215,6 +227,7 @@ export type components = {
215
227
  readonly q?: components["schemas"]["NormalizedSearchText"];
216
228
  /** @constant */
217
229
  readonly live?: false;
230
+ readonly combo?: never;
218
231
  };
219
232
  readonly publication?: {
220
233
  readonly search_index_version?: components["schemas"]["PositiveInt64String"];
@@ -575,6 +588,11 @@ export type components = {
575
588
  readonly q: components["schemas"]["NormalizedSearchText"] | null;
576
589
  /** @description Only cards in play at publication: published_at inside [date_at, estimated_live_until). */
577
590
  readonly live: boolean;
591
+ /**
592
+ * @description Present, as true, only on a combo=true page: only cards with a market Combos were open to at publication.
593
+ * @constant
594
+ */
595
+ readonly combo?: true;
578
596
  } & ({
579
597
  readonly category: components["schemas"]["CategorySlug"];
580
598
  } | {
@@ -1178,7 +1178,7 @@ export type paths = {
1178
1178
  readonly put?: never;
1179
1179
  /**
1180
1180
  * Make a Combo copy agent to grant
1181
- * @description Makes the key Combo auto-copy will sign with, a Privy server wallet that only Totalis's copy signer can use and that can sign only the vault's TakerAccept, SellBack and CashoutTransfer, never a grant, transfer or withdrawal. The account then signs the AgentGrant in grant, in the vault's EIP-712 domain (name TotalisParlay, version 1), relays it with grantComboCopyAgent and confirms once it is on chain. While a key made for this account waits for its grant, it is returned again, and every answer is recorded under its Idempotency-Key: a request repeated under it returns that answer and makes nothing. A key that answered another copy agent command is 409 IDEMPOTENCY_KEY_REUSED. A key not confirmed within an hour is switched off and the next request makes a new one. Renewing works the same way: the active key keeps copying until the new one is confirmed. While a key is active on another account this is 409 STATE_CONFLICT, until it is switched off. A key is never reused.
1181
+ * @description Makes the key Combo auto-copy will sign with, a Privy server wallet that only Totalis's copy signer can use and that can sign only the vault's TakerAccept and SellBack, never a grant, transfer or withdrawal. The account then signs the AgentGrant in grant, in the vault's EIP-712 domain (name TotalisParlay, version 1), relays it with grantComboCopyAgent and confirms once it is on chain. While a key made for this account waits for its grant, it is returned again, and every answer is recorded under its Idempotency-Key: a request repeated under it returns that answer and makes nothing. A key that answered another copy agent command is 409 IDEMPOTENCY_KEY_REUSED. A key not confirmed within an hour is switched off and the next request makes a new one. Renewing works the same way: the active key keeps copying until the new one is confirmed. While a key is active on another account this is 409 STATE_CONFLICT, until it is switched off. A key is never reused.
1182
1182
  */
1183
1183
  readonly post: operations["requestComboCopyAgent"];
1184
1184
  /**
@@ -10944,7 +10944,7 @@ export interface operations {
10944
10944
  };
10945
10945
  readonly requestBody?: never;
10946
10946
  readonly responses: {
10947
- /** @description The RFQ as it stands now. Anyone can read an open RFQ; its owner can also read it after it ends, to see how it ended. */
10947
+ /** @description The RFQ as it stands now. Anyone can read an open entry RFQ; an open cash-out is read only by its owner or with its backing maker's credential. Its owner can also read it after it ends, to see how it ended. */
10948
10948
  readonly 200: {
10949
10949
  headers: {
10950
10950
  readonly [name: string]: unknown;
@@ -1,5 +1,5 @@
1
1
  export declare const sdkVersion = "215.0.0-no-transfer-bids";
2
- export declare const openapiSha256 = "997b89a2fb217df2863da685026667a9d5b4db05a57f309392f878ac128cfebb";
2
+ export declare const openapiSha256 = "c09cad365cba594175eb021b318f9a45b1f9b080eb66e5b2cfd7d270e7ffb90c";
3
3
  export declare const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
4
4
  export declare const jsonSchemaSha256: {
5
5
  readonly "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a";
@@ -1,6 +1,6 @@
1
1
  // Generated by scripts/generate.mjs; do not edit.
2
2
  export const sdkVersion = "215.0.0-no-transfer-bids";
3
- export const openapiSha256 = "997b89a2fb217df2863da685026667a9d5b4db05a57f309392f878ac128cfebb";
3
+ export const openapiSha256 = "c09cad365cba594175eb021b318f9a45b1f9b080eb66e5b2cfd7d270e7ffb90c";
4
4
  export const realtimeSha256 = "32e56c8bb642401f5b03e9c38274087c09bebb73ffe60c0d34432c2e78ce1e15";
5
5
  export const jsonSchemaSha256 = {
6
6
  "account.schema.json": "c11a94438d5f7b54e08d3b559098ce2671f4c9aad3a79feb684b7a81f77d809a",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.88.0",
3
+ "version": "0.89.0",
4
4
  "description": "Totalis HIP-4 SDK: typed HTTP clients, signer-agnostic typed data, a retrying request layer, pagination, a realtime stream and taker/maker flows",
5
5
  "type": "module",
6
6
  "files": [