@totalis/hip4-client 0.114.0 → 0.115.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,15 @@
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.115.0
7
+
8
+ ### Changed
9
+
10
+ - `getMyReferralBonus` answers an account the bonus is not on for with
11
+ `{ state: "DISABLED", reason: "NOT_ENROLLED" }` instead of
12
+ `CONTRACT_UNAVAILABLE`. A deployment with the bonus off still answers
13
+ `CONTRACT_UNAVAILABLE`.
14
+
6
15
  ## 0.114.0
7
16
 
8
17
  ### Changed
@@ -1536,7 +1536,7 @@ export type paths = {
1536
1536
  };
1537
1537
  /**
1538
1538
  * Get my referral bonus
1539
- * @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. state is ENABLED with the bonus, or DISABLED with its reason where the bonus is not on for the account. Answers CONTRACT_UNAVAILABLE where the referral bonus is off, and for now also where it is not on for the account.
1539
+ * @description The authenticated account's referral bonus. A referral is someone the account's own invite code admitted; they qualify once their own Combo stake since signing up reaches qualifying_stake, and the account earns bonus for each, up to monthly_cap a UTC month by when each qualified. Referrals past the cap earn nothing that month and nothing carries over. A one-leg entry is a single-market buy, not a Combo, and a golden Combo is not the referral's own stake. The bonus is separate from the fee share in GET /v1/referrals/me. state is ENABLED with the bonus, or DISABLED with its reason where the bonus is not on for the account. Answers CONTRACT_UNAVAILABLE where the referral bonus is off.
1540
1540
  */
1541
1541
  readonly get: operations["getMyReferralBonus"];
1542
1542
  readonly put?: never;
@@ -1,5 +1,5 @@
1
1
  export declare const sdkVersion = "248.0.0-referral-bonus-state";
2
- export declare const openapiSha256 = "d057d88dad100c185d2c0833ceea0bbe41841e18d03b19a04b2c181b814511c2";
2
+ export declare const openapiSha256 = "27455e96c0f20ef0aeed3a29e2f7ffc6c1a2ea70eed653be651f8314c6af2add";
3
3
  export declare const realtimeSha256 = "cf0bafff0b355ea9fb642d4a3402dcc2a4e5fc7569a2b448184beb4043d154ef";
4
4
  export declare const jsonSchemaSha256: {
5
5
  readonly "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb";
@@ -1,6 +1,6 @@
1
1
  // Generated by scripts/generate.mjs; do not edit.
2
2
  export const sdkVersion = "248.0.0-referral-bonus-state";
3
- export const openapiSha256 = "d057d88dad100c185d2c0833ceea0bbe41841e18d03b19a04b2c181b814511c2";
3
+ export const openapiSha256 = "27455e96c0f20ef0aeed3a29e2f7ffc6c1a2ea70eed653be651f8314c6af2add";
4
4
  export const realtimeSha256 = "cf0bafff0b355ea9fb642d4a3402dcc2a4e5fc7569a2b448184beb4043d154ef";
5
5
  export const jsonSchemaSha256 = {
6
6
  "account.schema.json": "e6cd5a75429d074f23bd7f6ffd370fa59d0e3f7dbd6aef6433e5ba0d21b5baeb",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.114.0",
3
+ "version": "0.115.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": [