@voltagent/server-core 1.0.27 → 1.0.29

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.mts CHANGED
@@ -1900,6 +1900,11 @@ interface JWTAuthOptions {
1900
1900
  audience?: string;
1901
1901
  issuer?: string;
1902
1902
  };
1903
+ /**
1904
+ * When true, all routes require authentication by default (opt-out model)
1905
+ * @default false
1906
+ */
1907
+ defaultPrivate?: boolean;
1903
1908
  }
1904
1909
  /**
1905
1910
  * Create a JWT authentication provider
package/dist/index.d.ts CHANGED
@@ -1900,6 +1900,11 @@ interface JWTAuthOptions {
1900
1900
  audience?: string;
1901
1901
  issuer?: string;
1902
1902
  };
1903
+ /**
1904
+ * When true, all routes require authentication by default (opt-out model)
1905
+ * @default false
1906
+ */
1907
+ defaultPrivate?: boolean;
1903
1908
  }
1904
1909
  /**
1905
1910
  * Create a JWT authentication provider
package/dist/index.js CHANGED
@@ -3963,7 +3963,8 @@ function jwtAuth(options) {
3963
3963
  }
3964
3964
  return void 0;
3965
3965
  },
3966
- publicRoutes
3966
+ publicRoutes,
3967
+ defaultPrivate: options.defaultPrivate
3967
3968
  };
3968
3969
  }
3969
3970
  __name(jwtAuth, "jwtAuth");
@@ -5051,8 +5052,6 @@ var BaseServerProvider = class {
5051
5052
  description: trigger.summary ?? trigger.description ?? trigger.definition?.description
5052
5053
  });
5053
5054
  });
5054
- } else {
5055
- this.logger.info("[volt] No trigger endpoints discovered during startup");
5056
5055
  }
5057
5056
  return endpoints;
5058
5057
  }