@indexnetwork/protocol 13.0.0-rc.464.1 → 13.1.0-rc.465.1

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.
@@ -661,7 +661,15 @@ export declare const QuestionPoolPushSchema: z.ZodObject<{
661
661
  intentId: z.ZodString;
662
662
  cycleKey: z.ZodString;
663
663
  messageId: z.ZodString;
664
- surfaces: z.ZodTuple<[z.ZodLiteral<"personal_agent_badge">, z.ZodLiteral<"negotiator_dm">], null>;
664
+ /**
665
+ * Where a claimed push is delivered. The second slot names the negotiator
666
+ * surface: new claims write `negotiator_intent_chat` (the intent-pinned
667
+ * session). `negotiator_dm` is the legacy literal for rows persisted before
668
+ * the unscoped DM was removed — this schema is validated on read, so the
669
+ * union keeps those rows parsing instead of rejecting them. Read-compat
670
+ * only; nothing writes it.
671
+ */
672
+ surfaces: z.ZodTuple<[z.ZodLiteral<"personal_agent_badge">, z.ZodUnion<[z.ZodLiteral<"negotiator_intent_chat">, z.ZodLiteral<"negotiator_dm">]>], null>;
665
673
  claimedAt: z.ZodString;
666
674
  deliveryStatus: z.ZodEnum<["claimed", "delivered", "suppressed", "failed"]>;
667
675
  conversationId: z.ZodOptional<z.ZodString>;
@@ -675,7 +683,7 @@ export declare const QuestionPoolPushSchema: z.ZodObject<{
675
683
  intentId: string;
676
684
  cycleKey: string;
677
685
  messageId: string;
678
- surfaces: ["personal_agent_badge", "negotiator_dm"];
686
+ surfaces: ["personal_agent_badge", "negotiator_intent_chat" | "negotiator_dm"];
679
687
  claimedAt: string;
680
688
  deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
681
689
  conversationId?: string | undefined;
@@ -689,7 +697,7 @@ export declare const QuestionPoolPushSchema: z.ZodObject<{
689
697
  intentId: string;
690
698
  cycleKey: string;
691
699
  messageId: string;
692
- surfaces: ["personal_agent_badge", "negotiator_dm"];
700
+ surfaces: ["personal_agent_badge", "negotiator_intent_chat" | "negotiator_dm"];
693
701
  claimedAt: string;
694
702
  deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
695
703
  conversationId?: string | undefined;
@@ -1064,7 +1072,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
1064
1072
  intentId: z.ZodString;
1065
1073
  cycleKey: z.ZodString;
1066
1074
  messageId: z.ZodString;
1067
- surfaces: z.ZodTuple<[z.ZodLiteral<"personal_agent_badge">, z.ZodLiteral<"negotiator_dm">], null>;
1075
+ /**
1076
+ * Where a claimed push is delivered. The second slot names the negotiator
1077
+ * surface: new claims write `negotiator_intent_chat` (the intent-pinned
1078
+ * session). `negotiator_dm` is the legacy literal for rows persisted before
1079
+ * the unscoped DM was removed — this schema is validated on read, so the
1080
+ * union keeps those rows parsing instead of rejecting them. Read-compat
1081
+ * only; nothing writes it.
1082
+ */
1083
+ surfaces: z.ZodTuple<[z.ZodLiteral<"personal_agent_badge">, z.ZodUnion<[z.ZodLiteral<"negotiator_intent_chat">, z.ZodLiteral<"negotiator_dm">]>], null>;
1068
1084
  claimedAt: z.ZodString;
1069
1085
  deliveryStatus: z.ZodEnum<["claimed", "delivered", "suppressed", "failed"]>;
1070
1086
  conversationId: z.ZodOptional<z.ZodString>;
@@ -1078,7 +1094,7 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
1078
1094
  intentId: string;
1079
1095
  cycleKey: string;
1080
1096
  messageId: string;
1081
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1097
+ surfaces: ["personal_agent_badge", "negotiator_intent_chat" | "negotiator_dm"];
1082
1098
  claimedAt: string;
1083
1099
  deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1084
1100
  conversationId?: string | undefined;
@@ -1092,7 +1108,7 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
1092
1108
  intentId: string;
1093
1109
  cycleKey: string;
1094
1110
  messageId: string;
1095
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1111
+ surfaces: ["personal_agent_badge", "negotiator_intent_chat" | "negotiator_dm"];
1096
1112
  claimedAt: string;
1097
1113
  deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1098
1114
  conversationId?: string | undefined;
@@ -1116,7 +1132,7 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
1116
1132
  intentId: string;
1117
1133
  cycleKey: string;
1118
1134
  messageId: string;
1119
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1135
+ surfaces: ["personal_agent_badge", "negotiator_intent_chat" | "negotiator_dm"];
1120
1136
  claimedAt: string;
1121
1137
  deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1122
1138
  conversationId?: string | undefined;
@@ -1210,7 +1226,7 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
1210
1226
  intentId: string;
1211
1227
  cycleKey: string;
1212
1228
  messageId: string;
1213
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1229
+ surfaces: ["personal_agent_badge", "negotiator_intent_chat" | "negotiator_dm"];
1214
1230
  claimedAt: string;
1215
1231
  deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1216
1232
  conversationId?: string | undefined;
@@ -1304,7 +1320,7 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
1304
1320
  intentId: string;
1305
1321
  cycleKey: string;
1306
1322
  messageId: string;
1307
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1323
+ surfaces: ["personal_agent_badge", "negotiator_intent_chat" | "negotiator_dm"];
1308
1324
  claimedAt: string;
1309
1325
  deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1310
1326
  conversationId?: string | undefined;
@@ -1398,7 +1414,7 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
1398
1414
  intentId: string;
1399
1415
  cycleKey: string;
1400
1416
  messageId: string;
1401
- surfaces: ["personal_agent_badge", "negotiator_dm"];
1417
+ surfaces: ["personal_agent_badge", "negotiator_intent_chat" | "negotiator_dm"];
1402
1418
  claimedAt: string;
1403
1419
  deliveryStatus: "failed" | "claimed" | "delivered" | "suppressed";
1404
1420
  conversationId?: string | undefined;
@@ -225,9 +225,17 @@ export const QuestionPoolPushSchema = z.object({
225
225
  intentId: z.string().min(1),
226
226
  cycleKey: z.string().min(1),
227
227
  messageId: z.string().min(1),
228
+ /**
229
+ * Where a claimed push is delivered. The second slot names the negotiator
230
+ * surface: new claims write `negotiator_intent_chat` (the intent-pinned
231
+ * session). `negotiator_dm` is the legacy literal for rows persisted before
232
+ * the unscoped DM was removed — this schema is validated on read, so the
233
+ * union keeps those rows parsing instead of rejecting them. Read-compat
234
+ * only; nothing writes it.
235
+ */
228
236
  surfaces: z.tuple([
229
237
  z.literal("personal_agent_badge"),
230
- z.literal("negotiator_dm"),
238
+ z.union([z.literal("negotiator_intent_chat"), z.literal("negotiator_dm")]),
231
239
  ]),
232
240
  claimedAt: z.string().min(1),
233
241
  deliveryStatus: z.enum(["claimed", "delivered", "suppressed", "failed"]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/protocol",
3
- "version": "13.0.0-rc.464.1",
3
+ "version": "13.1.0-rc.465.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",