@vorim/sdk 4.0.0 → 4.1.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/_commerce-core-Dyr_dHVP.d.ts +156 -0
  3. package/dist/_commerce-core-wY2jC6rC.d.cts +156 -0
  4. package/dist/index.cjs +6 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +5 -0
  7. package/dist/index.d.ts +5 -0
  8. package/dist/index.js +6 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/integrations/amazon.cjs +357 -0
  11. package/dist/integrations/amazon.cjs.map +1 -0
  12. package/dist/integrations/amazon.d.cts +88 -0
  13. package/dist/integrations/amazon.d.ts +88 -0
  14. package/dist/integrations/amazon.js +328 -0
  15. package/dist/integrations/amazon.js.map +1 -0
  16. package/dist/integrations/delivery.cjs +327 -0
  17. package/dist/integrations/delivery.cjs.map +1 -0
  18. package/dist/integrations/delivery.d.cts +33 -0
  19. package/dist/integrations/delivery.d.ts +33 -0
  20. package/dist/integrations/delivery.js +296 -0
  21. package/dist/integrations/delivery.js.map +1 -0
  22. package/dist/integrations/ebay.cjs +350 -0
  23. package/dist/integrations/ebay.cjs.map +1 -0
  24. package/dist/integrations/ebay.d.cts +73 -0
  25. package/dist/integrations/ebay.d.ts +73 -0
  26. package/dist/integrations/ebay.js +321 -0
  27. package/dist/integrations/ebay.js.map +1 -0
  28. package/dist/integrations/etsy.cjs +330 -0
  29. package/dist/integrations/etsy.cjs.map +1 -0
  30. package/dist/integrations/etsy.d.cts +41 -0
  31. package/dist/integrations/etsy.d.ts +41 -0
  32. package/dist/integrations/etsy.js +301 -0
  33. package/dist/integrations/etsy.js.map +1 -0
  34. package/dist/integrations/google-merchant.cjs +332 -0
  35. package/dist/integrations/google-merchant.cjs.map +1 -0
  36. package/dist/integrations/google-merchant.d.cts +43 -0
  37. package/dist/integrations/google-merchant.d.ts +43 -0
  38. package/dist/integrations/google-merchant.js +303 -0
  39. package/dist/integrations/google-merchant.js.map +1 -0
  40. package/dist/integrations/meta.cjs +375 -0
  41. package/dist/integrations/meta.cjs.map +1 -0
  42. package/dist/integrations/meta.d.cts +83 -0
  43. package/dist/integrations/meta.d.ts +83 -0
  44. package/dist/integrations/meta.js +346 -0
  45. package/dist/integrations/meta.js.map +1 -0
  46. package/dist/integrations/social-ads.cjs +328 -0
  47. package/dist/integrations/social-ads.cjs.map +1 -0
  48. package/dist/integrations/social-ads.d.cts +36 -0
  49. package/dist/integrations/social-ads.d.ts +36 -0
  50. package/dist/integrations/social-ads.js +297 -0
  51. package/dist/integrations/social-ads.js.map +1 -0
  52. package/dist/integrations/tiktok-shop.cjs +334 -0
  53. package/dist/integrations/tiktok-shop.cjs.map +1 -0
  54. package/dist/integrations/tiktok-shop.d.cts +44 -0
  55. package/dist/integrations/tiktok-shop.d.ts +44 -0
  56. package/dist/integrations/tiktok-shop.js +305 -0
  57. package/dist/integrations/tiktok-shop.js.map +1 -0
  58. package/dist/integrations/walmart.cjs +344 -0
  59. package/dist/integrations/walmart.cjs.map +1 -0
  60. package/dist/integrations/walmart.d.cts +60 -0
  61. package/dist/integrations/walmart.d.ts +60 -0
  62. package/dist/integrations/walmart.js +315 -0
  63. package/dist/integrations/walmart.js.map +1 -0
  64. package/package.json +92 -2
package/dist/index.d.cts CHANGED
@@ -754,6 +754,11 @@ declare class VorimSDK {
754
754
  * Create or update a token budget for an agent or workflow. One budget per
755
755
  * (scope, scope_ref) — calling this again for the same target updates it.
756
756
  *
757
+ * A budget is a ceiling; a policy rule enforces it. Add a rule with
758
+ * `match_conditions: { token_budget_gt: { scope } }` and a `deny` (or
759
+ * `escalate`) decision, otherwise actions are still allowed once the budget
760
+ * is used up.
761
+ *
757
762
  * @example
758
763
  * await vorim.setBudget({
759
764
  * scope: 'workflow', scope_ref: 'nightly-summariser',
package/dist/index.d.ts CHANGED
@@ -754,6 +754,11 @@ declare class VorimSDK {
754
754
  * Create or update a token budget for an agent or workflow. One budget per
755
755
  * (scope, scope_ref) — calling this again for the same target updates it.
756
756
  *
757
+ * A budget is a ceiling; a policy rule enforces it. Add a rule with
758
+ * `match_conditions: { token_budget_gt: { scope } }` and a `deny` (or
759
+ * `escalate`) decision, otherwise actions are still allowed once the budget
760
+ * is used up.
761
+ *
757
762
  * @example
758
763
  * await vorim.setBudget({
759
764
  * scope: 'workflow', scope_ref: 'nightly-summariser',
package/dist/index.js CHANGED
@@ -867,7 +867,7 @@ async function verifyHttpRequest(request, options) {
867
867
  }
868
868
 
869
869
  // src/index.ts
870
- var SDK_VERSION = true ? "4.0.0" : "0.0.0";
870
+ var SDK_VERSION = true ? "4.1.0" : "0.0.0";
871
871
  var USER_AGENT = `vorim-sdk/${SDK_VERSION}`;
872
872
  function sleep(ms) {
873
873
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -1534,6 +1534,11 @@ var VorimSDK = class _VorimSDK {
1534
1534
  * Create or update a token budget for an agent or workflow. One budget per
1535
1535
  * (scope, scope_ref) — calling this again for the same target updates it.
1536
1536
  *
1537
+ * A budget is a ceiling; a policy rule enforces it. Add a rule with
1538
+ * `match_conditions: { token_budget_gt: { scope } }` and a `deny` (or
1539
+ * `escalate`) decision, otherwise actions are still allowed once the budget
1540
+ * is used up.
1541
+ *
1537
1542
  * @example
1538
1543
  * await vorim.setBudget({
1539
1544
  * scope: 'workflow', scope_ref: 'nightly-summariser',