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

@shinkai_network/shinkai-message-ts

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shinkai_network/shinkai-message-ts - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

api-406d7e87.js

2

api.d.ts

@@ -129,3 +129,3 @@ export declare const addAgent: (sender_subidentity: string, node_name: string, agent: SerializedAgent, setupDetailsState: AgentCredentialsPayload) => Promise<any>;

export declare const sendMessageToJob: (jobId: string, content: string, sender: string, receiver: string, receiver_subidentity: string, setupDetailsState: JobCredentialsPayload) => Promise<string>;
export declare const sendMessageToJob: (jobId: string, content: string, files_inbox: string, sender: string, receiver: string, receiver_subidentity: string, setupDetailsState: JobCredentialsPayload) => Promise<string>;

@@ -132,0 +132,0 @@ export declare const sendTextMessageWithInbox: (sender: string, sender_subidentity: string, receiver: string, text_message: string, inbox_name: string, setupDetailsState: CredentialsPayload) => Promise<{

@@ -1,4 +0,4 @@

import { A as i, n as r, c as g, k as n, f as b, g as d, b as l, d as m, m as p, h as f, p as h, l as x, s as A, j as c, i as u, e as C } from "./api-53b8ecfd.js";
import "./shinkai_message_wasm-c21810b6.js";
import "./ShinkaiNameWrapper-41f0c0fb.js";
import { A as i, n as r, c as g, k as n, f as b, g as d, b as l, d as m, m as p, h as f, p as h, l as x, s as A, j as c, i as u, e as C } from "./api-406d7e87.js";
import "./shinkai_message_wasm-6105921d.js";
import "./ShinkaiNameWrapper-790a0e76.js";
import "./SchemaTypes-05f67d3a.js";

@@ -5,0 +5,0 @@ export {

@@ -287,3 +287,3 @@ declare const addAgent: (sender_subidentity: string, node_name: string, agent: SerializedAgent, setupDetailsState: AgentCredentialsPayload) => Promise<any>;

declare const sendMessageToJob: (jobId: string, content: string, sender: string, receiver: string, receiver_subidentity: string, setupDetailsState: JobCredentialsPayload) => Promise<string>;
declare const sendMessageToJob: (jobId: string, content: string, files_inbox: string, sender: string, receiver: string, receiver_subidentity: string, setupDetailsState: JobCredentialsPayload) => Promise<string>;

@@ -290,0 +290,0 @@ declare const sendTextMessageWithInbox: (sender: string, sender_subidentity: string, receiver: string, text_message: string, inbox_name: string, setupDetailsState: CredentialsPayload) => Promise<{

@@ -1,8 +0,8 @@

import { a as s } from "./api-53b8ecfd.js";
import { a as s } from "./api-406d7e87.js";
import { m as e } from "./models-1f2a486f.js";
import { u, u as x } from "./utils-d23d1707.js";
import "./shinkai_message_wasm-c21810b6.js";
import "./ShinkaiNameWrapper-41f0c0fb.js";
import { u, u as x } from "./utils-8bbb6cdd.js";
import "./shinkai_message_wasm-6105921d.js";
import "./ShinkaiNameWrapper-790a0e76.js";
import "./SchemaTypes-05f67d3a.js";
import "./ShinkaiMessageWrapper-da830943.js";
import "./ShinkaiMessageWrapper-c25fcc8c.js";
export {

@@ -9,0 +9,0 @@ s as api,

{
"name": "@shinkai_network/shinkai-message-ts",
"version": "0.0.3",
"version": "0.0.4",
"description": "Shinkai Message TS wrapper for wasm library",

@@ -5,0 +5,0 @@ "type": "module",

@@ -1,5 +0,5 @@

import { S as o, c as i, d as n, e as g, h as c, j as m, g as p, b, f as h, i as x, a as y, m as M, k as S, t as d } from "./utils-d23d1707.js";
import { S as o, c as i, d as n, e as g, h as c, j as m, g as p, b, f as h, i as x, a as y, m as M, k as S, t as d } from "./utils-8bbb6cdd.js";
import "./SchemaTypes-05f67d3a.js";
import "./ShinkaiMessageWrapper-da830943.js";
import "./shinkai_message_wasm-c21810b6.js";
import "./ShinkaiMessageWrapper-c25fcc8c.js";
import "./shinkai_message_wasm-6105921d.js";
export {

@@ -6,0 +6,0 @@ o as ShinkaiNameError,

@@ -63,3 +63,3 @@ declare interface AgentAPIModel {

private wasmWrapper;
constructor(job_id_js: any, content_js: any);
constructor(job_id_js: any, content_js: any, files_inbox_js: any);
to_jsvalue(): any;

@@ -70,2 +70,3 @@ to_json_str(): string;

static fromStrings(job_id: string, content: string): JobMessageWrapper;
static fromStringsWithFileInbox(job_id: string, content: string, file_inbox: string): JobMessageWrapper;
free(): void;

@@ -181,3 +182,3 @@ }

static job_creation(my_encryption_secret_key: string, my_signature_secret_key: string, receiver_public_key: string, scope: any, sender: string, receiver: string, receiver_subidentity: string): string;
static job_message(job_id: string, content: string, my_encryption_secret_key: string, my_signature_secret_key: string, receiver_public_key: string, sender: string, receiver: string, receiver_subidentity: string): string;
static job_message(job_id: string, content: string, files_inbox: string, my_encryption_secret_key: string, my_signature_secret_key: string, receiver_public_key: string, sender: string, receiver: string, receiver_subidentity: string): string;
static terminate_message(my_encryption_secret_key: string, my_signature_secret_key: string, receiver_public_key: string, sender: string, receiver: string): string;

@@ -184,0 +185,0 @@ static error_message(my_encryption_secret_key: string, my_signature_secret_key: string, receiver_public_key: string, sender: string, receiver: string, error_msg: string): string;

@@ -1,8 +0,8 @@

import { I as n, J as _, d as w, e as c } from "./shinkai_message_wasm-c21810b6.js";
import { b as l, a as f, S as v } from "./ShinkaiNameWrapper-41f0c0fb.js";
import { S } from "./ShinkaiMessageWrapper-da830943.js";
import { I as o, J as i, d as w, e as c } from "./shinkai_message_wasm-6105921d.js";
import { b as f, a as W, S as v } from "./ShinkaiNameWrapper-790a0e76.js";
import { S as b } from "./ShinkaiMessageWrapper-c25fcc8c.js";
import "./SchemaTypes-05f67d3a.js";
class o {
class _ {
constructor(e) {
this.wasmWrapper = new n(e);
this.wasmWrapper = new o(e);
}

@@ -18,9 +18,9 @@ free() {

}
static get_regular_inbox_name_from_params(e, r, p, i, u) {
const m = n.get_regular_inbox_name_from_params(e, r, p, i, u);
return new o(m.get_value);
static get_regular_inbox_name_from_params(e, r, t, p, u) {
const m = o.get_regular_inbox_name_from_params(e, r, t, p, u);
return new _(m.get_value);
}
static get_job_inbox_name_from_params(e) {
const r = n.get_job_inbox_name_from_params(e);
return new o(r.get_value);
const r = o.get_job_inbox_name_from_params(e);
return new _(r.get_value);
}

@@ -43,5 +43,5 @@ get get_identities() {

}
class t {
class a {
constructor(e) {
this.wasmWrapper = new _(e);
this.wasmWrapper = new i(e);
}

@@ -56,9 +56,9 @@ to_jsvalue() {

const r = JSON.parse(e);
return new t(r.scope);
return new a(r.scope);
}
static from_jsvalue(e) {
return new t(e.scope);
return new a(e.scope);
}
static empty() {
return new t(_.empty().get_scope);
return new a(i.empty().get_scope);
}

@@ -73,4 +73,4 @@ free() {

class s {
constructor(e, r) {
this.wasmWrapper = new w(e, r);
constructor(e, r, t) {
this.wasmWrapper = new w(e, r, t);
}

@@ -85,10 +85,13 @@ to_jsvalue() {

const r = JSON.parse(e);
return new s(r.job_id_js, r.content_js);
return new s(r.job_id_js, r.content_js, r.files_inbox_js);
}
static from_jsvalue(e) {
return new s(e.job_id_js, e.content_js);
return new s(e.job_id_js, e.content_js, e.files_inbox_js);
}
static fromStrings(e, r) {
return new s(e, r);
return new s(e, r, []);
}
static fromStringsWithFileInbox(e, r, t) {
return new s(e, r, t);
}
free() {

@@ -98,3 +101,3 @@ this.wasmWrapper.free();

}
class a {
class n {
constructor(e, r) {

@@ -111,9 +114,9 @@ this.wasmWrapper = new c(e, r);

const r = JSON.parse(e);
return new a(r.buckets_js, r.documents_js);
return new n(r.buckets_js, r.documents_js);
}
static from_jsvalue(e) {
return new a(e.buckets_js, e.documents_js);
return new n(e.buckets_js, e.documents_js);
}
static empty() {
return new a({}, {});
return new n({}, {});
}

@@ -125,10 +128,10 @@ free() {

export {
o as InboxNameWrapper,
t as JobCreationWrapper,
_ as InboxNameWrapper,
a as JobCreationWrapper,
s as JobMessageWrapper,
a as JobScopeWrapper,
l as SerializedAgentWrapper,
f as ShinkaiMessageBuilderWrapper,
S as ShinkaiMessageWrapper,
n as JobScopeWrapper,
f as SerializedAgentWrapper,
W as ShinkaiMessageBuilderWrapper,
b as ShinkaiMessageWrapper,
v as ShinkaiNameWrapper
};
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