@memnexus-ai/typescript-sdk 1.68.8 → 1.69.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.cjs +30 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +150 -7
- package/dist/index.d.ts +150 -7
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4244,6 +4244,22 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
|
|
|
4244
4244
|
contributingFactors?: string[] | undefined;
|
|
4245
4245
|
} | undefined;
|
|
4246
4246
|
}>>;
|
|
4247
|
+
declare const branchFailure: z.ZodObject<{
|
|
4248
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
4249
|
+
name: z.ZodString;
|
|
4250
|
+
/** How the branch failed */
|
|
4251
|
+
status: z.ZodEnum<["timeout", "error"]>;
|
|
4252
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
4253
|
+
reason: z.ZodEnum<["timeout", "connection", "query_error", "provider_error", "unknown"]>;
|
|
4254
|
+
}, "strip", z.ZodTypeAny, {
|
|
4255
|
+
status: "error" | "timeout";
|
|
4256
|
+
name: string;
|
|
4257
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4258
|
+
}, {
|
|
4259
|
+
status: "error" | "timeout";
|
|
4260
|
+
name: string;
|
|
4261
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4262
|
+
}>;
|
|
4247
4263
|
/**
|
|
4248
4264
|
* Temporal query metadata (present when temporal filters are used)
|
|
4249
4265
|
*/
|
|
@@ -4323,6 +4339,25 @@ declare const searchMeta: z.ZodLazy<z.ZodObject<{
|
|
|
4323
4339
|
searchTime: z.ZodNumber;
|
|
4324
4340
|
/** Search method used for this query */
|
|
4325
4341
|
searchMethod: z.ZodString;
|
|
4342
|
+
/** True when this result set is INCOMPLETE — at least one search branch timed out or errored, so absence of a memory does not mean it does not exist. ABSENT (not false) on the healthy path: a healthy response gains no new fields. */
|
|
4343
|
+
degraded: z.ZodOptional<z.ZodBoolean>;
|
|
4344
|
+
/** The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted, and the field is absent entirely on the healthy path. */
|
|
4345
|
+
branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4346
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
4347
|
+
name: z.ZodString;
|
|
4348
|
+
/** How the branch failed */
|
|
4349
|
+
status: z.ZodEnum<["timeout", "error"]>;
|
|
4350
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
4351
|
+
reason: z.ZodEnum<["timeout", "connection", "query_error", "provider_error", "unknown"]>;
|
|
4352
|
+
}, "strip", z.ZodTypeAny, {
|
|
4353
|
+
status: "error" | "timeout";
|
|
4354
|
+
name: string;
|
|
4355
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4356
|
+
}, {
|
|
4357
|
+
status: "error" | "timeout";
|
|
4358
|
+
name: string;
|
|
4359
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4360
|
+
}>, "many">>;
|
|
4326
4361
|
/** Temporal query metadata (present when temporal filters are used) */
|
|
4327
4362
|
temporalMetadata: z.ZodOptional<z.ZodObject<{
|
|
4328
4363
|
/** Temporal query mode used */
|
|
@@ -4392,6 +4427,12 @@ declare const searchMeta: z.ZodLazy<z.ZodObject<{
|
|
|
4392
4427
|
page: number;
|
|
4393
4428
|
pageSize: number;
|
|
4394
4429
|
searchTime: number;
|
|
4430
|
+
degraded?: boolean | undefined;
|
|
4431
|
+
branchFailures?: {
|
|
4432
|
+
status: "error" | "timeout";
|
|
4433
|
+
name: string;
|
|
4434
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4435
|
+
}[] | undefined;
|
|
4395
4436
|
temporalMetadata?: {
|
|
4396
4437
|
asOfTime: string | null;
|
|
4397
4438
|
validAtTime: string | null;
|
|
@@ -4413,6 +4454,12 @@ declare const searchMeta: z.ZodLazy<z.ZodObject<{
|
|
|
4413
4454
|
page: number;
|
|
4414
4455
|
pageSize: number;
|
|
4415
4456
|
searchTime: number;
|
|
4457
|
+
degraded?: boolean | undefined;
|
|
4458
|
+
branchFailures?: {
|
|
4459
|
+
status: "error" | "timeout";
|
|
4460
|
+
name: string;
|
|
4461
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4462
|
+
}[] | undefined;
|
|
4416
4463
|
temporalMetadata?: {
|
|
4417
4464
|
asOfTime: string | null;
|
|
4418
4465
|
validAtTime: string | null;
|
|
@@ -4863,6 +4910,25 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4863
4910
|
searchTime: z.ZodNumber;
|
|
4864
4911
|
/** Search method used for this query */
|
|
4865
4912
|
searchMethod: z.ZodString;
|
|
4913
|
+
/** True when this result set is INCOMPLETE — at least one search branch timed out or errored, so absence of a memory does not mean it does not exist. ABSENT (not false) on the healthy path: a healthy response gains no new fields. */
|
|
4914
|
+
degraded: z.ZodOptional<z.ZodBoolean>;
|
|
4915
|
+
/** The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted, and the field is absent entirely on the healthy path. */
|
|
4916
|
+
branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4917
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
4918
|
+
name: z.ZodString;
|
|
4919
|
+
/** How the branch failed */
|
|
4920
|
+
status: z.ZodEnum<["timeout", "error"]>;
|
|
4921
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
4922
|
+
reason: z.ZodEnum<["timeout", "connection", "query_error", "provider_error", "unknown"]>;
|
|
4923
|
+
}, "strip", z.ZodTypeAny, {
|
|
4924
|
+
status: "error" | "timeout";
|
|
4925
|
+
name: string;
|
|
4926
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4927
|
+
}, {
|
|
4928
|
+
status: "error" | "timeout";
|
|
4929
|
+
name: string;
|
|
4930
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4931
|
+
}>, "many">>;
|
|
4866
4932
|
/** Temporal query metadata (present when temporal filters are used) */
|
|
4867
4933
|
temporalMetadata: z.ZodOptional<z.ZodObject<{
|
|
4868
4934
|
/** Temporal query mode used */
|
|
@@ -4932,6 +4998,12 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4932
4998
|
page: number;
|
|
4933
4999
|
pageSize: number;
|
|
4934
5000
|
searchTime: number;
|
|
5001
|
+
degraded?: boolean | undefined;
|
|
5002
|
+
branchFailures?: {
|
|
5003
|
+
status: "error" | "timeout";
|
|
5004
|
+
name: string;
|
|
5005
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5006
|
+
}[] | undefined;
|
|
4935
5007
|
temporalMetadata?: {
|
|
4936
5008
|
asOfTime: string | null;
|
|
4937
5009
|
validAtTime: string | null;
|
|
@@ -4953,6 +5025,12 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4953
5025
|
page: number;
|
|
4954
5026
|
pageSize: number;
|
|
4955
5027
|
searchTime: number;
|
|
5028
|
+
degraded?: boolean | undefined;
|
|
5029
|
+
branchFailures?: {
|
|
5030
|
+
status: "error" | "timeout";
|
|
5031
|
+
name: string;
|
|
5032
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5033
|
+
}[] | undefined;
|
|
4956
5034
|
temporalMetadata?: {
|
|
4957
5035
|
asOfTime: string | null;
|
|
4958
5036
|
validAtTime: string | null;
|
|
@@ -5185,6 +5263,12 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
5185
5263
|
page: number;
|
|
5186
5264
|
pageSize: number;
|
|
5187
5265
|
searchTime: number;
|
|
5266
|
+
degraded?: boolean | undefined;
|
|
5267
|
+
branchFailures?: {
|
|
5268
|
+
status: "error" | "timeout";
|
|
5269
|
+
name: string;
|
|
5270
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5271
|
+
}[] | undefined;
|
|
5188
5272
|
temporalMetadata?: {
|
|
5189
5273
|
asOfTime: string | null;
|
|
5190
5274
|
validAtTime: string | null;
|
|
@@ -5284,6 +5368,12 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
5284
5368
|
page: number;
|
|
5285
5369
|
pageSize: number;
|
|
5286
5370
|
searchTime: number;
|
|
5371
|
+
degraded?: boolean | undefined;
|
|
5372
|
+
branchFailures?: {
|
|
5373
|
+
status: "error" | "timeout";
|
|
5374
|
+
name: string;
|
|
5375
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5376
|
+
}[] | undefined;
|
|
5287
5377
|
temporalMetadata?: {
|
|
5288
5378
|
asOfTime: string | null;
|
|
5289
5379
|
validAtTime: string | null;
|
|
@@ -5335,6 +5425,57 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
5335
5425
|
};
|
|
5336
5426
|
}[] | undefined;
|
|
5337
5427
|
}>>;
|
|
5428
|
+
declare const searchFailureResponse: z.ZodLazy<z.ZodObject<{
|
|
5429
|
+
/** Human-readable message. Worded so it never reads as 'no results exist'. */
|
|
5430
|
+
error: z.ZodString;
|
|
5431
|
+
/** Top-level outcome the client switches on. all_branches_failed = every search branch failed, backend degraded (a retry may not help until it recovers); deadline_exceeded = the in-app request deadline was hit before a result could be produced (a retry may land inside budget); service_at_capacity = the request was shed by bounded admission/backpressure (retrying after retry_after_ms succeeds once load drops). */
|
|
5432
|
+
reason: z.ZodOptional<z.ZodEnum<["all_branches_failed", "deadline_exceeded", "service_at_capacity"]>>;
|
|
5433
|
+
/** Explicit signal that retrying is worthwhile. True for all typed honest-failure reasons. */
|
|
5434
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
5435
|
+
/** Advisory delay in milliseconds before retrying. Present only when reason is service_at_capacity. Carries server-side jitter (base ±25%) so clients shed together do not retry in lockstep and re-create the spike. */
|
|
5436
|
+
retry_after_ms: z.ZodOptional<z.ZodNumber>;
|
|
5437
|
+
/** True when the gather was incomplete — at least one search branch timed out or errored. */
|
|
5438
|
+
degraded: z.ZodOptional<z.ZodBoolean>;
|
|
5439
|
+
/** The branches that did NOT complete. Healthy branches are omitted. */
|
|
5440
|
+
branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5441
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
5442
|
+
name: z.ZodString;
|
|
5443
|
+
/** How the branch failed */
|
|
5444
|
+
status: z.ZodEnum<["timeout", "error"]>;
|
|
5445
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
5446
|
+
reason: z.ZodEnum<["timeout", "connection", "query_error", "provider_error", "unknown"]>;
|
|
5447
|
+
}, "strip", z.ZodTypeAny, {
|
|
5448
|
+
status: "error" | "timeout";
|
|
5449
|
+
name: string;
|
|
5450
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5451
|
+
}, {
|
|
5452
|
+
status: "error" | "timeout";
|
|
5453
|
+
name: string;
|
|
5454
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5455
|
+
}>, "many">>;
|
|
5456
|
+
}, "strip", z.ZodTypeAny, {
|
|
5457
|
+
error: string;
|
|
5458
|
+
degraded?: boolean | undefined;
|
|
5459
|
+
reason?: "all_branches_failed" | "deadline_exceeded" | "service_at_capacity" | undefined;
|
|
5460
|
+
branchFailures?: {
|
|
5461
|
+
status: "error" | "timeout";
|
|
5462
|
+
name: string;
|
|
5463
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5464
|
+
}[] | undefined;
|
|
5465
|
+
retryable?: boolean | undefined;
|
|
5466
|
+
retry_after_ms?: number | undefined;
|
|
5467
|
+
}, {
|
|
5468
|
+
error: string;
|
|
5469
|
+
degraded?: boolean | undefined;
|
|
5470
|
+
reason?: "all_branches_failed" | "deadline_exceeded" | "service_at_capacity" | undefined;
|
|
5471
|
+
branchFailures?: {
|
|
5472
|
+
status: "error" | "timeout";
|
|
5473
|
+
name: string;
|
|
5474
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5475
|
+
}[] | undefined;
|
|
5476
|
+
retryable?: boolean | undefined;
|
|
5477
|
+
retry_after_ms?: number | undefined;
|
|
5478
|
+
}>>;
|
|
5338
5479
|
declare const fact: z.ZodObject<{
|
|
5339
5480
|
/** Unique identifier for the fact */
|
|
5340
5481
|
id: z.ZodString;
|
|
@@ -7801,12 +7942,12 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
|
|
|
7801
7942
|
} | null;
|
|
7802
7943
|
generatedAt: string;
|
|
7803
7944
|
degraded?: boolean | undefined;
|
|
7804
|
-
averageRelevance?: number | undefined;
|
|
7805
7945
|
branchFailures?: {
|
|
7806
7946
|
status: "error" | "timeout";
|
|
7807
7947
|
name: string;
|
|
7808
7948
|
error?: string | undefined;
|
|
7809
7949
|
}[] | undefined;
|
|
7950
|
+
averageRelevance?: number | undefined;
|
|
7810
7951
|
narrowWindowFallback?: boolean | undefined;
|
|
7811
7952
|
crossProjectFallback?: boolean | undefined;
|
|
7812
7953
|
recursion?: {
|
|
@@ -7827,12 +7968,12 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
|
|
|
7827
7968
|
} | null;
|
|
7828
7969
|
generatedAt: string;
|
|
7829
7970
|
degraded?: boolean | undefined;
|
|
7830
|
-
averageRelevance?: number | undefined;
|
|
7831
7971
|
branchFailures?: {
|
|
7832
7972
|
status: "error" | "timeout";
|
|
7833
7973
|
name: string;
|
|
7834
7974
|
error?: string | undefined;
|
|
7835
7975
|
}[] | undefined;
|
|
7976
|
+
averageRelevance?: number | undefined;
|
|
7836
7977
|
narrowWindowFallback?: boolean | undefined;
|
|
7837
7978
|
crossProjectFallback?: boolean | undefined;
|
|
7838
7979
|
recursion?: {
|
|
@@ -7997,12 +8138,12 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
7997
8138
|
} | null;
|
|
7998
8139
|
generatedAt: string;
|
|
7999
8140
|
degraded?: boolean | undefined;
|
|
8000
|
-
averageRelevance?: number | undefined;
|
|
8001
8141
|
branchFailures?: {
|
|
8002
8142
|
status: "error" | "timeout";
|
|
8003
8143
|
name: string;
|
|
8004
8144
|
error?: string | undefined;
|
|
8005
8145
|
}[] | undefined;
|
|
8146
|
+
averageRelevance?: number | undefined;
|
|
8006
8147
|
narrowWindowFallback?: boolean | undefined;
|
|
8007
8148
|
crossProjectFallback?: boolean | undefined;
|
|
8008
8149
|
recursion?: {
|
|
@@ -8023,12 +8164,12 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
8023
8164
|
} | null;
|
|
8024
8165
|
generatedAt: string;
|
|
8025
8166
|
degraded?: boolean | undefined;
|
|
8026
|
-
averageRelevance?: number | undefined;
|
|
8027
8167
|
branchFailures?: {
|
|
8028
8168
|
status: "error" | "timeout";
|
|
8029
8169
|
name: string;
|
|
8030
8170
|
error?: string | undefined;
|
|
8031
8171
|
}[] | undefined;
|
|
8172
|
+
averageRelevance?: number | undefined;
|
|
8032
8173
|
narrowWindowFallback?: boolean | undefined;
|
|
8033
8174
|
crossProjectFallback?: boolean | undefined;
|
|
8034
8175
|
recursion?: {
|
|
@@ -8398,12 +8539,12 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
8398
8539
|
} | null;
|
|
8399
8540
|
generatedAt: string;
|
|
8400
8541
|
degraded?: boolean | undefined;
|
|
8401
|
-
averageRelevance?: number | undefined;
|
|
8402
8542
|
branchFailures?: {
|
|
8403
8543
|
status: "error" | "timeout";
|
|
8404
8544
|
name: string;
|
|
8405
8545
|
error?: string | undefined;
|
|
8406
8546
|
}[] | undefined;
|
|
8547
|
+
averageRelevance?: number | undefined;
|
|
8407
8548
|
narrowWindowFallback?: boolean | undefined;
|
|
8408
8549
|
crossProjectFallback?: boolean | undefined;
|
|
8409
8550
|
recursion?: {
|
|
@@ -8512,12 +8653,12 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
8512
8653
|
} | null;
|
|
8513
8654
|
generatedAt: string;
|
|
8514
8655
|
degraded?: boolean | undefined;
|
|
8515
|
-
averageRelevance?: number | undefined;
|
|
8516
8656
|
branchFailures?: {
|
|
8517
8657
|
status: "error" | "timeout";
|
|
8518
8658
|
name: string;
|
|
8519
8659
|
error?: string | undefined;
|
|
8520
8660
|
}[] | undefined;
|
|
8661
|
+
averageRelevance?: number | undefined;
|
|
8521
8662
|
narrowWindowFallback?: boolean | undefined;
|
|
8522
8663
|
crossProjectFallback?: boolean | undefined;
|
|
8523
8664
|
recursion?: {
|
|
@@ -9310,6 +9451,7 @@ type HealthCheck = z.infer<typeof healthCheck>;
|
|
|
9310
9451
|
type SearchRequest = z.infer<typeof searchRequest>;
|
|
9311
9452
|
type Entity = z.infer<typeof entity>;
|
|
9312
9453
|
type SearchResult = z.infer<typeof searchResult>;
|
|
9454
|
+
type BranchFailure = z.infer<typeof branchFailure>;
|
|
9313
9455
|
/**
|
|
9314
9456
|
* Temporal query metadata (present when temporal filters are used)
|
|
9315
9457
|
*/
|
|
@@ -9330,6 +9472,7 @@ type ClaimGroupClaim = z.infer<typeof claimGroupClaim>;
|
|
|
9330
9472
|
type ClaimGroupSignals = z.infer<typeof claimGroupSignals>;
|
|
9331
9473
|
type ClaimGroup = z.infer<typeof claimGroup>;
|
|
9332
9474
|
type SearchResponse = z.infer<typeof searchResponse>;
|
|
9475
|
+
type SearchFailureResponse = z.infer<typeof searchFailureResponse>;
|
|
9333
9476
|
type Fact = z.infer<typeof fact>;
|
|
9334
9477
|
type CreateFactRequest = z.infer<typeof createFactRequest>;
|
|
9335
9478
|
type UpdateFactRequest = z.infer<typeof updateFactRequest>;
|
|
@@ -12191,4 +12334,4 @@ declare class Memnexus {
|
|
|
12191
12334
|
setEnvironment(environment: Environment): void;
|
|
12192
12335
|
}
|
|
12193
12336
|
|
|
12194
|
-
export { type AddMemoryToNarrativeRequest, AdminAlertsService, AdminPipelineService, AdminService, AlertsService, type ApiKey, ApiKeysService, type AppendNamedMemoryRequest, 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 BulkDeleteRequest, type BulkDeleteResponse, type BulkTagRequest, type BulkTagResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CheckoutSessionResponse, type ClaimGroup, type ClaimGroupClaim, type ClaimGroupSignals, type CodeContext, type Community, type CompileInstructionsRequest, type CompileInstructionsResponse, 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 CreateRecommendationRequest, type CreateSystemAlertRequest, 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 ExportRequest, type FacetEntry, type Facets, 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, type MatchRecommendationsRequest, 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 PrecomputedMemoryFields, type Recommendation, RecommendationsService, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, SdkError, type SearchMeta, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, type SystemAlert, SystemService, type TemporalMetadata, type Topic, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type UpdateSystemAlertRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, appendNamedMemoryRequest, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, bulkDeleteRequest, bulkDeleteResponse, bulkTagRequest, bulkTagResponse, bulkUpdateRequest, bulkUpdateResponse, checkoutSessionResponse, claimGroup, claimGroupClaim, claimGroupSignals, codeContext, community, compileInstructionsRequest, compileInstructionsResponse, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, createRecommendationRequest, createSystemAlertRequest, Memnexus as default, digestEntity, digestKeyFact, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, effectiveStateBreakdown, entity, entityNode, error, exportRequest, facetEntry, facets, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, matchRecommendationsRequest, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, precomputedMemoryFields, recommendation, relatedMemoryResult, searchMeta, searchRequest, searchResponse, searchResult, serviceCheck, subscription, systemAlert, temporalMetadata, topic, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, updateSystemAlertRequest, user, userUsage };
|
|
12337
|
+
export { type AddMemoryToNarrativeRequest, AdminAlertsService, AdminPipelineService, AdminService, AlertsService, type ApiKey, ApiKeysService, type AppendNamedMemoryRequest, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type BranchFailure, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type BulkDeleteRequest, type BulkDeleteResponse, type BulkTagRequest, type BulkTagResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CheckoutSessionResponse, type ClaimGroup, type ClaimGroupClaim, type ClaimGroupSignals, type CodeContext, type Community, type CompileInstructionsRequest, type CompileInstructionsResponse, 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 CreateRecommendationRequest, type CreateSystemAlertRequest, 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 ExportRequest, type FacetEntry, type Facets, 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, type MatchRecommendationsRequest, 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 PrecomputedMemoryFields, type Recommendation, RecommendationsService, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, SdkError, type SearchFailureResponse, type SearchMeta, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, type SystemAlert, SystemService, type TemporalMetadata, type Topic, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type UpdateSystemAlertRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, appendNamedMemoryRequest, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, branchFailure, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, bulkDeleteRequest, bulkDeleteResponse, bulkTagRequest, bulkTagResponse, bulkUpdateRequest, bulkUpdateResponse, checkoutSessionResponse, claimGroup, claimGroupClaim, claimGroupSignals, codeContext, community, compileInstructionsRequest, compileInstructionsResponse, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, createRecommendationRequest, createSystemAlertRequest, Memnexus as default, digestEntity, digestKeyFact, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, effectiveStateBreakdown, entity, entityNode, error, exportRequest, facetEntry, facets, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, matchRecommendationsRequest, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, precomputedMemoryFields, recommendation, relatedMemoryResult, searchFailureResponse, searchMeta, searchRequest, searchResponse, searchResult, serviceCheck, subscription, systemAlert, temporalMetadata, topic, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, updateSystemAlertRequest, user, userUsage };
|
package/dist/index.d.ts
CHANGED
|
@@ -4244,6 +4244,22 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
|
|
|
4244
4244
|
contributingFactors?: string[] | undefined;
|
|
4245
4245
|
} | undefined;
|
|
4246
4246
|
}>>;
|
|
4247
|
+
declare const branchFailure: z.ZodObject<{
|
|
4248
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
4249
|
+
name: z.ZodString;
|
|
4250
|
+
/** How the branch failed */
|
|
4251
|
+
status: z.ZodEnum<["timeout", "error"]>;
|
|
4252
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
4253
|
+
reason: z.ZodEnum<["timeout", "connection", "query_error", "provider_error", "unknown"]>;
|
|
4254
|
+
}, "strip", z.ZodTypeAny, {
|
|
4255
|
+
status: "error" | "timeout";
|
|
4256
|
+
name: string;
|
|
4257
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4258
|
+
}, {
|
|
4259
|
+
status: "error" | "timeout";
|
|
4260
|
+
name: string;
|
|
4261
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4262
|
+
}>;
|
|
4247
4263
|
/**
|
|
4248
4264
|
* Temporal query metadata (present when temporal filters are used)
|
|
4249
4265
|
*/
|
|
@@ -4323,6 +4339,25 @@ declare const searchMeta: z.ZodLazy<z.ZodObject<{
|
|
|
4323
4339
|
searchTime: z.ZodNumber;
|
|
4324
4340
|
/** Search method used for this query */
|
|
4325
4341
|
searchMethod: z.ZodString;
|
|
4342
|
+
/** True when this result set is INCOMPLETE — at least one search branch timed out or errored, so absence of a memory does not mean it does not exist. ABSENT (not false) on the healthy path: a healthy response gains no new fields. */
|
|
4343
|
+
degraded: z.ZodOptional<z.ZodBoolean>;
|
|
4344
|
+
/** The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted, and the field is absent entirely on the healthy path. */
|
|
4345
|
+
branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4346
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
4347
|
+
name: z.ZodString;
|
|
4348
|
+
/** How the branch failed */
|
|
4349
|
+
status: z.ZodEnum<["timeout", "error"]>;
|
|
4350
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
4351
|
+
reason: z.ZodEnum<["timeout", "connection", "query_error", "provider_error", "unknown"]>;
|
|
4352
|
+
}, "strip", z.ZodTypeAny, {
|
|
4353
|
+
status: "error" | "timeout";
|
|
4354
|
+
name: string;
|
|
4355
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4356
|
+
}, {
|
|
4357
|
+
status: "error" | "timeout";
|
|
4358
|
+
name: string;
|
|
4359
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4360
|
+
}>, "many">>;
|
|
4326
4361
|
/** Temporal query metadata (present when temporal filters are used) */
|
|
4327
4362
|
temporalMetadata: z.ZodOptional<z.ZodObject<{
|
|
4328
4363
|
/** Temporal query mode used */
|
|
@@ -4392,6 +4427,12 @@ declare const searchMeta: z.ZodLazy<z.ZodObject<{
|
|
|
4392
4427
|
page: number;
|
|
4393
4428
|
pageSize: number;
|
|
4394
4429
|
searchTime: number;
|
|
4430
|
+
degraded?: boolean | undefined;
|
|
4431
|
+
branchFailures?: {
|
|
4432
|
+
status: "error" | "timeout";
|
|
4433
|
+
name: string;
|
|
4434
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4435
|
+
}[] | undefined;
|
|
4395
4436
|
temporalMetadata?: {
|
|
4396
4437
|
asOfTime: string | null;
|
|
4397
4438
|
validAtTime: string | null;
|
|
@@ -4413,6 +4454,12 @@ declare const searchMeta: z.ZodLazy<z.ZodObject<{
|
|
|
4413
4454
|
page: number;
|
|
4414
4455
|
pageSize: number;
|
|
4415
4456
|
searchTime: number;
|
|
4457
|
+
degraded?: boolean | undefined;
|
|
4458
|
+
branchFailures?: {
|
|
4459
|
+
status: "error" | "timeout";
|
|
4460
|
+
name: string;
|
|
4461
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4462
|
+
}[] | undefined;
|
|
4416
4463
|
temporalMetadata?: {
|
|
4417
4464
|
asOfTime: string | null;
|
|
4418
4465
|
validAtTime: string | null;
|
|
@@ -4863,6 +4910,25 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4863
4910
|
searchTime: z.ZodNumber;
|
|
4864
4911
|
/** Search method used for this query */
|
|
4865
4912
|
searchMethod: z.ZodString;
|
|
4913
|
+
/** True when this result set is INCOMPLETE — at least one search branch timed out or errored, so absence of a memory does not mean it does not exist. ABSENT (not false) on the healthy path: a healthy response gains no new fields. */
|
|
4914
|
+
degraded: z.ZodOptional<z.ZodBoolean>;
|
|
4915
|
+
/** The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted, and the field is absent entirely on the healthy path. */
|
|
4916
|
+
branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4917
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
4918
|
+
name: z.ZodString;
|
|
4919
|
+
/** How the branch failed */
|
|
4920
|
+
status: z.ZodEnum<["timeout", "error"]>;
|
|
4921
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
4922
|
+
reason: z.ZodEnum<["timeout", "connection", "query_error", "provider_error", "unknown"]>;
|
|
4923
|
+
}, "strip", z.ZodTypeAny, {
|
|
4924
|
+
status: "error" | "timeout";
|
|
4925
|
+
name: string;
|
|
4926
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4927
|
+
}, {
|
|
4928
|
+
status: "error" | "timeout";
|
|
4929
|
+
name: string;
|
|
4930
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
4931
|
+
}>, "many">>;
|
|
4866
4932
|
/** Temporal query metadata (present when temporal filters are used) */
|
|
4867
4933
|
temporalMetadata: z.ZodOptional<z.ZodObject<{
|
|
4868
4934
|
/** Temporal query mode used */
|
|
@@ -4932,6 +4998,12 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4932
4998
|
page: number;
|
|
4933
4999
|
pageSize: number;
|
|
4934
5000
|
searchTime: number;
|
|
5001
|
+
degraded?: boolean | undefined;
|
|
5002
|
+
branchFailures?: {
|
|
5003
|
+
status: "error" | "timeout";
|
|
5004
|
+
name: string;
|
|
5005
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5006
|
+
}[] | undefined;
|
|
4935
5007
|
temporalMetadata?: {
|
|
4936
5008
|
asOfTime: string | null;
|
|
4937
5009
|
validAtTime: string | null;
|
|
@@ -4953,6 +5025,12 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4953
5025
|
page: number;
|
|
4954
5026
|
pageSize: number;
|
|
4955
5027
|
searchTime: number;
|
|
5028
|
+
degraded?: boolean | undefined;
|
|
5029
|
+
branchFailures?: {
|
|
5030
|
+
status: "error" | "timeout";
|
|
5031
|
+
name: string;
|
|
5032
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5033
|
+
}[] | undefined;
|
|
4956
5034
|
temporalMetadata?: {
|
|
4957
5035
|
asOfTime: string | null;
|
|
4958
5036
|
validAtTime: string | null;
|
|
@@ -5185,6 +5263,12 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
5185
5263
|
page: number;
|
|
5186
5264
|
pageSize: number;
|
|
5187
5265
|
searchTime: number;
|
|
5266
|
+
degraded?: boolean | undefined;
|
|
5267
|
+
branchFailures?: {
|
|
5268
|
+
status: "error" | "timeout";
|
|
5269
|
+
name: string;
|
|
5270
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5271
|
+
}[] | undefined;
|
|
5188
5272
|
temporalMetadata?: {
|
|
5189
5273
|
asOfTime: string | null;
|
|
5190
5274
|
validAtTime: string | null;
|
|
@@ -5284,6 +5368,12 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
5284
5368
|
page: number;
|
|
5285
5369
|
pageSize: number;
|
|
5286
5370
|
searchTime: number;
|
|
5371
|
+
degraded?: boolean | undefined;
|
|
5372
|
+
branchFailures?: {
|
|
5373
|
+
status: "error" | "timeout";
|
|
5374
|
+
name: string;
|
|
5375
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5376
|
+
}[] | undefined;
|
|
5287
5377
|
temporalMetadata?: {
|
|
5288
5378
|
asOfTime: string | null;
|
|
5289
5379
|
validAtTime: string | null;
|
|
@@ -5335,6 +5425,57 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
5335
5425
|
};
|
|
5336
5426
|
}[] | undefined;
|
|
5337
5427
|
}>>;
|
|
5428
|
+
declare const searchFailureResponse: z.ZodLazy<z.ZodObject<{
|
|
5429
|
+
/** Human-readable message. Worded so it never reads as 'no results exist'. */
|
|
5430
|
+
error: z.ZodString;
|
|
5431
|
+
/** Top-level outcome the client switches on. all_branches_failed = every search branch failed, backend degraded (a retry may not help until it recovers); deadline_exceeded = the in-app request deadline was hit before a result could be produced (a retry may land inside budget); service_at_capacity = the request was shed by bounded admission/backpressure (retrying after retry_after_ms succeeds once load drops). */
|
|
5432
|
+
reason: z.ZodOptional<z.ZodEnum<["all_branches_failed", "deadline_exceeded", "service_at_capacity"]>>;
|
|
5433
|
+
/** Explicit signal that retrying is worthwhile. True for all typed honest-failure reasons. */
|
|
5434
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
5435
|
+
/** Advisory delay in milliseconds before retrying. Present only when reason is service_at_capacity. Carries server-side jitter (base ±25%) so clients shed together do not retry in lockstep and re-create the spike. */
|
|
5436
|
+
retry_after_ms: z.ZodOptional<z.ZodNumber>;
|
|
5437
|
+
/** True when the gather was incomplete — at least one search branch timed out or errored. */
|
|
5438
|
+
degraded: z.ZodOptional<z.ZodBoolean>;
|
|
5439
|
+
/** The branches that did NOT complete. Healthy branches are omitted. */
|
|
5440
|
+
branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5441
|
+
/** Search branch name (fulltext, semantic, topic, digest, …) */
|
|
5442
|
+
name: z.ZodString;
|
|
5443
|
+
/** How the branch failed */
|
|
5444
|
+
status: z.ZodEnum<["timeout", "error"]>;
|
|
5445
|
+
/** Closed-vocabulary cause. Never free text — a raw message could leak internal hostnames, ports, or query text. */
|
|
5446
|
+
reason: z.ZodEnum<["timeout", "connection", "query_error", "provider_error", "unknown"]>;
|
|
5447
|
+
}, "strip", z.ZodTypeAny, {
|
|
5448
|
+
status: "error" | "timeout";
|
|
5449
|
+
name: string;
|
|
5450
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5451
|
+
}, {
|
|
5452
|
+
status: "error" | "timeout";
|
|
5453
|
+
name: string;
|
|
5454
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5455
|
+
}>, "many">>;
|
|
5456
|
+
}, "strip", z.ZodTypeAny, {
|
|
5457
|
+
error: string;
|
|
5458
|
+
degraded?: boolean | undefined;
|
|
5459
|
+
reason?: "all_branches_failed" | "deadline_exceeded" | "service_at_capacity" | undefined;
|
|
5460
|
+
branchFailures?: {
|
|
5461
|
+
status: "error" | "timeout";
|
|
5462
|
+
name: string;
|
|
5463
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5464
|
+
}[] | undefined;
|
|
5465
|
+
retryable?: boolean | undefined;
|
|
5466
|
+
retry_after_ms?: number | undefined;
|
|
5467
|
+
}, {
|
|
5468
|
+
error: string;
|
|
5469
|
+
degraded?: boolean | undefined;
|
|
5470
|
+
reason?: "all_branches_failed" | "deadline_exceeded" | "service_at_capacity" | undefined;
|
|
5471
|
+
branchFailures?: {
|
|
5472
|
+
status: "error" | "timeout";
|
|
5473
|
+
name: string;
|
|
5474
|
+
reason: "unknown" | "timeout" | "connection" | "query_error" | "provider_error";
|
|
5475
|
+
}[] | undefined;
|
|
5476
|
+
retryable?: boolean | undefined;
|
|
5477
|
+
retry_after_ms?: number | undefined;
|
|
5478
|
+
}>>;
|
|
5338
5479
|
declare const fact: z.ZodObject<{
|
|
5339
5480
|
/** Unique identifier for the fact */
|
|
5340
5481
|
id: z.ZodString;
|
|
@@ -7801,12 +7942,12 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
|
|
|
7801
7942
|
} | null;
|
|
7802
7943
|
generatedAt: string;
|
|
7803
7944
|
degraded?: boolean | undefined;
|
|
7804
|
-
averageRelevance?: number | undefined;
|
|
7805
7945
|
branchFailures?: {
|
|
7806
7946
|
status: "error" | "timeout";
|
|
7807
7947
|
name: string;
|
|
7808
7948
|
error?: string | undefined;
|
|
7809
7949
|
}[] | undefined;
|
|
7950
|
+
averageRelevance?: number | undefined;
|
|
7810
7951
|
narrowWindowFallback?: boolean | undefined;
|
|
7811
7952
|
crossProjectFallback?: boolean | undefined;
|
|
7812
7953
|
recursion?: {
|
|
@@ -7827,12 +7968,12 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
|
|
|
7827
7968
|
} | null;
|
|
7828
7969
|
generatedAt: string;
|
|
7829
7970
|
degraded?: boolean | undefined;
|
|
7830
|
-
averageRelevance?: number | undefined;
|
|
7831
7971
|
branchFailures?: {
|
|
7832
7972
|
status: "error" | "timeout";
|
|
7833
7973
|
name: string;
|
|
7834
7974
|
error?: string | undefined;
|
|
7835
7975
|
}[] | undefined;
|
|
7976
|
+
averageRelevance?: number | undefined;
|
|
7836
7977
|
narrowWindowFallback?: boolean | undefined;
|
|
7837
7978
|
crossProjectFallback?: boolean | undefined;
|
|
7838
7979
|
recursion?: {
|
|
@@ -7997,12 +8138,12 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
7997
8138
|
} | null;
|
|
7998
8139
|
generatedAt: string;
|
|
7999
8140
|
degraded?: boolean | undefined;
|
|
8000
|
-
averageRelevance?: number | undefined;
|
|
8001
8141
|
branchFailures?: {
|
|
8002
8142
|
status: "error" | "timeout";
|
|
8003
8143
|
name: string;
|
|
8004
8144
|
error?: string | undefined;
|
|
8005
8145
|
}[] | undefined;
|
|
8146
|
+
averageRelevance?: number | undefined;
|
|
8006
8147
|
narrowWindowFallback?: boolean | undefined;
|
|
8007
8148
|
crossProjectFallback?: boolean | undefined;
|
|
8008
8149
|
recursion?: {
|
|
@@ -8023,12 +8164,12 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
8023
8164
|
} | null;
|
|
8024
8165
|
generatedAt: string;
|
|
8025
8166
|
degraded?: boolean | undefined;
|
|
8026
|
-
averageRelevance?: number | undefined;
|
|
8027
8167
|
branchFailures?: {
|
|
8028
8168
|
status: "error" | "timeout";
|
|
8029
8169
|
name: string;
|
|
8030
8170
|
error?: string | undefined;
|
|
8031
8171
|
}[] | undefined;
|
|
8172
|
+
averageRelevance?: number | undefined;
|
|
8032
8173
|
narrowWindowFallback?: boolean | undefined;
|
|
8033
8174
|
crossProjectFallback?: boolean | undefined;
|
|
8034
8175
|
recursion?: {
|
|
@@ -8398,12 +8539,12 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
8398
8539
|
} | null;
|
|
8399
8540
|
generatedAt: string;
|
|
8400
8541
|
degraded?: boolean | undefined;
|
|
8401
|
-
averageRelevance?: number | undefined;
|
|
8402
8542
|
branchFailures?: {
|
|
8403
8543
|
status: "error" | "timeout";
|
|
8404
8544
|
name: string;
|
|
8405
8545
|
error?: string | undefined;
|
|
8406
8546
|
}[] | undefined;
|
|
8547
|
+
averageRelevance?: number | undefined;
|
|
8407
8548
|
narrowWindowFallback?: boolean | undefined;
|
|
8408
8549
|
crossProjectFallback?: boolean | undefined;
|
|
8409
8550
|
recursion?: {
|
|
@@ -8512,12 +8653,12 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
|
|
|
8512
8653
|
} | null;
|
|
8513
8654
|
generatedAt: string;
|
|
8514
8655
|
degraded?: boolean | undefined;
|
|
8515
|
-
averageRelevance?: number | undefined;
|
|
8516
8656
|
branchFailures?: {
|
|
8517
8657
|
status: "error" | "timeout";
|
|
8518
8658
|
name: string;
|
|
8519
8659
|
error?: string | undefined;
|
|
8520
8660
|
}[] | undefined;
|
|
8661
|
+
averageRelevance?: number | undefined;
|
|
8521
8662
|
narrowWindowFallback?: boolean | undefined;
|
|
8522
8663
|
crossProjectFallback?: boolean | undefined;
|
|
8523
8664
|
recursion?: {
|
|
@@ -9310,6 +9451,7 @@ type HealthCheck = z.infer<typeof healthCheck>;
|
|
|
9310
9451
|
type SearchRequest = z.infer<typeof searchRequest>;
|
|
9311
9452
|
type Entity = z.infer<typeof entity>;
|
|
9312
9453
|
type SearchResult = z.infer<typeof searchResult>;
|
|
9454
|
+
type BranchFailure = z.infer<typeof branchFailure>;
|
|
9313
9455
|
/**
|
|
9314
9456
|
* Temporal query metadata (present when temporal filters are used)
|
|
9315
9457
|
*/
|
|
@@ -9330,6 +9472,7 @@ type ClaimGroupClaim = z.infer<typeof claimGroupClaim>;
|
|
|
9330
9472
|
type ClaimGroupSignals = z.infer<typeof claimGroupSignals>;
|
|
9331
9473
|
type ClaimGroup = z.infer<typeof claimGroup>;
|
|
9332
9474
|
type SearchResponse = z.infer<typeof searchResponse>;
|
|
9475
|
+
type SearchFailureResponse = z.infer<typeof searchFailureResponse>;
|
|
9333
9476
|
type Fact = z.infer<typeof fact>;
|
|
9334
9477
|
type CreateFactRequest = z.infer<typeof createFactRequest>;
|
|
9335
9478
|
type UpdateFactRequest = z.infer<typeof updateFactRequest>;
|
|
@@ -12191,4 +12334,4 @@ declare class Memnexus {
|
|
|
12191
12334
|
setEnvironment(environment: Environment): void;
|
|
12192
12335
|
}
|
|
12193
12336
|
|
|
12194
|
-
export { type AddMemoryToNarrativeRequest, AdminAlertsService, AdminPipelineService, AdminService, AlertsService, type ApiKey, ApiKeysService, type AppendNamedMemoryRequest, 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 BulkDeleteRequest, type BulkDeleteResponse, type BulkTagRequest, type BulkTagResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CheckoutSessionResponse, type ClaimGroup, type ClaimGroupClaim, type ClaimGroupSignals, type CodeContext, type Community, type CompileInstructionsRequest, type CompileInstructionsResponse, 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 CreateRecommendationRequest, type CreateSystemAlertRequest, 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 ExportRequest, type FacetEntry, type Facets, 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, type MatchRecommendationsRequest, 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 PrecomputedMemoryFields, type Recommendation, RecommendationsService, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, SdkError, type SearchMeta, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, type SystemAlert, SystemService, type TemporalMetadata, type Topic, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type UpdateSystemAlertRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, appendNamedMemoryRequest, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, bulkDeleteRequest, bulkDeleteResponse, bulkTagRequest, bulkTagResponse, bulkUpdateRequest, bulkUpdateResponse, checkoutSessionResponse, claimGroup, claimGroupClaim, claimGroupSignals, codeContext, community, compileInstructionsRequest, compileInstructionsResponse, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, createRecommendationRequest, createSystemAlertRequest, Memnexus as default, digestEntity, digestKeyFact, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, effectiveStateBreakdown, entity, entityNode, error, exportRequest, facetEntry, facets, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, matchRecommendationsRequest, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, precomputedMemoryFields, recommendation, relatedMemoryResult, searchMeta, searchRequest, searchResponse, searchResult, serviceCheck, subscription, systemAlert, temporalMetadata, topic, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, updateSystemAlertRequest, user, userUsage };
|
|
12337
|
+
export { type AddMemoryToNarrativeRequest, AdminAlertsService, AdminPipelineService, AdminService, AlertsService, type ApiKey, ApiKeysService, type AppendNamedMemoryRequest, type Artifact, ArtifactsService, type BatchGetMemoriesMeta, type BatchGetMemoriesRequest, type BatchGetMemoriesResponse, BehaviorService, type BillingOverview, BillingService, type BranchFailure, type BuildContextActiveWork, type BuildContextActivity, type BuildContextFact, type BuildContextGotcha, type BuildContextMeta, type BuildContextPattern, type BuildContextRequest, type BuildContextResponse, type BulkDeleteRequest, type BulkDeleteResponse, type BulkTagRequest, type BulkTagResponse, type BulkUpdateRequest, type BulkUpdateResponse, type CheckoutSessionResponse, type ClaimGroup, type ClaimGroupClaim, type ClaimGroupSignals, type CodeContext, type Community, type CompileInstructionsRequest, type CompileInstructionsResponse, 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 CreateRecommendationRequest, type CreateSystemAlertRequest, 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 ExportRequest, type FacetEntry, type Facets, 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, type MatchRecommendationsRequest, 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 PrecomputedMemoryFields, type Recommendation, RecommendationsService, type RelatedMemoryResult, type RequestParameter, type ResponseDefinition, type RetryOptions, type SdkConfig, SdkError, type SearchFailureResponse, type SearchMeta, type SearchRequest, type SearchResponse, type SearchResult, SerializationStyle, type ServiceCheck, type Subscription, type SystemAlert, SystemService, type TemporalMetadata, type Topic, TopicsService, type UpdateArtifactRequest, type UpdateFactRequest, type UpdateMemoryRequest, type UpdateNamedMemoryRequest, type UpdateNarrativeRequest, type UpdateSystemAlertRequest, type User, type UserUsage, UsersService, type ValidationOptions, addMemoryToNarrativeRequest, apiKey, appendNamedMemoryRequest, artifact, batchGetMemoriesMeta, batchGetMemoriesRequest, batchGetMemoriesResponse, billingOverview, branchFailure, buildContextActiveWork, buildContextActivity, buildContextFact, buildContextGotcha, buildContextMeta, buildContextPattern, buildContextRequest, buildContextResponse, bulkDeleteRequest, bulkDeleteResponse, bulkTagRequest, bulkTagResponse, bulkUpdateRequest, bulkUpdateResponse, checkoutSessionResponse, claimGroup, claimGroupClaim, claimGroupSignals, codeContext, community, compileInstructionsRequest, compileInstructionsResponse, conversation, createArtifactRequest, createCheckoutSessionRequest, createConversationRequest, createFactRequest, createMemoryRelationshipRequest, createMemoryRequest, createMemoryResponse, createMemoryResponseMeta, createNarrativeRequest, createPortalSessionRequest, createRecommendationRequest, createSystemAlertRequest, Memnexus as default, digestEntity, digestKeyFact, digestMetadata, digestRequest, digestResponse, digestSource, digestTimeRange, effectiveStateBreakdown, entity, entityNode, error, exportRequest, facetEntry, facets, fact, factSearchRequest, getMemoryResponse, getNarrativeResponse, graphRAGQueryRequest, graphRAGQueryResponse, healthCheck, invoice, listInvoicesResponse, listNarrativesResponse, listPaymentMethodsResponse, matchRecommendationsRequest, memory, memoryRelationship, memoryRelationshipsResponse, namedMemoryHistoryResponse, narrativeMemory, narrativeThread, narrativeTimelineResponse, pagination, pattern, paymentMethod, portalSessionResponse, precomputedMemoryFields, recommendation, relatedMemoryResult, searchFailureResponse, searchMeta, searchRequest, searchResponse, searchResult, serviceCheck, subscription, systemAlert, temporalMetadata, topic, updateArtifactRequest, updateFactRequest, updateMemoryRequest, updateNamedMemoryRequest, updateNarrativeRequest, updateSystemAlertRequest, user, userUsage };
|