@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/dist/index.d.ts CHANGED
@@ -6,4 +6,5 @@ export * from './src/StreamVideoClient';
6
6
  export * from './src/gen/models';
7
7
  export * from './src/StreamFeedsClient';
8
8
  export * from './src/StreamFeed';
9
- export { InvalidWebhookError, InvalidWebhookErrorMessages, } from './src/utils/webhook';
9
+ export { InvalidWebhookError, InvalidWebhookErrorMessages, verifyAndParseWebhook, } from './src/utils/webhook';
10
+ export { StreamError } from './src/types';
package/dist/index.es.mjs CHANGED
@@ -12497,7 +12497,7 @@ var ApiClient = class {
12497
12497
  const headers = {
12498
12498
  Authorization: this.apiConfig.token,
12499
12499
  "stream-auth-type": "jwt",
12500
- "X-Stream-Client": "stream-node-0.8.12",
12500
+ "X-Stream-Client": "stream-node-0.8.13",
12501
12501
  "Accept-Encoding": "gzip",
12502
12502
  "x-client-request-id": clientRequestId
12503
12503
  };
@@ -12538,8 +12538,8 @@ var ApiClient = class {
12538
12538
  clientRequestId,
12539
12539
  responseCode: error.status
12540
12540
  };
12541
- if (error.name === "AbortError" || error.name === "TimeoutError") throw new StreamError(`The request was aborted due to to the ${this.apiConfig.timeout}ms timeout, you can set the timeout in the StreamClient constructor`, metadata, void 0, error);
12542
- else throw new StreamError(`The request failed due to an unexpected error`, metadata, error);
12541
+ if (error.name === "AbortError" || error.name === "TimeoutError") throw new StreamError(`The request was aborted due to to the ${this.apiConfig.timeout}ms timeout, you can set the timeout in the StreamClient constructor`, metadata, void 0, { cause: error });
12542
+ else throw new StreamError(`The request failed due to an unexpected error`, metadata, void 0, { cause: error });
12543
12543
  }
12544
12544
  };
12545
12545
  multipartBodyStringify = (body) => {
@@ -13348,7 +13348,8 @@ var FeedsApi = class {
13348
13348
  friend_reactions_options: request?.friend_reactions_options,
13349
13349
  interest_weights: request?.interest_weights,
13350
13350
  member_pagination: request?.member_pagination,
13351
- user: request?.user
13351
+ user: request?.user,
13352
+ viewer_location: request?.viewer_location
13352
13353
  };
13353
13354
  const response = await this.apiClient.sendRequest("POST", "/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}", pathParams, queryParams, body);
13354
13355
  decoders["GetOrCreateFeedResponse"]?.(response);
@@ -14463,6 +14464,6 @@ var OwnCapability = {
14463
14464
  UPDATE_CALL_SETTINGS: "update-call-settings"
14464
14465
  };
14465
14466
  //#endregion
14466
- export { ChannelOwnCapability, FeedOwnCapability, InvalidWebhookError, InvalidWebhookErrorMessages, OwnCapability, StreamCall, StreamChannel, StreamChatClient, StreamClient, StreamFeed, StreamFeedsClient, StreamVideoClient };
14467
+ export { ChannelOwnCapability, FeedOwnCapability, InvalidWebhookError, InvalidWebhookErrorMessages, OwnCapability, StreamCall, StreamChannel, StreamChatClient, StreamClient, StreamError, StreamFeed, StreamFeedsClient, StreamVideoClient, verifyAndParseWebhook };
14467
14468
 
14468
14469
  //# sourceMappingURL=index.es.mjs.map