@atbash/sdk 0.3.2 → 0.3.3
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/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -60,7 +60,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
60
60
|
var import_crypto = require("crypto");
|
|
61
61
|
var import_postchain_client = __toESM(require("postchain-client"), 1);
|
|
62
62
|
var { createClient, encryption, newSignatureProvider } = import_postchain_client.default;
|
|
63
|
-
var DEFAULT_ENDPOINT = "https://
|
|
63
|
+
var DEFAULT_ENDPOINT = "https://atbash.ai";
|
|
64
64
|
var DEFAULT_CHROMIA_NODE_URLS = [
|
|
65
65
|
"https://node6.testnet.chromia.com:7740",
|
|
66
66
|
"https://node7.testnet.chromia.com:7740",
|
|
@@ -165,7 +165,7 @@ async function logToolCall(action, context, auth, chainOpts, extra, clientOpts)
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
function normalizeVerdict(raw) {
|
|
168
|
-
if (raw === null || raw === void 0) return "
|
|
168
|
+
if (raw === null || raw === void 0) return "No verdict";
|
|
169
169
|
const v = String(raw).toUpperCase();
|
|
170
170
|
if (v === "ALLOW" || v === "GREEN") return "ALLOW";
|
|
171
171
|
if (v === "HOLD" || v === "YELLOW") return "HOLD";
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const DEFAULT_ENDPOINT = "https://
|
|
1
|
+
declare const DEFAULT_ENDPOINT = "https://atbash.ai";
|
|
2
2
|
declare const DEFAULT_CHROMIA_NODE_URLS: string[];
|
|
3
3
|
declare const DEFAULT_BLOCKCHAIN_RID = "25B41DF620C489349C54944496FF5C6E58CFCEFED0C51658780B67299D40E8ED";
|
|
4
|
-
type Verdict = "ALLOW" | "HOLD" | "BLOCK" | "
|
|
4
|
+
type Verdict = "ALLOW" | "HOLD" | "BLOCK" | "No verdict";
|
|
5
5
|
type Provider = "atbash" | "openai" | "google" | "microsoft" | "custom" | (string & {});
|
|
6
6
|
type Tier = "audit" | "audit_plus" | "enforcement" | (string & {});
|
|
7
7
|
type ActionType = "allow" | "hold_for_user_confirm" | "block" | (string & {});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const DEFAULT_ENDPOINT = "https://
|
|
1
|
+
declare const DEFAULT_ENDPOINT = "https://atbash.ai";
|
|
2
2
|
declare const DEFAULT_CHROMIA_NODE_URLS: string[];
|
|
3
3
|
declare const DEFAULT_BLOCKCHAIN_RID = "25B41DF620C489349C54944496FF5C6E58CFCEFED0C51658780B67299D40E8ED";
|
|
4
|
-
type Verdict = "ALLOW" | "HOLD" | "BLOCK" | "
|
|
4
|
+
type Verdict = "ALLOW" | "HOLD" | "BLOCK" | "No verdict";
|
|
5
5
|
type Provider = "atbash" | "openai" | "google" | "microsoft" | "custom" | (string & {});
|
|
6
6
|
type Tier = "audit" | "audit_plus" | "enforcement" | (string & {});
|
|
7
7
|
type ActionType = "allow" | "hold_for_user_confirm" | "block" | (string & {});
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createECDH, randomBytes } from "crypto";
|
|
3
3
|
import postchain from "postchain-client";
|
|
4
4
|
var { createClient, encryption, newSignatureProvider } = postchain;
|
|
5
|
-
var DEFAULT_ENDPOINT = "https://
|
|
5
|
+
var DEFAULT_ENDPOINT = "https://atbash.ai";
|
|
6
6
|
var DEFAULT_CHROMIA_NODE_URLS = [
|
|
7
7
|
"https://node6.testnet.chromia.com:7740",
|
|
8
8
|
"https://node7.testnet.chromia.com:7740",
|
|
@@ -107,7 +107,7 @@ async function logToolCall(action, context, auth, chainOpts, extra, clientOpts)
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
function normalizeVerdict(raw) {
|
|
110
|
-
if (raw === null || raw === void 0) return "
|
|
110
|
+
if (raw === null || raw === void 0) return "No verdict";
|
|
111
111
|
const v = String(raw).toUpperCase();
|
|
112
112
|
if (v === "ALLOW" || v === "GREEN") return "ALLOW";
|
|
113
113
|
if (v === "HOLD" || v === "YELLOW") return "HOLD";
|