New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@giosg/pub-sdk

Package Overview
Dependencies
Maintainers
9
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giosg/pub-sdk - npm Package Compare versions

Comparing version 0.5.3 to 0.6.0

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

## 0.6.0
- Added `PubMessageBodyV3`, `ChunkV3` interfaces.
- Added chunks for audio, video, image, file.
- Added BAR Attachments support.
- Added chunks for text, phone, email, link.
- Added BAR message tokens support.
## 0.5.3

@@ -9,0 +17,0 @@

38

lib/groupchats.d.ts

@@ -105,3 +105,29 @@ import { UserUid, OrganizationUid } from "@giosg/types";

}
export declare type Chunk = TextChunk;
export interface LinkChunk {
type: "link";
kind: "url" | "phone" | "email";
text: string;
}
export interface FileChunk {
type: "file";
url: string;
name: string;
size?: string;
}
export interface AudioChunk {
type: "audio";
url: string;
title?: string;
}
export interface VideoChunk {
type: "video";
url: string;
title?: string;
}
export interface ImageChunk {
type: "image";
url: string;
}
export declare type ChunkV2 = TextChunk;
export declare type ChunkV3 = TextChunk | AudioChunk | VideoChunk | FileChunk | ImageChunk | LinkChunk;
export interface PubMessageBodyV1 {

@@ -117,5 +143,11 @@ /** Version of the message, use latest whenever possible */

/** Content of message*/
chunks: Chunk[];
chunks: ChunkV2[];
}
export declare type PubMessageBody = PubMessageBodyV1 | PubMessageBodyV2;
export interface PubMessageBodyV3 {
/** Version of the message, use latest whenever possible */
version: 3;
/** Content of message*/
chunks: ChunkV3[];
}
export declare type PubMessageBody = PubMessageBodyV1 | PubMessageBodyV2 | PubMessageBodyV3;
export interface NotificationSettingsPayload {

@@ -122,0 +154,0 @@ /** Notification mode to be applied */

2

lib/index.d.ts

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

export { PubChannel, PubChannelMember, PubMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettings, NotificationSettingsPayload, PubMessageBody, PubMessagePayload, ChannelPayload, TextChunk, Chunk, PubMessageBodyV1, PubMessageBodyV2 } from "./groupchats";
export { PubChannel, PubChannelMember, PubMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettings, NotificationSettingsPayload, PubMessagePayload, ChannelPayload, TextChunk, AudioChunk, FileChunk, ImageChunk, LinkChunk, VideoChunk, ChunkV2, ChunkV3, PubMessageBody, PubMessageBodyV1, PubMessageBodyV2, PubMessageBodyV3, } from "./groupchats";
export { BasePubSdk } from "./sdk";
//# sourceMappingURL=index.d.ts.map
{
"name": "@giosg/pub-sdk",
"version": "0.5.3",
"version": "0.6.0",
"description": "TypeScript interfaces for Giosg Pub",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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