@relaybox/rest
Advanced tools
Comparing version 1.0.5 to 1.1.0
@@ -85,3 +85,3 @@ "use strict"; | ||
prepareRequestParams(roomId, event, data) { | ||
const timestamp = new Date().toISOString(); | ||
const timestamp = Date.now(); | ||
const body = JSON.stringify({ | ||
@@ -88,0 +88,0 @@ event, |
@@ -1,2 +0,2 @@ | ||
export declare const allowedPermissions: readonly ["subscribe", "publish", "presence", "metrics", "*"]; | ||
export declare const allowedPermissions: readonly ["subscribe", "publish", "presence", "metrics", "history", "*"]; | ||
export type Permission = (typeof allowedPermissions)[number]; | ||
@@ -3,0 +3,0 @@ export interface Permissions { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.allowedPermissions = void 0; | ||
exports.allowedPermissions = ['subscribe', 'publish', 'presence', 'metrics', '*']; | ||
exports.allowedPermissions = [ | ||
'subscribe', | ||
'publish', | ||
'presence', | ||
'metrics', | ||
'history', | ||
'*' | ||
]; |
{ | ||
"name": "@relaybox/rest", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "RelayBox REST Services SDK. Enables seemless integration between server-side applications and RelayBox's authentication and realtime services. It provides robust functionality for generating authentication tokens, publishing events, and interacting efficiently with RelayBox's suite of services.", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
}, | ||
"homepage": "https://github.com/relaybox/relaybox-rest-js#readme", | ||
"homepage": "https://relaybox.net", | ||
"dependencies": { | ||
@@ -46,0 +46,0 @@ "jsonwebtoken": "^9.0.2" |
@@ -23,3 +23,3 @@  | ||
## RelayBox Class | ||
## RelayBox Constructor | ||
@@ -58,3 +58,3 @@ Instantiate a new RelayBox object to enable usage of the server-side SDK. | ||
const allowedPermissions: readonly ['subscribe', 'publish', 'presence', 'metrics', '*']; | ||
const allowedPermissions: readonly ['subscribe', 'publish', 'presence', 'metrics', 'history', '*']; | ||
@@ -165,3 +165,4 @@ type Permission = (typeof allowedPermissions)[number]; | ||
'presence', | ||
'metrics' | ||
'metrics', | ||
'history' | ||
]; | ||
@@ -168,0 +169,0 @@ }; |
28542
476
234