@liveblocks/node 2.14.0 → 2.15.0-debug1

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.mts CHANGED
@@ -40,6 +40,7 @@ declare type Permission = (typeof ALL_PERMISSIONS)[number];
40
40
  * permissions were already added to the set.
41
41
  */
42
42
  declare class Session {
43
+ #private;
43
44
  readonly FULL_ACCESS: readonly ["room:write", "comments:write"];
44
45
  readonly READ_ACCESS: readonly ["room:read", "room:presence:write", "comments:read"];
45
46
  allow(roomIdOrPattern: string, newPerms: readonly Permission[]): this;
@@ -133,6 +134,7 @@ declare type U = DU;
133
134
  * Interact with the Liveblocks API from your Node.js backend.
134
135
  */
135
136
  declare class Liveblocks {
137
+ #private;
136
138
  /**
137
139
  * Interact with the Liveblocks API from your Node.js backend.
138
140
  */
@@ -760,8 +762,7 @@ declare class LiveblocksError extends Error {
760
762
  }
761
763
 
762
764
  declare class WebhookHandler {
763
- private secretBuffer;
764
- private static secretPrefix;
765
+ #private;
765
766
  constructor(
766
767
  /**
767
768
  * The signing secret provided on the dashboard's webhooks page
@@ -772,25 +773,6 @@ declare class WebhookHandler {
772
773
  * Verifies a webhook request and returns the event
773
774
  */
774
775
  verifyRequest(request: WebhookRequest): WebhookEvent;
775
- /**
776
- * Verifies the headers and returns the webhookId, timestamp and rawSignatures
777
- */
778
- private verifyHeaders;
779
- /**
780
- * Signs the content with the secret
781
- * @param content
782
- * @returns `string`
783
- */
784
- private sign;
785
- /**
786
- * Verifies that the timestamp is not too old or in the future
787
- */
788
- private verifyTimestamp;
789
- /**
790
- * Ensures that the event is a known event type
791
- * or throws and prompts the user to upgrade to a higher version of @liveblocks/node
792
- */
793
- private verifyWebhookEventType;
794
776
  }
795
777
  declare type WebhookRequest = {
796
778
  /**
package/dist/index.d.ts CHANGED
@@ -40,6 +40,7 @@ declare type Permission = (typeof ALL_PERMISSIONS)[number];
40
40
  * permissions were already added to the set.
41
41
  */
42
42
  declare class Session {
43
+ #private;
43
44
  readonly FULL_ACCESS: readonly ["room:write", "comments:write"];
44
45
  readonly READ_ACCESS: readonly ["room:read", "room:presence:write", "comments:read"];
45
46
  allow(roomIdOrPattern: string, newPerms: readonly Permission[]): this;
@@ -133,6 +134,7 @@ declare type U = DU;
133
134
  * Interact with the Liveblocks API from your Node.js backend.
134
135
  */
135
136
  declare class Liveblocks {
137
+ #private;
136
138
  /**
137
139
  * Interact with the Liveblocks API from your Node.js backend.
138
140
  */
@@ -760,8 +762,7 @@ declare class LiveblocksError extends Error {
760
762
  }
761
763
 
762
764
  declare class WebhookHandler {
763
- private secretBuffer;
764
- private static secretPrefix;
765
+ #private;
765
766
  constructor(
766
767
  /**
767
768
  * The signing secret provided on the dashboard's webhooks page
@@ -772,25 +773,6 @@ declare class WebhookHandler {
772
773
  * Verifies a webhook request and returns the event
773
774
  */
774
775
  verifyRequest(request: WebhookRequest): WebhookEvent;
775
- /**
776
- * Verifies the headers and returns the webhookId, timestamp and rawSignatures
777
- */
778
- private verifyHeaders;
779
- /**
780
- * Signs the content with the secret
781
- * @param content
782
- * @returns `string`
783
- */
784
- private sign;
785
- /**
786
- * Verifies that the timestamp is not too old or in the future
787
- */
788
- private verifyTimestamp;
789
- /**
790
- * Ensures that the event is a known event type
791
- * or throws and prompts the user to upgrade to a higher version of @liveblocks/node
792
- */
793
- private verifyWebhookEventType;
794
776
  }
795
777
  declare type WebhookRequest = {
796
778
  /**