@granular-software/sdk 0.4.61 → 0.4.62
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/README.md +8 -0
- package/dist/agent-evals.d.mts +2 -2
- package/dist/agent-evals.d.ts +2 -2
- package/dist/agent-evals.js +51 -18
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +51 -18
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/cli/index.js +51 -18
- package/dist/{client-BzgQvNyG.d.ts → client-Bx5jIDGB.d.ts} +6 -4
- package/dist/{client-DSkGcmmX.d.mts → client-Dg0I_5B_.d.mts} +6 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +51 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +51 -18
- package/dist/index.mjs.map +1 -1
- package/dist/{spend-CNe-Ff6U.d.mts → spend-C8OQnF6E.d.mts} +15 -3
- package/dist/{spend-CNe-Ff6U.d.ts → spend-C8OQnF6E.d.ts} +15 -3
- package/dist/spend.d.mts +1 -1
- package/dist/spend.d.ts +1 -1
- package/package.json +1 -1
|
@@ -647,7 +647,11 @@ interface User {
|
|
|
647
647
|
name?: string;
|
|
648
648
|
/** User's email */
|
|
649
649
|
email?: string;
|
|
650
|
-
/**
|
|
650
|
+
/**
|
|
651
|
+
* Exact permission profile names or IDs requested when opening an
|
|
652
|
+
* environment. Unknown references fail closed; only the explicit
|
|
653
|
+
* `allow-all` compatibility profile may be provisioned automatically.
|
|
654
|
+
*/
|
|
651
655
|
permissions: string[];
|
|
652
656
|
}
|
|
653
657
|
/**
|
|
@@ -660,7 +664,11 @@ interface RecordUserOptions {
|
|
|
660
664
|
name?: string;
|
|
661
665
|
/** User's email */
|
|
662
666
|
email?: string;
|
|
663
|
-
/**
|
|
667
|
+
/**
|
|
668
|
+
* Exact permission profile names or IDs to carry into environment opening.
|
|
669
|
+
* Custom profiles must already be provisioned with `granular build` or
|
|
670
|
+
* `granular deploy`.
|
|
671
|
+
*/
|
|
664
672
|
permissions?: string[];
|
|
665
673
|
}
|
|
666
674
|
/**
|
|
@@ -709,7 +717,11 @@ interface OpenEnvironmentOptions {
|
|
|
709
717
|
/** Optional email used when upserting the user. */
|
|
710
718
|
email?: string;
|
|
711
719
|
/**
|
|
712
|
-
*
|
|
720
|
+
* Exact permission profile names or IDs to resolve before opening the
|
|
721
|
+
* environment. Unknown references are rejected before assignment writes.
|
|
722
|
+
* The reserved `allow-all` name is the only profile the SDK may provision
|
|
723
|
+
* automatically for backwards compatibility; custom, `confirm-all`, and
|
|
724
|
+
* `deny-all` profiles must already be synced.
|
|
713
725
|
* Required at runtime when `assignmentMode` is omitted or set to `ensure`.
|
|
714
726
|
* Ignored by `require-existing`, which never mutates authorization records.
|
|
715
727
|
*/
|
|
@@ -647,7 +647,11 @@ interface User {
|
|
|
647
647
|
name?: string;
|
|
648
648
|
/** User's email */
|
|
649
649
|
email?: string;
|
|
650
|
-
/**
|
|
650
|
+
/**
|
|
651
|
+
* Exact permission profile names or IDs requested when opening an
|
|
652
|
+
* environment. Unknown references fail closed; only the explicit
|
|
653
|
+
* `allow-all` compatibility profile may be provisioned automatically.
|
|
654
|
+
*/
|
|
651
655
|
permissions: string[];
|
|
652
656
|
}
|
|
653
657
|
/**
|
|
@@ -660,7 +664,11 @@ interface RecordUserOptions {
|
|
|
660
664
|
name?: string;
|
|
661
665
|
/** User's email */
|
|
662
666
|
email?: string;
|
|
663
|
-
/**
|
|
667
|
+
/**
|
|
668
|
+
* Exact permission profile names or IDs to carry into environment opening.
|
|
669
|
+
* Custom profiles must already be provisioned with `granular build` or
|
|
670
|
+
* `granular deploy`.
|
|
671
|
+
*/
|
|
664
672
|
permissions?: string[];
|
|
665
673
|
}
|
|
666
674
|
/**
|
|
@@ -709,7 +717,11 @@ interface OpenEnvironmentOptions {
|
|
|
709
717
|
/** Optional email used when upserting the user. */
|
|
710
718
|
email?: string;
|
|
711
719
|
/**
|
|
712
|
-
*
|
|
720
|
+
* Exact permission profile names or IDs to resolve before opening the
|
|
721
|
+
* environment. Unknown references are rejected before assignment writes.
|
|
722
|
+
* The reserved `allow-all` name is the only profile the SDK may provision
|
|
723
|
+
* automatically for backwards compatibility; custom, `confirm-all`, and
|
|
724
|
+
* `deny-all` profiles must already be synced.
|
|
713
725
|
* Required at runtime when `assignmentMode` is omitted or set to `ensure`.
|
|
714
726
|
* Ignored by `require-existing`, which never mutates authorization records.
|
|
715
727
|
*/
|
package/dist/spend.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { at as GranularSpendContext, au as OpenAIUsageSpendEvent, av as RecordOpenAIUsageSpendOptions, aw as RecordOpenAIUsageSpendResult, ay as buildOpenAISpendEventId, az as recordOpenAIUsageSpend, ax as toGranularHttpBase } from './spend-
|
|
1
|
+
export { at as GranularSpendContext, au as OpenAIUsageSpendEvent, av as RecordOpenAIUsageSpendOptions, aw as RecordOpenAIUsageSpendResult, ay as buildOpenAISpendEventId, az as recordOpenAIUsageSpend, ax as toGranularHttpBase } from './spend-C8OQnF6E.mjs';
|
package/dist/spend.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { at as GranularSpendContext, au as OpenAIUsageSpendEvent, av as RecordOpenAIUsageSpendOptions, aw as RecordOpenAIUsageSpendResult, ay as buildOpenAISpendEventId, az as recordOpenAIUsageSpend, ax as toGranularHttpBase } from './spend-
|
|
1
|
+
export { at as GranularSpendContext, au as OpenAIUsageSpendEvent, av as RecordOpenAIUsageSpendOptions, aw as RecordOpenAIUsageSpendResult, ay as buildOpenAISpendEventId, az as recordOpenAIUsageSpend, ax as toGranularHttpBase } from './spend-C8OQnF6E.js';
|
package/package.json
CHANGED