@vorim/sdk 4.0.0 → 4.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/CHANGELOG.md +13 -0
- package/dist/_commerce-core-Dyr_dHVP.d.ts +156 -0
- package/dist/_commerce-core-wY2jC6rC.d.cts +156 -0
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/amazon.cjs +358 -0
- package/dist/integrations/amazon.cjs.map +1 -0
- package/dist/integrations/amazon.d.cts +88 -0
- package/dist/integrations/amazon.d.ts +88 -0
- package/dist/integrations/amazon.js +329 -0
- package/dist/integrations/amazon.js.map +1 -0
- package/dist/integrations/delivery.cjs +328 -0
- package/dist/integrations/delivery.cjs.map +1 -0
- package/dist/integrations/delivery.d.cts +33 -0
- package/dist/integrations/delivery.d.ts +33 -0
- package/dist/integrations/delivery.js +297 -0
- package/dist/integrations/delivery.js.map +1 -0
- package/dist/integrations/ebay.cjs +351 -0
- package/dist/integrations/ebay.cjs.map +1 -0
- package/dist/integrations/ebay.d.cts +73 -0
- package/dist/integrations/ebay.d.ts +73 -0
- package/dist/integrations/ebay.js +322 -0
- package/dist/integrations/ebay.js.map +1 -0
- package/dist/integrations/etsy.cjs +331 -0
- package/dist/integrations/etsy.cjs.map +1 -0
- package/dist/integrations/etsy.d.cts +41 -0
- package/dist/integrations/etsy.d.ts +41 -0
- package/dist/integrations/etsy.js +302 -0
- package/dist/integrations/etsy.js.map +1 -0
- package/dist/integrations/google-merchant.cjs +333 -0
- package/dist/integrations/google-merchant.cjs.map +1 -0
- package/dist/integrations/google-merchant.d.cts +43 -0
- package/dist/integrations/google-merchant.d.ts +43 -0
- package/dist/integrations/google-merchant.js +304 -0
- package/dist/integrations/google-merchant.js.map +1 -0
- package/dist/integrations/meta.cjs +376 -0
- package/dist/integrations/meta.cjs.map +1 -0
- package/dist/integrations/meta.d.cts +83 -0
- package/dist/integrations/meta.d.ts +83 -0
- package/dist/integrations/meta.js +347 -0
- package/dist/integrations/meta.js.map +1 -0
- package/dist/integrations/social-ads.cjs +329 -0
- package/dist/integrations/social-ads.cjs.map +1 -0
- package/dist/integrations/social-ads.d.cts +36 -0
- package/dist/integrations/social-ads.d.ts +36 -0
- package/dist/integrations/social-ads.js +298 -0
- package/dist/integrations/social-ads.js.map +1 -0
- package/dist/integrations/tiktok-shop.cjs +335 -0
- package/dist/integrations/tiktok-shop.cjs.map +1 -0
- package/dist/integrations/tiktok-shop.d.cts +44 -0
- package/dist/integrations/tiktok-shop.d.ts +44 -0
- package/dist/integrations/tiktok-shop.js +306 -0
- package/dist/integrations/tiktok-shop.js.map +1 -0
- package/dist/integrations/walmart.cjs +345 -0
- package/dist/integrations/walmart.cjs.map +1 -0
- package/dist/integrations/walmart.d.cts +60 -0
- package/dist/integrations/walmart.d.ts +60 -0
- package/dist/integrations/walmart.js +316 -0
- package/dist/integrations/walmart.js.map +1 -0
- 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.
|
|
870
|
+
var SDK_VERSION = true ? "4.1.1" : "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',
|