@granular-software/sdk 0.4.65 → 0.4.67

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.
@@ -608,7 +608,7 @@ interface GranularOptions {
608
608
  apiKey?: string;
609
609
  /** Application/session JWT (for user-context auth; use from simulator or getAccessToken) */
610
610
  token?: string;
611
- /** Optional provider used to refresh JWT before WebSocket (re)connect attempts */
611
+ /** Optional provider used to refresh JWT before authenticated requests and WebSocket (re)connect attempts */
612
612
  tokenProvider?: AccessTokenProvider;
613
613
  /** Optional API URL (for on-prem or testing) */
614
614
  apiUrl?: string;
@@ -2344,6 +2344,12 @@ interface UserEnvironmentStateOptions {
2344
2344
  sessionScope?: string | null;
2345
2345
  status?: "active" | "closed" | "expired" | "failed" | "timeout" | "all";
2346
2346
  limit?: number;
2347
+ /**
2348
+ * `cached` uses the normal short freshness window. `refresh` performs the
2349
+ * control-plane reconciliation now, which is useful after a known external
2350
+ * state change and for deterministic integration tests.
2351
+ */
2352
+ consistency?: "cached" | "refresh";
2347
2353
  }
2348
2354
  interface MarkUserEnvironmentReadOptions {
2349
2355
  sessionId?: string;
@@ -2739,6 +2745,8 @@ interface ManifestPropertySpec {
2739
2745
  create?: string;
2740
2746
  has?: Record<string, ManifestPropertySpec>;
2741
2747
  type?: string;
2748
+ /** Temporal representation for date fields: civil date or instant. */
2749
+ format?: "date" | "date-time";
2742
2750
  description?: string;
2743
2751
  required?: boolean;
2744
2752
  note?: string | string[];
@@ -608,7 +608,7 @@ interface GranularOptions {
608
608
  apiKey?: string;
609
609
  /** Application/session JWT (for user-context auth; use from simulator or getAccessToken) */
610
610
  token?: string;
611
- /** Optional provider used to refresh JWT before WebSocket (re)connect attempts */
611
+ /** Optional provider used to refresh JWT before authenticated requests and WebSocket (re)connect attempts */
612
612
  tokenProvider?: AccessTokenProvider;
613
613
  /** Optional API URL (for on-prem or testing) */
614
614
  apiUrl?: string;
@@ -2344,6 +2344,12 @@ interface UserEnvironmentStateOptions {
2344
2344
  sessionScope?: string | null;
2345
2345
  status?: "active" | "closed" | "expired" | "failed" | "timeout" | "all";
2346
2346
  limit?: number;
2347
+ /**
2348
+ * `cached` uses the normal short freshness window. `refresh` performs the
2349
+ * control-plane reconciliation now, which is useful after a known external
2350
+ * state change and for deterministic integration tests.
2351
+ */
2352
+ consistency?: "cached" | "refresh";
2347
2353
  }
2348
2354
  interface MarkUserEnvironmentReadOptions {
2349
2355
  sessionId?: string;
@@ -2739,6 +2745,8 @@ interface ManifestPropertySpec {
2739
2745
  create?: string;
2740
2746
  has?: Record<string, ManifestPropertySpec>;
2741
2747
  type?: string;
2748
+ /** Temporal representation for date fields: civil date or instant. */
2749
+ format?: "date" | "date-time";
2742
2750
  description?: string;
2743
2751
  required?: boolean;
2744
2752
  note?: string | string[];
package/dist/spend.d.mts CHANGED
@@ -1 +1 @@
1
- export { aC as GranularSpendContext, aD as OpenAIUsageSpendEvent, aE as RecordOpenAIUsageSpendOptions, aF as RecordOpenAIUsageSpendResult, aH as buildOpenAISpendEventId, aI as recordOpenAIUsageSpend, aG as toGranularHttpBase } from './spend-CESUvrZC.mjs';
1
+ export { aC as GranularSpendContext, aD as OpenAIUsageSpendEvent, aE as RecordOpenAIUsageSpendOptions, aF as RecordOpenAIUsageSpendResult, aH as buildOpenAISpendEventId, aI as recordOpenAIUsageSpend, aG as toGranularHttpBase } from './spend-D4r0SA-H.mjs';
package/dist/spend.d.ts CHANGED
@@ -1 +1 @@
1
- export { aC as GranularSpendContext, aD as OpenAIUsageSpendEvent, aE as RecordOpenAIUsageSpendOptions, aF as RecordOpenAIUsageSpendResult, aH as buildOpenAISpendEventId, aI as recordOpenAIUsageSpend, aG as toGranularHttpBase } from './spend-CESUvrZC.js';
1
+ export { aC as GranularSpendContext, aD as OpenAIUsageSpendEvent, aE as RecordOpenAIUsageSpendOptions, aF as RecordOpenAIUsageSpendResult, aH as buildOpenAISpendEventId, aI as recordOpenAIUsageSpend, aG as toGranularHttpBase } from './spend-D4r0SA-H.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granular-software/sdk",
3
- "version": "0.4.65",
3
+ "version": "0.4.67",
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",