Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chatium/sdk

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chatium/sdk - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

3

lib/ChatiumAppRequestToken.d.ts

@@ -0,3 +1,3 @@

import { ChatiumAuthType } from './ChatiumAuth';
import { ChatiumUserRole } from './ChatiumUser';
import { ChatiumAuthType } from './ChatiumAuth';
export interface ChatiumAppRequestToken {

@@ -13,3 +13,4 @@ acc: number;

urs?: ChatiumUserRole[];
uqid?: string;
}
export declare function validateChatiumAppRequestToken(token: string, secret: string): ChatiumAppRequestToken;

@@ -13,2 +13,3 @@ "use strict";

typeof raw.host === 'string' &&
(!raw.uqid || typeof raw.uqid === 'string') &&
(!raw.aid || (typeof raw.aid === 'number' && typeof raw.tkn === 'string' && typeof raw.atp === 'string')) &&

@@ -15,0 +16,0 @@ (!raw.uid ||

@@ -0,3 +1,3 @@

import { OptionalAuthCtx } from './ChatiumAuth';
import { OptionalUserCtx } from './ChatiumUser';
import { OptionalAuthCtx } from './ChatiumAuth';
export interface AppCtx {

@@ -15,5 +15,8 @@ app: {

}
export declare function getChatiumContext(ctx: AppCtx, headers: ChatiumHeaders): AppCtx & AccountCtx & OptionalAuthCtx & OptionalUserCtx;
export interface UniqCtx {
uniqId: string | null;
}
export declare function getChatiumContext(ctx: AppCtx, headers: ChatiumHeaders): AppCtx & UniqCtx & AccountCtx & OptionalAuthCtx & OptionalUserCtx;
export interface ChatiumHeaders {
'x-chatium-application'?: string;
}

@@ -13,2 +13,3 @@ "use strict";

...ctx,
uniqId: token.uqid ? token.uqid : null,
account: {

@@ -15,0 +16,0 @@ id: token.acc,

{
"name": "@chatium/sdk",
"version": "0.0.3",
"version": "0.0.4",
"description": "SDK for developing custom chatium backends using NodeJS",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc