@granular-software/sdk 0.4.57 → 0.4.58
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/agent-evals.d.mts +2 -2
- package/dist/agent-evals.d.ts +2 -2
- package/dist/agent-evals.js +84 -29
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +84 -29
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/cli/index.js +103 -39
- package/dist/{client-BKde5VzV.d.ts → client-DFaCRSto.d.mts} +2 -5
- package/dist/{client-DL4S9uRc.d.mts → client-UdGt44dF.d.ts} +2 -5
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +84 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +84 -29
- package/dist/index.mjs.map +1 -1
- package/dist/{spend-DpRRCrAr.d.mts → spend-czRX7l0X.d.mts} +22 -3
- package/dist/{spend-DpRRCrAr.d.ts → spend-czRX7l0X.d.ts} +22 -3
- package/dist/spend.d.mts +1 -1
- package/dist/spend.d.ts +1 -1
- package/package.json +1 -1
|
@@ -214,10 +214,29 @@ interface OpenEnvironmentOptions {
|
|
|
214
214
|
email?: string;
|
|
215
215
|
/**
|
|
216
216
|
* Permission profile names or IDs to ensure before opening the environment.
|
|
217
|
-
*
|
|
218
|
-
*
|
|
217
|
+
* Required at runtime when `assignmentMode` is omitted or set to `ensure`.
|
|
218
|
+
* Ignored by `require-existing`, which never mutates authorization records.
|
|
219
219
|
*/
|
|
220
|
-
permissions
|
|
220
|
+
permissions?: string[];
|
|
221
|
+
/**
|
|
222
|
+
* How the SDK should handle the subject's ontology assignment.
|
|
223
|
+
*
|
|
224
|
+
* `ensure` preserves the historical behavior: permission profiles and the
|
|
225
|
+
* assignment are created or updated as needed. `require-existing` accepts
|
|
226
|
+
* only `granularId`, requires a current assignment, and never issues SDK
|
|
227
|
+
* authorization-setup writes for the selected subject, permission profile,
|
|
228
|
+
* or assignment. Managed opening can still write default tags,
|
|
229
|
+
* environments, activations, importer/setup state, sessions, and internal
|
|
230
|
+
* shared-mount subjects.
|
|
231
|
+
*/
|
|
232
|
+
assignmentMode?: "ensure" | "require-existing";
|
|
233
|
+
/**
|
|
234
|
+
* Optional integrity guard for `require-existing`. Opening fails when the
|
|
235
|
+
* assignment read by the SDK does not use this permission profile ID. The
|
|
236
|
+
* control plane rechecks the same expectation while resolving an existing
|
|
237
|
+
* active environment and atomically when changing the active pointer.
|
|
238
|
+
*/
|
|
239
|
+
expectedPermissionProfileId?: string;
|
|
221
240
|
/**
|
|
222
241
|
* When true, if the latest environment for this ontology/user/tag is marked
|
|
223
242
|
* outdated relative to the current tag target, create a fresh environment on
|
|
@@ -214,10 +214,29 @@ interface OpenEnvironmentOptions {
|
|
|
214
214
|
email?: string;
|
|
215
215
|
/**
|
|
216
216
|
* Permission profile names or IDs to ensure before opening the environment.
|
|
217
|
-
*
|
|
218
|
-
*
|
|
217
|
+
* Required at runtime when `assignmentMode` is omitted or set to `ensure`.
|
|
218
|
+
* Ignored by `require-existing`, which never mutates authorization records.
|
|
219
219
|
*/
|
|
220
|
-
permissions
|
|
220
|
+
permissions?: string[];
|
|
221
|
+
/**
|
|
222
|
+
* How the SDK should handle the subject's ontology assignment.
|
|
223
|
+
*
|
|
224
|
+
* `ensure` preserves the historical behavior: permission profiles and the
|
|
225
|
+
* assignment are created or updated as needed. `require-existing` accepts
|
|
226
|
+
* only `granularId`, requires a current assignment, and never issues SDK
|
|
227
|
+
* authorization-setup writes for the selected subject, permission profile,
|
|
228
|
+
* or assignment. Managed opening can still write default tags,
|
|
229
|
+
* environments, activations, importer/setup state, sessions, and internal
|
|
230
|
+
* shared-mount subjects.
|
|
231
|
+
*/
|
|
232
|
+
assignmentMode?: "ensure" | "require-existing";
|
|
233
|
+
/**
|
|
234
|
+
* Optional integrity guard for `require-existing`. Opening fails when the
|
|
235
|
+
* assignment read by the SDK does not use this permission profile ID. The
|
|
236
|
+
* control plane rechecks the same expectation while resolving an existing
|
|
237
|
+
* active environment and atomically when changing the active pointer.
|
|
238
|
+
*/
|
|
239
|
+
expectedPermissionProfileId?: string;
|
|
221
240
|
/**
|
|
222
241
|
* When true, if the latest environment for this ontology/user/tag is marked
|
|
223
242
|
* outdated relative to the current tag target, create a fresh environment on
|
package/dist/spend.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { G as GranularSpendContext, l as OpenAIUsageSpendEvent, m as RecordOpenAIUsageSpendOptions, o as RecordOpenAIUsageSpendResult, p as buildOpenAISpendEventId, r as recordOpenAIUsageSpend, t as toGranularHttpBase } from './spend-
|
|
1
|
+
export { G as GranularSpendContext, l as OpenAIUsageSpendEvent, m as RecordOpenAIUsageSpendOptions, o as RecordOpenAIUsageSpendResult, p as buildOpenAISpendEventId, r as recordOpenAIUsageSpend, t as toGranularHttpBase } from './spend-czRX7l0X.mjs';
|
package/dist/spend.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { G as GranularSpendContext, l as OpenAIUsageSpendEvent, m as RecordOpenAIUsageSpendOptions, o as RecordOpenAIUsageSpendResult, p as buildOpenAISpendEventId, r as recordOpenAIUsageSpend, t as toGranularHttpBase } from './spend-
|
|
1
|
+
export { G as GranularSpendContext, l as OpenAIUsageSpendEvent, m as RecordOpenAIUsageSpendOptions, o as RecordOpenAIUsageSpendResult, p as buildOpenAISpendEventId, r as recordOpenAIUsageSpend, t as toGranularHttpBase } from './spend-czRX7l0X.js';
|
package/package.json
CHANGED