@totalis/hip4-client 0.93.1 → 0.94.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.94.0
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
|
|
10
|
+
- Announcements (contract `223.0.0-announcements`). `listMyNotifications`
|
|
11
|
+
can answer a notification of kind `ANNOUNCEMENT`, a message Totalis sent,
|
|
12
|
+
with optional `title`, `body` and `link` (an app path starting with `/` or
|
|
13
|
+
an https URL). Clients that switch on `kind` exhaustively must handle it.
|
|
14
|
+
|
|
6
15
|
## 0.93.1
|
|
7
16
|
|
|
8
17
|
### Fixed
|
|
@@ -9254,11 +9254,11 @@ export interface operations {
|
|
|
9254
9254
|
*/
|
|
9255
9255
|
readonly id: string;
|
|
9256
9256
|
/**
|
|
9257
|
-
* @description What happened. FEATURE_UNLOCKED: the account unlocked the feature named by subject.
|
|
9257
|
+
* @description What happened. FEATURE_UNLOCKED: the account unlocked the feature named by subject. ANNOUNCEMENT: Totalis sent a message, in title, body and link. A client shows only kinds it knows.
|
|
9258
9258
|
* @enum {string}
|
|
9259
9259
|
*/
|
|
9260
|
-
readonly kind: "FEATURE_UNLOCKED";
|
|
9261
|
-
/** @description What the notification is about. For FEATURE_UNLOCKED, the feature: REFERRALS, the account's own invite link, which admits people once the account has traded $5. A client shows only subjects it knows. */
|
|
9260
|
+
readonly kind: "FEATURE_UNLOCKED" | "ANNOUNCEMENT";
|
|
9261
|
+
/** @description What the notification is about. For FEATURE_UNLOCKED, the feature: REFERRALS, the account's own invite link, which admits people once the account has traded $5. For ANNOUNCEMENT, an opaque id of the message. A client shows only subjects it knows. */
|
|
9262
9262
|
readonly subject: string;
|
|
9263
9263
|
/** Format: date-time */
|
|
9264
9264
|
readonly created_at: string;
|
|
@@ -9267,6 +9267,12 @@ export interface operations {
|
|
|
9267
9267
|
* @description When the account first read it; absent while unread.
|
|
9268
9268
|
*/
|
|
9269
9269
|
readonly read_at?: string;
|
|
9270
|
+
/** @description An ANNOUNCEMENT's title, one line of plain text. */
|
|
9271
|
+
readonly title?: string;
|
|
9272
|
+
/** @description An ANNOUNCEMENT's message, plain text that may hold line breaks. */
|
|
9273
|
+
readonly body?: string;
|
|
9274
|
+
/** @description Where an ANNOUNCEMENT points, when it does: an app path starting with / or an https URL. */
|
|
9275
|
+
readonly link?: string;
|
|
9270
9276
|
}[];
|
|
9271
9277
|
readonly unread: number;
|
|
9272
9278
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const sdkVersion = "
|
|
2
|
-
export declare const openapiSha256 = "
|
|
1
|
+
export declare const sdkVersion = "223.0.0-announcements";
|
|
2
|
+
export declare const openapiSha256 = "c66b5d72a81151c7e70f54c9d8ca6641d72adadc12e1c17c7fdb66578729e7c9";
|
|
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
|
-
export const sdkVersion = "
|
|
3
|
-
export const openapiSha256 = "
|
|
2
|
+
export const sdkVersion = "223.0.0-announcements";
|
|
3
|
+
export const openapiSha256 = "c66b5d72a81151c7e70f54c9d8ca6641d72adadc12e1c17c7fdb66578729e7c9";
|
|
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.
|
|
3
|
+
"version": "0.94.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": [
|