@petercatai/whisker-client 6.0.1 → 6.0.202604221137

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/api.d.ts CHANGED
@@ -163,14 +163,6 @@ export declare enum IOperator {
163
163
  And = "and",
164
164
  Or = "or"
165
165
  }
166
- /**
167
- * MemoryTypeEnum
168
- * Memory lifecycle type
169
- */
170
- export declare enum IMemoryTypeEnum {
171
- MemoryWorking = "memory_working",
172
- MemoryLongTerm = "memory_long_term"
173
- }
174
166
  /**
175
167
  * MemoryStatusEnum
176
168
  * Memory status enumeration
@@ -1614,9 +1606,10 @@ export interface IFileUploadCreate {
1614
1606
  file_name: string;
1615
1607
  /**
1616
1608
  * File Ext
1617
- * 文件扩展名(不含 '.'),如 pdf / md / xlsx
1609
+ * 文件扩展名(不含 '.'),如 pdf / md / xlsx。留空表示未知类型,系统只存储不处理。
1610
+ * @default ""
1618
1611
  */
1619
- file_ext: string;
1612
+ file_ext?: string;
1620
1613
  /**
1621
1614
  * File Url
1622
1615
  * 文件下载地址
@@ -2953,8 +2946,6 @@ export interface IMemory {
2953
2946
  * Memory content
2954
2947
  */
2955
2948
  content: string;
2956
- /** Memory lifecycle type */
2957
- memory_type: IMemoryTypeEnum;
2958
2949
  /** Brain cortex region this memory resides in */
2959
2950
  cortex_region: IMemoryCortexEnum;
2960
2951
  /**
@@ -2972,10 +2963,9 @@ export interface IMemory {
2972
2963
  tags?: string[];
2973
2964
  /**
2974
2965
  * Confidence
2975
- * Confidence score
2976
- * @default 1
2966
+ * Confidence score, None means not yet evaluated
2977
2967
  */
2978
- confidence?: number;
2968
+ confidence?: number | null;
2979
2969
  /**
2980
2970
  * Retrieval Count
2981
2971
  * Retrieval count
@@ -3044,8 +3034,6 @@ export interface IMemoryRecord {
3044
3034
  * Memory content
3045
3035
  */
3046
3036
  content: string;
3047
- /** Memory type */
3048
- memory_type: IMemoryTypeEnum;
3049
3037
  /**
3050
3038
  * Similarity
3051
3039
  * Semantic similarity with query (0-1)
@@ -3067,10 +3055,9 @@ export interface IMemoryRecord {
3067
3055
  tags?: string[];
3068
3056
  /**
3069
3057
  * Confidence
3070
- * Confidence
3071
- * @default 1
3058
+ * Confidence, None means not yet evaluated
3072
3059
  */
3073
- confidence?: number;
3060
+ confidence?: number | null;
3074
3061
  /**
3075
3062
  * Retrieval Count
3076
3063
  * Historical retrieval count
@@ -3099,11 +3086,6 @@ export interface IMemoryRetrievalConfig {
3099
3086
  * Cortex regions to search. None means search all regions.
3100
3087
  */
3101
3088
  cortex_regions?: IMemoryCortexEnum[] | null;
3102
- /**
3103
- * Memory Types
3104
- * Specify memory types, None means retrieve all types
3105
- */
3106
- memory_types?: IMemoryTypeEnum[] | null;
3107
3089
  /**
3108
3090
  * Include Working Memory
3109
3091
  * Whether to include working memory from hippocampus
@@ -3143,6 +3125,11 @@ export interface IMemoryRetrievalConfig {
3143
3125
  * @default "jina_v3"
3144
3126
  */
3145
3127
  embedding_model_name?: string | null;
3128
+ /**
3129
+ * Session Id
3130
+ * Current session ID, working memories from this session will be excluded
3131
+ */
3132
+ session_id?: string | null;
3146
3133
  [key: string]: any;
3147
3134
  }
3148
3135
  /**
@@ -3171,18 +3158,6 @@ export interface IMemoryRetrievalResponse {
3171
3158
  * @default []
3172
3159
  */
3173
3160
  memories?: IMemoryRecord[];
3174
- /**
3175
- * Working Memory Count
3176
- * Count from working memory
3177
- * @default 0
3178
- */
3179
- working_memory_count?: number;
3180
- /**
3181
- * Long Term Memory Count
3182
- * Count from long-term memory
3183
- * @default 0
3184
- */
3185
- long_term_memory_count?: number;
3186
3161
  /**
3187
3162
  * Total Count
3188
3163
  * Total retrieval count
@@ -5696,13 +5671,13 @@ export interface ITaggingCreate {
5696
5671
  */
5697
5672
  tag_name: string;
5698
5673
  /**
5699
- * 对象类型,当前仅支持 "space"
5674
+ * 对象类型:space 或 knowledge
5700
5675
  * @default "space"
5701
5676
  */
5702
5677
  object_type?: ITagObjectType;
5703
5678
  /**
5704
5679
  * Object Id
5705
- * 被打标签对象ID(如 space_id
5680
+ * 被打标签对象ID(space_id 或 knowledge_id
5706
5681
  * @maxLength 255
5707
5682
  */
5708
5683
  object_id: string;
@@ -6425,8 +6400,8 @@ export interface IWohuSpaceMemberGrant {
6425
6400
  * WorkingMemoryCreate
6426
6401
  * Create working memory request DTO
6427
6402
  *
6428
- * Working memory is always written to hippocampus and always uses
6429
- * `memory_working`. Callers cannot override those invariants.
6403
+ * Working memory is always written to hippocampus.
6404
+ * Callers cannot override this invariant.
6430
6405
  */
6431
6406
  export interface IWorkingMemoryCreate {
6432
6407
  /**
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  return t;
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.Api = exports.HttpClient = exports.ContentType = exports.IAction = exports.ICliApplyStatus = exports.ICliChangeOp = exports.IKnowledgeSourceEnum = exports.IKnowledgeTypeEnum = exports.ILanguage = exports.IMemoryCortexEnum = exports.IMemoryInputTypeEnum = exports.IMemoryStatusEnum = exports.IMemoryTypeEnum = exports.IOperator = exports.IPublicEndpointId = exports.IResource = exports.ISchedulerCronTimezone = exports.ISchedulerIntervalType = exports.ISchedulerJobStatus = exports.ISchedulerJobType = exports.ISchedulerRunResult = exports.ISchedulerTargetType = exports.ITagObjectType = exports.ITaskStatus = exports.ITextKnowledgeContentUpdateStatusEnum = exports.IWebhookDeliveryStatus = exports.IWebhookEventType = exports.IWebhookOutboxStatus = exports.IWebhookSubscriptionStatus = exports.IWohuSpaceRole = void 0;
25
+ exports.Api = exports.HttpClient = exports.ContentType = exports.IAction = exports.ICliApplyStatus = exports.ICliChangeOp = exports.IKnowledgeSourceEnum = exports.IKnowledgeTypeEnum = exports.ILanguage = exports.IMemoryCortexEnum = exports.IMemoryInputTypeEnum = exports.IMemoryStatusEnum = exports.IOperator = exports.IPublicEndpointId = exports.IResource = exports.ISchedulerCronTimezone = exports.ISchedulerIntervalType = exports.ISchedulerJobStatus = exports.ISchedulerJobType = exports.ISchedulerRunResult = exports.ISchedulerTargetType = exports.ITagObjectType = exports.ITaskStatus = exports.ITextKnowledgeContentUpdateStatusEnum = exports.IWebhookDeliveryStatus = exports.IWebhookEventType = exports.IWebhookOutboxStatus = exports.IWebhookSubscriptionStatus = exports.IWohuSpaceRole = void 0;
26
26
  /** WohuSpaceRole */
27
27
  var IWohuSpaceRole;
28
28
  (function (IWohuSpaceRole) {
@@ -205,15 +205,6 @@ var IOperator;
205
205
  IOperator["And"] = "and";
206
206
  IOperator["Or"] = "or";
207
207
  })(IOperator || (exports.IOperator = IOperator = {}));
208
- /**
209
- * MemoryTypeEnum
210
- * Memory lifecycle type
211
- */
212
- var IMemoryTypeEnum;
213
- (function (IMemoryTypeEnum) {
214
- IMemoryTypeEnum["MemoryWorking"] = "memory_working";
215
- IMemoryTypeEnum["MemoryLongTerm"] = "memory_long_term";
216
- })(IMemoryTypeEnum || (exports.IMemoryTypeEnum = IMemoryTypeEnum = {}));
217
208
  /**
218
209
  * MemoryStatusEnum
219
210
  * Memory status enumeration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petercatai/whisker-client",
3
- "version": "6.0.1",
3
+ "version": "6.0.202604221137",
4
4
  "description": "Generated API client (Production)",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",
@@ -16,8 +16,8 @@
16
16
  "tag": "latest"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^25.5.2",
20
- "axios": "^1.15.0",
21
- "typescript": "^6.0.2"
19
+ "@types/node": "^25.6.0",
20
+ "axios": "^1.15.2",
21
+ "typescript": "^6.0.3"
22
22
  }
23
23
  }