@stream-io/node-sdk 0.8.15 → 0.9.1
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 +19 -0
- package/__tests__/docs-snippets/README.md +4 -4
- package/dist/index.cjs.js +328 -8340
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.mjs +321 -8341
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/StreamVideoClient.d.ts +7 -0
- package/dist/src/gen/chat/ChannelApi.d.ts +4 -1
- package/dist/src/gen/chat/ChatApi.d.ts +18 -1
- package/dist/src/gen/common/CommonApi.d.ts +4 -3
- package/dist/src/gen/feeds/FeedApi.d.ts +5 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +18 -3
- package/dist/src/gen/models/index.d.ts +2530 -1033
- package/dist/src/gen/models/timestamp-guard.d.ts +22 -0
- package/dist/src/gen/moderation/ModerationApi.d.ts +11 -4
- package/dist/src/gen/video/CallApi.d.ts +3 -3
- package/dist/src/gen/video/VideoApi.d.ts +3 -3
- package/dist/src/types.d.ts +14 -1
- package/dist/src/utils/time.d.ts +67 -0
- package/index.ts +10 -0
- package/package.json +1 -1
- package/src/ApiClient.ts +1 -0
- package/src/StreamVideoClient.ts +7 -0
- package/src/gen/chat/ChannelApi.ts +54 -0
- package/src/gen/chat/ChatApi.ts +184 -0
- package/src/gen/common/CommonApi.ts +27 -2
- package/src/gen/feeds/FeedApi.ts +12 -0
- package/src/gen/feeds/FeedsApi.ts +106 -2
- package/src/gen/model-decoders/decoders.ts +3 -6472
- package/src/gen/models/index.ts +2682 -1252
- package/src/gen/models/timestamp-guard.ts +27 -0
- package/src/gen/moderation/ModerationApi.ts +89 -12
- package/src/gen/video/CallApi.ts +3 -2
- package/src/gen/video/VideoApi.ts +3 -2
- package/src/types.ts +8 -0
- package/src/utils/time.ts +84 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.1](https://github.com/GetStream/stream-node/compare/v0.9.0...v0.9.1) (2026-11-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* deprecate connectOpenAi in favour of Vision Agents ([#381](https://github.com/GetStream/stream-node/issues/381)) ([bdae28d](https://github.com/GetStream/stream-node/commit/bdae28d3c3b69f57196b12c519ae71038c36153b))
|
|
9
|
+
* expose the parsed API error on StreamError ([#388](https://github.com/GetStream/stream-node/issues/388)) ([13770c8](https://github.com/GetStream/stream-node/commit/13770c82dd505bf97bb55315625bdae6a378270e))
|
|
10
|
+
|
|
11
|
+
## [0.9.0](https://github.com/GetStream/stream-node/compare/v0.8.15...v0.9.0) (2026-11-06)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* remove date transofrmator ([#349](https://github.com/GetStream/stream-node/issues/349))
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* remove date transofrmator ([#349](https://github.com/GetStream/stream-node/issues/349)) ([95d3ba6](https://github.com/GetStream/stream-node/commit/95d3ba6cdd840ca7eb9ec4a4999466b2f4b09bb9))
|
|
21
|
+
|
|
3
22
|
## [0.8.15](https://github.com/GetStream/stream-node/compare/v0.8.14...v0.8.15) (2026-10-28)
|
|
4
23
|
|
|
5
24
|
|
|
@@ -10,8 +10,8 @@ these sidebars in `getstream.io/content/docs/_sidebars/` (`SIDEBAR_FILES` in `sy
|
|
|
10
10
|
- platform: `[platform][default].json`
|
|
11
11
|
|
|
12
12
|
Only fences labelled `Node.js` are in scope (a fence label, or the `label` of the enclosing `<tabs-item>` on the video pages) (docs fences must always have a label): they are fixed when they are
|
|
13
|
-
wrong. `JavaScript`, `React` and `React Native` fences (client-side code), the stream-chat
|
|
14
|
-
`Node.js (stream-chat
|
|
13
|
+
wrong. `JavaScript`, `React` and `React Native` fences (client-side code), the stream-chat@9 fences (`JavaScript (stream-chat@9)`,
|
|
14
|
+
`Node.js (stream-chat@9)`) and `Node.js` fences inside a `<disclosure label="... (no SDK)">` block (reference
|
|
15
15
|
implementations without the SDK) are out of scope and are neither tested nor changed.
|
|
16
16
|
|
|
17
17
|
```sh
|
|
@@ -91,8 +91,8 @@ await channel.getOrCreate({ data: { created_by_id: creatorId } });
|
|
|
91
91
|
- `index` is 1-based among fences with the same heading text and tab (default 1).
|
|
92
92
|
- **COPY**: `name="literal"` pairs, applied to the region before comparing (identifier `name` becomes the docs literal). Don't use COPY variables as object keys or shorthand properties.
|
|
93
93
|
- **Comparison**: both sides are formatted with the same prettier options, so quote style and line wrapping don't matter, but any code or comment change does.
|
|
94
|
-
- **Coverage** (checked first): every `Node.js` fence (`js`/`javascript`/`ts`/`typescript`) on the pages of the tested sidebars (see the top of this file; `$fragment` entries are resolved from `_sidebars/fragments/`), whether or not the page has tests yet, must have a region (inside `it.skip` if it can't run). `JavaScript` / `React` / `React Native` / stream-chat
|
|
95
|
-
- **Labels**: every JS fence on those pages must be labelled `JavaScript`, `React`, `React Native`, `Node.js`, `JavaScript (stream-chat
|
|
94
|
+
- **Coverage** (checked first): every `Node.js` fence (`js`/`javascript`/`ts`/`typescript`) on the pages of the tested sidebars (see the top of this file; `$fragment` entries are resolved from `_sidebars/fragments/`), whether or not the page has tests yet, must have a region (inside `it.skip` if it can't run). `JavaScript` / `React` / `React Native` / stream-chat@9 fences and comment-only fences are ignored.
|
|
95
|
+
- **Labels**: every JS fence on those pages must be labelled `JavaScript`, `React`, `React Native`, `Node.js`, `JavaScript (stream-chat@9)` or `Node.js (stream-chat@9)`; unlabelled or otherwise labelled JS fences fail.
|
|
96
96
|
- **Excluded pages and fences**: `EXCLUDED_PAGES` in `sync/parse.ts` lists sidebar pages that are deliberately not validated, with a reason. Both checks skip them. `EXCLUDED_FENCES` does the same for single `Node.js` fences (keyed by fence id) that hold another SDK's code, e.g. Feeds v2 `getstream` client code on the moderation Feeds v2 quick start: not ours to test or update.
|
|
97
97
|
- **`DOCS_SYNC_WRITE=<page path> yarn test:docs:sync`** writes the regions of that page into the docs fences (docs prettier style). Use it to apply a fix to the docs. `DOCS_SYNC_WRITE=1` writes all pages.
|
|
98
98
|
- **`DOCS_DIR`** points at another docs checkout (default: `../getstream.io/content/docs` next to this repo). The check is skipped if the directory doesn't exist.
|