@indexnetwork/protocol 5.4.0-rc.374.1 → 6.0.0-rc.375.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.
@@ -74,12 +74,12 @@ export declare const FrameResponseSchema: z.ZodObject<{
74
74
  name: z.ZodString;
75
75
  evidence: z.ZodString;
76
76
  }, "strip", z.ZodTypeAny, {
77
- type: "location" | "event" | "organization" | "other" | "person" | "product";
78
77
  name: string;
78
+ type: "location" | "event" | "organization" | "other" | "person" | "product";
79
79
  evidence: string;
80
80
  }, {
81
- type: "location" | "event" | "organization" | "other" | "person" | "product";
82
81
  name: string;
82
+ type: "location" | "event" | "organization" | "other" | "person" | "product";
83
83
  evidence: string;
84
84
  }>, "many">;
85
85
  domainVocabulary: z.ZodArray<z.ZodObject<{
@@ -107,8 +107,8 @@ export declare const FrameResponseSchema: z.ZodObject<{
107
107
  evidence: string;
108
108
  }[];
109
109
  namedEntities: {
110
- type: "location" | "event" | "organization" | "other" | "person" | "product";
111
110
  name: string;
111
+ type: "location" | "event" | "organization" | "other" | "person" | "product";
112
112
  evidence: string;
113
113
  }[];
114
114
  domainVocabulary: {
@@ -130,8 +130,8 @@ export declare const FrameResponseSchema: z.ZodObject<{
130
130
  evidence: string;
131
131
  }[];
132
132
  namedEntities: {
133
- type: "location" | "event" | "organization" | "other" | "person" | "product";
134
133
  name: string;
134
+ type: "location" | "event" | "organization" | "other" | "person" | "product";
135
135
  evidence: string;
136
136
  }[];
137
137
  domainVocabulary: {
@@ -155,8 +155,8 @@ export declare const FrameResponseSchema: z.ZodObject<{
155
155
  evidence: string;
156
156
  }[];
157
157
  namedEntities: {
158
- type: "location" | "event" | "organization" | "other" | "person" | "product";
159
158
  name: string;
159
+ type: "location" | "event" | "organization" | "other" | "person" | "product";
160
160
  evidence: string;
161
161
  }[];
162
162
  domainVocabulary: {
@@ -180,8 +180,8 @@ export declare const FrameResponseSchema: z.ZodObject<{
180
180
  evidence: string;
181
181
  }[];
182
182
  namedEntities: {
183
- type: "location" | "event" | "organization" | "other" | "person" | "product";
184
183
  name: string;
184
+ type: "location" | "event" | "organization" | "other" | "person" | "product";
185
185
  evidence: string;
186
186
  }[];
187
187
  domainVocabulary: {
@@ -42,7 +42,7 @@ export declare const DiscoveryNegotiationDigestSchema: z.ZodObject<{
42
42
  counterpartyHint: string;
43
43
  indexContext: string;
44
44
  outcomeRole: "opportunity" | "no-opportunity";
45
- outcomeReason: "stalled" | "rejected" | "timeout" | "turn_cap" | "screened_out" | null;
45
+ outcomeReason: "timeout" | "stalled" | "rejected" | "turn_cap" | "screened_out" | null;
46
46
  keyTake: string;
47
47
  }, {
48
48
  suggestedRoles: {
@@ -50,7 +50,7 @@ export declare const DiscoveryNegotiationDigestSchema: z.ZodObject<{
50
50
  otherUser: "agent" | "patient" | "peer";
51
51
  } | null;
52
52
  outcomeRole: "opportunity" | "no-opportunity";
53
- outcomeReason: "stalled" | "rejected" | "timeout" | "turn_cap" | "screened_out" | null;
53
+ outcomeReason: "timeout" | "stalled" | "rejected" | "turn_cap" | "screened_out" | null;
54
54
  counterpartyHint?: unknown;
55
55
  indexContext?: unknown;
56
56
  keyTake?: unknown;
@@ -15,11 +15,11 @@ export declare const QuestionOptionSchema: z.ZodObject<{
15
15
  /** Explains the consequence of choosing this option, not just its definition. */
16
16
  description: z.ZodString;
17
17
  }, "strip", z.ZodTypeAny, {
18
- description: string;
19
18
  label: string;
20
- }, {
21
19
  description: string;
20
+ }, {
22
21
  label: string;
22
+ description: string;
23
23
  }>;
24
24
  export declare const QuestionSchema: z.ZodObject<{
25
25
  /** ≤12 chars. Noun of the decision domain — e.g. "Stage", "Timing", "Role". */
@@ -33,11 +33,11 @@ export declare const QuestionSchema: z.ZodObject<{
33
33
  /** Explains the consequence of choosing this option, not just its definition. */
34
34
  description: z.ZodString;
35
35
  }, "strip", z.ZodTypeAny, {
36
- description: string;
37
36
  label: string;
38
- }, {
39
37
  description: string;
38
+ }, {
40
39
  label: string;
40
+ description: string;
41
41
  }>, "many">;
42
42
  /** True when options are not mutually exclusive (priorities, bundles). */
43
43
  multiSelect: z.ZodBoolean;
@@ -48,20 +48,20 @@ export declare const QuestionSchema: z.ZodObject<{
48
48
  */
49
49
  evidence: z.ZodOptional<z.ZodString>;
50
50
  }, "strip", z.ZodTypeAny, {
51
+ prompt: string;
51
52
  options: {
52
- description: string;
53
53
  label: string;
54
+ description: string;
54
55
  }[];
55
- prompt: string;
56
56
  title: string;
57
57
  multiSelect: boolean;
58
58
  evidence?: string | undefined;
59
59
  }, {
60
+ prompt: string;
60
61
  options: {
61
- description: string;
62
62
  label: string;
63
+ description: string;
63
64
  }[];
64
- prompt: string;
65
65
  title: string;
66
66
  multiSelect: boolean;
67
67
  evidence?: string | undefined;
@@ -81,11 +81,11 @@ export declare const QuestionWithStrategySchema: z.ZodObject<{
81
81
  /** Explains the consequence of choosing this option, not just its definition. */
82
82
  description: z.ZodString;
83
83
  }, "strip", z.ZodTypeAny, {
84
- description: string;
85
84
  label: string;
86
- }, {
87
85
  description: string;
86
+ }, {
88
87
  label: string;
88
+ description: string;
89
89
  }>, "many">;
90
90
  /** True when options are not mutually exclusive (priorities, bundles). */
91
91
  multiSelect: z.ZodBoolean;
@@ -100,22 +100,22 @@ export declare const QuestionWithStrategySchema: z.ZodObject<{
100
100
  /** QUD repair category, or null when the question is not an underspecification repair. */
101
101
  underspecificationType: z.ZodNullable<z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>>;
102
102
  }, "strip", z.ZodTypeAny, {
103
+ prompt: string;
103
104
  options: {
104
- description: string;
105
105
  label: string;
106
+ description: string;
106
107
  }[];
107
- prompt: string;
108
108
  title: string;
109
109
  multiSelect: boolean;
110
110
  strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
111
111
  underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
112
112
  evidence?: string | undefined;
113
113
  }, {
114
+ prompt: string;
114
115
  options: {
115
- description: string;
116
116
  label: string;
117
+ description: string;
117
118
  }[];
118
- prompt: string;
119
119
  title: string;
120
120
  multiSelect: boolean;
121
121
  strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
@@ -135,11 +135,11 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
135
135
  /** Explains the consequence of choosing this option, not just its definition. */
136
136
  description: z.ZodString;
137
137
  }, "strip", z.ZodTypeAny, {
138
- description: string;
139
138
  label: string;
140
- }, {
141
139
  description: string;
140
+ }, {
142
141
  label: string;
142
+ description: string;
143
143
  }>, "many">;
144
144
  /** True when options are not mutually exclusive (priorities, bundles). */
145
145
  multiSelect: z.ZodBoolean;
@@ -154,22 +154,22 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
154
154
  /** QUD repair category, or null when the question is not an underspecification repair. */
155
155
  underspecificationType: z.ZodNullable<z.ZodEnum<["missing_constituent", "missing_constraint", "open_alternative_set"]>>;
156
156
  }, "strip", z.ZodTypeAny, {
157
+ prompt: string;
157
158
  options: {
158
- description: string;
159
159
  label: string;
160
+ description: string;
160
161
  }[];
161
- prompt: string;
162
162
  title: string;
163
163
  multiSelect: boolean;
164
164
  strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
165
165
  underspecificationType: "missing_constituent" | "missing_constraint" | "open_alternative_set" | null;
166
166
  evidence?: string | undefined;
167
167
  }, {
168
+ prompt: string;
168
169
  options: {
169
- description: string;
170
170
  label: string;
171
+ description: string;
171
172
  }[];
172
- prompt: string;
173
173
  title: string;
174
174
  multiSelect: boolean;
175
175
  strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
@@ -178,11 +178,11 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
178
178
  }>, "many">;
179
179
  }, "strip", z.ZodTypeAny, {
180
180
  questions: {
181
+ prompt: string;
181
182
  options: {
182
- description: string;
183
183
  label: string;
184
+ description: string;
184
185
  }[];
185
- prompt: string;
186
186
  title: string;
187
187
  multiSelect: boolean;
188
188
  strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
@@ -191,11 +191,11 @@ export declare const QuestionGeneratorResponseSchema: z.ZodObject<{
191
191
  }[];
192
192
  }, {
193
193
  questions: {
194
+ prompt: string;
194
195
  options: {
195
- description: string;
196
196
  label: string;
197
+ description: string;
197
198
  }[];
198
- prompt: string;
199
199
  title: string;
200
200
  multiSelect: boolean;
201
201
  strategy: "refine_intent" | "surface_missing_detail" | "open_adjacent_thread" | "reflective_summary" | "surface_emergent_knowledge";
@@ -492,9 +492,9 @@ export declare const QuestionPoolPushSchema: z.ZodObject<{
492
492
  failure: z.ZodOptional<z.ZodString>;
493
493
  }, "strip", z.ZodTypeAny, {
494
494
  source: "pool_discovery";
495
+ intentId: string;
495
496
  version: 1;
496
497
  recipientId: string;
497
- intentId: string;
498
498
  cycleKey: string;
499
499
  messageId: string;
500
500
  surfaces: ["personal_agent_badge", "negotiator_dm"];
@@ -506,9 +506,9 @@ export declare const QuestionPoolPushSchema: z.ZodObject<{
506
506
  failure?: string | undefined;
507
507
  }, {
508
508
  source: "pool_discovery";
509
+ intentId: string;
509
510
  version: 1;
510
511
  recipientId: string;
511
- intentId: string;
512
512
  cycleKey: string;
513
513
  messageId: string;
514
514
  surfaces: ["personal_agent_badge", "negotiator_dm"];
@@ -760,9 +760,9 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
760
760
  failure: z.ZodOptional<z.ZodString>;
761
761
  }, "strip", z.ZodTypeAny, {
762
762
  source: "pool_discovery";
763
+ intentId: string;
763
764
  version: 1;
764
765
  recipientId: string;
765
- intentId: string;
766
766
  cycleKey: string;
767
767
  messageId: string;
768
768
  surfaces: ["personal_agent_badge", "negotiator_dm"];
@@ -774,9 +774,9 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
774
774
  failure?: string | undefined;
775
775
  }, {
776
776
  source: "pool_discovery";
777
+ intentId: string;
777
778
  version: 1;
778
779
  recipientId: string;
779
- intentId: string;
780
780
  cycleKey: string;
781
781
  messageId: string;
782
782
  surfaces: ["personal_agent_badge", "negotiator_dm"];
@@ -792,15 +792,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
792
792
  /** Authoritative successful-delivery ledger timestamp. Internal only. */
793
793
  pushedAt: z.ZodOptional<z.ZodString>;
794
794
  }, "strip", z.ZodTypeAny, {
795
- mode: "intent" | "chat" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
795
+ mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
796
796
  sourceType: string;
797
797
  sourceId: string;
798
798
  timestamp: string;
799
799
  push?: {
800
800
  source: "pool_discovery";
801
+ intentId: string;
801
802
  version: 1;
802
803
  recipientId: string;
803
- intentId: string;
804
804
  cycleKey: string;
805
805
  messageId: string;
806
806
  surfaces: ["personal_agent_badge", "negotiator_dm"];
@@ -860,15 +860,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
860
860
  voidedReason?: "pool_drift" | "intent_edit" | undefined;
861
861
  pushedAt?: string | undefined;
862
862
  }, {
863
- mode: "intent" | "chat" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
863
+ mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
864
864
  sourceType: string;
865
865
  sourceId: string;
866
866
  timestamp: string;
867
867
  push?: {
868
868
  source: "pool_discovery";
869
+ intentId: string;
869
870
  version: 1;
870
871
  recipientId: string;
871
- intentId: string;
872
872
  cycleKey: string;
873
873
  messageId: string;
874
874
  surfaces: ["personal_agent_badge", "negotiator_dm"];
@@ -928,15 +928,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
928
928
  voidedReason?: "pool_drift" | "intent_edit" | undefined;
929
929
  pushedAt?: string | undefined;
930
930
  }>, {
931
- mode: "intent" | "chat" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
931
+ mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
932
932
  sourceType: string;
933
933
  sourceId: string;
934
934
  timestamp: string;
935
935
  push?: {
936
936
  source: "pool_discovery";
937
+ intentId: string;
937
938
  version: 1;
938
939
  recipientId: string;
939
- intentId: string;
940
940
  cycleKey: string;
941
941
  messageId: string;
942
942
  surfaces: ["personal_agent_badge", "negotiator_dm"];
@@ -996,15 +996,15 @@ export declare const QuestionDetectionSchema: z.ZodEffects<z.ZodObject<{
996
996
  voidedReason?: "pool_drift" | "intent_edit" | undefined;
997
997
  pushedAt?: string | undefined;
998
998
  }, {
999
- mode: "intent" | "chat" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
999
+ mode: "chat" | "intent" | "enrichment" | "discovery" | "negotiation" | "negotiation_inflight" | "pool_discovery";
1000
1000
  sourceType: string;
1001
1001
  sourceId: string;
1002
1002
  timestamp: string;
1003
1003
  push?: {
1004
1004
  source: "pool_discovery";
1005
+ intentId: string;
1005
1006
  version: 1;
1006
1007
  recipientId: string;
1007
- intentId: string;
1008
1008
  cycleKey: string;
1009
1009
  messageId: string;
1010
1010
  surfaces: ["personal_agent_badge", "negotiator_dm"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/protocol",
3
- "version": "5.4.0-rc.374.1",
3
+ "version": "6.0.0-rc.375.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",