@granular-software/sdk 0.4.68 → 0.4.70
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.map +1 -1
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/{client-BNpPrX2X.d.mts → client-D1gq4TO4.d.ts} +3 -1
- package/dist/{client-C-GYQSJC.d.ts → client-qgWZ495o.d.mts} +3 -1
- package/dist/delegated-auth.d.mts +25 -0
- package/dist/delegated-auth.d.ts +25 -0
- package/dist/delegated-auth.js +352 -0
- package/dist/delegated-auth.js.map +1 -0
- package/dist/delegated-auth.mjs +350 -0
- package/dist/delegated-auth.mjs.map +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{spend-BDGtgZtl.d.mts → spend-B-IQmp7F.d.mts} +15 -1
- package/dist/{spend-BDGtgZtl.d.ts → spend-B-IQmp7F.d.ts} +15 -1
- package/dist/spend.d.mts +1 -1
- package/dist/spend.d.ts +1 -1
- package/package.json +6 -1
|
@@ -2,6 +2,8 @@ type FeedSourceActor = "user" | "agent" | "system" | "customer_method";
|
|
|
2
2
|
interface FeedSource {
|
|
3
3
|
actor: FeedSourceActor;
|
|
4
4
|
clientId?: string;
|
|
5
|
+
/** Stable authored handle for a transient producer, when available. */
|
|
6
|
+
operationId?: string;
|
|
5
7
|
jobId?: string;
|
|
6
8
|
turnId?: string;
|
|
7
9
|
method?: string;
|
|
@@ -1888,6 +1890,16 @@ interface SessionArtifactAutonomyPolicy {
|
|
|
1888
1890
|
rollback?: string | Record<string, unknown>;
|
|
1889
1891
|
[key: string]: unknown;
|
|
1890
1892
|
}
|
|
1893
|
+
type SessionArtifactFieldProvenanceSource = "user_statement" | "agent_extraction" | "agent_inference" | "provider_lookup" | "ontology_default" | "user_edit";
|
|
1894
|
+
interface SessionArtifactFieldProvenance {
|
|
1895
|
+
source: SessionArtifactFieldProvenanceSource;
|
|
1896
|
+
confidence?: "exact" | "likely" | "ambiguous" | null;
|
|
1897
|
+
reason?: string | null;
|
|
1898
|
+
updatedAt?: number | null;
|
|
1899
|
+
confirmedAt?: number | null;
|
|
1900
|
+
invalidatedAt?: number | null;
|
|
1901
|
+
invalidationReason?: string | null;
|
|
1902
|
+
}
|
|
1891
1903
|
interface SessionArtifactRecord {
|
|
1892
1904
|
artifactId: string;
|
|
1893
1905
|
sessionId?: string | null;
|
|
@@ -1912,6 +1924,8 @@ interface SessionArtifactRecord {
|
|
|
1912
1924
|
[key: string]: unknown;
|
|
1913
1925
|
} | null;
|
|
1914
1926
|
relationships?: Record<string, string | string[] | null>;
|
|
1927
|
+
/** Origin of each value, keyed by `inputValues.<field>` or `relationships.<field>`. */
|
|
1928
|
+
fieldProvenance?: Record<string, SessionArtifactFieldProvenance>;
|
|
1915
1929
|
validation?: Record<string, unknown> | null;
|
|
1916
1930
|
policy?: SessionArtifactAutonomyPolicy | null;
|
|
1917
1931
|
metadata?: Record<string, unknown> & {
|
|
@@ -3159,4 +3173,4 @@ declare function toGranularHttpBase(apiUrl: string): string;
|
|
|
3159
3173
|
declare function buildOpenAISpendEventId(usage: Pick<OpenAIUsageSpendEvent, "requestId">, context?: GranularSpendContext): string | undefined;
|
|
3160
3174
|
declare function recordOpenAIUsageSpend(options: RecordOpenAIUsageSpendOptions): Promise<RecordOpenAIUsageSpendResult>;
|
|
3161
3175
|
|
|
3162
|
-
export { type TransientMessageFeedItem as $, type MessageFeedItem as A, type FeedbackFeedItem as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedObjectReference as G, type FeedTableCell as H, type InstanceToolHandler as I, type FeedTableColumn as J, type FeedTableRowReference as K, type FeedTableRow as L, type ManifestEffectMetamodelSpec as M, type FeedTableProjection as N, type ObjectsFeedItem as O, type ProjectionResult as P, type TableFeedItem as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type ArtifactFeedItem as U, type FeedFileSource as V, type FileFeedItem as W, type NormalizedSuggestedArtifact as X, type ActionSuggestionFeedItem as Y, type PromptFeedItem as Z, type TransientFeedItemBase as _, type EnvironmentRecordImportSummary as a, type CreateSessionOptions as a$, type TransientFeedbackFeedItem as a0, type TransientFeedItem as a1, type FeedSnapshot as a2, type FeedListOptions as a3, type FeedPage as a4, type FeedSubscribeOptions as a5, type FeedSubscriptionChange as a6, type SessionFeedApi as a7, mergeFeedItemsBySequence as a8, orderTransientFeedItems as a9, OPENAI_MODEL_PRICING_USD_PER_MILLION as aA, getOpenAIModelPricing as aB, normalizeOpenAIUsage as aC, calculateOpenAITokenSpend as aD, type GranularSpendContext as aE, type OpenAIUsageSpendEvent as aF, type RecordOpenAIUsageSpendOptions as aG, type RecordOpenAIUsageSpendResult as aH, toGranularHttpBase as aI, buildOpenAISpendEventId as aJ, recordOpenAIUsageSpend as aK, type PolicySource as aL, type PolicyPredicateSource as aM, type PolicyOperator as aN, type ConditionIR as aO, type PolicyOrigin as aP, type PolicyRuleIR as aQ, type MatchedPolicy as aR, type AccessTokenProvider as aS, type GranularOptions as aT, type GranularAuth as aU, type User as aV, type RecordUserOptions as aW, type Subject as aX, type OpenEnvironmentOptions as aY, type AdoptEnvironmentOptions as aZ, type ConnectOptions as a_, type FeedListTransport as aa, type FeedSnapshotRegressionReason as ab, type FeedDiagnostic as ac, type FeedDiagnosticListener as ad, GRANULAR_FEED_DIAGNOSTIC_EVENT as ae, normalizeFeedDiagnosticKind as af, normalizeFeedDiagnostic as ag, emitFeedDiagnosticToDefaultSink as ah, emitFeedDiagnostic as ai, type SessionFeedControllerOptions as aj, type FeedDocumentState as ak, emptyFeedSnapshot as al, hasCanonicalSessionFeedActivation as am, isCanonicalSessionFeedDocument as an, readSessionFeedSnapshot as ao, normalizeFeedPage as ap, SessionFeedController as aq, type PublishFeedbackOptions as ar, type PublishTransientFeedbackOptions as as, type SettleTransientFeedbackOptions as at, type TransientFeedbackHandle as au, type FeedPublisher as av, createFeedPublisher as aw, type OpenAIModelPricing as ax, type NormalizedOpenAIUsage as ay, type OpenAITokenSpend as az, type EndpointMode as b, type EffectSchema as b$, type ConversationSessionInfo as b0, type ConversationSessionListStatus as b1, type ConversationSessionListOptions as b2, type ConversationSessionListResponse as b3, type SpendLineItemType as b4, type QuotaScopeType as b5, type QuotaPeriod as b6, type QuotaStatus as b7, type SpendSummary as b8, type QuotaLineItemFilter as b9, type CommitSafeError as bA, type TransitionOutcomeProjection as bB, type CanonicalProjectedRecord as bC, type ObjectProjectionChange as bD, type RelationshipProjectionChange as bE, type StateObservationProjectionChange as bF, type ProjectionChange as bG, type BaseProjectionResult as bH, type EffectProjectionResult as bI, type TransitionProjectionResult as bJ, type AgentCommitStatus as bK, type CommitChangeReceipt as bL, type CommitTransitionReceipt as bM, type ExternalCommitOptions as bN, type ObservationReceipt as bO, type SessionMutationView as bP, type EffectCommitContext as bQ, type ResolvedEffectPostCondition as bR, type ResolvedEffectDryRun as bS, type ResolvedEffectReverse as bT, type ResolvedEffectApprovalRequired as bU, type EffectInvocationMode as bV, type EffectArtifactOptionsInvocation as bW, type EffectInvocationMetadata as bX, type EffectArtifactRelationshipOption as bY, type EffectArtifactRelationshipOptionsResult as bZ, type ArtifactOptionsHandler as b_, type GranularQuotaPolicy as ba, type GranularQuotaProgress as bb, type Sandbox as bc, type CreateSandboxData as bd, type SandboxListResponse as be, type PermissionRules as bf, type PermissionProfile as bg, type CreatePermissionProfileData as bh, type PermissionProfileListResponse as bi, type Assignment as bj, type AssignmentListResponse as bk, type BuildPolicy as bl, type VersionTracking as bm, type VersionTag as bn, type CreateEnvironmentData as bo, type EnvironmentListResponse as bp, type Manifest as bq, type ManifestListResponse as br, type BuildStatus as bs, type Build as bt, type Version as bu, type BuildListResponse as bv, type SemanticVersionDiffEntry as bw, type SemanticVersionDiff as bx, type ObjectReference as by, type SourceAcknowledgement as bz, type EffectCommitRequest as c, type SessionHeapVariable as c$, type EffectWithHandler as c0, type PublishEffectsResult as c1, type EffectVersionSelector as c2, type ToolInfo as c3, type EffectInfo as c4, type ToolsChangedEvent as c5, type EffectsChangedEvent as c6, type EffectHandler as c7, type InstanceEffectHandler as c8, type JobStatus as c9, type SessionArtifactValidationResult as cA, type SessionArtifactRelationshipOptionsInput as cB, type SessionArtifactRelationshipOption as cC, type SessionArtifactRelationshipOptionsResult as cD, type SessionArtifactRelationshipCreateInput as cE, type SessionArtifactExecutionResult as cF, type SessionArtifactExecutionOptions as cG, type SessionArtifactApprovalOptions as cH, type ArtifactApprovalTaskStatus as cI, type ArtifactApprovalTask as cJ, type ArtifactApprovalTaskListOptions as cK, type ArtifactApprovalDecisionInput as cL, type ArtifactApprovalDecisionResult as cM, type ManualActionStatus as cN, type ManualActionSource as cO, type ManualActionTarget as cP, type ManualActionRelatedRecord as cQ, type RecordManualActionInput as cR, type ManualActionOccurrence as cS, type ManualActionRecordResult as cT, type ManualActionListOptions as cU, type ManualActionSuggestion as cV, type ManualActionSuggestionOptions as cW, type SessionFileUploadOptions as cX, type SessionJobRecord as cY, type SessionHeapFieldType as cZ, type SessionHeapFieldValue as c_, type JobFeedbackSentiment as ca, type JobFeedbackToolCall as cb, type JobFeedbackMetadata as cc, type JobFeedbackInput as cd, type JobFeedbackRecord as ce, type EnvironmentFeedbackRecord as cf, type JobSubmitResult as cg, type Job as ch, type UserMessageShowRefs as ci, type UserMessageTarget as cj, type UserMessageInput as ck, type UserMessageAppendResult as cl, type AssistantReplyPublicationInput as cm, type AssistantReplyPublicationResult as cn, type SessionTranscriptActionSuggestion as co, type SessionTranscriptShowRefs as cp, type SessionTimelineEvent as cq, type SessionFileSource as cr, type SessionFileKind as cs, type SessionFileStatus as ct, type SessionFileRecord as cu, type SessionArtifactStatus as cv, type SessionArtifactKind as cw, type SessionArtifactAutonomyPolicy as cx, type SessionArtifactRecord as cy, type SessionArtifactListOptions as cz, type ProjectionMapper as d, type ManifestStateMachineTransitionSpec as d$, type RecordSearchResult as d0, type RecordSearchOptions as d1, type RecordMentionInput as d2, type SessionDocumentResult as d3, type SessionCollectionListOptions as d4, type SessionJobListOptions as d5, type SessionCollectionListResult as d6, type UserEnvironmentPrompt as d7, type UserEnvironmentMessagePreview as d8, type UserEnvironmentSessionState as d9, type RecordImportOptions as dA, type RecordImportStatus as dB, type RecordImportItemStatus as dC, type RecordImportStats as dD, type RecordImportItem as dE, type RecordImport as dF, type EnvironmentSetupTriggerReason as dG, type RunEnvironmentImporterOptions as dH, type EnvironmentSetupLifecycleStatus as dI, type EnvironmentSetupSummary as dJ, type EnvironmentSetupImporterClaim as dK, type EnvironmentImporterImportOptions as dL, type EnvironmentImporter as dM, type ManifestPropertySpec as dN, type ManifestValidationOperator as dO, type ManifestEnumRuleSpec as dP, type ManifestFilterBySpec as dQ, type ManifestValidationRuleSpec as dR, type ManifestStateMachineStateSpec as dS, type ManifestStateTransitionInputBinding as dT, type ManifestStateTransitionActionSpec as dU, type ManifestStateTransitionAssigneeSpec as dV, type ManifestStateTransitionRelatedStateRequirementSpec as dW, type ManifestStateTransitionRequirementsSpec as dX, type ManifestStateTransitionPermissionSpec as dY, type ManifestStateTransitionExpectedOutcomeSpec as dZ, type ManifestStateTransitionOutcomeSpec as d_, type UserEnvironmentState as da, type UserEnvironmentStateOptions as db, type MarkUserEnvironmentReadOptions as dc, type WSDisconnectInfo as dd, type WSReconnectErrorInfo as de, type WSClientOptions as df, type RPCRequest as dg, type RPCResponse as dh, type SnapshotResetMessage as di, type RPCRequestFromServer as dj, type ToolInvokeParams as dk, type ToolResultParams as dl, type ModelRef as dm, type RelationshipInfo as dn, type DefineRelationshipOptions as dp, type RecordObjectStateValue as dq, type EnvironmentStateTarget as dr, type EnvironmentStateObservationInput as ds, type EnvironmentStateUpdateInput as dt, type EnvironmentStateMachineProxy as du, type EnvironmentStateProxy as dv, type RecordObjectResult as dw, type RecordObjectsChunkInfo as dx, type RecordObjectsOptions as dy, type RecordImportWriteMode as dz, type CommitTransitionOutcomeDeclaration as e, type ManifestStateMachineSpec as e0, type ManifestPostConditionSpec as e1, type ManifestDryRunSpec as e2, type ManifestReverseSpec as e3, type ManifestApprovalRequiredSpec as e4, type ManifestCreatesSpec as e5, type ManifestRelationshipDef as e6, type ManifestEffectSchema as e7, type ManifestEffectDeclaration as e8, type ManifestEventTypeDef as e9, type ManifestEventStreamDef as ea, type ManifestOperation as eb, type ManifestImport as ec, type ManifestVolume as ed, type GraphQLResult as ee, type APIError as ef, type DeleteResponse as eg, type StreamEvent as eh, type StreamSubscription as ei, type StreamStats as ej, type CommitDeclaration as f, type EffectHandlerContext as g, type RecordObjectOptions as h, type ManifestContent as i, type CommitTransitionInvocation as j, type SessionHeapList as k, type FeedItem as l, type SessionHeapSnapshot as m, type Prompt as n, type SessionTranscriptEntry as o, type ToolSchema as p, type PublishToolsResult as q, type ToolHandler as r, type FeedSourceActor as s, type FeedSource as t, type FeedIconToken as u, type FeedFeedbackTone as v, type FeedTransientFeedbackTone as w, type FeedItemKind as x, type FeedTarget as y, type FeedItemBase as z };
|
|
3176
|
+
export { type TransientMessageFeedItem as $, type MessageFeedItem as A, type FeedbackFeedItem as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedObjectReference as G, type FeedTableCell as H, type InstanceToolHandler as I, type FeedTableColumn as J, type FeedTableRowReference as K, type FeedTableRow as L, type ManifestEffectMetamodelSpec as M, type FeedTableProjection as N, type ObjectsFeedItem as O, type ProjectionResult as P, type TableFeedItem as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type ArtifactFeedItem as U, type FeedFileSource as V, type FileFeedItem as W, type NormalizedSuggestedArtifact as X, type ActionSuggestionFeedItem as Y, type PromptFeedItem as Z, type TransientFeedItemBase as _, type EnvironmentRecordImportSummary as a, type CreateSessionOptions as a$, type TransientFeedbackFeedItem as a0, type TransientFeedItem as a1, type FeedSnapshot as a2, type FeedListOptions as a3, type FeedPage as a4, type FeedSubscribeOptions as a5, type FeedSubscriptionChange as a6, type SessionFeedApi as a7, mergeFeedItemsBySequence as a8, orderTransientFeedItems as a9, OPENAI_MODEL_PRICING_USD_PER_MILLION as aA, getOpenAIModelPricing as aB, normalizeOpenAIUsage as aC, calculateOpenAITokenSpend as aD, type GranularSpendContext as aE, type OpenAIUsageSpendEvent as aF, type RecordOpenAIUsageSpendOptions as aG, type RecordOpenAIUsageSpendResult as aH, toGranularHttpBase as aI, buildOpenAISpendEventId as aJ, recordOpenAIUsageSpend as aK, type PolicySource as aL, type PolicyPredicateSource as aM, type PolicyOperator as aN, type ConditionIR as aO, type PolicyOrigin as aP, type PolicyRuleIR as aQ, type MatchedPolicy as aR, type AccessTokenProvider as aS, type GranularOptions as aT, type GranularAuth as aU, type User as aV, type RecordUserOptions as aW, type Subject as aX, type OpenEnvironmentOptions as aY, type AdoptEnvironmentOptions as aZ, type ConnectOptions as a_, type FeedListTransport as aa, type FeedSnapshotRegressionReason as ab, type FeedDiagnostic as ac, type FeedDiagnosticListener as ad, GRANULAR_FEED_DIAGNOSTIC_EVENT as ae, normalizeFeedDiagnosticKind as af, normalizeFeedDiagnostic as ag, emitFeedDiagnosticToDefaultSink as ah, emitFeedDiagnostic as ai, type SessionFeedControllerOptions as aj, type FeedDocumentState as ak, emptyFeedSnapshot as al, hasCanonicalSessionFeedActivation as am, isCanonicalSessionFeedDocument as an, readSessionFeedSnapshot as ao, normalizeFeedPage as ap, SessionFeedController as aq, type PublishFeedbackOptions as ar, type PublishTransientFeedbackOptions as as, type SettleTransientFeedbackOptions as at, type TransientFeedbackHandle as au, type FeedPublisher as av, createFeedPublisher as aw, type OpenAIModelPricing as ax, type NormalizedOpenAIUsage as ay, type OpenAITokenSpend as az, type EndpointMode as b, type EffectSchema as b$, type ConversationSessionInfo as b0, type ConversationSessionListStatus as b1, type ConversationSessionListOptions as b2, type ConversationSessionListResponse as b3, type SpendLineItemType as b4, type QuotaScopeType as b5, type QuotaPeriod as b6, type QuotaStatus as b7, type SpendSummary as b8, type QuotaLineItemFilter as b9, type CommitSafeError as bA, type TransitionOutcomeProjection as bB, type CanonicalProjectedRecord as bC, type ObjectProjectionChange as bD, type RelationshipProjectionChange as bE, type StateObservationProjectionChange as bF, type ProjectionChange as bG, type BaseProjectionResult as bH, type EffectProjectionResult as bI, type TransitionProjectionResult as bJ, type AgentCommitStatus as bK, type CommitChangeReceipt as bL, type CommitTransitionReceipt as bM, type ExternalCommitOptions as bN, type ObservationReceipt as bO, type SessionMutationView as bP, type EffectCommitContext as bQ, type ResolvedEffectPostCondition as bR, type ResolvedEffectDryRun as bS, type ResolvedEffectReverse as bT, type ResolvedEffectApprovalRequired as bU, type EffectInvocationMode as bV, type EffectArtifactOptionsInvocation as bW, type EffectInvocationMetadata as bX, type EffectArtifactRelationshipOption as bY, type EffectArtifactRelationshipOptionsResult as bZ, type ArtifactOptionsHandler as b_, type GranularQuotaPolicy as ba, type GranularQuotaProgress as bb, type Sandbox as bc, type CreateSandboxData as bd, type SandboxListResponse as be, type PermissionRules as bf, type PermissionProfile as bg, type CreatePermissionProfileData as bh, type PermissionProfileListResponse as bi, type Assignment as bj, type AssignmentListResponse as bk, type BuildPolicy as bl, type VersionTracking as bm, type VersionTag as bn, type CreateEnvironmentData as bo, type EnvironmentListResponse as bp, type Manifest as bq, type ManifestListResponse as br, type BuildStatus as bs, type Build as bt, type Version as bu, type BuildListResponse as bv, type SemanticVersionDiffEntry as bw, type SemanticVersionDiff as bx, type ObjectReference as by, type SourceAcknowledgement as bz, type EffectCommitRequest as c, type SessionHeapFieldType as c$, type EffectWithHandler as c0, type PublishEffectsResult as c1, type EffectVersionSelector as c2, type ToolInfo as c3, type EffectInfo as c4, type ToolsChangedEvent as c5, type EffectsChangedEvent as c6, type EffectHandler as c7, type InstanceEffectHandler as c8, type JobStatus as c9, type SessionArtifactRecord as cA, type SessionArtifactListOptions as cB, type SessionArtifactValidationResult as cC, type SessionArtifactRelationshipOptionsInput as cD, type SessionArtifactRelationshipOption as cE, type SessionArtifactRelationshipOptionsResult as cF, type SessionArtifactRelationshipCreateInput as cG, type SessionArtifactExecutionResult as cH, type SessionArtifactExecutionOptions as cI, type SessionArtifactApprovalOptions as cJ, type ArtifactApprovalTaskStatus as cK, type ArtifactApprovalTask as cL, type ArtifactApprovalTaskListOptions as cM, type ArtifactApprovalDecisionInput as cN, type ArtifactApprovalDecisionResult as cO, type ManualActionStatus as cP, type ManualActionSource as cQ, type ManualActionTarget as cR, type ManualActionRelatedRecord as cS, type RecordManualActionInput as cT, type ManualActionOccurrence as cU, type ManualActionRecordResult as cV, type ManualActionListOptions as cW, type ManualActionSuggestion as cX, type ManualActionSuggestionOptions as cY, type SessionFileUploadOptions as cZ, type SessionJobRecord as c_, type JobFeedbackSentiment as ca, type JobFeedbackToolCall as cb, type JobFeedbackMetadata as cc, type JobFeedbackInput as cd, type JobFeedbackRecord as ce, type EnvironmentFeedbackRecord as cf, type JobSubmitResult as cg, type Job as ch, type UserMessageShowRefs as ci, type UserMessageTarget as cj, type UserMessageInput as ck, type UserMessageAppendResult as cl, type AssistantReplyPublicationInput as cm, type AssistantReplyPublicationResult as cn, type SessionTranscriptActionSuggestion as co, type SessionTranscriptShowRefs as cp, type SessionTimelineEvent as cq, type SessionFileSource as cr, type SessionFileKind as cs, type SessionFileStatus as ct, type SessionFileRecord as cu, type SessionArtifactStatus as cv, type SessionArtifactKind as cw, type SessionArtifactAutonomyPolicy as cx, type SessionArtifactFieldProvenanceSource as cy, type SessionArtifactFieldProvenance as cz, type ProjectionMapper as d, type ManifestStateTransitionExpectedOutcomeSpec as d$, type SessionHeapFieldValue as d0, type SessionHeapVariable as d1, type RecordSearchResult as d2, type RecordSearchOptions as d3, type RecordMentionInput as d4, type SessionDocumentResult as d5, type SessionCollectionListOptions as d6, type SessionJobListOptions as d7, type SessionCollectionListResult as d8, type UserEnvironmentPrompt as d9, type RecordObjectsOptions as dA, type RecordImportWriteMode as dB, type RecordImportOptions as dC, type RecordImportStatus as dD, type RecordImportItemStatus as dE, type RecordImportStats as dF, type RecordImportItem as dG, type RecordImport as dH, type EnvironmentSetupTriggerReason as dI, type RunEnvironmentImporterOptions as dJ, type EnvironmentSetupLifecycleStatus as dK, type EnvironmentSetupSummary as dL, type EnvironmentSetupImporterClaim as dM, type EnvironmentImporterImportOptions as dN, type EnvironmentImporter as dO, type ManifestPropertySpec as dP, type ManifestValidationOperator as dQ, type ManifestEnumRuleSpec as dR, type ManifestFilterBySpec as dS, type ManifestValidationRuleSpec as dT, type ManifestStateMachineStateSpec as dU, type ManifestStateTransitionInputBinding as dV, type ManifestStateTransitionActionSpec as dW, type ManifestStateTransitionAssigneeSpec as dX, type ManifestStateTransitionRelatedStateRequirementSpec as dY, type ManifestStateTransitionRequirementsSpec as dZ, type ManifestStateTransitionPermissionSpec as d_, type UserEnvironmentMessagePreview as da, type UserEnvironmentSessionState as db, type UserEnvironmentState as dc, type UserEnvironmentStateOptions as dd, type MarkUserEnvironmentReadOptions as de, type WSDisconnectInfo as df, type WSReconnectErrorInfo as dg, type WSClientOptions as dh, type RPCRequest as di, type RPCResponse as dj, type SnapshotResetMessage as dk, type RPCRequestFromServer as dl, type ToolInvokeParams as dm, type ToolResultParams as dn, type ModelRef as dp, type RelationshipInfo as dq, type DefineRelationshipOptions as dr, type RecordObjectStateValue as ds, type EnvironmentStateTarget as dt, type EnvironmentStateObservationInput as du, type EnvironmentStateUpdateInput as dv, type EnvironmentStateMachineProxy as dw, type EnvironmentStateProxy as dx, type RecordObjectResult as dy, type RecordObjectsChunkInfo as dz, type CommitTransitionOutcomeDeclaration as e, type ManifestStateTransitionOutcomeSpec as e0, type ManifestStateMachineTransitionSpec as e1, type ManifestStateMachineSpec as e2, type ManifestPostConditionSpec as e3, type ManifestDryRunSpec as e4, type ManifestReverseSpec as e5, type ManifestApprovalRequiredSpec as e6, type ManifestCreatesSpec as e7, type ManifestRelationshipDef as e8, type ManifestEffectSchema as e9, type ManifestEffectDeclaration as ea, type ManifestEventTypeDef as eb, type ManifestEventStreamDef as ec, type ManifestOperation as ed, type ManifestImport as ee, type ManifestVolume as ef, type GraphQLResult as eg, type APIError as eh, type DeleteResponse as ei, type StreamEvent as ej, type StreamSubscription as ek, type StreamStats as el, type CommitDeclaration as f, type EffectHandlerContext as g, type RecordObjectOptions as h, type ManifestContent as i, type CommitTransitionInvocation as j, type SessionHeapList as k, type FeedItem as l, type SessionHeapSnapshot as m, type Prompt as n, type SessionTranscriptEntry as o, type ToolSchema as p, type PublishToolsResult as q, type ToolHandler as r, type FeedSourceActor as s, type FeedSource as t, type FeedIconToken as u, type FeedFeedbackTone as v, type FeedTransientFeedbackTone as w, type FeedItemKind as x, type FeedTarget as y, type FeedItemBase as z };
|
|
@@ -2,6 +2,8 @@ type FeedSourceActor = "user" | "agent" | "system" | "customer_method";
|
|
|
2
2
|
interface FeedSource {
|
|
3
3
|
actor: FeedSourceActor;
|
|
4
4
|
clientId?: string;
|
|
5
|
+
/** Stable authored handle for a transient producer, when available. */
|
|
6
|
+
operationId?: string;
|
|
5
7
|
jobId?: string;
|
|
6
8
|
turnId?: string;
|
|
7
9
|
method?: string;
|
|
@@ -1888,6 +1890,16 @@ interface SessionArtifactAutonomyPolicy {
|
|
|
1888
1890
|
rollback?: string | Record<string, unknown>;
|
|
1889
1891
|
[key: string]: unknown;
|
|
1890
1892
|
}
|
|
1893
|
+
type SessionArtifactFieldProvenanceSource = "user_statement" | "agent_extraction" | "agent_inference" | "provider_lookup" | "ontology_default" | "user_edit";
|
|
1894
|
+
interface SessionArtifactFieldProvenance {
|
|
1895
|
+
source: SessionArtifactFieldProvenanceSource;
|
|
1896
|
+
confidence?: "exact" | "likely" | "ambiguous" | null;
|
|
1897
|
+
reason?: string | null;
|
|
1898
|
+
updatedAt?: number | null;
|
|
1899
|
+
confirmedAt?: number | null;
|
|
1900
|
+
invalidatedAt?: number | null;
|
|
1901
|
+
invalidationReason?: string | null;
|
|
1902
|
+
}
|
|
1891
1903
|
interface SessionArtifactRecord {
|
|
1892
1904
|
artifactId: string;
|
|
1893
1905
|
sessionId?: string | null;
|
|
@@ -1912,6 +1924,8 @@ interface SessionArtifactRecord {
|
|
|
1912
1924
|
[key: string]: unknown;
|
|
1913
1925
|
} | null;
|
|
1914
1926
|
relationships?: Record<string, string | string[] | null>;
|
|
1927
|
+
/** Origin of each value, keyed by `inputValues.<field>` or `relationships.<field>`. */
|
|
1928
|
+
fieldProvenance?: Record<string, SessionArtifactFieldProvenance>;
|
|
1915
1929
|
validation?: Record<string, unknown> | null;
|
|
1916
1930
|
policy?: SessionArtifactAutonomyPolicy | null;
|
|
1917
1931
|
metadata?: Record<string, unknown> & {
|
|
@@ -3159,4 +3173,4 @@ declare function toGranularHttpBase(apiUrl: string): string;
|
|
|
3159
3173
|
declare function buildOpenAISpendEventId(usage: Pick<OpenAIUsageSpendEvent, "requestId">, context?: GranularSpendContext): string | undefined;
|
|
3160
3174
|
declare function recordOpenAIUsageSpend(options: RecordOpenAIUsageSpendOptions): Promise<RecordOpenAIUsageSpendResult>;
|
|
3161
3175
|
|
|
3162
|
-
export { type TransientMessageFeedItem as $, type MessageFeedItem as A, type FeedbackFeedItem as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedObjectReference as G, type FeedTableCell as H, type InstanceToolHandler as I, type FeedTableColumn as J, type FeedTableRowReference as K, type FeedTableRow as L, type ManifestEffectMetamodelSpec as M, type FeedTableProjection as N, type ObjectsFeedItem as O, type ProjectionResult as P, type TableFeedItem as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type ArtifactFeedItem as U, type FeedFileSource as V, type FileFeedItem as W, type NormalizedSuggestedArtifact as X, type ActionSuggestionFeedItem as Y, type PromptFeedItem as Z, type TransientFeedItemBase as _, type EnvironmentRecordImportSummary as a, type CreateSessionOptions as a$, type TransientFeedbackFeedItem as a0, type TransientFeedItem as a1, type FeedSnapshot as a2, type FeedListOptions as a3, type FeedPage as a4, type FeedSubscribeOptions as a5, type FeedSubscriptionChange as a6, type SessionFeedApi as a7, mergeFeedItemsBySequence as a8, orderTransientFeedItems as a9, OPENAI_MODEL_PRICING_USD_PER_MILLION as aA, getOpenAIModelPricing as aB, normalizeOpenAIUsage as aC, calculateOpenAITokenSpend as aD, type GranularSpendContext as aE, type OpenAIUsageSpendEvent as aF, type RecordOpenAIUsageSpendOptions as aG, type RecordOpenAIUsageSpendResult as aH, toGranularHttpBase as aI, buildOpenAISpendEventId as aJ, recordOpenAIUsageSpend as aK, type PolicySource as aL, type PolicyPredicateSource as aM, type PolicyOperator as aN, type ConditionIR as aO, type PolicyOrigin as aP, type PolicyRuleIR as aQ, type MatchedPolicy as aR, type AccessTokenProvider as aS, type GranularOptions as aT, type GranularAuth as aU, type User as aV, type RecordUserOptions as aW, type Subject as aX, type OpenEnvironmentOptions as aY, type AdoptEnvironmentOptions as aZ, type ConnectOptions as a_, type FeedListTransport as aa, type FeedSnapshotRegressionReason as ab, type FeedDiagnostic as ac, type FeedDiagnosticListener as ad, GRANULAR_FEED_DIAGNOSTIC_EVENT as ae, normalizeFeedDiagnosticKind as af, normalizeFeedDiagnostic as ag, emitFeedDiagnosticToDefaultSink as ah, emitFeedDiagnostic as ai, type SessionFeedControllerOptions as aj, type FeedDocumentState as ak, emptyFeedSnapshot as al, hasCanonicalSessionFeedActivation as am, isCanonicalSessionFeedDocument as an, readSessionFeedSnapshot as ao, normalizeFeedPage as ap, SessionFeedController as aq, type PublishFeedbackOptions as ar, type PublishTransientFeedbackOptions as as, type SettleTransientFeedbackOptions as at, type TransientFeedbackHandle as au, type FeedPublisher as av, createFeedPublisher as aw, type OpenAIModelPricing as ax, type NormalizedOpenAIUsage as ay, type OpenAITokenSpend as az, type EndpointMode as b, type EffectSchema as b$, type ConversationSessionInfo as b0, type ConversationSessionListStatus as b1, type ConversationSessionListOptions as b2, type ConversationSessionListResponse as b3, type SpendLineItemType as b4, type QuotaScopeType as b5, type QuotaPeriod as b6, type QuotaStatus as b7, type SpendSummary as b8, type QuotaLineItemFilter as b9, type CommitSafeError as bA, type TransitionOutcomeProjection as bB, type CanonicalProjectedRecord as bC, type ObjectProjectionChange as bD, type RelationshipProjectionChange as bE, type StateObservationProjectionChange as bF, type ProjectionChange as bG, type BaseProjectionResult as bH, type EffectProjectionResult as bI, type TransitionProjectionResult as bJ, type AgentCommitStatus as bK, type CommitChangeReceipt as bL, type CommitTransitionReceipt as bM, type ExternalCommitOptions as bN, type ObservationReceipt as bO, type SessionMutationView as bP, type EffectCommitContext as bQ, type ResolvedEffectPostCondition as bR, type ResolvedEffectDryRun as bS, type ResolvedEffectReverse as bT, type ResolvedEffectApprovalRequired as bU, type EffectInvocationMode as bV, type EffectArtifactOptionsInvocation as bW, type EffectInvocationMetadata as bX, type EffectArtifactRelationshipOption as bY, type EffectArtifactRelationshipOptionsResult as bZ, type ArtifactOptionsHandler as b_, type GranularQuotaPolicy as ba, type GranularQuotaProgress as bb, type Sandbox as bc, type CreateSandboxData as bd, type SandboxListResponse as be, type PermissionRules as bf, type PermissionProfile as bg, type CreatePermissionProfileData as bh, type PermissionProfileListResponse as bi, type Assignment as bj, type AssignmentListResponse as bk, type BuildPolicy as bl, type VersionTracking as bm, type VersionTag as bn, type CreateEnvironmentData as bo, type EnvironmentListResponse as bp, type Manifest as bq, type ManifestListResponse as br, type BuildStatus as bs, type Build as bt, type Version as bu, type BuildListResponse as bv, type SemanticVersionDiffEntry as bw, type SemanticVersionDiff as bx, type ObjectReference as by, type SourceAcknowledgement as bz, type EffectCommitRequest as c, type SessionHeapVariable as c$, type EffectWithHandler as c0, type PublishEffectsResult as c1, type EffectVersionSelector as c2, type ToolInfo as c3, type EffectInfo as c4, type ToolsChangedEvent as c5, type EffectsChangedEvent as c6, type EffectHandler as c7, type InstanceEffectHandler as c8, type JobStatus as c9, type SessionArtifactValidationResult as cA, type SessionArtifactRelationshipOptionsInput as cB, type SessionArtifactRelationshipOption as cC, type SessionArtifactRelationshipOptionsResult as cD, type SessionArtifactRelationshipCreateInput as cE, type SessionArtifactExecutionResult as cF, type SessionArtifactExecutionOptions as cG, type SessionArtifactApprovalOptions as cH, type ArtifactApprovalTaskStatus as cI, type ArtifactApprovalTask as cJ, type ArtifactApprovalTaskListOptions as cK, type ArtifactApprovalDecisionInput as cL, type ArtifactApprovalDecisionResult as cM, type ManualActionStatus as cN, type ManualActionSource as cO, type ManualActionTarget as cP, type ManualActionRelatedRecord as cQ, type RecordManualActionInput as cR, type ManualActionOccurrence as cS, type ManualActionRecordResult as cT, type ManualActionListOptions as cU, type ManualActionSuggestion as cV, type ManualActionSuggestionOptions as cW, type SessionFileUploadOptions as cX, type SessionJobRecord as cY, type SessionHeapFieldType as cZ, type SessionHeapFieldValue as c_, type JobFeedbackSentiment as ca, type JobFeedbackToolCall as cb, type JobFeedbackMetadata as cc, type JobFeedbackInput as cd, type JobFeedbackRecord as ce, type EnvironmentFeedbackRecord as cf, type JobSubmitResult as cg, type Job as ch, type UserMessageShowRefs as ci, type UserMessageTarget as cj, type UserMessageInput as ck, type UserMessageAppendResult as cl, type AssistantReplyPublicationInput as cm, type AssistantReplyPublicationResult as cn, type SessionTranscriptActionSuggestion as co, type SessionTranscriptShowRefs as cp, type SessionTimelineEvent as cq, type SessionFileSource as cr, type SessionFileKind as cs, type SessionFileStatus as ct, type SessionFileRecord as cu, type SessionArtifactStatus as cv, type SessionArtifactKind as cw, type SessionArtifactAutonomyPolicy as cx, type SessionArtifactRecord as cy, type SessionArtifactListOptions as cz, type ProjectionMapper as d, type ManifestStateMachineTransitionSpec as d$, type RecordSearchResult as d0, type RecordSearchOptions as d1, type RecordMentionInput as d2, type SessionDocumentResult as d3, type SessionCollectionListOptions as d4, type SessionJobListOptions as d5, type SessionCollectionListResult as d6, type UserEnvironmentPrompt as d7, type UserEnvironmentMessagePreview as d8, type UserEnvironmentSessionState as d9, type RecordImportOptions as dA, type RecordImportStatus as dB, type RecordImportItemStatus as dC, type RecordImportStats as dD, type RecordImportItem as dE, type RecordImport as dF, type EnvironmentSetupTriggerReason as dG, type RunEnvironmentImporterOptions as dH, type EnvironmentSetupLifecycleStatus as dI, type EnvironmentSetupSummary as dJ, type EnvironmentSetupImporterClaim as dK, type EnvironmentImporterImportOptions as dL, type EnvironmentImporter as dM, type ManifestPropertySpec as dN, type ManifestValidationOperator as dO, type ManifestEnumRuleSpec as dP, type ManifestFilterBySpec as dQ, type ManifestValidationRuleSpec as dR, type ManifestStateMachineStateSpec as dS, type ManifestStateTransitionInputBinding as dT, type ManifestStateTransitionActionSpec as dU, type ManifestStateTransitionAssigneeSpec as dV, type ManifestStateTransitionRelatedStateRequirementSpec as dW, type ManifestStateTransitionRequirementsSpec as dX, type ManifestStateTransitionPermissionSpec as dY, type ManifestStateTransitionExpectedOutcomeSpec as dZ, type ManifestStateTransitionOutcomeSpec as d_, type UserEnvironmentState as da, type UserEnvironmentStateOptions as db, type MarkUserEnvironmentReadOptions as dc, type WSDisconnectInfo as dd, type WSReconnectErrorInfo as de, type WSClientOptions as df, type RPCRequest as dg, type RPCResponse as dh, type SnapshotResetMessage as di, type RPCRequestFromServer as dj, type ToolInvokeParams as dk, type ToolResultParams as dl, type ModelRef as dm, type RelationshipInfo as dn, type DefineRelationshipOptions as dp, type RecordObjectStateValue as dq, type EnvironmentStateTarget as dr, type EnvironmentStateObservationInput as ds, type EnvironmentStateUpdateInput as dt, type EnvironmentStateMachineProxy as du, type EnvironmentStateProxy as dv, type RecordObjectResult as dw, type RecordObjectsChunkInfo as dx, type RecordObjectsOptions as dy, type RecordImportWriteMode as dz, type CommitTransitionOutcomeDeclaration as e, type ManifestStateMachineSpec as e0, type ManifestPostConditionSpec as e1, type ManifestDryRunSpec as e2, type ManifestReverseSpec as e3, type ManifestApprovalRequiredSpec as e4, type ManifestCreatesSpec as e5, type ManifestRelationshipDef as e6, type ManifestEffectSchema as e7, type ManifestEffectDeclaration as e8, type ManifestEventTypeDef as e9, type ManifestEventStreamDef as ea, type ManifestOperation as eb, type ManifestImport as ec, type ManifestVolume as ed, type GraphQLResult as ee, type APIError as ef, type DeleteResponse as eg, type StreamEvent as eh, type StreamSubscription as ei, type StreamStats as ej, type CommitDeclaration as f, type EffectHandlerContext as g, type RecordObjectOptions as h, type ManifestContent as i, type CommitTransitionInvocation as j, type SessionHeapList as k, type FeedItem as l, type SessionHeapSnapshot as m, type Prompt as n, type SessionTranscriptEntry as o, type ToolSchema as p, type PublishToolsResult as q, type ToolHandler as r, type FeedSourceActor as s, type FeedSource as t, type FeedIconToken as u, type FeedFeedbackTone as v, type FeedTransientFeedbackTone as w, type FeedItemKind as x, type FeedTarget as y, type FeedItemBase as z };
|
|
3176
|
+
export { type TransientMessageFeedItem as $, type MessageFeedItem as A, type FeedbackFeedItem as B, type CommitReceipt as C, type DomainState as D, type EnvironmentData as E, type FeedPublishTransport as F, type FeedObjectReference as G, type FeedTableCell as H, type InstanceToolHandler as I, type FeedTableColumn as J, type FeedTableRowReference as K, type FeedTableRow as L, type ManifestEffectMetamodelSpec as M, type FeedTableProjection as N, type ObjectsFeedItem as O, type ProjectionResult as P, type TableFeedItem as Q, type ResolvedEffectBehaviors as R, type SessionHeapEntry as S, type ToolWithHandler as T, type ArtifactFeedItem as U, type FeedFileSource as V, type FileFeedItem as W, type NormalizedSuggestedArtifact as X, type ActionSuggestionFeedItem as Y, type PromptFeedItem as Z, type TransientFeedItemBase as _, type EnvironmentRecordImportSummary as a, type CreateSessionOptions as a$, type TransientFeedbackFeedItem as a0, type TransientFeedItem as a1, type FeedSnapshot as a2, type FeedListOptions as a3, type FeedPage as a4, type FeedSubscribeOptions as a5, type FeedSubscriptionChange as a6, type SessionFeedApi as a7, mergeFeedItemsBySequence as a8, orderTransientFeedItems as a9, OPENAI_MODEL_PRICING_USD_PER_MILLION as aA, getOpenAIModelPricing as aB, normalizeOpenAIUsage as aC, calculateOpenAITokenSpend as aD, type GranularSpendContext as aE, type OpenAIUsageSpendEvent as aF, type RecordOpenAIUsageSpendOptions as aG, type RecordOpenAIUsageSpendResult as aH, toGranularHttpBase as aI, buildOpenAISpendEventId as aJ, recordOpenAIUsageSpend as aK, type PolicySource as aL, type PolicyPredicateSource as aM, type PolicyOperator as aN, type ConditionIR as aO, type PolicyOrigin as aP, type PolicyRuleIR as aQ, type MatchedPolicy as aR, type AccessTokenProvider as aS, type GranularOptions as aT, type GranularAuth as aU, type User as aV, type RecordUserOptions as aW, type Subject as aX, type OpenEnvironmentOptions as aY, type AdoptEnvironmentOptions as aZ, type ConnectOptions as a_, type FeedListTransport as aa, type FeedSnapshotRegressionReason as ab, type FeedDiagnostic as ac, type FeedDiagnosticListener as ad, GRANULAR_FEED_DIAGNOSTIC_EVENT as ae, normalizeFeedDiagnosticKind as af, normalizeFeedDiagnostic as ag, emitFeedDiagnosticToDefaultSink as ah, emitFeedDiagnostic as ai, type SessionFeedControllerOptions as aj, type FeedDocumentState as ak, emptyFeedSnapshot as al, hasCanonicalSessionFeedActivation as am, isCanonicalSessionFeedDocument as an, readSessionFeedSnapshot as ao, normalizeFeedPage as ap, SessionFeedController as aq, type PublishFeedbackOptions as ar, type PublishTransientFeedbackOptions as as, type SettleTransientFeedbackOptions as at, type TransientFeedbackHandle as au, type FeedPublisher as av, createFeedPublisher as aw, type OpenAIModelPricing as ax, type NormalizedOpenAIUsage as ay, type OpenAITokenSpend as az, type EndpointMode as b, type EffectSchema as b$, type ConversationSessionInfo as b0, type ConversationSessionListStatus as b1, type ConversationSessionListOptions as b2, type ConversationSessionListResponse as b3, type SpendLineItemType as b4, type QuotaScopeType as b5, type QuotaPeriod as b6, type QuotaStatus as b7, type SpendSummary as b8, type QuotaLineItemFilter as b9, type CommitSafeError as bA, type TransitionOutcomeProjection as bB, type CanonicalProjectedRecord as bC, type ObjectProjectionChange as bD, type RelationshipProjectionChange as bE, type StateObservationProjectionChange as bF, type ProjectionChange as bG, type BaseProjectionResult as bH, type EffectProjectionResult as bI, type TransitionProjectionResult as bJ, type AgentCommitStatus as bK, type CommitChangeReceipt as bL, type CommitTransitionReceipt as bM, type ExternalCommitOptions as bN, type ObservationReceipt as bO, type SessionMutationView as bP, type EffectCommitContext as bQ, type ResolvedEffectPostCondition as bR, type ResolvedEffectDryRun as bS, type ResolvedEffectReverse as bT, type ResolvedEffectApprovalRequired as bU, type EffectInvocationMode as bV, type EffectArtifactOptionsInvocation as bW, type EffectInvocationMetadata as bX, type EffectArtifactRelationshipOption as bY, type EffectArtifactRelationshipOptionsResult as bZ, type ArtifactOptionsHandler as b_, type GranularQuotaPolicy as ba, type GranularQuotaProgress as bb, type Sandbox as bc, type CreateSandboxData as bd, type SandboxListResponse as be, type PermissionRules as bf, type PermissionProfile as bg, type CreatePermissionProfileData as bh, type PermissionProfileListResponse as bi, type Assignment as bj, type AssignmentListResponse as bk, type BuildPolicy as bl, type VersionTracking as bm, type VersionTag as bn, type CreateEnvironmentData as bo, type EnvironmentListResponse as bp, type Manifest as bq, type ManifestListResponse as br, type BuildStatus as bs, type Build as bt, type Version as bu, type BuildListResponse as bv, type SemanticVersionDiffEntry as bw, type SemanticVersionDiff as bx, type ObjectReference as by, type SourceAcknowledgement as bz, type EffectCommitRequest as c, type SessionHeapFieldType as c$, type EffectWithHandler as c0, type PublishEffectsResult as c1, type EffectVersionSelector as c2, type ToolInfo as c3, type EffectInfo as c4, type ToolsChangedEvent as c5, type EffectsChangedEvent as c6, type EffectHandler as c7, type InstanceEffectHandler as c8, type JobStatus as c9, type SessionArtifactRecord as cA, type SessionArtifactListOptions as cB, type SessionArtifactValidationResult as cC, type SessionArtifactRelationshipOptionsInput as cD, type SessionArtifactRelationshipOption as cE, type SessionArtifactRelationshipOptionsResult as cF, type SessionArtifactRelationshipCreateInput as cG, type SessionArtifactExecutionResult as cH, type SessionArtifactExecutionOptions as cI, type SessionArtifactApprovalOptions as cJ, type ArtifactApprovalTaskStatus as cK, type ArtifactApprovalTask as cL, type ArtifactApprovalTaskListOptions as cM, type ArtifactApprovalDecisionInput as cN, type ArtifactApprovalDecisionResult as cO, type ManualActionStatus as cP, type ManualActionSource as cQ, type ManualActionTarget as cR, type ManualActionRelatedRecord as cS, type RecordManualActionInput as cT, type ManualActionOccurrence as cU, type ManualActionRecordResult as cV, type ManualActionListOptions as cW, type ManualActionSuggestion as cX, type ManualActionSuggestionOptions as cY, type SessionFileUploadOptions as cZ, type SessionJobRecord as c_, type JobFeedbackSentiment as ca, type JobFeedbackToolCall as cb, type JobFeedbackMetadata as cc, type JobFeedbackInput as cd, type JobFeedbackRecord as ce, type EnvironmentFeedbackRecord as cf, type JobSubmitResult as cg, type Job as ch, type UserMessageShowRefs as ci, type UserMessageTarget as cj, type UserMessageInput as ck, type UserMessageAppendResult as cl, type AssistantReplyPublicationInput as cm, type AssistantReplyPublicationResult as cn, type SessionTranscriptActionSuggestion as co, type SessionTranscriptShowRefs as cp, type SessionTimelineEvent as cq, type SessionFileSource as cr, type SessionFileKind as cs, type SessionFileStatus as ct, type SessionFileRecord as cu, type SessionArtifactStatus as cv, type SessionArtifactKind as cw, type SessionArtifactAutonomyPolicy as cx, type SessionArtifactFieldProvenanceSource as cy, type SessionArtifactFieldProvenance as cz, type ProjectionMapper as d, type ManifestStateTransitionExpectedOutcomeSpec as d$, type SessionHeapFieldValue as d0, type SessionHeapVariable as d1, type RecordSearchResult as d2, type RecordSearchOptions as d3, type RecordMentionInput as d4, type SessionDocumentResult as d5, type SessionCollectionListOptions as d6, type SessionJobListOptions as d7, type SessionCollectionListResult as d8, type UserEnvironmentPrompt as d9, type RecordObjectsOptions as dA, type RecordImportWriteMode as dB, type RecordImportOptions as dC, type RecordImportStatus as dD, type RecordImportItemStatus as dE, type RecordImportStats as dF, type RecordImportItem as dG, type RecordImport as dH, type EnvironmentSetupTriggerReason as dI, type RunEnvironmentImporterOptions as dJ, type EnvironmentSetupLifecycleStatus as dK, type EnvironmentSetupSummary as dL, type EnvironmentSetupImporterClaim as dM, type EnvironmentImporterImportOptions as dN, type EnvironmentImporter as dO, type ManifestPropertySpec as dP, type ManifestValidationOperator as dQ, type ManifestEnumRuleSpec as dR, type ManifestFilterBySpec as dS, type ManifestValidationRuleSpec as dT, type ManifestStateMachineStateSpec as dU, type ManifestStateTransitionInputBinding as dV, type ManifestStateTransitionActionSpec as dW, type ManifestStateTransitionAssigneeSpec as dX, type ManifestStateTransitionRelatedStateRequirementSpec as dY, type ManifestStateTransitionRequirementsSpec as dZ, type ManifestStateTransitionPermissionSpec as d_, type UserEnvironmentMessagePreview as da, type UserEnvironmentSessionState as db, type UserEnvironmentState as dc, type UserEnvironmentStateOptions as dd, type MarkUserEnvironmentReadOptions as de, type WSDisconnectInfo as df, type WSReconnectErrorInfo as dg, type WSClientOptions as dh, type RPCRequest as di, type RPCResponse as dj, type SnapshotResetMessage as dk, type RPCRequestFromServer as dl, type ToolInvokeParams as dm, type ToolResultParams as dn, type ModelRef as dp, type RelationshipInfo as dq, type DefineRelationshipOptions as dr, type RecordObjectStateValue as ds, type EnvironmentStateTarget as dt, type EnvironmentStateObservationInput as du, type EnvironmentStateUpdateInput as dv, type EnvironmentStateMachineProxy as dw, type EnvironmentStateProxy as dx, type RecordObjectResult as dy, type RecordObjectsChunkInfo as dz, type CommitTransitionOutcomeDeclaration as e, type ManifestStateTransitionOutcomeSpec as e0, type ManifestStateMachineTransitionSpec as e1, type ManifestStateMachineSpec as e2, type ManifestPostConditionSpec as e3, type ManifestDryRunSpec as e4, type ManifestReverseSpec as e5, type ManifestApprovalRequiredSpec as e6, type ManifestCreatesSpec as e7, type ManifestRelationshipDef as e8, type ManifestEffectSchema as e9, type ManifestEffectDeclaration as ea, type ManifestEventTypeDef as eb, type ManifestEventStreamDef as ec, type ManifestOperation as ed, type ManifestImport as ee, type ManifestVolume as ef, type GraphQLResult as eg, type APIError as eh, type DeleteResponse as ei, type StreamEvent as ej, type StreamSubscription as ek, type StreamStats as el, type CommitDeclaration as f, type EffectHandlerContext as g, type RecordObjectOptions as h, type ManifestContent as i, type CommitTransitionInvocation as j, type SessionHeapList as k, type FeedItem as l, type SessionHeapSnapshot as m, type Prompt as n, type SessionTranscriptEntry as o, type ToolSchema as p, type PublishToolsResult as q, type ToolHandler as r, type FeedSourceActor as s, type FeedSource as t, type FeedIconToken as u, type FeedFeedbackTone as v, type FeedTransientFeedbackTone as w, type FeedItemKind as x, type FeedTarget as y, type FeedItemBase as z };
|
package/dist/spend.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { aE as GranularSpendContext, aF as OpenAIUsageSpendEvent, aG as RecordOpenAIUsageSpendOptions, aH as RecordOpenAIUsageSpendResult, aJ as buildOpenAISpendEventId, aK as recordOpenAIUsageSpend, aI as toGranularHttpBase } from './spend-
|
|
1
|
+
export { aE as GranularSpendContext, aF as OpenAIUsageSpendEvent, aG as RecordOpenAIUsageSpendOptions, aH as RecordOpenAIUsageSpendResult, aJ as buildOpenAISpendEventId, aK as recordOpenAIUsageSpend, aI as toGranularHttpBase } from './spend-B-IQmp7F.mjs';
|
package/dist/spend.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { aE as GranularSpendContext, aF as OpenAIUsageSpendEvent, aG as RecordOpenAIUsageSpendOptions, aH as RecordOpenAIUsageSpendResult, aJ as buildOpenAISpendEventId, aK as recordOpenAIUsageSpend, aI as toGranularHttpBase } from './spend-
|
|
1
|
+
export { aE as GranularSpendContext, aF as OpenAIUsageSpendEvent, aG as RecordOpenAIUsageSpendOptions, aH as RecordOpenAIUsageSpendResult, aJ as buildOpenAISpendEventId, aK as recordOpenAIUsageSpend, aI as toGranularHttpBase } from './spend-B-IQmp7F.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@granular-software/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.70",
|
|
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",
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"import": "./dist/agent-evals.mjs",
|
|
22
22
|
"require": "./dist/agent-evals.js"
|
|
23
23
|
},
|
|
24
|
+
"./delegated-auth": {
|
|
25
|
+
"types": "./dist/delegated-auth.d.ts",
|
|
26
|
+
"import": "./dist/delegated-auth.mjs",
|
|
27
|
+
"require": "./dist/delegated-auth.js"
|
|
28
|
+
},
|
|
24
29
|
"./spend": {
|
|
25
30
|
"types": "./dist/spend.d.ts",
|
|
26
31
|
"import": "./dist/spend.mjs",
|