@shinkai_network/shinkai-message-ts
Advanced tools
Comparing version 0.0.5 to 0.0.6
26
api.d.ts
@@ -8,6 +8,3 @@ export declare const addAgent: (sender_subidentity: string, node_name: string, agent: SerializedAgent, setupDetailsState: AgentCredentialsPayload) => Promise<any>; | ||
declare type AgentCredentialsPayload = CredentialsPayload & { | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
}; | ||
declare type AgentCredentialsPayload = CredentialsPayload; | ||
@@ -43,2 +40,4 @@ export declare class ApiConfig { | ||
my_device_identity_sk: string; | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
node_encryption_pk: string; | ||
@@ -55,7 +54,2 @@ } | ||
declare enum EncryptionMethod { | ||
DiffieHellmanChaChaPoly1305 = "DiffieHellmanChaChaPoly1305", | ||
None = "None" | ||
} | ||
declare interface ExternalMetadata { | ||
@@ -85,9 +79,6 @@ sender: string; | ||
inbox: string; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
declare type JobCredentialsPayload = CredentialsPayload & { | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
}; | ||
declare type JobCredentialsPayload = CredentialsPayload; | ||
@@ -180,3 +171,3 @@ declare type LastMessagesFromInboxCredentialsPayload = { | ||
external_metadata: ExternalMetadata | null; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -196,2 +187,7 @@ | ||
declare const TSEncryptionMethod: { | ||
DiffieHellmanChaChaPoly1305: string; | ||
None: string; | ||
}; | ||
export { } |
10
api.js
@@ -1,6 +0,6 @@ | ||
import { A as r, n as g, c as n, k as b, f as d, g as m, b as l, d as p, m as f, h, p as x, l as A, s as c, j as u, i as C, e as I } from "./api-27103bc6.js"; | ||
import "./ShinkaiMessageWrapper-338e7b81.js"; | ||
import "./index-b3d484ee.js"; | ||
import "./SchemaTypes-05f67d3a.js"; | ||
import "./ShinkaiNameWrapper-02395ffe.js"; | ||
import { A as r, n as g, c as n, k as b, f as d, g as m, b as l, d as p, m as f, h, p as x, l as A, s as c, j as u, i as C, e as I } from "./api-1cc98473.js"; | ||
import "./SchemaTypes-9e3750fb.js"; | ||
import "./index-6f779b40.js"; | ||
import "./ShinkaiMessageWrapper-bb15a2a7.js"; | ||
import "./ShinkaiNameWrapper-e2c87e0e.js"; | ||
export { | ||
@@ -7,0 +7,0 @@ r as ApiConfig, |
@@ -8,6 +8,3 @@ declare const addAgent: (sender_subidentity: string, node_name: string, agent: SerializedAgent, setupDetailsState: AgentCredentialsPayload) => Promise<any>; | ||
declare type AgentCredentialsPayload = CredentialsPayload & { | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
}; | ||
declare type AgentCredentialsPayload = CredentialsPayload; | ||
@@ -84,2 +81,4 @@ declare namespace api { | ||
my_device_identity_sk: string; | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
node_encryption_pk: string; | ||
@@ -96,7 +95,2 @@ } | ||
declare enum EncryptionMethod { | ||
DiffieHellmanChaChaPoly1305 = "DiffieHellmanChaChaPoly1305", | ||
None = "None" | ||
} | ||
declare interface ExternalMetadata { | ||
@@ -146,3 +140,3 @@ sender: string; | ||
inbox: string; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -160,6 +154,3 @@ | ||
declare type JobCredentialsPayload = CredentialsPayload & { | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
}; | ||
declare type JobCredentialsPayload = CredentialsPayload; | ||
@@ -230,3 +221,3 @@ declare interface JobMessage { | ||
export { | ||
EncryptionMethod, | ||
TSEncryptionMethod, | ||
MessageSchemaType, | ||
@@ -340,3 +331,3 @@ JobScope, | ||
external_metadata: ExternalMetadata | null; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -371,2 +362,7 @@ | ||
declare const TSEncryptionMethod: { | ||
DiffieHellmanChaChaPoly1305: string; | ||
None: string; | ||
}; | ||
declare namespace utils { | ||
@@ -373,0 +369,0 @@ export { |
14
index.js
@@ -1,8 +0,8 @@ | ||
import { a as s } from "./api-27103bc6.js"; | ||
import { m as e } from "./models-1f2a486f.js"; | ||
import { u, u as x } from "./utils-7df1ee36.js"; | ||
import "./ShinkaiMessageWrapper-338e7b81.js"; | ||
import "./index-b3d484ee.js"; | ||
import "./SchemaTypes-05f67d3a.js"; | ||
import "./ShinkaiNameWrapper-02395ffe.js"; | ||
import { a as s } from "./api-1cc98473.js"; | ||
import { m as e } from "./models-9e5a6f55.js"; | ||
import { u, u as x } from "./utils-026a65e5.js"; | ||
import "./SchemaTypes-9e3750fb.js"; | ||
import "./index-6f779b40.js"; | ||
import "./ShinkaiMessageWrapper-bb15a2a7.js"; | ||
import "./ShinkaiNameWrapper-e2c87e0e.js"; | ||
export { | ||
@@ -9,0 +9,0 @@ s as api, |
@@ -6,6 +6,3 @@ export declare interface AgentAPIModel { | ||
export declare type AgentCredentialsPayload = CredentialsPayload & { | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
}; | ||
export declare type AgentCredentialsPayload = CredentialsPayload; | ||
@@ -38,2 +35,4 @@ export declare interface APIAddAgentRequest { | ||
my_device_identity_sk: string; | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
node_encryption_pk: string; | ||
@@ -50,7 +49,2 @@ } | ||
export declare enum EncryptionMethod { | ||
DiffieHellmanChaChaPoly1305 = "DiffieHellmanChaChaPoly1305", | ||
None = "None" | ||
} | ||
export declare interface ExternalMetadata { | ||
@@ -68,3 +62,3 @@ sender: string; | ||
inbox: string; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -76,6 +70,3 @@ | ||
export declare type JobCredentialsPayload = CredentialsPayload & { | ||
profile_encryption_sk: string; | ||
profile_identity_sk: string; | ||
}; | ||
export declare type JobCredentialsPayload = CredentialsPayload; | ||
@@ -205,3 +196,3 @@ export declare interface JobMessage { | ||
external_metadata: ExternalMetadata | null; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -212,2 +203,7 @@ | ||
export declare const TSEncryptionMethod: { | ||
DiffieHellmanChaChaPoly1305: string; | ||
None: string; | ||
}; | ||
export { } |
@@ -1,6 +0,6 @@ | ||
import { E as o, J as s, M as p } from "./SchemaTypes-05f67d3a.js"; | ||
import { J as o, M as s, T as p } from "./SchemaTypes-9e3750fb.js"; | ||
export { | ||
o as EncryptionMethod, | ||
s as JobRecipient, | ||
p as MessageSchemaType | ||
o as JobRecipient, | ||
s as MessageSchemaType, | ||
p as TSEncryptionMethod | ||
}; |
{ | ||
"name": "@shinkai_network/shinkai-message-ts", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Shinkai Message TS wrapper for wasm library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -11,7 +11,2 @@ export declare function calculateMessageHash(message: ShinkaiMessage): string; | ||
declare enum EncryptionMethod { | ||
DiffieHellmanChaChaPoly1305 = "DiffieHellmanChaChaPoly1305", | ||
None = "None" | ||
} | ||
declare interface ExternalMetadata { | ||
@@ -49,3 +44,3 @@ sender: string; | ||
inbox: string; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -99,3 +94,3 @@ | ||
external_metadata: ExternalMetadata | null; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -118,2 +113,7 @@ | ||
declare const TSEncryptionMethod: { | ||
DiffieHellmanChaChaPoly1305: string; | ||
None: string; | ||
}; | ||
export { } |
@@ -1,5 +0,5 @@ | ||
import { c as r, b as o, i, d as n } from "./index-b3d484ee.js"; | ||
import { S as c, a as m, e as b, b as p, c as x, g as y, i as d, m as h, d as M, t as S } from "./utils-7df1ee36.js"; | ||
import "./SchemaTypes-05f67d3a.js"; | ||
import "./ShinkaiMessageWrapper-338e7b81.js"; | ||
import { c as r, b as o, i, d as n } from "./index-6f779b40.js"; | ||
import { S as c, a as m, e as b, b as p, c as x, g as y, i as d, m as h, d as M, t as S } from "./utils-026a65e5.js"; | ||
import "./SchemaTypes-9e3750fb.js"; | ||
import "./ShinkaiMessageWrapper-bb15a2a7.js"; | ||
export { | ||
@@ -6,0 +6,0 @@ c as ShinkaiNameError, |
@@ -14,7 +14,2 @@ declare interface AgentAPIModel { | ||
declare enum EncryptionMethod { | ||
DiffieHellmanChaChaPoly1305 = "DiffieHellmanChaChaPoly1305", | ||
None = "None" | ||
} | ||
declare interface ExternalMetadata { | ||
@@ -47,3 +42,3 @@ sender: string; | ||
inbox: string; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -153,3 +148,3 @@ | ||
external_metadata: ExternalMetadata | null; | ||
encryption: EncryptionMethod; | ||
encryption: keyof typeof TSEncryptionMethod; | ||
} | ||
@@ -160,8 +155,8 @@ | ||
constructor(my_encryption_secret_key: string, my_signature_secret_key: string, receiver_public_key: string); | ||
body_encryption(encryption: EncryptionMethod): void; | ||
body_encryption(encryption: keyof typeof TSEncryptionMethod): void; | ||
no_body_encryption(): void; | ||
message_raw_content(content: string): void; | ||
message_schema_type(content: any): void; | ||
internal_metadata(sender_subidentity: string, recipient_subidentity: string, inbox: string, encryption: any): void; | ||
internal_metadata_with_schema(sender_subidentity: string, recipient_subidentity: string, inbox: string, message_schema: any, encryption: any): void; | ||
message_schema_type(content: string): void; | ||
internal_metadata(sender_subidentity: string, recipient_subidentity: string, inbox: string, encryption: keyof typeof TSEncryptionMethod): void; | ||
internal_metadata_with_schema(sender_subidentity: string, recipient_subidentity: string, inbox: string, message_schema: any, encryption: keyof typeof TSEncryptionMethod): void; | ||
empty_encrypted_internal_metadata(): void; | ||
@@ -269,2 +264,7 @@ empty_non_encrypted_internal_metadata(): void; | ||
declare const TSEncryptionMethod: { | ||
DiffieHellmanChaChaPoly1305: string; | ||
None: string; | ||
}; | ||
export { } |
15
wasm.js
@@ -1,5 +0,4 @@ | ||
import { I as o, J as i, e as w, f as c } from "./ShinkaiMessageWrapper-338e7b81.js"; | ||
import { d as l } from "./ShinkaiMessageWrapper-338e7b81.js"; | ||
import { b as v, a as d, S as b } from "./ShinkaiNameWrapper-02395ffe.js"; | ||
import "./SchemaTypes-05f67d3a.js"; | ||
import { I as o, d as i, e as w, f as c } from "./SchemaTypes-9e3750fb.js"; | ||
import { b as h, a as l, S as W } from "./ShinkaiNameWrapper-e2c87e0e.js"; | ||
import { S as d } from "./ShinkaiMessageWrapper-bb15a2a7.js"; | ||
class _ { | ||
@@ -125,6 +124,6 @@ constructor(e) { | ||
n as JobScopeWrapper, | ||
v as SerializedAgentWrapper, | ||
d as ShinkaiMessageBuilderWrapper, | ||
l as ShinkaiMessageWrapper, | ||
b as ShinkaiNameWrapper | ||
h as SerializedAgentWrapper, | ||
l as ShinkaiMessageBuilderWrapper, | ||
d as ShinkaiMessageWrapper, | ||
W as ShinkaiNameWrapper | ||
}; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2583561
14573