hiloop-sdk 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -834,6 +834,12 @@ export declare class HiloopClient {
834
834
  hasSecret: boolean;
835
835
  hasAuthToken: boolean;
836
836
  }>;
837
+ /** Remove webhook configuration for this agent. */
838
+ removeWebhook(): Promise<{
839
+ ok: boolean;
840
+ }>;
841
+ /** Decrypt an encrypted session message (e.g., from a webhook payload). */
842
+ decryptSessionMessage(encryptedContent: string): Promise<string | null>;
837
843
  static generateKeyPair(): KeyPair;
838
844
  /** Encrypt plaintext with AES-256-GCM for session messages. */
839
845
  static encryptAes(plaintext: string, keyBase64: string): Promise<string>;
package/dist/client.js CHANGED
@@ -1227,6 +1227,15 @@ export class HiloopClient {
1227
1227
  body: { webhookUrl: opts.webhookUrl, webhookAuthToken: opts.authToken },
1228
1228
  });
1229
1229
  }
1230
+ /** Remove webhook configuration for this agent. */
1231
+ async removeWebhook() {
1232
+ return this.request("DELETE", "/agent/webhooks/config");
1233
+ }
1234
+ /** Decrypt an encrypted session message (e.g., from a webhook payload). */
1235
+ async decryptSessionMessage(encryptedContent) {
1236
+ await this.ensureInitialized();
1237
+ return this.crypto.decryptSessionMessage(encryptedContent);
1238
+ }
1230
1239
  // -- Crypto -----------------------------------------------------------------
1231
1240
  static generateKeyPair() {
1232
1241
  return generateKeyPair();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hiloop-sdk",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "TypeScript SDK for Hiloop — zero-trust human-AI agent interaction platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",