@ericsanchezok/synergy-sdk 2.2.1 → 2.2.2

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.
@@ -154,6 +154,9 @@ export type StatsSnapshot = {
154
154
  computedAt: number;
155
155
  watermark: number;
156
156
  };
157
+ export type DiagnosticsSummary = {
158
+ [key: string]: unknown;
159
+ };
157
160
  export type HolosLoginResponse = {
158
161
  url: string;
159
162
  };
@@ -552,11 +555,11 @@ export type KeybindsConfig = {
552
555
  */
553
556
  messages_copy?: string;
554
557
  /**
555
- * Undo message
558
+ * Undo message history only
556
559
  */
557
560
  messages_undo?: string;
558
561
  /**
559
- * Redo message
562
+ * Redo message history only
560
563
  */
561
564
  messages_redo?: string;
562
565
  /**
@@ -1254,7 +1257,7 @@ export type ExperienceConfig = {
1254
1257
  retrieve?: boolean | PassiveRetrievalConfig;
1255
1258
  learning?: LearningConfig;
1256
1259
  };
1257
- export type EngramConfig = {
1260
+ export type LibraryConfig = {
1258
1261
  memory?: MemoryConfig;
1259
1262
  experience?: ExperienceConfig;
1260
1263
  /**
@@ -1623,6 +1626,27 @@ export type SandboxConfig = {
1623
1626
  conpty?: boolean;
1624
1627
  };
1625
1628
  };
1629
+ /**
1630
+ * Local logs, traces, and diagnostics settings
1631
+ */
1632
+ export type ObservabilityConfig = {
1633
+ /**
1634
+ * Enable local observability trace JSONL events (default: true)
1635
+ */
1636
+ enabled?: boolean;
1637
+ /**
1638
+ * Days to retain local trace files (default: 7)
1639
+ */
1640
+ retentionDays?: number;
1641
+ /**
1642
+ * Maximum total trace storage in bytes (default: 250MB)
1643
+ */
1644
+ maxBytes?: number;
1645
+ /**
1646
+ * Milliseconds without tool activity before emitting a stalled-tool trace event
1647
+ */
1648
+ stalledToolMs?: number;
1649
+ };
1626
1650
  /**
1627
1651
  * Holos platform configuration
1628
1652
  */
@@ -1887,7 +1911,7 @@ export type Config = {
1887
1911
  };
1888
1912
  embedding?: EmbeddingConfig;
1889
1913
  rerank?: RerankConfig;
1890
- engram?: EngramConfig;
1914
+ library?: LibraryConfig;
1891
1915
  /**
1892
1916
  * MCP (Model Context Protocol) server configurations
1893
1917
  */
@@ -1904,6 +1928,7 @@ export type Config = {
1904
1928
  [key: string]: ChannelFeishuConfig;
1905
1929
  };
1906
1930
  sandbox?: SandboxConfig;
1931
+ observability?: ObservabilityConfig;
1907
1932
  controlProfile?: ControlProfileId;
1908
1933
  holos?: HolosConfig;
1909
1934
  email?: EmailConfig;
@@ -2028,7 +2053,7 @@ export type Config = {
2028
2053
  };
2029
2054
  };
2030
2055
  export type ConfigDomainSummary = {
2031
- id: "general" | "models" | "providers" | "engram" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime";
2056
+ id: "general" | "models" | "providers" | "library" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime";
2032
2057
  filename: string;
2033
2058
  label: string;
2034
2059
  path: string;
@@ -2051,7 +2076,7 @@ export type ConfigDomainImportChange = {
2051
2076
  };
2052
2077
  export type ConfigDomainImportPlan = {
2053
2078
  domains: Array<{
2054
- id: "general" | "models" | "providers" | "engram" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime";
2079
+ id: "general" | "models" | "providers" | "library" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime";
2055
2080
  filename: string;
2056
2081
  path: string;
2057
2082
  mode: "merge" | "replace-domain" | "append";
@@ -2061,7 +2086,7 @@ export type ConfigDomainImportPlan = {
2061
2086
  };
2062
2087
  export type ConfigDomainImportPlanInput = {
2063
2088
  config: Config;
2064
- only?: Array<"general" | "models" | "providers" | "engram" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime">;
2089
+ only?: Array<"general" | "models" | "providers" | "library" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime">;
2065
2090
  mode?: "merge" | "replace-domain" | "append";
2066
2091
  };
2067
2092
  export type Model = {
@@ -2287,6 +2312,19 @@ export type SessionInteraction = {
2287
2312
  */
2288
2313
  source?: string;
2289
2314
  };
2315
+ export type SessionHistoryInfo = {
2316
+ rollback?: {
2317
+ id: string;
2318
+ numTurns: number;
2319
+ created: number;
2320
+ messageID?: string;
2321
+ droppedMessageIDs: Array<string>;
2322
+ droppedUserMessageIDs: Array<string>;
2323
+ files: Array<string>;
2324
+ patchPartIDs: Array<string>;
2325
+ canUnrollback: boolean;
2326
+ };
2327
+ };
2290
2328
  export type SessionCortexDelegation = {
2291
2329
  parentSessionID: string;
2292
2330
  parentMessageID: string;
@@ -2324,6 +2362,11 @@ export type Session = {
2324
2362
  id: string;
2325
2363
  scope: SessionScope;
2326
2364
  parentID?: string;
2365
+ forkedFrom?: {
2366
+ sessionID: string;
2367
+ messageID?: string;
2368
+ title?: string;
2369
+ };
2327
2370
  category?: "project" | "home" | "channel" | "background";
2328
2371
  endpoint?: SessionEndpoint;
2329
2372
  summary?: {
@@ -2356,12 +2399,7 @@ export type Session = {
2356
2399
  user?: string;
2357
2400
  assistant?: string;
2358
2401
  };
2359
- revert?: {
2360
- messageID: string;
2361
- partID?: string;
2362
- snapshot?: string;
2363
- diff?: string;
2364
- };
2402
+ history?: SessionHistoryInfo;
2365
2403
  cortex?: SessionCortexDelegation;
2366
2404
  working?: SessionWorkingInfo;
2367
2405
  workspace?: SessionWorkspace;
@@ -2825,6 +2863,76 @@ export type FilePartInput = {
2825
2863
  [key: string]: unknown;
2826
2864
  };
2827
2865
  };
2866
+ export type SessionRollbackEvent = {
2867
+ id: string;
2868
+ sessionID: string;
2869
+ type: "rollback";
2870
+ time: {
2871
+ created: number;
2872
+ };
2873
+ numTurns: number;
2874
+ droppedMessageIDs: Array<string>;
2875
+ droppedUserMessageIDs: Array<string>;
2876
+ files: Array<string>;
2877
+ patchPartIDs: Array<string>;
2878
+ };
2879
+ export type SessionUnrollbackEvent = {
2880
+ id: string;
2881
+ sessionID: string;
2882
+ type: "unrollback";
2883
+ time: {
2884
+ created: number;
2885
+ };
2886
+ rollbackID: string;
2887
+ };
2888
+ export type SessionRollbackSummary = {
2889
+ id: string;
2890
+ numTurns: number;
2891
+ created: number;
2892
+ messageID?: string;
2893
+ droppedMessageIDs: Array<string>;
2894
+ droppedUserMessageIDs: Array<string>;
2895
+ files: Array<string>;
2896
+ patchPartIDs: Array<string>;
2897
+ canUnrollback: boolean;
2898
+ };
2899
+ export type NoteInfo = {
2900
+ id: string;
2901
+ title: string;
2902
+ content: unknown;
2903
+ pinned: boolean;
2904
+ global: boolean;
2905
+ originScope?: string;
2906
+ tags: Array<string>;
2907
+ kind?: "note" | "blueprint";
2908
+ blueprint?: {
2909
+ description?: string;
2910
+ defaultAgent?: string;
2911
+ activeLoopID?: string;
2912
+ runCount?: number;
2913
+ lastRunAt?: number;
2914
+ };
2915
+ version: number;
2916
+ time: {
2917
+ created: number;
2918
+ updated: number;
2919
+ };
2920
+ };
2921
+ export type NoteConflictError = {
2922
+ name: "NoteConflictError";
2923
+ data: {
2924
+ noteID: string;
2925
+ expectedVersion: number;
2926
+ note: NoteInfo;
2927
+ };
2928
+ };
2929
+ export type SessionFileRestoreResult = {
2930
+ restoredFiles: Array<string>;
2931
+ patchPartIDs: Array<string>;
2932
+ rollbackID?: string;
2933
+ messageID?: string;
2934
+ partID?: string;
2935
+ };
2828
2936
  export type PermissionRequest = {
2829
2937
  id: string;
2830
2938
  sessionID: string;
@@ -2928,6 +3036,7 @@ export type CortexTask = {
2928
3036
  updatedAt: number;
2929
3037
  }>;
2930
3038
  };
3039
+ notifyParentOnComplete?: boolean;
2931
3040
  };
2932
3041
  export type Command = {
2933
3042
  name: string;
@@ -3296,28 +3405,6 @@ export type NoteMetaScopeGroup = {
3296
3405
  scopeType: "home" | "project";
3297
3406
  notes: Array<NoteMetaInfo>;
3298
3407
  };
3299
- export type NoteInfo = {
3300
- id: string;
3301
- title: string;
3302
- content: unknown;
3303
- pinned: boolean;
3304
- global: boolean;
3305
- originScope?: string;
3306
- tags: Array<string>;
3307
- kind?: "note" | "blueprint";
3308
- blueprint?: {
3309
- description?: string;
3310
- defaultAgent?: string;
3311
- activeLoopID?: string;
3312
- runCount?: number;
3313
- lastRunAt?: number;
3314
- };
3315
- version: number;
3316
- time: {
3317
- created: number;
3318
- updated: number;
3319
- };
3320
- };
3321
3408
  export type NoteScopeGroup = {
3322
3409
  scopeID: string;
3323
3410
  scopeType: "home" | "project";
@@ -3336,14 +3423,6 @@ export type NoteCreateInput = {
3336
3423
  lastRunAt?: number;
3337
3424
  };
3338
3425
  };
3339
- export type NoteConflictError = {
3340
- name: "NoteConflictError";
3341
- data: {
3342
- noteID: string;
3343
- expectedVersion: number;
3344
- note: NoteInfo;
3345
- };
3346
- };
3347
3426
  export type NotePatchInput = {
3348
3427
  title?: string;
3349
3428
  content?: unknown;
@@ -3693,10 +3772,8 @@ export type RegistryPluginSummary = {
3693
3772
  source: "official" | "local";
3694
3773
  };
3695
3774
  export type RegistryPluginSignature = {
3696
- algorithm: string;
3697
- value: string;
3698
- keyId?: string;
3699
- timestamp?: number;
3775
+ algorithm: "ed25519";
3776
+ signer: string;
3700
3777
  };
3701
3778
  export type RegistryPermissionItem = {
3702
3779
  key: string;
@@ -4632,6 +4709,19 @@ export type GlobalStatsProgressResponses = {
4632
4709
  };
4633
4710
  };
4634
4711
  export type GlobalStatsProgressResponse = GlobalStatsProgressResponses[keyof GlobalStatsProgressResponses];
4712
+ export type ObservabilityDiagnosticsSummaryData = {
4713
+ body?: never;
4714
+ path?: never;
4715
+ query?: never;
4716
+ url: "/global/diagnostics";
4717
+ };
4718
+ export type ObservabilityDiagnosticsSummaryResponses = {
4719
+ /**
4720
+ * Diagnostics summary
4721
+ */
4722
+ 200: DiagnosticsSummary;
4723
+ };
4724
+ export type ObservabilityDiagnosticsSummaryResponse = ObservabilityDiagnosticsSummaryResponses[keyof ObservabilityDiagnosticsSummaryResponses];
4635
4725
  export type GlobalDisposeData = {
4636
4726
  body?: never;
4637
4727
  path?: never;
@@ -5219,7 +5309,7 @@ export type ConfigDomainListResponse = ConfigDomainListResponses[keyof ConfigDom
5219
5309
  export type ConfigDomainGetData = {
5220
5310
  body?: never;
5221
5311
  path: {
5222
- domain: "general" | "models" | "providers" | "engram" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime";
5312
+ domain: "general" | "models" | "providers" | "library" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime";
5223
5313
  };
5224
5314
  query?: {
5225
5315
  directory?: string;
@@ -5244,7 +5334,7 @@ export type ConfigDomainGetResponse = ConfigDomainGetResponses[keyof ConfigDomai
5244
5334
  export type ConfigDomainUpdateData = {
5245
5335
  body?: ConfigDomainUpdateInput;
5246
5336
  path: {
5247
- domain: "general" | "models" | "providers" | "engram" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime";
5337
+ domain: "general" | "models" | "providers" | "library" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime";
5248
5338
  };
5249
5339
  query?: {
5250
5340
  directory?: string;
@@ -5292,7 +5382,7 @@ export type ConfigImportPlanResponse = ConfigImportPlanResponses[keyof ConfigImp
5292
5382
  export type ConfigImportApplyData = {
5293
5383
  body?: {
5294
5384
  config: Config;
5295
- only?: Array<"general" | "models" | "providers" | "engram" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime">;
5385
+ only?: Array<"general" | "models" | "providers" | "library" | "mcp" | "plugins" | "agents" | "commands" | "permissions" | "channels" | "holos" | "email" | "runtime">;
5296
5386
  mode?: "merge" | "replace-domain" | "append";
5297
5387
  yes?: boolean;
5298
5388
  };
@@ -5960,6 +6050,25 @@ export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponse
5960
6050
  export type SessionForkData = {
5961
6051
  body?: {
5962
6052
  messageID?: string;
6053
+ position?: {
6054
+ type: "current";
6055
+ } | {
6056
+ type: "before";
6057
+ messageID: string;
6058
+ };
6059
+ workspace?: {
6060
+ mode: "current";
6061
+ } | {
6062
+ mode: "existing";
6063
+ target: string;
6064
+ force?: boolean;
6065
+ } | {
6066
+ mode: "create";
6067
+ name?: string;
6068
+ baseRef?: "current" | "fresh";
6069
+ };
6070
+ title?: string;
6071
+ controlProfile?: "guarded" | "autonomous" | "full_access";
5963
6072
  };
5964
6073
  path: {
5965
6074
  sessionID: string;
@@ -6054,6 +6163,7 @@ export type SessionMessagesData = {
6054
6163
  directory?: string;
6055
6164
  scopeID?: string;
6056
6165
  limit?: number;
6166
+ raw?: boolean;
6057
6167
  };
6058
6168
  url: "/session/{sessionID}/message";
6059
6169
  };
@@ -6432,10 +6542,9 @@ export type SessionShellResponses = {
6432
6542
  200: AssistantMessage;
6433
6543
  };
6434
6544
  export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses];
6435
- export type SessionRevertData = {
6545
+ export type SessionRollbackData = {
6436
6546
  body?: {
6437
- messageID: string;
6438
- partID?: string;
6547
+ numTurns: number;
6439
6548
  };
6440
6549
  path: {
6441
6550
  sessionID: string;
@@ -6444,9 +6553,9 @@ export type SessionRevertData = {
6444
6553
  directory?: string;
6445
6554
  scopeID?: string;
6446
6555
  };
6447
- url: "/session/{sessionID}/revert";
6556
+ url: "/session/{sessionID}/rollback";
6448
6557
  };
6449
- export type SessionRevertErrors = {
6558
+ export type SessionRollbackErrors = {
6450
6559
  /**
6451
6560
  * Bad request
6452
6561
  */
@@ -6456,15 +6565,15 @@ export type SessionRevertErrors = {
6456
6565
  */
6457
6566
  404: NotFoundError;
6458
6567
  };
6459
- export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
6460
- export type SessionRevertResponses = {
6568
+ export type SessionRollbackError = SessionRollbackErrors[keyof SessionRollbackErrors];
6569
+ export type SessionRollbackResponses = {
6461
6570
  /**
6462
- * Updated session
6571
+ * Rollback event
6463
6572
  */
6464
- 200: Session;
6573
+ 200: SessionRollbackEvent;
6465
6574
  };
6466
- export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses];
6467
- export type SessionUnrevertData = {
6575
+ export type SessionRollbackResponse = SessionRollbackResponses[keyof SessionRollbackResponses];
6576
+ export type SessionUnrollbackData = {
6468
6577
  body?: never;
6469
6578
  path: {
6470
6579
  sessionID: string;
@@ -6473,9 +6582,9 @@ export type SessionUnrevertData = {
6473
6582
  directory?: string;
6474
6583
  scopeID?: string;
6475
6584
  };
6476
- url: "/session/{sessionID}/unrevert";
6585
+ url: "/session/{sessionID}/unrollback";
6477
6586
  };
6478
- export type SessionUnrevertErrors = {
6587
+ export type SessionUnrollbackErrors = {
6479
6588
  /**
6480
6589
  * Bad request
6481
6590
  */
@@ -6484,15 +6593,55 @@ export type SessionUnrevertErrors = {
6484
6593
  * Not found
6485
6594
  */
6486
6595
  404: NotFoundError;
6596
+ /**
6597
+ * Conflict
6598
+ */
6599
+ 409: NoteConflictError;
6487
6600
  };
6488
- export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
6489
- export type SessionUnrevertResponses = {
6601
+ export type SessionUnrollbackError = SessionUnrollbackErrors[keyof SessionUnrollbackErrors];
6602
+ export type SessionUnrollbackResponses = {
6490
6603
  /**
6491
- * Updated session
6604
+ * Unrollback event or current rollback state
6492
6605
  */
6493
- 200: Session;
6606
+ 200: SessionUnrollbackEvent | {
6607
+ rollback: SessionRollbackSummary;
6608
+ };
6609
+ };
6610
+ export type SessionUnrollbackResponse = SessionUnrollbackResponses[keyof SessionUnrollbackResponses];
6611
+ export type SessionFilesRestoreData = {
6612
+ body?: {
6613
+ rollbackID?: string;
6614
+ messageID?: string;
6615
+ partID?: string;
6616
+ files?: Array<string>;
6617
+ };
6618
+ path: {
6619
+ sessionID: string;
6620
+ };
6621
+ query?: {
6622
+ directory?: string;
6623
+ scopeID?: string;
6624
+ };
6625
+ url: "/session/{sessionID}/files/restore";
6626
+ };
6627
+ export type SessionFilesRestoreErrors = {
6628
+ /**
6629
+ * Bad request
6630
+ */
6631
+ 400: BadRequestError;
6632
+ /**
6633
+ * Not found
6634
+ */
6635
+ 404: NotFoundError;
6636
+ };
6637
+ export type SessionFilesRestoreError = SessionFilesRestoreErrors[keyof SessionFilesRestoreErrors];
6638
+ export type SessionFilesRestoreResponses = {
6639
+ /**
6640
+ * Restored files
6641
+ */
6642
+ 200: SessionFileRestoreResult;
6494
6643
  };
6495
- export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses];
6644
+ export type SessionFilesRestoreResponse = SessionFilesRestoreResponses[keyof SessionFilesRestoreResponses];
6496
6645
  export type PermissionRespondData = {
6497
6646
  body?: {
6498
6647
  response: "once" | "session" | "always" | "reject";
@@ -7252,7 +7401,7 @@ export type FileStatusResponses = {
7252
7401
  200: Array<File>;
7253
7402
  };
7254
7403
  export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
7255
- export type EngramExperienceSearchData = {
7404
+ export type LibraryExperienceSearchData = {
7256
7405
  body?: {
7257
7406
  /**
7258
7407
  * Search query text
@@ -7272,23 +7421,23 @@ export type EngramExperienceSearchData = {
7272
7421
  directory?: string;
7273
7422
  scopeID?: string;
7274
7423
  };
7275
- url: "/engram/experience/search";
7424
+ url: "/library/experience/search";
7276
7425
  };
7277
- export type EngramExperienceSearchErrors = {
7426
+ export type LibraryExperienceSearchErrors = {
7278
7427
  /**
7279
7428
  * Bad request
7280
7429
  */
7281
7430
  400: BadRequestError;
7282
7431
  };
7283
- export type EngramExperienceSearchError = EngramExperienceSearchErrors[keyof EngramExperienceSearchErrors];
7284
- export type EngramExperienceSearchResponses = {
7432
+ export type LibraryExperienceSearchError = LibraryExperienceSearchErrors[keyof LibraryExperienceSearchErrors];
7433
+ export type LibraryExperienceSearchResponses = {
7285
7434
  /**
7286
7435
  * Search results ranked by hybrid score
7287
7436
  */
7288
7437
  200: Array<ExperienceSearchResult>;
7289
7438
  };
7290
- export type EngramExperienceSearchResponse = EngramExperienceSearchResponses[keyof EngramExperienceSearchResponses];
7291
- export type EngramExperiencePageData = {
7439
+ export type LibraryExperienceSearchResponse = LibraryExperienceSearchResponses[keyof LibraryExperienceSearchResponses];
7440
+ export type LibraryExperiencePageData = {
7292
7441
  body?: never;
7293
7442
  path?: never;
7294
7443
  query?: {
@@ -7312,23 +7461,23 @@ export type EngramExperiencePageData = {
7312
7461
  */
7313
7462
  offset?: number;
7314
7463
  };
7315
- url: "/engram/experience/page";
7464
+ url: "/library/experience/page";
7316
7465
  };
7317
- export type EngramExperiencePageErrors = {
7466
+ export type LibraryExperiencePageErrors = {
7318
7467
  /**
7319
7468
  * Bad request
7320
7469
  */
7321
7470
  400: BadRequestError;
7322
7471
  };
7323
- export type EngramExperiencePageError = EngramExperiencePageErrors[keyof EngramExperiencePageErrors];
7324
- export type EngramExperiencePageResponses = {
7472
+ export type LibraryExperiencePageError = LibraryExperiencePageErrors[keyof LibraryExperiencePageErrors];
7473
+ export type LibraryExperiencePageResponses = {
7325
7474
  /**
7326
7475
  * Paginated experience list
7327
7476
  */
7328
7477
  200: ExperienceListPage;
7329
7478
  };
7330
- export type EngramExperiencePageResponse = EngramExperiencePageResponses[keyof EngramExperiencePageResponses];
7331
- export type EngramExperienceRemoveData = {
7479
+ export type LibraryExperiencePageResponse = LibraryExperiencePageResponses[keyof LibraryExperiencePageResponses];
7480
+ export type LibraryExperienceRemoveData = {
7332
7481
  body?: never;
7333
7482
  path: {
7334
7483
  /**
@@ -7340,23 +7489,23 @@ export type EngramExperienceRemoveData = {
7340
7489
  directory?: string;
7341
7490
  scopeID?: string;
7342
7491
  };
7343
- url: "/engram/experience/{id}";
7492
+ url: "/library/experience/{id}";
7344
7493
  };
7345
- export type EngramExperienceRemoveErrors = {
7494
+ export type LibraryExperienceRemoveErrors = {
7346
7495
  /**
7347
7496
  * Bad request
7348
7497
  */
7349
7498
  400: BadRequestError;
7350
7499
  };
7351
- export type EngramExperienceRemoveError = EngramExperienceRemoveErrors[keyof EngramExperienceRemoveErrors];
7352
- export type EngramExperienceRemoveResponses = {
7500
+ export type LibraryExperienceRemoveError = LibraryExperienceRemoveErrors[keyof LibraryExperienceRemoveErrors];
7501
+ export type LibraryExperienceRemoveResponses = {
7353
7502
  /**
7354
7503
  * Deleted
7355
7504
  */
7356
7505
  200: boolean;
7357
7506
  };
7358
- export type EngramExperienceRemoveResponse = EngramExperienceRemoveResponses[keyof EngramExperienceRemoveResponses];
7359
- export type EngramExperienceGetData = {
7507
+ export type LibraryExperienceRemoveResponse = LibraryExperienceRemoveResponses[keyof LibraryExperienceRemoveResponses];
7508
+ export type LibraryExperienceGetData = {
7360
7509
  body?: never;
7361
7510
  path: {
7362
7511
  /**
@@ -7368,9 +7517,9 @@ export type EngramExperienceGetData = {
7368
7517
  directory?: string;
7369
7518
  scopeID?: string;
7370
7519
  };
7371
- url: "/engram/experience/{id}";
7520
+ url: "/library/experience/{id}";
7372
7521
  };
7373
- export type EngramExperienceGetErrors = {
7522
+ export type LibraryExperienceGetErrors = {
7374
7523
  /**
7375
7524
  * Bad request
7376
7525
  */
@@ -7380,15 +7529,15 @@ export type EngramExperienceGetErrors = {
7380
7529
  */
7381
7530
  404: NotFoundError;
7382
7531
  };
7383
- export type EngramExperienceGetError = EngramExperienceGetErrors[keyof EngramExperienceGetErrors];
7384
- export type EngramExperienceGetResponses = {
7532
+ export type LibraryExperienceGetError = LibraryExperienceGetErrors[keyof LibraryExperienceGetErrors];
7533
+ export type LibraryExperienceGetResponses = {
7385
7534
  /**
7386
7535
  * Experience detail
7387
7536
  */
7388
7537
  200: ExperienceDetailInfo;
7389
7538
  };
7390
- export type EngramExperienceGetResponse = EngramExperienceGetResponses[keyof EngramExperienceGetResponses];
7391
- export type EngramExperienceApplyRewardData = {
7539
+ export type LibraryExperienceGetResponse = LibraryExperienceGetResponses[keyof LibraryExperienceGetResponses];
7540
+ export type LibraryExperienceApplyRewardData = {
7392
7541
  body?: {
7393
7542
  /**
7394
7543
  * Direct composite reward value [-1, 1]
@@ -7406,9 +7555,9 @@ export type EngramExperienceApplyRewardData = {
7406
7555
  directory?: string;
7407
7556
  scopeID?: string;
7408
7557
  };
7409
- url: "/engram/experience/{id}/reward";
7558
+ url: "/library/experience/{id}/reward";
7410
7559
  };
7411
- export type EngramExperienceApplyRewardErrors = {
7560
+ export type LibraryExperienceApplyRewardErrors = {
7412
7561
  /**
7413
7562
  * Bad request
7414
7563
  */
@@ -7418,15 +7567,15 @@ export type EngramExperienceApplyRewardErrors = {
7418
7567
  */
7419
7568
  404: NotFoundError;
7420
7569
  };
7421
- export type EngramExperienceApplyRewardError = EngramExperienceApplyRewardErrors[keyof EngramExperienceApplyRewardErrors];
7422
- export type EngramExperienceApplyRewardResponses = {
7570
+ export type LibraryExperienceApplyRewardError = LibraryExperienceApplyRewardErrors[keyof LibraryExperienceApplyRewardErrors];
7571
+ export type LibraryExperienceApplyRewardResponses = {
7423
7572
  /**
7424
7573
  * Reward applied
7425
7574
  */
7426
7575
  200: ApplyRewardResult;
7427
7576
  };
7428
- export type EngramExperienceApplyRewardResponse = EngramExperienceApplyRewardResponses[keyof EngramExperienceApplyRewardResponses];
7429
- export type EngramExperienceListData = {
7577
+ export type LibraryExperienceApplyRewardResponse = LibraryExperienceApplyRewardResponses[keyof LibraryExperienceApplyRewardResponses];
7578
+ export type LibraryExperienceListData = {
7430
7579
  body?: never;
7431
7580
  path?: never;
7432
7581
  query?: {
@@ -7436,16 +7585,16 @@ export type EngramExperienceListData = {
7436
7585
  */
7437
7586
  scopeID?: string;
7438
7587
  };
7439
- url: "/engram/experience";
7588
+ url: "/library/experience";
7440
7589
  };
7441
- export type EngramExperienceListResponses = {
7590
+ export type LibraryExperienceListResponses = {
7442
7591
  /**
7443
7592
  * List of experiences
7444
7593
  */
7445
7594
  200: Array<ExperienceInfo>;
7446
7595
  };
7447
- export type EngramExperienceListResponse = EngramExperienceListResponses[keyof EngramExperienceListResponses];
7448
- export type EngramStatsData = {
7596
+ export type LibraryExperienceListResponse = LibraryExperienceListResponses[keyof LibraryExperienceListResponses];
7597
+ export type LibraryStatsData = {
7449
7598
  body?: never;
7450
7599
  path?: never;
7451
7600
  query?: {
@@ -7456,23 +7605,23 @@ export type EngramStatsData = {
7456
7605
  */
7457
7606
  recompute?: "true" | "false";
7458
7607
  };
7459
- url: "/engram/stats";
7608
+ url: "/library/stats";
7460
7609
  };
7461
- export type EngramStatsErrors = {
7610
+ export type LibraryStatsErrors = {
7462
7611
  /**
7463
7612
  * Bad request
7464
7613
  */
7465
7614
  400: BadRequestError;
7466
7615
  };
7467
- export type EngramStatsError = EngramStatsErrors[keyof EngramStatsErrors];
7468
- export type EngramStatsResponses = {
7616
+ export type LibraryStatsError = LibraryStatsErrors[keyof LibraryStatsErrors];
7617
+ export type LibraryStatsResponses = {
7469
7618
  /**
7470
- * Engram statistics
7619
+ * Library statistics
7471
7620
  */
7472
7621
  200: MemoryStats;
7473
7622
  };
7474
- export type EngramStatsResponse = EngramStatsResponses[keyof EngramStatsResponses];
7475
- export type EngramSearchData = {
7623
+ export type LibraryStatsResponse = LibraryStatsResponses[keyof LibraryStatsResponses];
7624
+ export type LibrarySearchData = {
7476
7625
  body?: {
7477
7626
  /**
7478
7627
  * Search query text
@@ -7496,23 +7645,23 @@ export type EngramSearchData = {
7496
7645
  directory?: string;
7497
7646
  scopeID?: string;
7498
7647
  };
7499
- url: "/engram/search";
7648
+ url: "/library/search";
7500
7649
  };
7501
- export type EngramSearchErrors = {
7650
+ export type LibrarySearchErrors = {
7502
7651
  /**
7503
7652
  * Bad request
7504
7653
  */
7505
7654
  400: BadRequestError;
7506
7655
  };
7507
- export type EngramSearchError = EngramSearchErrors[keyof EngramSearchErrors];
7508
- export type EngramSearchResponses = {
7656
+ export type LibrarySearchError = LibrarySearchErrors[keyof LibrarySearchErrors];
7657
+ export type LibrarySearchResponses = {
7509
7658
  /**
7510
7659
  * Search results ranked by similarity
7511
7660
  */
7512
7661
  200: Array<MemorySearchResult>;
7513
7662
  };
7514
- export type EngramSearchResponse = EngramSearchResponses[keyof EngramSearchResponses];
7515
- export type EngramResetData = {
7663
+ export type LibrarySearchResponse = LibrarySearchResponses[keyof LibrarySearchResponses];
7664
+ export type LibraryResetData = {
7516
7665
  body?: {
7517
7666
  /**
7518
7667
  * What to reset
@@ -7532,23 +7681,23 @@ export type EngramResetData = {
7532
7681
  directory?: string;
7533
7682
  scopeID?: string;
7534
7683
  };
7535
- url: "/engram/reset";
7684
+ url: "/library/reset";
7536
7685
  };
7537
- export type EngramResetErrors = {
7686
+ export type LibraryResetErrors = {
7538
7687
  /**
7539
7688
  * Bad request
7540
7689
  */
7541
7690
  400: BadRequestError;
7542
7691
  };
7543
- export type EngramResetError = EngramResetErrors[keyof EngramResetErrors];
7544
- export type EngramResetResponses = {
7692
+ export type LibraryResetError = LibraryResetErrors[keyof LibraryResetErrors];
7693
+ export type LibraryResetResponses = {
7545
7694
  /**
7546
7695
  * Reset result with deletion counts
7547
7696
  */
7548
7697
  200: MemoryResetResult;
7549
7698
  };
7550
- export type EngramResetResponse = EngramResetResponses[keyof EngramResetResponses];
7551
- export type EngramRemoveData = {
7699
+ export type LibraryResetResponse = LibraryResetResponses[keyof LibraryResetResponses];
7700
+ export type LibraryRemoveData = {
7552
7701
  body?: never;
7553
7702
  path: {
7554
7703
  /**
@@ -7560,23 +7709,23 @@ export type EngramRemoveData = {
7560
7709
  directory?: string;
7561
7710
  scopeID?: string;
7562
7711
  };
7563
- url: "/engram/{id}";
7712
+ url: "/library/{id}";
7564
7713
  };
7565
- export type EngramRemoveErrors = {
7714
+ export type LibraryRemoveErrors = {
7566
7715
  /**
7567
7716
  * Bad request
7568
7717
  */
7569
7718
  400: BadRequestError;
7570
7719
  };
7571
- export type EngramRemoveError = EngramRemoveErrors[keyof EngramRemoveErrors];
7572
- export type EngramRemoveResponses = {
7720
+ export type LibraryRemoveError = LibraryRemoveErrors[keyof LibraryRemoveErrors];
7721
+ export type LibraryRemoveResponses = {
7573
7722
  /**
7574
7723
  * Deleted
7575
7724
  */
7576
7725
  200: boolean;
7577
7726
  };
7578
- export type EngramRemoveResponse = EngramRemoveResponses[keyof EngramRemoveResponses];
7579
- export type EngramGetData = {
7727
+ export type LibraryRemoveResponse = LibraryRemoveResponses[keyof LibraryRemoveResponses];
7728
+ export type LibraryGetData = {
7580
7729
  body?: never;
7581
7730
  path: {
7582
7731
  /**
@@ -7588,9 +7737,9 @@ export type EngramGetData = {
7588
7737
  directory?: string;
7589
7738
  scopeID?: string;
7590
7739
  };
7591
- url: "/engram/{id}";
7740
+ url: "/library/{id}";
7592
7741
  };
7593
- export type EngramGetErrors = {
7742
+ export type LibraryGetErrors = {
7594
7743
  /**
7595
7744
  * Bad request
7596
7745
  */
@@ -7600,15 +7749,15 @@ export type EngramGetErrors = {
7600
7749
  */
7601
7750
  404: NotFoundError;
7602
7751
  };
7603
- export type EngramGetError = EngramGetErrors[keyof EngramGetErrors];
7604
- export type EngramGetResponses = {
7752
+ export type LibraryGetError = LibraryGetErrors[keyof LibraryGetErrors];
7753
+ export type LibraryGetResponses = {
7605
7754
  /**
7606
7755
  * Memory detail
7607
7756
  */
7608
7757
  200: MemoryInfo;
7609
7758
  };
7610
- export type EngramGetResponse = EngramGetResponses[keyof EngramGetResponses];
7611
- export type EngramListData = {
7759
+ export type LibraryGetResponse = LibraryGetResponses[keyof LibraryGetResponses];
7760
+ export type LibraryListData = {
7612
7761
  body?: never;
7613
7762
  path?: never;
7614
7763
  query?: {
@@ -7617,15 +7766,15 @@ export type EngramListData = {
7617
7766
  category?: MemoryCategory;
7618
7767
  recallMode?: MemoryRecallMode;
7619
7768
  };
7620
- url: "/engram";
7769
+ url: "/library";
7621
7770
  };
7622
- export type EngramListResponses = {
7771
+ export type LibraryListResponses = {
7623
7772
  /**
7624
7773
  * List of memories
7625
7774
  */
7626
7775
  200: Array<MemoryInfo>;
7627
7776
  };
7628
- export type EngramListResponse = EngramListResponses[keyof EngramListResponses];
7777
+ export type LibraryListResponse = LibraryListResponses[keyof LibraryListResponses];
7629
7778
  export type AgendaActivityData = {
7630
7779
  body?: never;
7631
7780
  path?: never;