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

@phanmn/chat3-sdk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phanmn/chat3-sdk - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

106

dist/index.d.ts

@@ -28,2 +28,40 @@ import * as valibot from 'valibot';

declare const ClientSchema: Omit<valibot.ObjectSchema<{
readonly client_id: valibot.StringSchema<undefined>;
readonly user_id: valibot.StringSchema<undefined>;
readonly origin: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
}, undefined>, "_types" | "_run" | "entries"> & {
readonly entries: {
readonly client_id: valibot.NonOptionalSchema<valibot.StringSchema<undefined>, undefined>;
readonly user_id: valibot.NonOptionalSchema<valibot.StringSchema<undefined>, undefined>;
readonly origin: valibot.OptionalSchema<valibot.StringSchema<undefined>, never>;
};
_run(dataset: valibot.Dataset<unknown, never>, config: valibot.Config<valibot.ObjectIssue | valibot.StringIssue>): valibot.Dataset<{
client_id: string;
user_id: string;
origin?: string | undefined;
}, valibot.ObjectIssue | valibot.StringIssue | valibot.NonOptionalIssue>;
readonly _types?: {
readonly input: {
client_id: string;
user_id: string;
origin?: string | undefined;
};
readonly output: {
client_id: string;
user_id: string;
origin?: string | undefined;
};
readonly issue: valibot.ObjectIssue | valibot.StringIssue | valibot.NonOptionalIssue;
} | undefined;
};
declare class Client {
#private;
private constructor();
static create(params: InferOutput<typeof ClientSchema>): Client;
get user_id(): string;
get client_id(): string;
get origin(): string;
}
declare enum WalletType {

@@ -35,5 +73,5 @@ Sent = "sent",

#private;
constructor(type: WalletType, appearance?: Appearance | null);
mount(selector: string | HTMLElement): HTMLIFrameElement | undefined;
listChains(): Array<{
constructor(type: WalletType, client: Client, appearance?: Appearance | null);
mount(selector: string | HTMLElement): Promise<void>;
listChains(): Promise<Array<{
chain: string;

@@ -47,4 +85,4 @@ icon: string;

}>;
}>;
getBalance(data: {
}>>;
getBalance(params: {
chain: string;

@@ -70,59 +108,5 @@ contract: string;

isLoggedIn(): Promise<boolean>;
dispose(): void;
}
declare const ConfigSchema: Omit<valibot.ObjectSchema<{
readonly client_id: valibot.StringSchema<undefined>;
readonly user_id: valibot.StringSchema<undefined>;
readonly origin: valibot.StringSchema<undefined>;
}, undefined>, "_types" | "_run" | "entries"> & {
readonly entries: {
readonly client_id: valibot.NonOptionalSchema<valibot.StringSchema<undefined>, undefined>;
readonly user_id: valibot.NonOptionalSchema<valibot.StringSchema<undefined>, undefined>;
readonly origin: valibot.StringSchema<undefined>;
};
_run(dataset: valibot.Dataset<unknown, never>, config: valibot.Config<valibot.ObjectIssue | valibot.StringIssue>): valibot.Dataset<{
client_id: string;
user_id: string;
origin: string;
}, valibot.ObjectIssue | valibot.StringIssue | valibot.NonOptionalIssue>;
readonly _types?: {
readonly input: {
client_id: string;
user_id: string;
origin: string;
};
readonly output: {
client_id: string;
user_id: string;
origin: string;
};
readonly issue: valibot.ObjectIssue | valibot.StringIssue | valibot.NonOptionalIssue;
} | undefined;
};
declare class Config {
#private;
private constructor();
static create(config: InferOutput<typeof ConfigSchema>): false | {
client_id: string;
user_id: string;
origin: string;
};
static get(): Config;
get user_id(): string;
get client_id(): string;
get origin(): string;
}
declare function get(): Config;
declare function create(config: InferOutput<typeof ConfigSchema>): false | {
client_id: string;
user_id: string;
origin: string;
};
declare const config_create: typeof create;
declare const config_get: typeof get;
declare namespace config {
export { config_create as create, config_get as get };
}
export { type Appearance, config as Config, Wallet, WalletType };
export { type Appearance, Client, Wallet, WalletType };
{
"name": "@phanmn/chat3-sdk",
"type": "module",
"version": "0.0.1",
"packageManager": "pnpm@9.1.4",
"version": "0.0.2",
"description": "Chat3.one SDK",

@@ -47,11 +46,11 @@ "license": "MIT",

"devDependencies": {
"@antfu/eslint-config": "^2.18.1",
"@antfu/eslint-config": "^2.21.0",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.8",
"@types/node": "^20.12.12",
"@types/node": "^20.14.2",
"bumpp": "^9.4.1",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"esno": "^4.7.0",
"lint-staged": "^15.2.2",
"pnpm": "^9.1.1",
"lint-staged": "^15.2.5",
"pnpm": "^9.3.0",
"rimraf": "^5.0.7",

@@ -61,3 +60,3 @@ "simple-git-hooks": "^2.11.1",

"unbuild": "^2.0.0",
"vite": "^5.2.11",
"vite": "^5.2.13",
"vitest": "^1.6.0"

@@ -64,0 +63,0 @@ },

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

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