@ax-hub/sdk 0.1.0 → 0.1.1

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.d.cts CHANGED
@@ -2166,10 +2166,10 @@ declare function isAllowed(r: GatewayQueryResult | InvokeResult): boolean;
2166
2166
  /**
2167
2167
  * True when a deny is an SQL-format rejection the caller can fix by editing the SQL.
2168
2168
  *
2169
- * Keys on the backend's `safesql:` deny_reason prefix (e.g. "safesql: only SELECT or WITH
2170
- * allowed (got \"insert\")"). String-prefix matching is brittle by construction the
2171
- * backend wording may change. (The improvement spec's "SQL 형식 오류:" literal was inaccurate;
2172
- * the real prefix is `safesql:`.)
2169
+ * The live backend wraps these as `"SQL 형식 오류: safesql: only SELECT or WITH allowed
2170
+ * (got \"delete\")"` — a Korean prefix plus the inner `safesql:` marker. Matches either so
2171
+ * it survives wording shifts in the wrapper. String matching is brittle by construction;
2172
+ * branch on this for UX hints only, not control flow that must be exact.
2173
2173
  */
2174
2174
  declare function isSqlFormatError(r: GatewayQueryResult | InvokeResult): boolean;
2175
2175
  /** True when a deny is a policy denial (not an SQL-format error). Editing SQL will not help. */
package/dist/index.d.ts CHANGED
@@ -2166,10 +2166,10 @@ declare function isAllowed(r: GatewayQueryResult | InvokeResult): boolean;
2166
2166
  /**
2167
2167
  * True when a deny is an SQL-format rejection the caller can fix by editing the SQL.
2168
2168
  *
2169
- * Keys on the backend's `safesql:` deny_reason prefix (e.g. "safesql: only SELECT or WITH
2170
- * allowed (got \"insert\")"). String-prefix matching is brittle by construction the
2171
- * backend wording may change. (The improvement spec's "SQL 형식 오류:" literal was inaccurate;
2172
- * the real prefix is `safesql:`.)
2169
+ * The live backend wraps these as `"SQL 형식 오류: safesql: only SELECT or WITH allowed
2170
+ * (got \"delete\")"` — a Korean prefix plus the inner `safesql:` marker. Matches either so
2171
+ * it survives wording shifts in the wrapper. String matching is brittle by construction;
2172
+ * branch on this for UX hints only, not control flow that must be exact.
2173
2173
  */
2174
2174
  declare function isSqlFormatError(r: GatewayQueryResult | InvokeResult): boolean;
2175
2175
  /** True when a deny is a policy denial (not an SQL-format error). Editing SQL will not help. */