@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.
@@ -647,7 +647,11 @@ interface User {
647
647
  name?: string;
648
648
  /** User's email */
649
649
  email?: string;
650
- /** Permission profile IDs to be assigned when connecting */
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
- /** Permission profile IDs to assign when connecting to sandboxes */
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
- * Permission profile names or IDs to ensure before opening the environment.
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
- /** Permission profile IDs to be assigned when connecting */
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
- /** Permission profile IDs to assign when connecting to sandboxes */
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
- * Permission profile names or IDs to ensure before opening the environment.
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-CNe-Ff6U.mjs';
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-CNe-Ff6U.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granular-software/sdk",
3
- "version": "0.4.61",
3
+ "version": "0.4.62",
4
4
  "description": "TypeScript SDK and CLI for Granular - define, build, and deploy AI sandboxes",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",