@stream-io/node-sdk 0.8.12 → 0.8.13
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 +12 -0
- package/__tests__/docs-snippets/README.md +87 -0
- package/dist/index.cjs.js +7 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.mjs +6 -5
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/models/index.d.ts +1 -0
- package/index.ts +2 -0
- package/package.json +6 -1
- package/src/ApiClient.ts +3 -2
- package/src/gen/feeds/FeedsApi.ts +1 -0
- package/src/gen/models/index.ts +1 -0
|
@@ -10161,6 +10161,7 @@ export interface GetOrCreateFeedRequest {
|
|
|
10161
10161
|
* User request object
|
|
10162
10162
|
*/
|
|
10163
10163
|
user?: UserRequest;
|
|
10164
|
+
viewer_location?: Location;
|
|
10164
10165
|
}
|
|
10165
10166
|
export interface GetOrCreateFeedResponse {
|
|
10166
10167
|
created: boolean;
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/node-sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"prepack": "yarn build",
|
|
24
24
|
"test": "vitest",
|
|
25
25
|
"test:bun": "bun run vitest",
|
|
26
|
+
"test:docs": "vitest run --config __tests__/docs-snippets/vitest.config.mts",
|
|
27
|
+
"test:docs:sync": "vitest run --config __tests__/docs-snippets/vitest.sync.config.mts",
|
|
28
|
+
"test:docs:sweep": "vitest run --config __tests__/docs-snippets/vitest.sweep.config.mts",
|
|
29
|
+
"types:docs": "tsc -p __tests__/docs-snippets/tsconfig.json",
|
|
26
30
|
"start": "vite build --watch",
|
|
27
31
|
"build": "rm -rf dist && vite build && tsc --emitDeclarationOnly -p tsconfig.json",
|
|
28
32
|
"generate:open-api": "./generate-openapi.sh",
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
"prettier": "^3.9.6",
|
|
62
66
|
"typescript": "~6.0.3",
|
|
63
67
|
"typescript-eslint": "^8.67.0",
|
|
68
|
+
"undici": "^7.30.0",
|
|
64
69
|
"vite": "^8.2.1",
|
|
65
70
|
"vitest": "~4.1.10"
|
|
66
71
|
},
|
package/src/ApiClient.ts
CHANGED
|
@@ -108,13 +108,14 @@ export class ApiClient {
|
|
|
108
108
|
`The request was aborted due to to the ${this.apiConfig.timeout}ms timeout, you can set the timeout in the StreamClient constructor`,
|
|
109
109
|
metadata,
|
|
110
110
|
undefined,
|
|
111
|
-
error
|
|
111
|
+
{ cause: error },
|
|
112
112
|
);
|
|
113
113
|
} else {
|
|
114
114
|
throw new StreamError(
|
|
115
115
|
`The request failed due to an unexpected error`,
|
|
116
116
|
metadata,
|
|
117
|
-
|
|
117
|
+
undefined,
|
|
118
|
+
{ cause: error },
|
|
118
119
|
);
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -1784,6 +1784,7 @@ export class FeedsApi {
|
|
|
1784
1784
|
interest_weights: request?.interest_weights,
|
|
1785
1785
|
member_pagination: request?.member_pagination,
|
|
1786
1786
|
user: request?.user,
|
|
1787
|
+
viewer_location: request?.viewer_location,
|
|
1787
1788
|
};
|
|
1788
1789
|
|
|
1789
1790
|
const response = await this.apiClient.sendRequest<GetOrCreateFeedResponse>(
|
package/src/gen/models/index.ts
CHANGED
|
@@ -10887,6 +10887,7 @@ export interface GetOrCreateFeedRequest {
|
|
|
10887
10887
|
* User request object
|
|
10888
10888
|
*/
|
|
10889
10889
|
user?: UserRequest;
|
|
10890
|
+
viewer_location?: Location;
|
|
10890
10891
|
}
|
|
10891
10892
|
|
|
10892
10893
|
export interface GetOrCreateFeedResponse {
|