@alva-ai/toolkit 0.24.0 → 0.25.0

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
@@ -721,7 +721,13 @@ var FeedResource = class {
721
721
  }
722
722
  };
723
723
  function requireFeedID(id) {
724
- if (!Number.isInteger(id) || id <= 0) {
724
+ if (typeof id === "string") {
725
+ if (!/^[1-9]\d*$/.test(id)) {
726
+ throw new Error("feed id must be a positive integer");
727
+ }
728
+ return id;
729
+ }
730
+ if (!Number.isSafeInteger(id) || id <= 0) {
725
731
  throw new Error("feed id must be a positive integer");
726
732
  }
727
733
  return id;
@@ -898,7 +904,8 @@ var AutomationAlertDeliveryResource = class {
898
904
  }
899
905
  };
900
906
  function requireAutomationID(id) {
901
- if (!Number.isInteger(id) || id <= 0) {
907
+ if (typeof id === "string") return requireAutomationIDString(id);
908
+ if (!Number.isSafeInteger(id) || id <= 0) {
902
909
  throw new Error("automation id must be a positive integer");
903
910
  }
904
911
  return id;
@@ -3986,7 +3993,7 @@ var installPlaybookRuntime = (targetWindow) => {
3986
3993
  };
3987
3994
 
3988
3995
  // src/index.ts
3989
- var VERSION = true ? "0.24.0" : "dev";
3996
+ var VERSION = true ? "0.25.0" : "dev";
3990
3997
  // Annotate the CommonJS export names for ESM import in node:
3991
3998
  0 && (module.exports = {
3992
3999
  AlertsResource,