blockintel-gate-sdk 0.3.5 → 0.3.7

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 CHANGED
@@ -1988,10 +1988,26 @@ function createGateClient(config) {
1988
1988
  return new GateClient(config);
1989
1989
  }
1990
1990
 
1991
+ // src/client/Gate.ts
1992
+ var Gate = class {
1993
+ apiKey;
1994
+ constructor(opts) {
1995
+ this.apiKey = opts?.apiKey ?? process.env.BLOCKINTEL_API_KEY;
1996
+ }
1997
+ /**
1998
+ * Guard a signing operation. In passthrough mode, executes the callback.
1999
+ * For full Gate integration, use GateClient with evaluate() before sending.
2000
+ */
2001
+ async guard(_ctx, cb) {
2002
+ return cb();
2003
+ }
2004
+ };
2005
+
1991
2006
  exports.BlockIntelAuthError = BlockIntelAuthError;
1992
2007
  exports.BlockIntelBlockedError = BlockIntelBlockedError;
1993
2008
  exports.BlockIntelStepUpRequiredError = BlockIntelStepUpRequiredError;
1994
2009
  exports.BlockIntelUnavailableError = BlockIntelUnavailableError;
2010
+ exports.Gate = Gate;
1995
2011
  exports.GateClient = GateClient;
1996
2012
  exports.GateError = GateError;
1997
2013
  exports.GateErrorCode = GateErrorCode;