@memnexus-ai/typescript-sdk 1.46.0 → 1.47.0

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/index.d.cts CHANGED
@@ -5028,6 +5028,57 @@ declare const digestSource: z.ZodObject<{
5028
5028
  memoryId: string;
5029
5029
  conversation?: string | undefined;
5030
5030
  }>;
5031
+ declare const digestKeyFact: z.ZodObject<{
5032
+ /** Fact subject */
5033
+ subject: z.ZodString;
5034
+ /** Relationship type */
5035
+ predicate: z.ZodString;
5036
+ /** Fact value */
5037
+ object: z.ZodString;
5038
+ /** Confidence score */
5039
+ confidence: z.ZodNumber;
5040
+ }, "strip", z.ZodTypeAny, {
5041
+ object: string;
5042
+ confidence: number;
5043
+ subject: string;
5044
+ predicate: string;
5045
+ }, {
5046
+ object: string;
5047
+ confidence: number;
5048
+ subject: string;
5049
+ predicate: string;
5050
+ }>;
5051
+ declare const digestEntity: z.ZodObject<{
5052
+ /** Entity name */
5053
+ name: z.ZodString;
5054
+ /** Entity type */
5055
+ type: z.ZodString;
5056
+ }, "strip", z.ZodTypeAny, {
5057
+ type: string;
5058
+ name: string;
5059
+ }, {
5060
+ type: string;
5061
+ name: string;
5062
+ }>;
5063
+ /**
5064
+ * Breakdown of source memories by effective state (current/superseded/contradicted)
5065
+ */
5066
+ declare const effectiveStateBreakdown: z.ZodObject<{
5067
+ /** Active memories used in synthesis */
5068
+ current: z.ZodNumber;
5069
+ /** Superseded memories (deprioritized in synthesis) */
5070
+ superseded: z.ZodNumber;
5071
+ /** Contradicted memories (deprioritized in synthesis) */
5072
+ contradicted: z.ZodNumber;
5073
+ }, "strip", z.ZodTypeAny, {
5074
+ contradicted: number;
5075
+ current: number;
5076
+ superseded: number;
5077
+ }, {
5078
+ contradicted: number;
5079
+ current: number;
5080
+ superseded: number;
5081
+ }>;
5031
5082
  declare const digestResponse: z.ZodLazy<z.ZodObject<{
5032
5083
  /** The generated digest content (markdown formatted) */
5033
5084
  digest: z.ZodString;
@@ -5131,6 +5182,57 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
5131
5182
  memoryId: string;
5132
5183
  conversation?: string | undefined;
5133
5184
  }>, "many">;
5185
+ /** Top extracted facts relevant to the digest, deduplicated and ranked by frequency */
5186
+ keyFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
5187
+ /** Fact subject */
5188
+ subject: z.ZodString;
5189
+ /** Relationship type */
5190
+ predicate: z.ZodString;
5191
+ /** Fact value */
5192
+ object: z.ZodString;
5193
+ /** Confidence score */
5194
+ confidence: z.ZodNumber;
5195
+ }, "strip", z.ZodTypeAny, {
5196
+ object: string;
5197
+ confidence: number;
5198
+ subject: string;
5199
+ predicate: string;
5200
+ }, {
5201
+ object: string;
5202
+ confidence: number;
5203
+ subject: string;
5204
+ predicate: string;
5205
+ }>, "many">>;
5206
+ /** Key entities mentioned across source memories */
5207
+ entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
5208
+ /** Entity name */
5209
+ name: z.ZodString;
5210
+ /** Entity type */
5211
+ type: z.ZodString;
5212
+ }, "strip", z.ZodTypeAny, {
5213
+ type: string;
5214
+ name: string;
5215
+ }, {
5216
+ type: string;
5217
+ name: string;
5218
+ }>, "many">>;
5219
+ /** Breakdown of source memories by effective state (current/superseded/contradicted) */
5220
+ effectiveStateBreakdown: z.ZodOptional<z.ZodObject<{
5221
+ /** Active memories used in synthesis */
5222
+ current: z.ZodNumber;
5223
+ /** Superseded memories (deprioritized in synthesis) */
5224
+ superseded: z.ZodNumber;
5225
+ /** Contradicted memories (deprioritized in synthesis) */
5226
+ contradicted: z.ZodNumber;
5227
+ }, "strip", z.ZodTypeAny, {
5228
+ contradicted: number;
5229
+ current: number;
5230
+ superseded: number;
5231
+ }, {
5232
+ contradicted: number;
5233
+ current: number;
5234
+ superseded: number;
5235
+ }>>;
5134
5236
  }, "strip", z.ZodTypeAny, {
5135
5237
  metadata: {
5136
5238
  query: string;
@@ -5156,6 +5258,21 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
5156
5258
  memoryId: string;
5157
5259
  conversation?: string | undefined;
5158
5260
  }[];
5261
+ entities?: {
5262
+ type: string;
5263
+ name: string;
5264
+ }[] | undefined;
5265
+ keyFacts?: {
5266
+ object: string;
5267
+ confidence: number;
5268
+ subject: string;
5269
+ predicate: string;
5270
+ }[] | undefined;
5271
+ effectiveStateBreakdown?: {
5272
+ contradicted: number;
5273
+ current: number;
5274
+ superseded: number;
5275
+ } | undefined;
5159
5276
  }, {
5160
5277
  metadata: {
5161
5278
  query: string;
@@ -5181,6 +5298,21 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
5181
5298
  memoryId: string;
5182
5299
  conversation?: string | undefined;
5183
5300
  }[];
5301
+ entities?: {
5302
+ type: string;
5303
+ name: string;
5304
+ }[] | undefined;
5305
+ keyFacts?: {
5306
+ object: string;
5307
+ confidence: number;
5308
+ subject: string;
5309
+ predicate: string;
5310
+ }[] | undefined;
5311
+ effectiveStateBreakdown?: {
5312
+ contradicted: number;
5313
+ current: number;
5314
+ superseded: number;
5315
+ } | undefined;
5184
5316
  }>>;
5185
5317
  declare const buildContextRequest: z.ZodObject<{
5186
5318
  /** What you are about to work on */
@@ -5625,6 +5757,12 @@ type DigestTimeRange = z.infer<typeof digestTimeRange>;
5625
5757
  */
5626
5758
  type DigestMetadata = z.infer<typeof digestMetadata>;
5627
5759
  type DigestSource = z.infer<typeof digestSource>;
5760
+ type DigestKeyFact = z.infer<typeof digestKeyFact>;
5761
+ type DigestEntity = z.infer<typeof digestEntity>;
5762
+ /**
5763
+ * Breakdown of source memories by effective state (current/superseded/contradicted)
5764
+ */
5765
+ type EffectiveStateBreakdown = z.infer<typeof effectiveStateBreakdown>;
5628
5766
  type DigestResponse = z.infer<typeof digestResponse>;
5629
5767
  type BuildContextRequest = z.infer<typeof buildContextRequest>;
5630
5768
  /**
@@ -6592,6 +6730,9 @@ declare class MemoriesService extends BaseService {
6592
6730
  digest: string;
6593
6731
  metadata: DigestMetadata;
6594
6732
  sources: DigestSource[];
6733
+ keyFacts?: DigestKeyFact[];
6734
+ entities?: DigestEntity[];
6735
+ effectiveStateBreakdown?: EffectiveStateBreakdown;
6595
6736
  }>>;
6596
6737
  /**
6597
6738
  * Build a context briefing
@@ -7626,4 +7767,4 @@ declare class Memnexus {
7626
7767
  setEnvironment(environment: Environment): void;
7627
7768
  }
7628
7769
 
7629
- export { type AddMemoryToNarrativeRequest, AdminService, type ApiKey, ApiKeysService, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type CheckoutSessionResponse, type Community, ContentType, type Conversation, ConversationsService, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, EntitiesService, type Entity, type EntityNode, Environment, type Error$1 as Error, type ErrorDefinition, type Fact, type FactSearchRequest, FactsService, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, GraphragService, type HealthCheck, HealthService, type Hook, type HttpError, type HttpMetadata, type HttpMethod, type HttpRequest, type HttpResponse, InvitesService, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, Memnexus, MemoriesService, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, MonitoringService, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, NarrativesService, type Pagination, type Pattern, PatternsService, type PaymentMethod, type PortalSessionResponse, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, SystemService, type TemporalMetadata, type Topic, type TopicReference, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, checkoutSessionResponse, community, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, Memnexus as default, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, entity, entityNode, error, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, relatedMemoryResult, searchRequest, searchResponse, searchResult, serviceCheck, subscription, temporalMetadata, topic, topicReference, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, user, userUsage };
7770
+ export { type AddMemoryToNarrativeRequest, AdminService, type ApiKey, ApiKeysService, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type CheckoutSessionResponse, type Community, ContentType, type Conversation, ConversationsService, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type DigestEntity, type DigestKeyFact, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, type EffectiveStateBreakdown, EntitiesService, type Entity, type EntityNode, Environment, type Error$1 as Error, type ErrorDefinition, type Fact, type FactSearchRequest, FactsService, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, GraphragService, type HealthCheck, HealthService, type Hook, type HttpError, type HttpMetadata, type HttpMethod, type HttpRequest, type HttpResponse, InvitesService, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, Memnexus, MemoriesService, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, MonitoringService, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, NarrativesService, type Pagination, type Pattern, PatternsService, type PaymentMethod, type PortalSessionResponse, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, SystemService, type TemporalMetadata, type Topic, type TopicReference, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, checkoutSessionResponse, community, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, Memnexus as default, digestEntity, digestKeyFact, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, effectiveStateBreakdown, entity, entityNode, error, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, relatedMemoryResult, searchRequest, searchResponse, searchResult, serviceCheck, subscription, temporalMetadata, topic, topicReference, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, user, userUsage };
package/dist/index.d.ts CHANGED
@@ -5028,6 +5028,57 @@ declare const digestSource: z.ZodObject<{
5028
5028
  memoryId: string;
5029
5029
  conversation?: string | undefined;
5030
5030
  }>;
5031
+ declare const digestKeyFact: z.ZodObject<{
5032
+ /** Fact subject */
5033
+ subject: z.ZodString;
5034
+ /** Relationship type */
5035
+ predicate: z.ZodString;
5036
+ /** Fact value */
5037
+ object: z.ZodString;
5038
+ /** Confidence score */
5039
+ confidence: z.ZodNumber;
5040
+ }, "strip", z.ZodTypeAny, {
5041
+ object: string;
5042
+ confidence: number;
5043
+ subject: string;
5044
+ predicate: string;
5045
+ }, {
5046
+ object: string;
5047
+ confidence: number;
5048
+ subject: string;
5049
+ predicate: string;
5050
+ }>;
5051
+ declare const digestEntity: z.ZodObject<{
5052
+ /** Entity name */
5053
+ name: z.ZodString;
5054
+ /** Entity type */
5055
+ type: z.ZodString;
5056
+ }, "strip", z.ZodTypeAny, {
5057
+ type: string;
5058
+ name: string;
5059
+ }, {
5060
+ type: string;
5061
+ name: string;
5062
+ }>;
5063
+ /**
5064
+ * Breakdown of source memories by effective state (current/superseded/contradicted)
5065
+ */
5066
+ declare const effectiveStateBreakdown: z.ZodObject<{
5067
+ /** Active memories used in synthesis */
5068
+ current: z.ZodNumber;
5069
+ /** Superseded memories (deprioritized in synthesis) */
5070
+ superseded: z.ZodNumber;
5071
+ /** Contradicted memories (deprioritized in synthesis) */
5072
+ contradicted: z.ZodNumber;
5073
+ }, "strip", z.ZodTypeAny, {
5074
+ contradicted: number;
5075
+ current: number;
5076
+ superseded: number;
5077
+ }, {
5078
+ contradicted: number;
5079
+ current: number;
5080
+ superseded: number;
5081
+ }>;
5031
5082
  declare const digestResponse: z.ZodLazy<z.ZodObject<{
5032
5083
  /** The generated digest content (markdown formatted) */
5033
5084
  digest: z.ZodString;
@@ -5131,6 +5182,57 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
5131
5182
  memoryId: string;
5132
5183
  conversation?: string | undefined;
5133
5184
  }>, "many">;
5185
+ /** Top extracted facts relevant to the digest, deduplicated and ranked by frequency */
5186
+ keyFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
5187
+ /** Fact subject */
5188
+ subject: z.ZodString;
5189
+ /** Relationship type */
5190
+ predicate: z.ZodString;
5191
+ /** Fact value */
5192
+ object: z.ZodString;
5193
+ /** Confidence score */
5194
+ confidence: z.ZodNumber;
5195
+ }, "strip", z.ZodTypeAny, {
5196
+ object: string;
5197
+ confidence: number;
5198
+ subject: string;
5199
+ predicate: string;
5200
+ }, {
5201
+ object: string;
5202
+ confidence: number;
5203
+ subject: string;
5204
+ predicate: string;
5205
+ }>, "many">>;
5206
+ /** Key entities mentioned across source memories */
5207
+ entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
5208
+ /** Entity name */
5209
+ name: z.ZodString;
5210
+ /** Entity type */
5211
+ type: z.ZodString;
5212
+ }, "strip", z.ZodTypeAny, {
5213
+ type: string;
5214
+ name: string;
5215
+ }, {
5216
+ type: string;
5217
+ name: string;
5218
+ }>, "many">>;
5219
+ /** Breakdown of source memories by effective state (current/superseded/contradicted) */
5220
+ effectiveStateBreakdown: z.ZodOptional<z.ZodObject<{
5221
+ /** Active memories used in synthesis */
5222
+ current: z.ZodNumber;
5223
+ /** Superseded memories (deprioritized in synthesis) */
5224
+ superseded: z.ZodNumber;
5225
+ /** Contradicted memories (deprioritized in synthesis) */
5226
+ contradicted: z.ZodNumber;
5227
+ }, "strip", z.ZodTypeAny, {
5228
+ contradicted: number;
5229
+ current: number;
5230
+ superseded: number;
5231
+ }, {
5232
+ contradicted: number;
5233
+ current: number;
5234
+ superseded: number;
5235
+ }>>;
5134
5236
  }, "strip", z.ZodTypeAny, {
5135
5237
  metadata: {
5136
5238
  query: string;
@@ -5156,6 +5258,21 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
5156
5258
  memoryId: string;
5157
5259
  conversation?: string | undefined;
5158
5260
  }[];
5261
+ entities?: {
5262
+ type: string;
5263
+ name: string;
5264
+ }[] | undefined;
5265
+ keyFacts?: {
5266
+ object: string;
5267
+ confidence: number;
5268
+ subject: string;
5269
+ predicate: string;
5270
+ }[] | undefined;
5271
+ effectiveStateBreakdown?: {
5272
+ contradicted: number;
5273
+ current: number;
5274
+ superseded: number;
5275
+ } | undefined;
5159
5276
  }, {
5160
5277
  metadata: {
5161
5278
  query: string;
@@ -5181,6 +5298,21 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
5181
5298
  memoryId: string;
5182
5299
  conversation?: string | undefined;
5183
5300
  }[];
5301
+ entities?: {
5302
+ type: string;
5303
+ name: string;
5304
+ }[] | undefined;
5305
+ keyFacts?: {
5306
+ object: string;
5307
+ confidence: number;
5308
+ subject: string;
5309
+ predicate: string;
5310
+ }[] | undefined;
5311
+ effectiveStateBreakdown?: {
5312
+ contradicted: number;
5313
+ current: number;
5314
+ superseded: number;
5315
+ } | undefined;
5184
5316
  }>>;
5185
5317
  declare const buildContextRequest: z.ZodObject<{
5186
5318
  /** What you are about to work on */
@@ -5625,6 +5757,12 @@ type DigestTimeRange = z.infer<typeof digestTimeRange>;
5625
5757
  */
5626
5758
  type DigestMetadata = z.infer<typeof digestMetadata>;
5627
5759
  type DigestSource = z.infer<typeof digestSource>;
5760
+ type DigestKeyFact = z.infer<typeof digestKeyFact>;
5761
+ type DigestEntity = z.infer<typeof digestEntity>;
5762
+ /**
5763
+ * Breakdown of source memories by effective state (current/superseded/contradicted)
5764
+ */
5765
+ type EffectiveStateBreakdown = z.infer<typeof effectiveStateBreakdown>;
5628
5766
  type DigestResponse = z.infer<typeof digestResponse>;
5629
5767
  type BuildContextRequest = z.infer<typeof buildContextRequest>;
5630
5768
  /**
@@ -6592,6 +6730,9 @@ declare class MemoriesService extends BaseService {
6592
6730
  digest: string;
6593
6731
  metadata: DigestMetadata;
6594
6732
  sources: DigestSource[];
6733
+ keyFacts?: DigestKeyFact[];
6734
+ entities?: DigestEntity[];
6735
+ effectiveStateBreakdown?: EffectiveStateBreakdown;
6595
6736
  }>>;
6596
6737
  /**
6597
6738
  * Build a context briefing
@@ -7626,4 +7767,4 @@ declare class Memnexus {
7626
7767
  setEnvironment(environment: Environment): void;
7627
7768
  }
7628
7769
 
7629
- export { type AddMemoryToNarrativeRequest, AdminService, type ApiKey, ApiKeysService, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type CheckoutSessionResponse, type Community, ContentType, type Conversation, ConversationsService, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, EntitiesService, type Entity, type EntityNode, Environment, type Error$1 as Error, type ErrorDefinition, type Fact, type FactSearchRequest, FactsService, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, GraphragService, type HealthCheck, HealthService, type Hook, type HttpError, type HttpMetadata, type HttpMethod, type HttpRequest, type HttpResponse, InvitesService, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, Memnexus, MemoriesService, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, MonitoringService, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, NarrativesService, type Pagination, type Pattern, PatternsService, type PaymentMethod, type PortalSessionResponse, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, SystemService, type TemporalMetadata, type Topic, type TopicReference, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, checkoutSessionResponse, community, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, Memnexus as default, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, entity, entityNode, error, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, relatedMemoryResult, searchRequest, searchResponse, searchResult, serviceCheck, subscription, temporalMetadata, topic, topicReference, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, user, userUsage };
7770
+ export { type AddMemoryToNarrativeRequest, AdminService, type ApiKey, ApiKeysService, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type CheckoutSessionResponse, type Community, ContentType, type Conversation, ConversationsService, type CreateArtifactRequest, type CreateCheckoutSessionRequest, type CreateConversationRequest, type CreateFactRequest, type CreateMemoryRelationshipRequest, type CreateMemoryRequest, type CreateMemoryResponse, type CreateMemoryResponseMeta, type CreateNarrativeRequest, type CreatePortalSessionRequest, type DigestEntity, type DigestKeyFact, type DigestMetadata, type DigestRequest, type DigestResponse, type DigestSource, type DigestTimeRange, type EffectiveStateBreakdown, EntitiesService, type Entity, type EntityNode, Environment, type Error$1 as Error, type ErrorDefinition, type Fact, type FactSearchRequest, FactsService, type GetMemoryResponse, type GetNarrativeResponse, type GraphRAGQueryRequest, type GraphRAGQueryResponse, GraphragService, type HealthCheck, HealthService, type Hook, type HttpError, type HttpMetadata, type HttpMethod, type HttpRequest, type HttpResponse, InvitesService, type Invoice, type ListInvoicesResponse, type ListNarrativesResponse, type ListPaymentMethodsResponse, Memnexus, MemoriesService, type Memory, type MemoryRelationship, type MemoryRelationshipsResponse, MonitoringService, type NamedMemoryHistoryResponse, type NarrativeMemory, type NarrativeThread, type NarrativeTimelineResponse, NarrativesService, type Pagination, type Pattern, PatternsService, type PaymentMethod, type PortalSessionResponse, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, SystemService, type TemporalMetadata, type Topic, type TopicReference, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, checkoutSessionResponse, community, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, Memnexus as default, digestEntity, digestKeyFact, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, effectiveStateBreakdown, entity, entityNode, error, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, relatedMemoryResult, searchRequest, searchResponse, searchResult, serviceCheck, subscription, temporalMetadata, topic, topicReference, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, user, userUsage };
package/dist/index.js CHANGED
@@ -5768,13 +5768,43 @@ var digestSource = z.object({
5768
5768
  /** Conversation ID this memory belongs to */
5769
5769
  conversation: z.string().optional()
5770
5770
  });
5771
+ var digestKeyFact = z.object({
5772
+ /** Fact subject */
5773
+ subject: z.string(),
5774
+ /** Relationship type */
5775
+ predicate: z.string(),
5776
+ /** Fact value */
5777
+ object: z.string(),
5778
+ /** Confidence score */
5779
+ confidence: z.number().min(0).max(1)
5780
+ });
5781
+ var digestEntity = z.object({
5782
+ /** Entity name */
5783
+ name: z.string(),
5784
+ /** Entity type */
5785
+ type: z.string()
5786
+ });
5787
+ var effectiveStateBreakdown = z.object({
5788
+ /** Active memories used in synthesis */
5789
+ current: z.number().min(0),
5790
+ /** Superseded memories (deprioritized in synthesis) */
5791
+ superseded: z.number().min(0),
5792
+ /** Contradicted memories (deprioritized in synthesis) */
5793
+ contradicted: z.number().min(0)
5794
+ });
5771
5795
  var digestResponse = z.lazy(() => z.object({
5772
5796
  /** The generated digest content (markdown formatted) */
5773
5797
  digest: z.string(),
5774
5798
  /** Generation metadata including source statistics */
5775
5799
  metadata: digestMetadata,
5776
5800
  /** Source memories used to generate the digest, for traceability */
5777
- sources: z.array(digestSource)
5801
+ sources: z.array(digestSource),
5802
+ /** Top extracted facts relevant to the digest, deduplicated and ranked by frequency */
5803
+ keyFacts: z.array(digestKeyFact).optional(),
5804
+ /** Key entities mentioned across source memories */
5805
+ entities: z.array(digestEntity).optional(),
5806
+ /** Breakdown of source memories by effective state (current/superseded/contradicted) */
5807
+ effectiveStateBreakdown: effectiveStateBreakdown.optional()
5778
5808
  }));
5779
5809
  var buildContextRequest = z.object({
5780
5810
  /** What you are about to work on */
@@ -6054,11 +6084,14 @@ export {
6054
6084
  createNarrativeRequest,
6055
6085
  createPortalSessionRequest,
6056
6086
  index_default as default,
6087
+ digestEntity,
6088
+ digestKeyFact,
6057
6089
  digestMetadata,
6058
6090
  digestRequest,
6059
6091
  digestResponse,
6060
6092
  digestSource,
6061
6093
  digestTimeRange,
6094
+ effectiveStateBreakdown,
6062
6095
  entity,
6063
6096
  entityNode,
6064
6097
  error,