@h-ai/api-contract 1.0.0-beta.21 → 1.0.0-beta.22

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.
@@ -424,11 +424,11 @@ declare const aiContract: {
424
424
  query: zod.ZodString;
425
425
  topK: zod.ZodOptional<zod.ZodNumber>;
426
426
  types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
427
+ instruction: "instruction";
427
428
  fact: "fact";
428
429
  preference: "preference";
429
430
  event: "event";
430
431
  entity: "entity";
431
- instruction: "instruction";
432
432
  }>>>;
433
433
  minImportance: zod.ZodOptional<zod.ZodNumber>;
434
434
  objectId: zod.ZodOptional<zod.ZodString>;
@@ -439,11 +439,11 @@ declare const aiContract: {
439
439
  id: zod.ZodString;
440
440
  content: zod.ZodString;
441
441
  type: zod.ZodEnum<{
442
+ instruction: "instruction";
442
443
  fact: "fact";
443
444
  preference: "preference";
444
445
  event: "event";
445
446
  entity: "entity";
446
- instruction: "instruction";
447
447
  }>;
448
448
  importance: zod.ZodNumber;
449
449
  objectId: zod.ZodOptional<zod.ZodString>;
@@ -469,11 +469,11 @@ declare const aiContract: {
469
469
  }, zod_v4_core.$strip>], "success">, Record<never, never>, Record<never, never>>;
470
470
  list: _orpc_contract.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
471
471
  types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
472
+ instruction: "instruction";
472
473
  fact: "fact";
473
474
  preference: "preference";
474
475
  event: "event";
475
476
  entity: "entity";
476
- instruction: "instruction";
477
477
  }>>>;
478
478
  objectId: zod.ZodOptional<zod.ZodString>;
479
479
  offset: zod.ZodOptional<zod.ZodNumber>;
@@ -485,11 +485,11 @@ declare const aiContract: {
485
485
  id: zod.ZodString;
486
486
  content: zod.ZodString;
487
487
  type: zod.ZodEnum<{
488
+ instruction: "instruction";
488
489
  fact: "fact";
489
490
  preference: "preference";
490
491
  event: "event";
491
492
  entity: "entity";
492
- instruction: "instruction";
493
493
  }>;
494
494
  importance: zod.ZodNumber;
495
495
  objectId: zod.ZodOptional<zod.ZodString>;
@@ -1055,11 +1055,11 @@ declare const AiSendMessageDataSchema: z.ZodObject<{
1055
1055
  * ```
1056
1056
  */
1057
1057
  declare const AiMemoryTypeSchema: z.ZodEnum<{
1058
+ instruction: "instruction";
1058
1059
  fact: "fact";
1059
1060
  preference: "preference";
1060
1061
  event: "event";
1061
1062
  entity: "entity";
1062
- instruction: "instruction";
1063
1063
  }>;
1064
1064
  /**
1065
1065
  * 记忆条目 Schema。
@@ -1083,11 +1083,11 @@ declare const AiMemoryEntrySchema: z.ZodObject<{
1083
1083
  id: z.ZodString;
1084
1084
  content: z.ZodString;
1085
1085
  type: z.ZodEnum<{
1086
+ instruction: "instruction";
1086
1087
  fact: "fact";
1087
1088
  preference: "preference";
1088
1089
  event: "event";
1089
1090
  entity: "entity";
1090
- instruction: "instruction";
1091
1091
  }>;
1092
1092
  importance: z.ZodNumber;
1093
1093
  objectId: z.ZodOptional<z.ZodString>;
@@ -1112,11 +1112,11 @@ declare const AiMemoryRecallInputSchema: z.ZodObject<{
1112
1112
  query: z.ZodString;
1113
1113
  topK: z.ZodOptional<z.ZodNumber>;
1114
1114
  types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1115
+ instruction: "instruction";
1115
1116
  fact: "fact";
1116
1117
  preference: "preference";
1117
1118
  event: "event";
1118
1119
  entity: "entity";
1119
- instruction: "instruction";
1120
1120
  }>>>;
1121
1121
  minImportance: z.ZodOptional<z.ZodNumber>;
1122
1122
  objectId: z.ZodOptional<z.ZodString>;
@@ -1148,11 +1148,11 @@ declare const AiMemoryRecallDataSchema: z.ZodObject<{
1148
1148
  id: z.ZodString;
1149
1149
  content: z.ZodString;
1150
1150
  type: z.ZodEnum<{
1151
+ instruction: "instruction";
1151
1152
  fact: "fact";
1152
1153
  preference: "preference";
1153
1154
  event: "event";
1154
1155
  entity: "entity";
1155
- instruction: "instruction";
1156
1156
  }>;
1157
1157
  importance: z.ZodNumber;
1158
1158
  objectId: z.ZodOptional<z.ZodString>;
@@ -1174,11 +1174,11 @@ declare const AiMemoryRecallDataSchema: z.ZodObject<{
1174
1174
  */
1175
1175
  declare const AiMemoryListInputSchema: z.ZodObject<{
1176
1176
  types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1177
+ instruction: "instruction";
1177
1178
  fact: "fact";
1178
1179
  preference: "preference";
1179
1180
  event: "event";
1180
1181
  entity: "entity";
1181
- instruction: "instruction";
1182
1182
  }>>>;
1183
1183
  objectId: z.ZodOptional<z.ZodString>;
1184
1184
  offset: z.ZodOptional<z.ZodNumber>;
@@ -1212,11 +1212,11 @@ declare const AiMemoryListDataSchema: z.ZodObject<{
1212
1212
  id: z.ZodString;
1213
1213
  content: z.ZodString;
1214
1214
  type: z.ZodEnum<{
1215
+ instruction: "instruction";
1215
1216
  fact: "fact";
1216
1217
  preference: "preference";
1217
1218
  event: "event";
1218
1219
  entity: "entity";
1219
- instruction: "instruction";
1220
1220
  }>;
1221
1221
  importance: z.ZodNumber;
1222
1222
  objectId: z.ZodOptional<z.ZodString>;
package/dist/index.d.ts CHANGED
@@ -1983,11 +1983,11 @@ declare const apiContract: {
1983
1983
  query: zod.ZodString;
1984
1984
  topK: zod.ZodOptional<zod.ZodNumber>;
1985
1985
  types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
1986
+ instruction: "instruction";
1986
1987
  fact: "fact";
1987
1988
  preference: "preference";
1988
1989
  event: "event";
1989
1990
  entity: "entity";
1990
- instruction: "instruction";
1991
1991
  }>>>;
1992
1992
  minImportance: zod.ZodOptional<zod.ZodNumber>;
1993
1993
  objectId: zod.ZodOptional<zod.ZodString>;
@@ -1998,11 +1998,11 @@ declare const apiContract: {
1998
1998
  id: zod.ZodString;
1999
1999
  content: zod.ZodString;
2000
2000
  type: zod.ZodEnum<{
2001
+ instruction: "instruction";
2001
2002
  fact: "fact";
2002
2003
  preference: "preference";
2003
2004
  event: "event";
2004
2005
  entity: "entity";
2005
- instruction: "instruction";
2006
2006
  }>;
2007
2007
  importance: zod.ZodNumber;
2008
2008
  objectId: zod.ZodOptional<zod.ZodString>;
@@ -2028,11 +2028,11 @@ declare const apiContract: {
2028
2028
  }, zod_v4_core.$strip>], "success">, Record<never, never>, Record<never, never>>;
2029
2029
  list: _orpc_contract.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
2030
2030
  types: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
2031
+ instruction: "instruction";
2031
2032
  fact: "fact";
2032
2033
  preference: "preference";
2033
2034
  event: "event";
2034
2035
  entity: "entity";
2035
- instruction: "instruction";
2036
2036
  }>>>;
2037
2037
  objectId: zod.ZodOptional<zod.ZodString>;
2038
2038
  offset: zod.ZodOptional<zod.ZodNumber>;
@@ -2044,11 +2044,11 @@ declare const apiContract: {
2044
2044
  id: zod.ZodString;
2045
2045
  content: zod.ZodString;
2046
2046
  type: zod.ZodEnum<{
2047
+ instruction: "instruction";
2047
2048
  fact: "fact";
2048
2049
  preference: "preference";
2049
2050
  event: "event";
2050
2051
  entity: "entity";
2051
- instruction: "instruction";
2052
2052
  }>;
2053
2053
  importance: zod.ZodNumber;
2054
2054
  objectId: zod.ZodOptional<zod.ZodString>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@h-ai/api-contract",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.21",
4
+ "version": "1.0.0-beta.22",
5
5
  "description": "Hai Framework public API contracts powered by oRPC and Zod.",
6
6
  "license": "Apache-2.0",
7
7
  "exports": {
@@ -43,8 +43,8 @@
43
43
  "node": "^22.23.4 || ^24.22.1 || ^26.12.1"
44
44
  },
45
45
  "dependencies": {
46
- "@h-ai/core": "1.0.0-beta.21",
47
- "@h-ai/storage": "1.0.0-beta.21",
46
+ "@h-ai/core": "1.0.0-beta.22",
47
+ "@h-ai/storage": "1.0.0-beta.22",
48
48
  "@orpc/contract": "^1.16.2",
49
49
  "zod": "^4.6.7"
50
50
  },