rivet-design 0.18.2 → 0.18.3

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.
Files changed (213) hide show
  1. package/README.md +1 -1
  2. package/README.npm.md +1 -1
  3. package/dist/agent-variants/SessionStore.d.ts.map +1 -1
  4. package/dist/agent-variants/SessionStore.js +7 -0
  5. package/dist/agent-variants/SessionStore.js.map +1 -1
  6. package/dist/agent-variants/WorktreeOrchestrator.d.ts +5 -1
  7. package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
  8. package/dist/agent-variants/WorktreeOrchestrator.js +193 -39
  9. package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
  10. package/dist/cli/client.d.ts.map +1 -1
  11. package/dist/cli/client.js +11 -3
  12. package/dist/cli/client.js.map +1 -1
  13. package/dist/cli/commands/generationPreflight.d.ts +12 -0
  14. package/dist/cli/commands/generationPreflight.d.ts.map +1 -0
  15. package/dist/cli/commands/generationPreflight.js +40 -0
  16. package/dist/cli/commands/generationPreflight.js.map +1 -0
  17. package/dist/cli/commands/mcpServe.d.ts.map +1 -1
  18. package/dist/cli/commands/mcpServe.js +54 -12
  19. package/dist/cli/commands/mcpServe.js.map +1 -1
  20. package/dist/cli/commands/open.d.ts.map +1 -1
  21. package/dist/cli/commands/open.js +110 -76
  22. package/dist/cli/commands/open.js.map +1 -1
  23. package/dist/cli/commands/profile.d.ts.map +1 -1
  24. package/dist/cli/commands/profile.js +75 -2
  25. package/dist/cli/commands/profile.js.map +1 -1
  26. package/dist/cli/commands/serve.d.ts.map +1 -1
  27. package/dist/cli/commands/serve.js +20 -0
  28. package/dist/cli/commands/serve.js.map +1 -1
  29. package/dist/cli/commands/shared.d.ts.map +1 -1
  30. package/dist/cli/commands/shared.js +2 -2
  31. package/dist/cli/commands/shared.js.map +1 -1
  32. package/dist/cli/commands/stop.d.ts.map +1 -1
  33. package/dist/cli/commands/stop.js +29 -5
  34. package/dist/cli/commands/stop.js.map +1 -1
  35. package/dist/cli/commands/variants.d.ts +8 -1
  36. package/dist/cli/commands/variants.d.ts.map +1 -1
  37. package/dist/cli/commands/variants.js +13 -4
  38. package/dist/cli/commands/variants.js.map +1 -1
  39. package/dist/cli/referenceOnboarding.d.ts +3 -0
  40. package/dist/cli/referenceOnboarding.d.ts.map +1 -0
  41. package/dist/cli/referenceOnboarding.js +82 -0
  42. package/dist/cli/referenceOnboarding.js.map +1 -0
  43. package/dist/cli/router.d.ts.map +1 -1
  44. package/dist/cli/router.js +7 -7
  45. package/dist/cli/router.js.map +1 -1
  46. package/dist/cli/serverHandshake.d.ts +5 -4
  47. package/dist/cli/serverHandshake.d.ts.map +1 -1
  48. package/dist/cli/serverHandshake.js +66 -57
  49. package/dist/cli/serverHandshake.js.map +1 -1
  50. package/dist/cli/serverShutdown.d.ts +4 -0
  51. package/dist/cli/serverShutdown.d.ts.map +1 -0
  52. package/dist/cli/serverShutdown.js +20 -0
  53. package/dist/cli/serverShutdown.js.map +1 -0
  54. package/dist/cli/serverUnavailable.d.ts +1 -1
  55. package/dist/cli/serverUnavailable.d.ts.map +1 -1
  56. package/dist/cli/serverUnavailable.js +4 -0
  57. package/dist/cli/serverUnavailable.js.map +1 -1
  58. package/dist/cli/serverVersion.d.ts +1 -1
  59. package/dist/cli/serverVersion.d.ts.map +1 -1
  60. package/dist/cli/serverVersion.js +5 -23
  61. package/dist/cli/serverVersion.js.map +1 -1
  62. package/dist/install/codexSkill.d.ts +13 -0
  63. package/dist/install/codexSkill.d.ts.map +1 -0
  64. package/dist/install/codexSkill.js +64 -0
  65. package/dist/install/codexSkill.js.map +1 -0
  66. package/dist/install/harnesses.d.ts.map +1 -1
  67. package/dist/install/harnesses.js +25 -4
  68. package/dist/install/harnesses.js.map +1 -1
  69. package/dist/routes/agentVariants.d.ts +2 -1
  70. package/dist/routes/agentVariants.d.ts.map +1 -1
  71. package/dist/routes/agentVariants.js +26 -28
  72. package/dist/routes/agentVariants.js.map +1 -1
  73. package/dist/routes/cli.d.ts +3 -0
  74. package/dist/routes/cli.d.ts.map +1 -1
  75. package/dist/routes/cli.js +66 -9
  76. package/dist/routes/cli.js.map +1 -1
  77. package/dist/routes/library/profiles.d.ts.map +1 -1
  78. package/dist/routes/library/profiles.js +2 -0
  79. package/dist/routes/library/profiles.js.map +1 -1
  80. package/dist/routes/library/referenceOnboarding.d.ts +4 -0
  81. package/dist/routes/library/referenceOnboarding.d.ts.map +1 -0
  82. package/dist/routes/library/referenceOnboarding.js +94 -0
  83. package/dist/routes/library/referenceOnboarding.js.map +1 -0
  84. package/dist/routes/runtimeAdmission.d.ts +13 -0
  85. package/dist/routes/runtimeAdmission.d.ts.map +1 -0
  86. package/dist/routes/runtimeAdmission.js +42 -0
  87. package/dist/routes/runtimeAdmission.js.map +1 -0
  88. package/dist/server.d.ts +1 -0
  89. package/dist/server.d.ts.map +1 -1
  90. package/dist/server.js +7 -4
  91. package/dist/server.js.map +1 -1
  92. package/dist/services/IntegrationsClient.d.ts +77 -0
  93. package/dist/services/IntegrationsClient.d.ts.map +1 -1
  94. package/dist/services/IntegrationsClient.js +123 -6
  95. package/dist/services/IntegrationsClient.js.map +1 -1
  96. package/dist/services/ProjectImport.d.ts.map +1 -1
  97. package/dist/services/ProjectImport.js +5 -12
  98. package/dist/services/ProjectImport.js.map +1 -1
  99. package/dist/services/RuntimeAdmission.d.ts +31 -0
  100. package/dist/services/RuntimeAdmission.d.ts.map +1 -0
  101. package/dist/services/RuntimeAdmission.js +77 -0
  102. package/dist/services/RuntimeAdmission.js.map +1 -0
  103. package/dist/services/TelemetryService.d.ts +1 -1
  104. package/dist/services/TelemetryService.d.ts.map +1 -1
  105. package/dist/services/TelemetryService.js.map +1 -1
  106. package/dist/services/TreeStore.d.ts +7 -0
  107. package/dist/services/TreeStore.d.ts.map +1 -1
  108. package/dist/services/TreeStore.js +18 -0
  109. package/dist/services/TreeStore.js.map +1 -1
  110. package/dist/services/profiles/DesignProfiles.d.ts +231 -16
  111. package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
  112. package/dist/services/profiles/DesignProfiles.js +140 -0
  113. package/dist/services/profiles/DesignProfiles.js.map +1 -1
  114. package/dist/services/profiles/ProfileImports.d.ts +3 -3
  115. package/dist/services/profiles/ProfileImports.d.ts.map +1 -1
  116. package/dist/services/profiles/ProfileImports.js +25 -1
  117. package/dist/services/profiles/ProfileImports.js.map +1 -1
  118. package/dist/services/profiles/ProfilePlanning.d.ts +96 -0
  119. package/dist/services/profiles/ProfilePlanning.d.ts.map +1 -0
  120. package/dist/services/profiles/ProfilePlanning.js +187 -0
  121. package/dist/services/profiles/ProfilePlanning.js.map +1 -0
  122. package/dist/services/profiles/ReferenceReader.d.ts +75 -0
  123. package/dist/services/profiles/ReferenceReader.d.ts.map +1 -0
  124. package/dist/services/profiles/ReferenceReader.js +97 -0
  125. package/dist/services/profiles/ReferenceReader.js.map +1 -0
  126. package/dist/services/profiles/analysisBatch.js +1 -1
  127. package/dist/services/profiles/analysisBatch.js.map +1 -1
  128. package/dist/services/profiles/boardPage.d.ts +2 -1
  129. package/dist/services/profiles/boardPage.d.ts.map +1 -1
  130. package/dist/services/profiles/boardPage.js.map +1 -1
  131. package/dist/services/profiles/cosmosPage.d.ts +10 -0
  132. package/dist/services/profiles/cosmosPage.d.ts.map +1 -0
  133. package/dist/services/profiles/cosmosPage.js +104 -0
  134. package/dist/services/profiles/cosmosPage.js.map +1 -0
  135. package/dist/services/runtimeActivity.d.ts +3 -0
  136. package/dist/services/runtimeActivity.d.ts.map +1 -0
  137. package/dist/services/runtimeActivity.js +70 -0
  138. package/dist/services/runtimeActivity.js.map +1 -0
  139. package/dist/services/runtimeVersion.d.ts +4 -0
  140. package/dist/services/runtimeVersion.d.ts.map +1 -0
  141. package/dist/services/runtimeVersion.js +30 -0
  142. package/dist/services/runtimeVersion.js.map +1 -0
  143. package/dist/storage/library/ProjectRuntimeRecords.d.ts +15 -0
  144. package/dist/storage/library/ProjectRuntimeRecords.d.ts.map +1 -0
  145. package/dist/storage/library/ProjectRuntimeRecords.js +66 -0
  146. package/dist/storage/library/ProjectRuntimeRecords.js.map +1 -0
  147. package/dist/storage/library/migrations.d.ts +1 -0
  148. package/dist/storage/library/migrations.d.ts.map +1 -1
  149. package/dist/storage/library/migrations.js +9 -1
  150. package/dist/storage/library/migrations.js.map +1 -1
  151. package/dist/storage/library/schema/projectRuntime.d.ts +72 -0
  152. package/dist/storage/library/schema/projectRuntime.d.ts.map +1 -0
  153. package/dist/storage/library/schema/projectRuntime.js +16 -0
  154. package/dist/storage/library/schema/projectRuntime.js.map +1 -0
  155. package/dist/storage/profiles/ProfilePlans.d.ts +320 -0
  156. package/dist/storage/profiles/ProfilePlans.d.ts.map +1 -0
  157. package/dist/storage/profiles/ProfilePlans.js +256 -0
  158. package/dist/storage/profiles/ProfilePlans.js.map +1 -0
  159. package/dist/storage/profiles/ProfileRecords.d.ts +71 -10
  160. package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -1
  161. package/dist/storage/profiles/ProfileRecords.js +152 -62
  162. package/dist/storage/profiles/ProfileRecords.js.map +1 -1
  163. package/dist/storage/profiles/migrations.d.ts +2 -2
  164. package/dist/storage/profiles/migrations.d.ts.map +1 -1
  165. package/dist/storage/profiles/migrations.js +14 -0
  166. package/dist/storage/profiles/migrations.js.map +1 -1
  167. package/dist/storage/profiles/planSchema.d.ts +347 -0
  168. package/dist/storage/profiles/planSchema.d.ts.map +1 -0
  169. package/dist/storage/profiles/planSchema.js +34 -0
  170. package/dist/storage/profiles/planSchema.js.map +1 -0
  171. package/dist/storage/profiles/schema.d.ts +59 -4
  172. package/dist/storage/profiles/schema.d.ts.map +1 -1
  173. package/dist/storage/profiles/schema.js +14 -1
  174. package/dist/storage/profiles/schema.js.map +1 -1
  175. package/dist/types/cosmos-profile.d.ts +130 -0
  176. package/dist/types/cosmos-profile.d.ts.map +1 -0
  177. package/dist/types/cosmos-profile.js +27 -0
  178. package/dist/types/cosmos-profile.js.map +1 -0
  179. package/dist/types/cosmos.d.ts +330 -0
  180. package/dist/types/cosmos.d.ts.map +1 -0
  181. package/dist/types/cosmos.js +157 -0
  182. package/dist/types/cosmos.js.map +1 -0
  183. package/dist/types/design-profile.d.ts +21 -16
  184. package/dist/types/design-profile.d.ts.map +1 -1
  185. package/dist/types/design-profile.js +6 -1
  186. package/dist/types/design-profile.js.map +1 -1
  187. package/dist/types/reference-connectors.d.ts +226 -0
  188. package/dist/types/reference-connectors.d.ts.map +1 -0
  189. package/dist/types/reference-connectors.js +92 -0
  190. package/dist/types/reference-connectors.js.map +1 -0
  191. package/dist/types/reference-onboarding.d.ts +1065 -0
  192. package/dist/types/reference-onboarding.d.ts.map +1 -0
  193. package/dist/types/reference-onboarding.js +108 -0
  194. package/dist/types/reference-onboarding.js.map +1 -0
  195. package/dist/types/reference-pages.d.ts +168 -0
  196. package/dist/types/reference-pages.d.ts.map +1 -0
  197. package/dist/types/reference-pages.js +26 -0
  198. package/dist/types/reference-pages.js.map +1 -0
  199. package/dist/types/x-bookmarks.d.ts +8 -8
  200. package/dist/utils/skills/cli-guidance.d.ts +1 -1
  201. package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
  202. package/dist/utils/skills/cli-guidance.js +6 -2
  203. package/dist/utils/skills/cli-guidance.js.map +1 -1
  204. package/dist/utils/skills/codex-skill.d.ts +3 -0
  205. package/dist/utils/skills/codex-skill.d.ts.map +1 -0
  206. package/dist/utils/skills/codex-skill.js +30 -0
  207. package/dist/utils/skills/codex-skill.js.map +1 -0
  208. package/package.json +2 -1
  209. package/src/ui/dist/assets/{LibraryApp-NAzSe5xc.js → LibraryApp-DFhxcf--.js} +1 -1
  210. package/src/ui/dist/assets/main-Ayzl0f1H.css +1 -0
  211. package/src/ui/dist/assets/{main-D7LJLJwW.js → main-D5n04THm.js} +78 -78
  212. package/src/ui/dist/index.html +2 -2
  213. package/src/ui/dist/assets/main-f2uWt6ZY.css +0 -1
@@ -0,0 +1,1065 @@
1
+ import { z } from 'zod';
2
+ export declare const REFERENCE_COLLECTION_LIMIT = 1000;
3
+ export declare const REFERENCE_PLAN_LIMIT = 10000;
4
+ export declare const REFERENCE_PLAN_BYTES: number;
5
+ export declare const REFERENCE_PLAN_LIFETIME_MS: number;
6
+ export declare const REFERENCE_REMINDER_DELAY_MS: number;
7
+ export declare const REFERENCE_USAGE_DISCLOSURE = "Rivet will download the approved references and use the selected agent runtime to analyze them. Analysis sends reference content to that runtime\u2019s model service and consumes its usage allowance. References and searchable descriptions are stored locally for reuse across projects. Future reference selection can also consume agent usage. Token and duration estimates are unavailable.";
8
+ export declare const ReferenceDiscoveryInputSchema: z.ZodObject<{
9
+ profile: z.ZodEffects<z.ZodObject<{
10
+ id: z.ZodString;
11
+ username: z.ZodString;
12
+ title: z.ZodString;
13
+ url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ url: string;
17
+ title: string;
18
+ username: string;
19
+ }, {
20
+ id: string;
21
+ url: string;
22
+ title: string;
23
+ username: string;
24
+ }>, {
25
+ id: string;
26
+ url: string;
27
+ title: string;
28
+ username: string;
29
+ }, {
30
+ id: string;
31
+ url: string;
32
+ title: string;
33
+ username: string;
34
+ }>;
35
+ collections: z.ZodArray<z.ZodObject<{
36
+ id: z.ZodString;
37
+ title: z.ZodString;
38
+ description: z.ZodNullable<z.ZodString>;
39
+ url: z.ZodNullable<z.ZodString>;
40
+ total: z.ZodNullable<z.ZodNumber>;
41
+ parentId: z.ZodNullable<z.ZodString>;
42
+ children: z.ZodArray<z.ZodString, "many">;
43
+ }, "strip", z.ZodTypeAny, {
44
+ id: string;
45
+ url: string | null;
46
+ title: string;
47
+ description: string | null;
48
+ children: string[];
49
+ total: number | null;
50
+ parentId: string | null;
51
+ }, {
52
+ id: string;
53
+ url: string | null;
54
+ title: string;
55
+ description: string | null;
56
+ children: string[];
57
+ total: number | null;
58
+ parentId: string | null;
59
+ }>, "many">;
60
+ total: z.ZodNumber;
61
+ }, "strip", z.ZodTypeAny, {
62
+ total: number;
63
+ collections: {
64
+ id: string;
65
+ url: string | null;
66
+ title: string;
67
+ description: string | null;
68
+ children: string[];
69
+ total: number | null;
70
+ parentId: string | null;
71
+ }[];
72
+ profile: {
73
+ id: string;
74
+ url: string;
75
+ title: string;
76
+ username: string;
77
+ };
78
+ }, {
79
+ total: number;
80
+ collections: {
81
+ id: string;
82
+ url: string | null;
83
+ title: string;
84
+ description: string | null;
85
+ children: string[];
86
+ total: number | null;
87
+ parentId: string | null;
88
+ }[];
89
+ profile: {
90
+ id: string;
91
+ url: string;
92
+ title: string;
93
+ username: string;
94
+ };
95
+ }>;
96
+ export declare const ReferenceDiscoverySchema: z.ZodObject<{
97
+ profile: z.ZodEffects<z.ZodObject<{
98
+ id: z.ZodString;
99
+ username: z.ZodString;
100
+ title: z.ZodString;
101
+ url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ id: string;
104
+ url: string;
105
+ title: string;
106
+ username: string;
107
+ }, {
108
+ id: string;
109
+ url: string;
110
+ title: string;
111
+ username: string;
112
+ }>, {
113
+ id: string;
114
+ url: string;
115
+ title: string;
116
+ username: string;
117
+ }, {
118
+ id: string;
119
+ url: string;
120
+ title: string;
121
+ username: string;
122
+ }>;
123
+ collections: z.ZodArray<z.ZodObject<{
124
+ id: z.ZodString;
125
+ title: z.ZodString;
126
+ description: z.ZodNullable<z.ZodString>;
127
+ url: z.ZodNullable<z.ZodString>;
128
+ total: z.ZodNullable<z.ZodNumber>;
129
+ parentId: z.ZodNullable<z.ZodString>;
130
+ children: z.ZodArray<z.ZodString, "many">;
131
+ }, "strip", z.ZodTypeAny, {
132
+ id: string;
133
+ url: string | null;
134
+ title: string;
135
+ description: string | null;
136
+ children: string[];
137
+ total: number | null;
138
+ parentId: string | null;
139
+ }, {
140
+ id: string;
141
+ url: string | null;
142
+ title: string;
143
+ description: string | null;
144
+ children: string[];
145
+ total: number | null;
146
+ parentId: string | null;
147
+ }>, "many">;
148
+ total: z.ZodNumber;
149
+ } & {
150
+ id: z.ZodString;
151
+ createdAt: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ id: string;
154
+ total: number;
155
+ collections: {
156
+ id: string;
157
+ url: string | null;
158
+ title: string;
159
+ description: string | null;
160
+ children: string[];
161
+ total: number | null;
162
+ parentId: string | null;
163
+ }[];
164
+ profile: {
165
+ id: string;
166
+ url: string;
167
+ title: string;
168
+ username: string;
169
+ };
170
+ createdAt: string;
171
+ }, {
172
+ id: string;
173
+ total: number;
174
+ collections: {
175
+ id: string;
176
+ url: string | null;
177
+ title: string;
178
+ description: string | null;
179
+ children: string[];
180
+ total: number | null;
181
+ parentId: string | null;
182
+ }[];
183
+ profile: {
184
+ id: string;
185
+ url: string;
186
+ title: string;
187
+ username: string;
188
+ };
189
+ createdAt: string;
190
+ }>;
191
+ export declare const ReferencePlanSourceSchema: z.ZodObject<{
192
+ collection: z.ZodObject<{
193
+ id: z.ZodString;
194
+ title: z.ZodString;
195
+ description: z.ZodNullable<z.ZodString>;
196
+ url: z.ZodNullable<z.ZodString>;
197
+ total: z.ZodNullable<z.ZodNumber>;
198
+ parentId: z.ZodNullable<z.ZodString>;
199
+ children: z.ZodArray<z.ZodString, "many">;
200
+ }, "strip", z.ZodTypeAny, {
201
+ id: string;
202
+ url: string | null;
203
+ title: string;
204
+ description: string | null;
205
+ children: string[];
206
+ total: number | null;
207
+ parentId: string | null;
208
+ }, {
209
+ id: string;
210
+ url: string | null;
211
+ title: string;
212
+ description: string | null;
213
+ children: string[];
214
+ total: number | null;
215
+ parentId: string | null;
216
+ }>;
217
+ collectionIds: z.ZodArray<z.ZodString, "many">;
218
+ references: z.ZodArray<z.ZodObject<{
219
+ remoteId: z.ZodString;
220
+ title: z.ZodString;
221
+ text: z.ZodString;
222
+ url: z.ZodOptional<z.ZodString>;
223
+ media: z.ZodArray<z.ZodObject<{
224
+ hash: z.ZodString;
225
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
226
+ bytes: z.ZodNumber;
227
+ representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
228
+ page: z.ZodOptional<z.ZodNumber>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ hash: string;
231
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
232
+ bytes: number;
233
+ representation: "image" | "variant" | "video-cover" | "page";
234
+ page?: number | undefined;
235
+ }, {
236
+ hash: string;
237
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
238
+ bytes: number;
239
+ page?: number | undefined;
240
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
241
+ }>, "many">;
242
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
243
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<["image", "video-cover"]>, "many">>;
244
+ unsupportedReason: z.ZodOptional<z.ZodString>;
245
+ variant: z.ZodOptional<z.ZodObject<{
246
+ projectId: z.ZodString;
247
+ sessionId: z.ZodString;
248
+ variantId: z.ZodString;
249
+ } & {
250
+ treeSha: z.ZodOptional<z.ZodString>;
251
+ }, "strict", z.ZodTypeAny, {
252
+ sessionId: string;
253
+ projectId: string;
254
+ variantId: string;
255
+ treeSha?: string | undefined;
256
+ }, {
257
+ sessionId: string;
258
+ projectId: string;
259
+ variantId: string;
260
+ treeSha?: string | undefined;
261
+ }>>;
262
+ note: z.ZodOptional<z.ZodString>;
263
+ } & {
264
+ provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ text: string;
267
+ provider: "arena" | "pinterest" | "x" | "cosmos";
268
+ title: string;
269
+ remoteId: string;
270
+ media: {
271
+ hash: string;
272
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
273
+ bytes: number;
274
+ representation: "image" | "variant" | "video-cover" | "page";
275
+ page?: number | undefined;
276
+ }[];
277
+ url?: string | undefined;
278
+ variant?: {
279
+ sessionId: string;
280
+ projectId: string;
281
+ variantId: string;
282
+ treeSha?: string | undefined;
283
+ } | undefined;
284
+ note?: string | undefined;
285
+ remoteImages?: string[] | undefined;
286
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
287
+ unsupportedReason?: string | undefined;
288
+ }, {
289
+ text: string;
290
+ provider: "arena" | "pinterest" | "x" | "cosmos";
291
+ title: string;
292
+ remoteId: string;
293
+ media: {
294
+ hash: string;
295
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
296
+ bytes: number;
297
+ page?: number | undefined;
298
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
299
+ }[];
300
+ url?: string | undefined;
301
+ variant?: {
302
+ sessionId: string;
303
+ projectId: string;
304
+ variantId: string;
305
+ treeSha?: string | undefined;
306
+ } | undefined;
307
+ note?: string | undefined;
308
+ remoteImages?: string[] | undefined;
309
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
310
+ unsupportedReason?: string | undefined;
311
+ }>, "many">;
312
+ }, "strip", z.ZodTypeAny, {
313
+ references: {
314
+ text: string;
315
+ provider: "arena" | "pinterest" | "x" | "cosmos";
316
+ title: string;
317
+ remoteId: string;
318
+ media: {
319
+ hash: string;
320
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
321
+ bytes: number;
322
+ representation: "image" | "variant" | "video-cover" | "page";
323
+ page?: number | undefined;
324
+ }[];
325
+ url?: string | undefined;
326
+ variant?: {
327
+ sessionId: string;
328
+ projectId: string;
329
+ variantId: string;
330
+ treeSha?: string | undefined;
331
+ } | undefined;
332
+ note?: string | undefined;
333
+ remoteImages?: string[] | undefined;
334
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
335
+ unsupportedReason?: string | undefined;
336
+ }[];
337
+ collection: {
338
+ id: string;
339
+ url: string | null;
340
+ title: string;
341
+ description: string | null;
342
+ children: string[];
343
+ total: number | null;
344
+ parentId: string | null;
345
+ };
346
+ collectionIds: string[];
347
+ }, {
348
+ references: {
349
+ text: string;
350
+ provider: "arena" | "pinterest" | "x" | "cosmos";
351
+ title: string;
352
+ remoteId: string;
353
+ media: {
354
+ hash: string;
355
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
356
+ bytes: number;
357
+ page?: number | undefined;
358
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
359
+ }[];
360
+ url?: string | undefined;
361
+ variant?: {
362
+ sessionId: string;
363
+ projectId: string;
364
+ variantId: string;
365
+ treeSha?: string | undefined;
366
+ } | undefined;
367
+ note?: string | undefined;
368
+ remoteImages?: string[] | undefined;
369
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
370
+ unsupportedReason?: string | undefined;
371
+ }[];
372
+ collection: {
373
+ id: string;
374
+ url: string | null;
375
+ title: string;
376
+ description: string | null;
377
+ children: string[];
378
+ total: number | null;
379
+ parentId: string | null;
380
+ };
381
+ collectionIds: string[];
382
+ }>;
383
+ export declare const ReferencePlanInputSchema: z.ZodObject<{
384
+ discoveryId: z.ZodString;
385
+ runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
386
+ sources: z.ZodArray<z.ZodObject<{
387
+ collection: z.ZodObject<{
388
+ id: z.ZodString;
389
+ title: z.ZodString;
390
+ description: z.ZodNullable<z.ZodString>;
391
+ url: z.ZodNullable<z.ZodString>;
392
+ total: z.ZodNullable<z.ZodNumber>;
393
+ parentId: z.ZodNullable<z.ZodString>;
394
+ children: z.ZodArray<z.ZodString, "many">;
395
+ }, "strip", z.ZodTypeAny, {
396
+ id: string;
397
+ url: string | null;
398
+ title: string;
399
+ description: string | null;
400
+ children: string[];
401
+ total: number | null;
402
+ parentId: string | null;
403
+ }, {
404
+ id: string;
405
+ url: string | null;
406
+ title: string;
407
+ description: string | null;
408
+ children: string[];
409
+ total: number | null;
410
+ parentId: string | null;
411
+ }>;
412
+ collectionIds: z.ZodArray<z.ZodString, "many">;
413
+ references: z.ZodArray<z.ZodObject<{
414
+ remoteId: z.ZodString;
415
+ title: z.ZodString;
416
+ text: z.ZodString;
417
+ url: z.ZodOptional<z.ZodString>;
418
+ media: z.ZodArray<z.ZodObject<{
419
+ hash: z.ZodString;
420
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
421
+ bytes: z.ZodNumber;
422
+ representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
423
+ page: z.ZodOptional<z.ZodNumber>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ hash: string;
426
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
427
+ bytes: number;
428
+ representation: "image" | "variant" | "video-cover" | "page";
429
+ page?: number | undefined;
430
+ }, {
431
+ hash: string;
432
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
433
+ bytes: number;
434
+ page?: number | undefined;
435
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
436
+ }>, "many">;
437
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
438
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<["image", "video-cover"]>, "many">>;
439
+ unsupportedReason: z.ZodOptional<z.ZodString>;
440
+ variant: z.ZodOptional<z.ZodObject<{
441
+ projectId: z.ZodString;
442
+ sessionId: z.ZodString;
443
+ variantId: z.ZodString;
444
+ } & {
445
+ treeSha: z.ZodOptional<z.ZodString>;
446
+ }, "strict", z.ZodTypeAny, {
447
+ sessionId: string;
448
+ projectId: string;
449
+ variantId: string;
450
+ treeSha?: string | undefined;
451
+ }, {
452
+ sessionId: string;
453
+ projectId: string;
454
+ variantId: string;
455
+ treeSha?: string | undefined;
456
+ }>>;
457
+ note: z.ZodOptional<z.ZodString>;
458
+ } & {
459
+ provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ text: string;
462
+ provider: "arena" | "pinterest" | "x" | "cosmos";
463
+ title: string;
464
+ remoteId: string;
465
+ media: {
466
+ hash: string;
467
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
468
+ bytes: number;
469
+ representation: "image" | "variant" | "video-cover" | "page";
470
+ page?: number | undefined;
471
+ }[];
472
+ url?: string | undefined;
473
+ variant?: {
474
+ sessionId: string;
475
+ projectId: string;
476
+ variantId: string;
477
+ treeSha?: string | undefined;
478
+ } | undefined;
479
+ note?: string | undefined;
480
+ remoteImages?: string[] | undefined;
481
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
482
+ unsupportedReason?: string | undefined;
483
+ }, {
484
+ text: string;
485
+ provider: "arena" | "pinterest" | "x" | "cosmos";
486
+ title: string;
487
+ remoteId: string;
488
+ media: {
489
+ hash: string;
490
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
491
+ bytes: number;
492
+ page?: number | undefined;
493
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
494
+ }[];
495
+ url?: string | undefined;
496
+ variant?: {
497
+ sessionId: string;
498
+ projectId: string;
499
+ variantId: string;
500
+ treeSha?: string | undefined;
501
+ } | undefined;
502
+ note?: string | undefined;
503
+ remoteImages?: string[] | undefined;
504
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
505
+ unsupportedReason?: string | undefined;
506
+ }>, "many">;
507
+ }, "strip", z.ZodTypeAny, {
508
+ references: {
509
+ text: string;
510
+ provider: "arena" | "pinterest" | "x" | "cosmos";
511
+ title: string;
512
+ remoteId: string;
513
+ media: {
514
+ hash: string;
515
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
516
+ bytes: number;
517
+ representation: "image" | "variant" | "video-cover" | "page";
518
+ page?: number | undefined;
519
+ }[];
520
+ url?: string | undefined;
521
+ variant?: {
522
+ sessionId: string;
523
+ projectId: string;
524
+ variantId: string;
525
+ treeSha?: string | undefined;
526
+ } | undefined;
527
+ note?: string | undefined;
528
+ remoteImages?: string[] | undefined;
529
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
530
+ unsupportedReason?: string | undefined;
531
+ }[];
532
+ collection: {
533
+ id: string;
534
+ url: string | null;
535
+ title: string;
536
+ description: string | null;
537
+ children: string[];
538
+ total: number | null;
539
+ parentId: string | null;
540
+ };
541
+ collectionIds: string[];
542
+ }, {
543
+ references: {
544
+ text: string;
545
+ provider: "arena" | "pinterest" | "x" | "cosmos";
546
+ title: string;
547
+ remoteId: string;
548
+ media: {
549
+ hash: string;
550
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
551
+ bytes: number;
552
+ page?: number | undefined;
553
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
554
+ }[];
555
+ url?: string | undefined;
556
+ variant?: {
557
+ sessionId: string;
558
+ projectId: string;
559
+ variantId: string;
560
+ treeSha?: string | undefined;
561
+ } | undefined;
562
+ note?: string | undefined;
563
+ remoteImages?: string[] | undefined;
564
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
565
+ unsupportedReason?: string | undefined;
566
+ }[];
567
+ collection: {
568
+ id: string;
569
+ url: string | null;
570
+ title: string;
571
+ description: string | null;
572
+ children: string[];
573
+ total: number | null;
574
+ parentId: string | null;
575
+ };
576
+ collectionIds: string[];
577
+ }>, "many">;
578
+ reusableCount: z.ZodNumber;
579
+ }, "strip", z.ZodTypeAny, {
580
+ runtime: "claude" | "codex" | "cursor";
581
+ discoveryId: string;
582
+ sources: {
583
+ references: {
584
+ text: string;
585
+ provider: "arena" | "pinterest" | "x" | "cosmos";
586
+ title: string;
587
+ remoteId: string;
588
+ media: {
589
+ hash: string;
590
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
591
+ bytes: number;
592
+ representation: "image" | "variant" | "video-cover" | "page";
593
+ page?: number | undefined;
594
+ }[];
595
+ url?: string | undefined;
596
+ variant?: {
597
+ sessionId: string;
598
+ projectId: string;
599
+ variantId: string;
600
+ treeSha?: string | undefined;
601
+ } | undefined;
602
+ note?: string | undefined;
603
+ remoteImages?: string[] | undefined;
604
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
605
+ unsupportedReason?: string | undefined;
606
+ }[];
607
+ collection: {
608
+ id: string;
609
+ url: string | null;
610
+ title: string;
611
+ description: string | null;
612
+ children: string[];
613
+ total: number | null;
614
+ parentId: string | null;
615
+ };
616
+ collectionIds: string[];
617
+ }[];
618
+ reusableCount: number;
619
+ }, {
620
+ runtime: "claude" | "codex" | "cursor";
621
+ discoveryId: string;
622
+ sources: {
623
+ references: {
624
+ text: string;
625
+ provider: "arena" | "pinterest" | "x" | "cosmos";
626
+ title: string;
627
+ remoteId: string;
628
+ media: {
629
+ hash: string;
630
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
631
+ bytes: number;
632
+ page?: number | undefined;
633
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
634
+ }[];
635
+ url?: string | undefined;
636
+ variant?: {
637
+ sessionId: string;
638
+ projectId: string;
639
+ variantId: string;
640
+ treeSha?: string | undefined;
641
+ } | undefined;
642
+ note?: string | undefined;
643
+ remoteImages?: string[] | undefined;
644
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
645
+ unsupportedReason?: string | undefined;
646
+ }[];
647
+ collection: {
648
+ id: string;
649
+ url: string | null;
650
+ title: string;
651
+ description: string | null;
652
+ children: string[];
653
+ total: number | null;
654
+ parentId: string | null;
655
+ };
656
+ collectionIds: string[];
657
+ }[];
658
+ reusableCount: number;
659
+ }>;
660
+ export declare const ReferencePlanSchema: z.ZodObject<{
661
+ discoveryId: z.ZodString;
662
+ runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
663
+ sources: z.ZodArray<z.ZodObject<{
664
+ collection: z.ZodObject<{
665
+ id: z.ZodString;
666
+ title: z.ZodString;
667
+ description: z.ZodNullable<z.ZodString>;
668
+ url: z.ZodNullable<z.ZodString>;
669
+ total: z.ZodNullable<z.ZodNumber>;
670
+ parentId: z.ZodNullable<z.ZodString>;
671
+ children: z.ZodArray<z.ZodString, "many">;
672
+ }, "strip", z.ZodTypeAny, {
673
+ id: string;
674
+ url: string | null;
675
+ title: string;
676
+ description: string | null;
677
+ children: string[];
678
+ total: number | null;
679
+ parentId: string | null;
680
+ }, {
681
+ id: string;
682
+ url: string | null;
683
+ title: string;
684
+ description: string | null;
685
+ children: string[];
686
+ total: number | null;
687
+ parentId: string | null;
688
+ }>;
689
+ collectionIds: z.ZodArray<z.ZodString, "many">;
690
+ references: z.ZodArray<z.ZodObject<{
691
+ remoteId: z.ZodString;
692
+ title: z.ZodString;
693
+ text: z.ZodString;
694
+ url: z.ZodOptional<z.ZodString>;
695
+ media: z.ZodArray<z.ZodObject<{
696
+ hash: z.ZodString;
697
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
698
+ bytes: z.ZodNumber;
699
+ representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
700
+ page: z.ZodOptional<z.ZodNumber>;
701
+ }, "strip", z.ZodTypeAny, {
702
+ hash: string;
703
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
704
+ bytes: number;
705
+ representation: "image" | "variant" | "video-cover" | "page";
706
+ page?: number | undefined;
707
+ }, {
708
+ hash: string;
709
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
710
+ bytes: number;
711
+ page?: number | undefined;
712
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
713
+ }>, "many">;
714
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
715
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<["image", "video-cover"]>, "many">>;
716
+ unsupportedReason: z.ZodOptional<z.ZodString>;
717
+ variant: z.ZodOptional<z.ZodObject<{
718
+ projectId: z.ZodString;
719
+ sessionId: z.ZodString;
720
+ variantId: z.ZodString;
721
+ } & {
722
+ treeSha: z.ZodOptional<z.ZodString>;
723
+ }, "strict", z.ZodTypeAny, {
724
+ sessionId: string;
725
+ projectId: string;
726
+ variantId: string;
727
+ treeSha?: string | undefined;
728
+ }, {
729
+ sessionId: string;
730
+ projectId: string;
731
+ variantId: string;
732
+ treeSha?: string | undefined;
733
+ }>>;
734
+ note: z.ZodOptional<z.ZodString>;
735
+ } & {
736
+ provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
737
+ }, "strip", z.ZodTypeAny, {
738
+ text: string;
739
+ provider: "arena" | "pinterest" | "x" | "cosmos";
740
+ title: string;
741
+ remoteId: string;
742
+ media: {
743
+ hash: string;
744
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
745
+ bytes: number;
746
+ representation: "image" | "variant" | "video-cover" | "page";
747
+ page?: number | undefined;
748
+ }[];
749
+ url?: string | undefined;
750
+ variant?: {
751
+ sessionId: string;
752
+ projectId: string;
753
+ variantId: string;
754
+ treeSha?: string | undefined;
755
+ } | undefined;
756
+ note?: string | undefined;
757
+ remoteImages?: string[] | undefined;
758
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
759
+ unsupportedReason?: string | undefined;
760
+ }, {
761
+ text: string;
762
+ provider: "arena" | "pinterest" | "x" | "cosmos";
763
+ title: string;
764
+ remoteId: string;
765
+ media: {
766
+ hash: string;
767
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
768
+ bytes: number;
769
+ page?: number | undefined;
770
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
771
+ }[];
772
+ url?: string | undefined;
773
+ variant?: {
774
+ sessionId: string;
775
+ projectId: string;
776
+ variantId: string;
777
+ treeSha?: string | undefined;
778
+ } | undefined;
779
+ note?: string | undefined;
780
+ remoteImages?: string[] | undefined;
781
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
782
+ unsupportedReason?: string | undefined;
783
+ }>, "many">;
784
+ }, "strip", z.ZodTypeAny, {
785
+ references: {
786
+ text: string;
787
+ provider: "arena" | "pinterest" | "x" | "cosmos";
788
+ title: string;
789
+ remoteId: string;
790
+ media: {
791
+ hash: string;
792
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
793
+ bytes: number;
794
+ representation: "image" | "variant" | "video-cover" | "page";
795
+ page?: number | undefined;
796
+ }[];
797
+ url?: string | undefined;
798
+ variant?: {
799
+ sessionId: string;
800
+ projectId: string;
801
+ variantId: string;
802
+ treeSha?: string | undefined;
803
+ } | undefined;
804
+ note?: string | undefined;
805
+ remoteImages?: string[] | undefined;
806
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
807
+ unsupportedReason?: string | undefined;
808
+ }[];
809
+ collection: {
810
+ id: string;
811
+ url: string | null;
812
+ title: string;
813
+ description: string | null;
814
+ children: string[];
815
+ total: number | null;
816
+ parentId: string | null;
817
+ };
818
+ collectionIds: string[];
819
+ }, {
820
+ references: {
821
+ text: string;
822
+ provider: "arena" | "pinterest" | "x" | "cosmos";
823
+ title: string;
824
+ remoteId: string;
825
+ media: {
826
+ hash: string;
827
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
828
+ bytes: number;
829
+ page?: number | undefined;
830
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
831
+ }[];
832
+ url?: string | undefined;
833
+ variant?: {
834
+ sessionId: string;
835
+ projectId: string;
836
+ variantId: string;
837
+ treeSha?: string | undefined;
838
+ } | undefined;
839
+ note?: string | undefined;
840
+ remoteImages?: string[] | undefined;
841
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
842
+ unsupportedReason?: string | undefined;
843
+ }[];
844
+ collection: {
845
+ id: string;
846
+ url: string | null;
847
+ title: string;
848
+ description: string | null;
849
+ children: string[];
850
+ total: number | null;
851
+ parentId: string | null;
852
+ };
853
+ collectionIds: string[];
854
+ }>, "many">;
855
+ reusableCount: z.ZodNumber;
856
+ } & {
857
+ id: z.ZodString;
858
+ profile: z.ZodEffects<z.ZodObject<{
859
+ id: z.ZodString;
860
+ username: z.ZodString;
861
+ title: z.ZodString;
862
+ url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ id: string;
865
+ url: string;
866
+ title: string;
867
+ username: string;
868
+ }, {
869
+ id: string;
870
+ url: string;
871
+ title: string;
872
+ username: string;
873
+ }>, {
874
+ id: string;
875
+ url: string;
876
+ title: string;
877
+ username: string;
878
+ }, {
879
+ id: string;
880
+ url: string;
881
+ title: string;
882
+ username: string;
883
+ }>;
884
+ revision: z.ZodString;
885
+ createdAt: z.ZodString;
886
+ expiresAt: z.ZodString;
887
+ approvedAt: z.ZodNullable<z.ZodString>;
888
+ jobIds: z.ZodArray<z.ZodString, "many">;
889
+ }, "strip", z.ZodTypeAny, {
890
+ id: string;
891
+ runtime: "claude" | "codex" | "cursor";
892
+ revision: string;
893
+ profile: {
894
+ id: string;
895
+ url: string;
896
+ title: string;
897
+ username: string;
898
+ };
899
+ createdAt: string;
900
+ discoveryId: string;
901
+ sources: {
902
+ references: {
903
+ text: string;
904
+ provider: "arena" | "pinterest" | "x" | "cosmos";
905
+ title: string;
906
+ remoteId: string;
907
+ media: {
908
+ hash: string;
909
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
910
+ bytes: number;
911
+ representation: "image" | "variant" | "video-cover" | "page";
912
+ page?: number | undefined;
913
+ }[];
914
+ url?: string | undefined;
915
+ variant?: {
916
+ sessionId: string;
917
+ projectId: string;
918
+ variantId: string;
919
+ treeSha?: string | undefined;
920
+ } | undefined;
921
+ note?: string | undefined;
922
+ remoteImages?: string[] | undefined;
923
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
924
+ unsupportedReason?: string | undefined;
925
+ }[];
926
+ collection: {
927
+ id: string;
928
+ url: string | null;
929
+ title: string;
930
+ description: string | null;
931
+ children: string[];
932
+ total: number | null;
933
+ parentId: string | null;
934
+ };
935
+ collectionIds: string[];
936
+ }[];
937
+ reusableCount: number;
938
+ expiresAt: string;
939
+ approvedAt: string | null;
940
+ jobIds: string[];
941
+ }, {
942
+ id: string;
943
+ runtime: "claude" | "codex" | "cursor";
944
+ revision: string;
945
+ profile: {
946
+ id: string;
947
+ url: string;
948
+ title: string;
949
+ username: string;
950
+ };
951
+ createdAt: string;
952
+ discoveryId: string;
953
+ sources: {
954
+ references: {
955
+ text: string;
956
+ provider: "arena" | "pinterest" | "x" | "cosmos";
957
+ title: string;
958
+ remoteId: string;
959
+ media: {
960
+ hash: string;
961
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
962
+ bytes: number;
963
+ page?: number | undefined;
964
+ representation?: "image" | "variant" | "video-cover" | "page" | undefined;
965
+ }[];
966
+ url?: string | undefined;
967
+ variant?: {
968
+ sessionId: string;
969
+ projectId: string;
970
+ variantId: string;
971
+ treeSha?: string | undefined;
972
+ } | undefined;
973
+ note?: string | undefined;
974
+ remoteImages?: string[] | undefined;
975
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
976
+ unsupportedReason?: string | undefined;
977
+ }[];
978
+ collection: {
979
+ id: string;
980
+ url: string | null;
981
+ title: string;
982
+ description: string | null;
983
+ children: string[];
984
+ total: number | null;
985
+ parentId: string | null;
986
+ };
987
+ collectionIds: string[];
988
+ }[];
989
+ reusableCount: number;
990
+ expiresAt: string;
991
+ approvedAt: string | null;
992
+ jobIds: string[];
993
+ }>;
994
+ export declare const ReferencePlanRequestSchema: z.ZodObject<{
995
+ discoveryId: z.ZodString;
996
+ collectionIds: z.ZodArray<z.ZodString, "many">;
997
+ runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
998
+ }, "strict", z.ZodTypeAny, {
999
+ runtime: "claude" | "codex" | "cursor";
1000
+ discoveryId: string;
1001
+ collectionIds: string[];
1002
+ }, {
1003
+ runtime: "claude" | "codex" | "cursor";
1004
+ discoveryId: string;
1005
+ collectionIds: string[];
1006
+ }>;
1007
+ export declare const ReferenceApprovalSchema: z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ revision: z.ZodString;
1010
+ isApproved: z.ZodLiteral<true>;
1011
+ }, "strict", z.ZodTypeAny, {
1012
+ id: string;
1013
+ revision: string;
1014
+ isApproved: true;
1015
+ }, {
1016
+ id: string;
1017
+ revision: string;
1018
+ isApproved: true;
1019
+ }>;
1020
+ export declare const ReferenceOnboardingActionSchema: z.ZodEnum<["later", "dismiss", "reset"]>;
1021
+ export type ReferenceDiscovery = z.infer<typeof ReferenceDiscoverySchema>;
1022
+ export type ReferenceImportPlan = z.infer<typeof ReferencePlanSchema>;
1023
+ export type ReferencePlanSource = z.infer<typeof ReferencePlanSourceSchema>;
1024
+ export type ReferencePlanRequest = z.infer<typeof ReferencePlanRequestSchema>;
1025
+ export type ReferenceOnboardingAction = z.infer<typeof ReferenceOnboardingActionSchema>;
1026
+ export declare const referencePlanSummary: (plan: ReferenceImportPlan) => {
1027
+ id: string;
1028
+ revision: string;
1029
+ discoveryId: string;
1030
+ profile: {
1031
+ id: string;
1032
+ url: string;
1033
+ title: string;
1034
+ username: string;
1035
+ };
1036
+ provider: "arena" | "pinterest" | "x" | "cosmos";
1037
+ runtime: "claude" | "codex" | "cursor";
1038
+ createdAt: string;
1039
+ expiresAt: string;
1040
+ approvedAt: string | null;
1041
+ jobIds: string[];
1042
+ collections: {
1043
+ includedCollectionIds: string[];
1044
+ referenceCount: number;
1045
+ id: string;
1046
+ url: string | null;
1047
+ title: string;
1048
+ description: string | null;
1049
+ children: string[];
1050
+ total: number | null;
1051
+ parentId: string | null;
1052
+ }[];
1053
+ collectionCount: number;
1054
+ referenceCount: number;
1055
+ imageCount: number;
1056
+ reusableCount: number;
1057
+ analysisCount: number;
1058
+ tokenEstimate: null;
1059
+ durationEstimateMs: null;
1060
+ scopeDisclosure: string;
1061
+ unsupportedCount: number;
1062
+ usageDisclosure: string;
1063
+ approvalRequired: boolean;
1064
+ };
1065
+ //# sourceMappingURL=reference-onboarding.d.ts.map