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

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";
428
427
  fact: "fact";
429
428
  preference: "preference";
430
429
  event: "event";
431
430
  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";
443
442
  fact: "fact";
444
443
  preference: "preference";
445
444
  event: "event";
446
445
  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";
473
472
  fact: "fact";
474
473
  preference: "preference";
475
474
  event: "event";
476
475
  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";
489
488
  fact: "fact";
490
489
  preference: "preference";
491
490
  event: "event";
492
491
  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";
1059
1058
  fact: "fact";
1060
1059
  preference: "preference";
1061
1060
  event: "event";
1062
1061
  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";
1087
1086
  fact: "fact";
1088
1087
  preference: "preference";
1089
1088
  event: "event";
1090
1089
  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";
1116
1115
  fact: "fact";
1117
1116
  preference: "preference";
1118
1117
  event: "event";
1119
1118
  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";
1152
1151
  fact: "fact";
1153
1152
  preference: "preference";
1154
1153
  event: "event";
1155
1154
  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";
1178
1177
  fact: "fact";
1179
1178
  preference: "preference";
1180
1179
  event: "event";
1181
1180
  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";
1216
1215
  fact: "fact";
1217
1216
  preference: "preference";
1218
1217
  event: "event";
1219
1218
  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";
1987
1986
  fact: "fact";
1988
1987
  preference: "preference";
1989
1988
  event: "event";
1990
1989
  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";
2002
2001
  fact: "fact";
2003
2002
  preference: "preference";
2004
2003
  event: "event";
2005
2004
  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";
2032
2031
  fact: "fact";
2033
2032
  preference: "preference";
2034
2033
  event: "event";
2035
2034
  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";
2048
2047
  fact: "fact";
2049
2048
  preference: "preference";
2050
2049
  event: "event";
2051
2050
  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.20",
4
+ "version": "1.0.0-beta.21",
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.20",
47
- "@h-ai/storage": "1.0.0-beta.20",
46
+ "@h-ai/core": "1.0.0-beta.21",
47
+ "@h-ai/storage": "1.0.0-beta.21",
48
48
  "@orpc/contract": "^1.16.2",
49
49
  "zod": "^4.6.7"
50
50
  },