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
12
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.20.1 to 0.21.0

CHANGELOG.md

2

lib/groupchats.d.ts

@@ -157,2 +157,4 @@ import { UserUid, OrganizationUid } from "@giosg/types";

avatar_url?: string | null;
/** List of members of channel to create */
members?: UserUid[];
}

@@ -159,0 +161,0 @@ export interface TextChunk {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export { PubChannel, PubChannelMember, PubMessage, PubReportingMessage, PubReportingBody, PubUserMessage, PubCallRequestMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettingsUid, NotificationMode, NotificationSettings, NotificationSettingsPayload, PubCallRequestPayload, PubCallLeavePayload, PubUserMessagePayload, PubMessagePayload, ChannelPayload, TextChunk, VoiceChunk, FileChunk, ImageChunk, LinkChunk, VideoChunk, ChunkV2, ChunkV3, ExternalViewV1, PubMessageBody, PubMessageBodyV1, PubMessageBodyV2, PubMessageBodyV3, CallRequestBody, } from "./groupchats";
export { BasePubSdk } from "./sdk";
//# sourceMappingURL=index.d.ts.map

@@ -0,0 +0,0 @@ "use strict";

3

lib/sdk.d.ts

@@ -14,2 +14,3 @@ import { IRealtimeSdk } from "@giosg/realtime-sdk";

streamJoinedChannel(orgId: OrganizationUid, userId: UserUid, channelId: PubChannelUid): Observable<PubChannel>;
deleteChannel(orgId: OrganizationUid, channelId: PubChannelUid): Promise<void>;
streamUserDMChannels(orgId: OrganizationUid, userId: UserUid, ordering?: "created_at" | "-created_at" | "latest_message_created_at" | "-latest_message_created_at"): Observable<Observable<PubChannel>>;

@@ -26,4 +27,4 @@ postDMChannel(orgId: OrganizationUid, userId: UserUid, payload: DMChannelPayload): Promise<PubChannel>;

patchLastSeenAtField(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Promise<PubChannelMember>;
patchChannelMember(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid, payload: Partial<PubChannelMember>): Promise<PubChannelMember>;
deleteChannelMember(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Promise<void>;
deleteChannel(orgId: OrganizationUid, channelId: PubChannelUid): Promise<void>;
streamChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Observable<NotificationSettings>;

@@ -30,0 +31,0 @@ patchChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid, payload: NotificationSettingsPayload): Promise<NotificationSettings>;

@@ -38,2 +38,9 @@ "use strict";

}
deleteChannel(orgId, channelId) {
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}`;
return this.sdk
.deleteResource(apiUrl)
.take(1)
.toPromise();
}
//DM Channels:

@@ -105,11 +112,11 @@ streamUserDMChannels(orgId, userId, ordering = "-latest_message_created_at") {

}
deleteChannelMember(orgId, channelId, memberId) {
patchChannelMember(orgId, channelId, memberId, payload) {
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}/members/${memberId}`;
return this.sdk
.deleteResource(apiUrl)
.patchResource(apiUrl, payload)
.take(1)
.toPromise();
}
deleteChannel(orgId, channelId) {
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}`;
deleteChannelMember(orgId, channelId, memberId) {
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}/members/${memberId}`;
return this.sdk

@@ -116,0 +123,0 @@ .deleteResource(apiUrl)

{
"name": "@giosg/pub-sdk",
"version": "0.20.1",
"version": "0.21.0",
"description": "TypeScript interfaces for Giosg Pub",

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

@@ -0,0 +0,0 @@ # Giosg Pub SDK and interfaces

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