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

@discord/embedded-app-sdk

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discord/embedded-app-sdk - npm Package Compare versions

Comparing version 1.8.1 to 1.9.0

output/commands/shareLink.cjs

12

output/commands/getChannel.d.ts

@@ -57,5 +57,5 @@ import { TSendCommand } from '../schema/types';

id: string;
content: string;
timestamp: string;
channel_id: string;
content: string;
tts: boolean;

@@ -106,16 +106,16 @@ mention_everyone: boolean;

image?: {
height?: number | null | undefined;
url?: string | null | undefined;
width?: number | null | undefined;
proxy_url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;
} | null | undefined;
thumbnail?: {
height?: number | null | undefined;
url?: string | null | undefined;
width?: number | null | undefined;
proxy_url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;
} | null | undefined;
video?: {
height?: number | null | undefined;
url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;

@@ -122,0 +122,0 @@ } | null | undefined;

@@ -67,5 +67,5 @@ import { Commands } from '../schema/common';

id: string;
content: string;
timestamp: string;
channel_id: string;
content: string;
tts: boolean;

@@ -116,16 +116,16 @@ mention_everyone: boolean;

image?: {
height?: number | null | undefined;
url?: string | null | undefined;
width?: number | null | undefined;
proxy_url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;
} | null | undefined;
thumbnail?: {
height?: number | null | undefined;
url?: string | null | undefined;
width?: number | null | undefined;
proxy_url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;
} | null | undefined;
video?: {
height?: number | null | undefined;
url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;

@@ -344,2 +344,9 @@ } | null | undefined;

setOrientationLockState: (args: import("./setOrientationLockState").SetOrientationLockStateInput) => Promise<{} | null>;
shareLink: (args: {
message: string;
custom_id?: string | undefined;
referrer_id?: string | undefined;
}) => Promise<{
success: boolean;
}>;
startPurchase: (args: import("./startPurchase").StartPurchaseInput) => Promise<{

@@ -346,0 +353,0 @@ type: 1 | 4 | 2 | 3 | 5 | 6 | 7 | -1;

@@ -94,5 +94,5 @@ import EventEmitter from 'eventemitter3';

id: string;
content: string;
timestamp: string;
channel_id: string;
content: string;
tts: boolean;

@@ -143,16 +143,16 @@ mention_everyone: boolean;

image?: {
height?: number | null | undefined;
url?: string | null | undefined;
width?: number | null | undefined;
proxy_url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;
} | null | undefined;
thumbnail?: {
height?: number | null | undefined;
url?: string | null | undefined;
width?: number | null | undefined;
proxy_url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;
} | null | undefined;
video?: {
height?: number | null | undefined;
url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;

@@ -371,2 +371,9 @@ } | null | undefined;

setOrientationLockState: (args: import("./commands/setOrientationLockState").SetOrientationLockStateInput) => Promise<{} | null>;
shareLink: (args: {
message: string;
custom_id?: string | undefined;
referrer_id?: string | undefined;
}) => Promise<{
success: boolean;
}>;
startPurchase: (args: import("./commands/startPurchase").StartPurchaseInput) => Promise<{

@@ -373,0 +380,0 @@ type: 1 | 4 | 2 | 3 | 5 | 6 | 7 | -1;

@@ -200,2 +200,111 @@ /**

export type GetActivityInstanceConnectedParticipantsResponse = zInfer<typeof GetActivityInstanceConnectedParticipantsResponseSchema>;
export declare const ShareInteractionRequestSchema: z.ZodObject<{
command: z.ZodString;
content: z.ZodOptional<z.ZodString>;
preview_image: z.ZodOptional<z.ZodObject<{
height: z.ZodNumber;
url: z.ZodString;
width: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
height: number;
url: string;
width: number;
}, {
height: number;
url: string;
width: number;
}>>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<1>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<2>;
style: z.ZodNumber;
label: z.ZodOptional<z.ZodString>;
custom_id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}, {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
type: 1;
components?: {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}[] | undefined;
}, {
type: 1;
components?: {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}[] | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
command: string;
content?: string | undefined;
preview_image?: {
height: number;
url: string;
width: number;
} | undefined;
components?: {
type: 1;
components?: {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}[] | undefined;
}[] | undefined;
}, {
command: string;
content?: string | undefined;
preview_image?: {
height: number;
url: string;
width: number;
} | undefined;
components?: {
type: 1;
components?: {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}[] | undefined;
}[] | undefined;
}>;
export type ShareInteractionRequest = zInfer<typeof ShareInteractionRequestSchema>;
export declare const ShareLinkRequestSchema: z.ZodObject<{
referrer_id: z.ZodOptional<z.ZodString>;
custom_id: z.ZodOptional<z.ZodString>;
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
custom_id?: string | undefined;
referrer_id?: string | undefined;
}, {
message: string;
custom_id?: string | undefined;
referrer_id?: string | undefined;
}>;
export type ShareLinkRequest = zInfer<typeof ShareLinkRequestSchema>;
export declare const ShareLinkResponseSchema: z.ZodObject<{
success: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
success: boolean;
}, {
success: boolean;
}>;
export type ShareLinkResponse = zInfer<typeof ShareLinkResponseSchema>;
/**

@@ -208,3 +317,5 @@ * RPC Commands which support schemas.

AUTHENTICATE = "AUTHENTICATE",
GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS = "GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS"
GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS = "GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS",
SHARE_INTERACTION = "SHARE_INTERACTION",
SHARE_LINK = "SHARE_LINK"
}

@@ -414,2 +525,113 @@ /**

};
readonly SHARE_INTERACTION: {
readonly request: z.ZodObject<{
command: z.ZodString;
content: z.ZodOptional<z.ZodString>;
preview_image: z.ZodOptional<z.ZodObject<{
height: z.ZodNumber;
url: z.ZodString;
width: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
height: number;
url: string;
width: number;
}, {
height: number;
url: string;
width: number;
}>>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<1>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<2>;
style: z.ZodNumber;
label: z.ZodOptional<z.ZodString>;
custom_id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}, {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
type: 1;
components?: {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}[] | undefined;
}, {
type: 1;
components?: {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}[] | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
command: string;
content?: string | undefined;
preview_image?: {
height: number;
url: string;
width: number;
} | undefined;
components?: {
type: 1;
components?: {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}[] | undefined;
}[] | undefined;
}, {
command: string;
content?: string | undefined;
preview_image?: {
height: number;
url: string;
width: number;
} | undefined;
components?: {
type: 1;
components?: {
type: 2;
style: number;
label?: string | undefined;
custom_id?: string | undefined;
}[] | undefined;
}[] | undefined;
}>;
readonly response: z.ZodNullable<z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>>;
};
readonly SHARE_LINK: {
readonly request: z.ZodObject<{
referrer_id: z.ZodOptional<z.ZodString>;
custom_id: z.ZodOptional<z.ZodString>;
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
custom_id?: string | undefined;
referrer_id?: string | undefined;
}, {
message: string;
custom_id?: string | undefined;
referrer_id?: string | undefined;
}>;
readonly response: z.ZodObject<{
success: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
success: boolean;
}, {
success: boolean;
}>;
};
};

@@ -86,5 +86,5 @@ import * as zod from 'zod';

id: string;
content: string;
timestamp: string;
channel_id: string;
content: string;
tts: boolean;

@@ -135,16 +135,16 @@ mention_everyone: boolean;

image?: {
height?: number | null | undefined;
url?: string | null | undefined;
width?: number | null | undefined;
proxy_url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;
} | null | undefined;
thumbnail?: {
height?: number | null | undefined;
url?: string | null | undefined;
width?: number | null | undefined;
proxy_url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;
} | null | undefined;
video?: {
height?: number | null | undefined;
url?: string | null | undefined;
height?: number | null | undefined;
width?: number | null | undefined;

@@ -363,2 +363,9 @@ } | null | undefined;

setOrientationLockState: (args: import("./commands/setOrientationLockState").SetOrientationLockStateInput) => Promise<{} | null>;
shareLink: (args: {
message: string;
custom_id?: string | undefined;
referrer_id?: string | undefined;
}) => Promise<{
success: boolean;
}>;
startPurchase: (args: import("./commands/startPurchase").StartPurchaseInput) => Promise<{

@@ -365,0 +372,0 @@ type: 1 | 4 | 2 | 3 | 5 | 6 | 7 | -1;

{
"name": "@discord/embedded-app-sdk",
"version": "1.8.1",
"version": "1.9.0",
"description": "@discord/embedded-app-sdk enables you to build rich, multiplayer experiences inside Discord.",

@@ -5,0 +5,0 @@ "author": "Discord",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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