@granular-software/sdk 0.4.73 → 0.4.74

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.
@@ -612,6 +612,8 @@ interface GranularOptions {
612
612
  token?: string;
613
613
  /** Optional provider used to refresh JWT before authenticated requests and WebSocket (re)connect attempts */
614
614
  tokenProvider?: AccessTokenProvider;
615
+ /** Optional key per logical GraphQL request. Preserve the key when explicitly replaying a request; no automatic retry is added. */
616
+ graphqlIdempotencyKey?: (query: string, variables?: Record<string, unknown>) => string;
615
617
  /** Optional API URL (for on-prem or testing) */
616
618
  apiUrl?: string;
617
619
  /** Optional live effect-host WebSocket/base URL override (for local/on-prem routing) */
@@ -612,6 +612,8 @@ interface GranularOptions {
612
612
  token?: string;
613
613
  /** Optional provider used to refresh JWT before authenticated requests and WebSocket (re)connect attempts */
614
614
  tokenProvider?: AccessTokenProvider;
615
+ /** Optional key per logical GraphQL request. Preserve the key when explicitly replaying a request; no automatic retry is added. */
616
+ graphqlIdempotencyKey?: (query: string, variables?: Record<string, unknown>) => string;
615
617
  /** Optional API URL (for on-prem or testing) */
616
618
  apiUrl?: string;
617
619
  /** Optional live effect-host WebSocket/base URL override (for local/on-prem routing) */
package/dist/spend.d.mts CHANGED
@@ -1 +1 @@
1
- export { aI as GranularSpendContext, aJ as OpenAIUsageSpendEvent, aK as RecordOpenAIUsageSpendOptions, aL as RecordOpenAIUsageSpendResult, aN as buildOpenAISpendEventId, aO as recordOpenAIUsageSpend, aM as toGranularHttpBase } from './spend-k8V2Y1Tt.mjs';
1
+ export { aI as GranularSpendContext, aJ as OpenAIUsageSpendEvent, aK as RecordOpenAIUsageSpendOptions, aL as RecordOpenAIUsageSpendResult, aN as buildOpenAISpendEventId, aO as recordOpenAIUsageSpend, aM as toGranularHttpBase } from './spend-DBRQOSaj.mjs';
package/dist/spend.d.ts CHANGED
@@ -1 +1 @@
1
- export { aI as GranularSpendContext, aJ as OpenAIUsageSpendEvent, aK as RecordOpenAIUsageSpendOptions, aL as RecordOpenAIUsageSpendResult, aN as buildOpenAISpendEventId, aO as recordOpenAIUsageSpend, aM as toGranularHttpBase } from './spend-k8V2Y1Tt.js';
1
+ export { aI as GranularSpendContext, aJ as OpenAIUsageSpendEvent, aK as RecordOpenAIUsageSpendOptions, aL as RecordOpenAIUsageSpendResult, aN as buildOpenAISpendEventId, aO as recordOpenAIUsageSpend, aM as toGranularHttpBase } from './spend-DBRQOSaj.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granular-software/sdk",
3
- "version": "0.4.73",
3
+ "version": "0.4.74",
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",