rivet-design 0.26.1 → 0.27.0

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 (122) hide show
  1. package/bin/rivet.js +13 -0
  2. package/dist/agent-variants/PreviewRuntime.js +20 -7
  3. package/dist/agent-variants/WorkerExecutorService.d.ts +0 -2
  4. package/dist/agent-variants/WorkerExecutorService.js +0 -18
  5. package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -8
  6. package/dist/agent-variants/contracts.d.ts +1001 -4868
  7. package/dist/agent-variants/contracts.js +1 -121
  8. package/dist/agent-variants/index.d.ts +1 -1
  9. package/dist/agent-variants/variantsTelemetry.d.ts +4 -8
  10. package/dist/agent-variants/variantsTelemetry.js +3 -0
  11. package/dist/agent-variants/workItemInput.d.ts +386 -386
  12. package/dist/cli/commands/contextRequest.js +1 -1
  13. package/dist/cli/commands/guidanceReferences.d.ts +2 -2
  14. package/dist/cli/commands/guidanceVerifierPackage.d.ts +2 -2
  15. package/dist/cli/commands/mcpServe.js +1 -0
  16. package/dist/cli/commands/serve.js +2 -0
  17. package/dist/cli/editorSession.d.ts +1 -13
  18. package/dist/cli/handoff.d.ts +1 -0
  19. package/dist/cli/handoff.js +20 -4
  20. package/dist/cli/router.js +1 -0
  21. package/dist/cli/runtimeInterruption.d.ts +2 -16
  22. package/dist/cli/telemetry.d.ts +10 -0
  23. package/dist/cli/telemetry.js +37 -1
  24. package/dist/config/pluginMetrics.js +36 -1
  25. package/dist/hosts/workerDefaults.d.ts +0 -11
  26. package/dist/hosts/workerDefaults.js +1 -30
  27. package/dist/index-core.d.ts +0 -1
  28. package/dist/index.d.ts +19 -0
  29. package/dist/index.js +15 -6
  30. package/dist/install/automaticCliUpdate.d.ts +1 -0
  31. package/dist/install/automaticCliUpdate.js +32 -22
  32. package/dist/install/channelCli.d.ts +1 -1
  33. package/dist/install/channelCli.js +11 -6
  34. package/dist/install/channelManager.d.ts +5 -2
  35. package/dist/install/globalBootstrap.d.ts +5 -3
  36. package/dist/install/globalBootstrap.js +21 -9
  37. package/dist/install/npmCommand.d.ts +15 -0
  38. package/dist/install/npmCommand.js +59 -0
  39. package/dist/routes/agentVariants.js +3 -14
  40. package/dist/routes/library/browserAccess.js +6 -2
  41. package/dist/routes/library/guidance.js +3 -1
  42. package/dist/routes/library/middleware.js +15 -9
  43. package/dist/routes/library/navigation.js +3 -1
  44. package/dist/routes/library/profiles.js +5 -5
  45. package/dist/routes/library/projects.js +17 -7
  46. package/dist/routes/library/referenceOnboarding.js +4 -2
  47. package/dist/routes/library/schemas.d.ts +2 -15
  48. package/dist/routes/telemetry.js +1 -1
  49. package/dist/routes/variantRequestSchema.d.ts +4 -4
  50. package/dist/routes/variantRequestSchema.js +7 -2
  51. package/dist/server.js +8 -0
  52. package/dist/services/AuthService.d.ts +3 -56
  53. package/dist/services/AuthService.js +0 -28
  54. package/dist/services/ConfigManager.d.ts +0 -2
  55. package/dist/services/ConfigManager.js +0 -14
  56. package/dist/services/DependencyPreparationService.js +57 -19
  57. package/dist/services/GuidanceVerifierRunner.js +4 -4
  58. package/dist/services/HubDiscovery.d.ts +1 -9
  59. package/dist/services/IntegrationsClient.d.ts +16 -16
  60. package/dist/services/MCPOnboardingTelemetry.d.ts +0 -14
  61. package/dist/services/MCPOnboardingTelemetry.js +0 -62
  62. package/dist/services/ProjectPackageManager.d.ts +5 -0
  63. package/dist/services/ProjectPackageManager.js +33 -11
  64. package/dist/services/ProjectRegistry.d.ts +5 -24
  65. package/dist/services/TelemetryService.d.ts +9 -64
  66. package/dist/services/TelemetryService.js +10 -113
  67. package/dist/services/TreeStore.d.ts +0 -2
  68. package/dist/services/TreeStore.js +0 -24
  69. package/dist/services/WorktreeManager.js +5 -0
  70. package/dist/services/profiles/DesignProfiles.d.ts +180 -125
  71. package/dist/services/profiles/DesignProfiles.js +16 -8
  72. package/dist/services/profiles/ProfilePlanning.d.ts +38 -38
  73. package/dist/services/profiles/ReferenceReader.d.ts +14 -14
  74. package/dist/services/profiles/modelContract.js +4 -4
  75. package/dist/storage/library/ProjectPreviewCache.d.ts +1 -13
  76. package/dist/storage/profiles/ProfilePlans.d.ts +137 -137
  77. package/dist/storage/profiles/ProfileRecords.d.ts +62 -37
  78. package/dist/storage/profiles/planSchema.d.ts +40 -40
  79. package/dist/storage/profiles/schema.d.ts +16 -16
  80. package/dist/types/api-responses.d.ts +174 -0
  81. package/dist/types/api-responses.js +108 -0
  82. package/dist/types/cosmos-profile.d.ts +17 -105
  83. package/dist/types/cosmos.d.ts +48 -266
  84. package/dist/types/design-library.d.ts +230 -61
  85. package/dist/types/design-library.js +38 -1
  86. package/dist/types/design-profile.d.ts +220 -529
  87. package/dist/types/design-profile.js +5 -1
  88. package/dist/types/guidance-references.d.ts +68 -316
  89. package/dist/types/guidance-verifier.d.ts +69 -560
  90. package/dist/types/guidance-verifier.js +15 -2
  91. package/dist/types/guidance.d.ts +182 -1643
  92. package/dist/types/guidance.js +4 -1
  93. package/dist/types/project-library.d.ts +60 -30
  94. package/dist/types/project-library.js +32 -1
  95. package/dist/types/reference-connectors.d.ts +38 -162
  96. package/dist/types/reference-onboarding.d.ts +144 -878
  97. package/dist/types/reference-pages.d.ts +27 -139
  98. package/dist/types/x-bookmarks.d.ts +40 -296
  99. package/dist/utils/devServerError.d.ts +5 -0
  100. package/dist/utils/devServerError.js +4 -0
  101. package/dist/utils/displayLocale.d.ts +0 -1
  102. package/dist/utils/displayLocale.js +1 -3
  103. package/dist/utils/failureReason.d.ts +16 -0
  104. package/dist/utils/failureReason.js +106 -0
  105. package/dist/utils/hostedLogPrivacy.d.ts +1 -0
  106. package/dist/utils/hostedLogPrivacy.js +10 -4
  107. package/dist/utils/skills/claude-skill.d.ts +1 -1
  108. package/dist/utils/skills/claude-skill.js +1 -1
  109. package/dist/utils/skills/cli-guidance.d.ts +1 -1
  110. package/dist/utils/skills/cli-guidance.js +3 -3
  111. package/dist/utils/skills/cursor-rules.d.ts +1 -1
  112. package/dist/utils/skills/cursor-rules.js +1 -1
  113. package/package.json +5 -5
  114. package/src/ui/dist/assets/LibraryEntry-RI9Lc7P3.js +37 -0
  115. package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
  116. package/src/ui/dist/assets/main-DgrLzS5j.js +497 -0
  117. package/src/ui/dist/index.html +2 -2
  118. package/dist/types/change-types.d.ts +0 -66
  119. package/dist/types/change-types.js +0 -3
  120. package/src/ui/dist/assets/LibraryEntry-Cr4GFYXW.js +0 -37
  121. package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
  122. package/src/ui/dist/assets/main-tPO1OCpZ.js +0 -439
@@ -6,32 +6,22 @@ export declare const REFERENCE_PLAN_LIFETIME_MS: number;
6
6
  export declare const REFERENCE_REMINDER_DELAY_MS: number;
7
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
8
  export declare const ReferenceDiscoveryInputSchema: z.ZodObject<{
9
- profile: z.ZodEffects<z.ZodObject<{
9
+ profile: z.ZodPipe<z.ZodObject<{
10
10
  id: z.ZodString;
11
11
  username: z.ZodString;
12
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
- url: string;
16
- title: string;
13
+ url: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString]>;
14
+ }, z.core.$strip>, z.ZodTransform<{
17
15
  id: string;
18
16
  username: string;
19
- }, {
20
- url: string;
21
17
  title: string;
22
- id: string;
23
- username: string;
24
- }>, {
25
18
  url: string;
26
- title: string;
27
- id: string;
28
- username: string;
29
19
  }, {
30
- url: string;
31
- title: string;
32
20
  id: string;
33
21
  username: string;
34
- }>;
22
+ title: string;
23
+ url: string;
24
+ }>>;
35
25
  collections: z.ZodArray<z.ZodObject<{
36
26
  id: z.ZodString;
37
27
  title: z.ZodString;
@@ -39,87 +29,27 @@ export declare const ReferenceDiscoveryInputSchema: z.ZodObject<{
39
29
  url: z.ZodNullable<z.ZodString>;
40
30
  total: z.ZodNullable<z.ZodNumber>;
41
31
  parentId: z.ZodNullable<z.ZodString>;
42
- children: z.ZodArray<z.ZodString, "many">;
43
- }, "strip", z.ZodTypeAny, {
44
- description: string | null;
45
- url: string | null;
46
- title: string;
47
- id: string;
48
- children: string[];
49
- total: number | null;
50
- parentId: string | null;
51
- }, {
52
- description: string | null;
53
- url: string | null;
54
- title: string;
55
- id: string;
56
- children: string[];
57
- total: number | null;
58
- parentId: string | null;
59
- }>, "many">;
32
+ children: z.ZodArray<z.ZodString>;
33
+ }, z.core.$strip>>;
60
34
  total: z.ZodNumber;
61
- }, "strip", z.ZodTypeAny, {
62
- total: number;
63
- collections: {
64
- description: string | null;
65
- url: string | null;
66
- title: string;
67
- id: string;
68
- children: string[];
69
- total: number | null;
70
- parentId: string | null;
71
- }[];
72
- profile: {
73
- url: string;
74
- title: string;
75
- id: string;
76
- username: string;
77
- };
78
- }, {
79
- total: number;
80
- collections: {
81
- description: string | null;
82
- url: string | null;
83
- title: string;
84
- id: string;
85
- children: string[];
86
- total: number | null;
87
- parentId: string | null;
88
- }[];
89
- profile: {
90
- url: string;
91
- title: string;
92
- id: string;
93
- username: string;
94
- };
95
- }>;
35
+ }, z.core.$strip>;
96
36
  export declare const ReferenceDiscoverySchema: z.ZodObject<{
97
- profile: z.ZodEffects<z.ZodObject<{
37
+ profile: z.ZodPipe<z.ZodObject<{
98
38
  id: z.ZodString;
99
39
  username: z.ZodString;
100
40
  title: z.ZodString;
101
- url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
102
- }, "strip", z.ZodTypeAny, {
103
- url: string;
104
- title: string;
41
+ url: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString]>;
42
+ }, z.core.$strip>, z.ZodTransform<{
105
43
  id: string;
106
44
  username: string;
107
- }, {
108
- url: string;
109
45
  title: string;
110
- id: string;
111
- username: string;
112
- }>, {
113
46
  url: string;
114
- title: string;
115
- id: string;
116
- username: string;
117
47
  }, {
118
- url: string;
119
- title: string;
120
48
  id: string;
121
49
  username: string;
122
- }>;
50
+ title: string;
51
+ url: string;
52
+ }>>;
123
53
  collections: z.ZodArray<z.ZodObject<{
124
54
  id: z.ZodString;
125
55
  title: z.ZodString;
@@ -127,67 +57,12 @@ export declare const ReferenceDiscoverySchema: z.ZodObject<{
127
57
  url: z.ZodNullable<z.ZodString>;
128
58
  total: z.ZodNullable<z.ZodNumber>;
129
59
  parentId: z.ZodNullable<z.ZodString>;
130
- children: z.ZodArray<z.ZodString, "many">;
131
- }, "strip", z.ZodTypeAny, {
132
- description: string | null;
133
- url: string | null;
134
- title: string;
135
- id: string;
136
- children: string[];
137
- total: number | null;
138
- parentId: string | null;
139
- }, {
140
- description: string | null;
141
- url: string | null;
142
- title: string;
143
- id: string;
144
- children: string[];
145
- total: number | null;
146
- parentId: string | null;
147
- }>, "many">;
60
+ children: z.ZodArray<z.ZodString>;
61
+ }, z.core.$strip>>;
148
62
  total: z.ZodNumber;
149
- } & {
150
63
  id: z.ZodString;
151
64
  createdAt: z.ZodString;
152
- }, "strip", z.ZodTypeAny, {
153
- id: string;
154
- total: number;
155
- collections: {
156
- description: string | null;
157
- url: string | null;
158
- title: string;
159
- id: string;
160
- children: string[];
161
- total: number | null;
162
- parentId: string | null;
163
- }[];
164
- profile: {
165
- url: string;
166
- title: string;
167
- id: string;
168
- username: string;
169
- };
170
- createdAt: string;
171
- }, {
172
- id: string;
173
- total: number;
174
- collections: {
175
- description: string | null;
176
- url: string | null;
177
- title: string;
178
- id: string;
179
- children: string[];
180
- total: number | null;
181
- parentId: string | null;
182
- }[];
183
- profile: {
184
- url: string;
185
- title: string;
186
- id: string;
187
- username: string;
188
- };
189
- createdAt: string;
190
- }>;
65
+ }, z.core.$strip>;
191
66
  export declare const ReferencePlanSourceSchema: z.ZodObject<{
192
67
  collection: z.ZodObject<{
193
68
  id: z.ZodString;
@@ -196,25 +71,9 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
196
71
  url: z.ZodNullable<z.ZodString>;
197
72
  total: z.ZodNullable<z.ZodNumber>;
198
73
  parentId: z.ZodNullable<z.ZodString>;
199
- children: z.ZodArray<z.ZodString, "many">;
200
- }, "strip", z.ZodTypeAny, {
201
- description: string | null;
202
- url: string | null;
203
- title: string;
204
- id: string;
205
- children: string[];
206
- total: number | null;
207
- parentId: string | null;
208
- }, {
209
- description: string | null;
210
- url: string | null;
211
- title: string;
212
- id: string;
213
- children: string[];
214
- total: number | null;
215
- parentId: string | null;
216
- }>;
217
- collectionIds: z.ZodArray<z.ZodString, "many">;
74
+ children: z.ZodArray<z.ZodString>;
75
+ }, z.core.$strip>;
76
+ collectionIds: z.ZodArray<z.ZodString>;
218
77
  references: z.ZodArray<z.ZodObject<{
219
78
  remoteId: z.ZodString;
220
79
  title: z.ZodString;
@@ -222,167 +81,49 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
222
81
  url: z.ZodOptional<z.ZodString>;
223
82
  media: z.ZodArray<z.ZodObject<{
224
83
  hash: z.ZodString;
225
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
84
+ mimeType: z.ZodEnum<{
85
+ "image/png": "image/png";
86
+ "image/jpeg": "image/jpeg";
87
+ "image/webp": "image/webp";
88
+ "image/gif": "image/gif";
89
+ }>;
226
90
  bytes: z.ZodNumber;
227
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
91
+ representation: z.ZodDefault<z.ZodEnum<{
92
+ variant: "variant";
93
+ image: "image";
94
+ "video-cover": "video-cover";
95
+ page: "page";
96
+ }>>;
228
97
  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: "variant" | "image" | "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?: "variant" | "image" | "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">>;
98
+ }, z.core.$strip>>;
99
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
100
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
101
+ image: "image";
102
+ "video-cover": "video-cover";
103
+ }>>>;
244
104
  unsupportedReason: z.ZodOptional<z.ZodString>;
245
105
  variant: z.ZodOptional<z.ZodObject<{
246
106
  projectId: z.ZodString;
247
107
  sessionId: z.ZodString;
248
108
  variantId: z.ZodString;
249
- } & {
250
109
  treeSha: z.ZodOptional<z.ZodString>;
251
- }, "strict", z.ZodTypeAny, {
252
- projectId: string;
253
- sessionId: string;
254
- variantId: string;
255
- treeSha?: string | undefined;
256
- }, {
257
- projectId: string;
258
- sessionId: string;
259
- variantId: string;
260
- treeSha?: string | undefined;
261
- }>>;
110
+ }, z.core.$strict>>;
262
111
  note: z.ZodOptional<z.ZodString>;
263
- } & {
264
- provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
265
- }, "strip", z.ZodTypeAny, {
266
- title: string;
267
- text: string;
268
- provider: "pinterest" | "arena" | "cosmos" | "x";
269
- remoteId: string;
270
- media: {
271
- hash: string;
272
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
273
- bytes: number;
274
- representation: "variant" | "image" | "video-cover" | "page";
275
- page?: number | undefined;
276
- }[];
277
- variant?: {
278
- projectId: string;
279
- sessionId: string;
280
- variantId: string;
281
- treeSha?: string | undefined;
282
- } | undefined;
283
- url?: string | undefined;
284
- note?: string | undefined;
285
- remoteImages?: string[] | undefined;
286
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
287
- unsupportedReason?: string | undefined;
288
- }, {
289
- title: string;
290
- text: string;
291
- provider: "pinterest" | "arena" | "cosmos" | "x";
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?: "variant" | "image" | "video-cover" | "page" | undefined;
299
- }[];
300
- variant?: {
301
- projectId: string;
302
- sessionId: string;
303
- variantId: string;
304
- treeSha?: string | undefined;
305
- } | undefined;
306
- url?: string | 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
- title: string;
315
- text: string;
316
- provider: "pinterest" | "arena" | "cosmos" | "x";
317
- remoteId: string;
318
- media: {
319
- hash: string;
320
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
321
- bytes: number;
322
- representation: "variant" | "image" | "video-cover" | "page";
323
- page?: number | undefined;
324
- }[];
325
- variant?: {
326
- projectId: string;
327
- sessionId: string;
328
- variantId: string;
329
- treeSha?: string | undefined;
330
- } | undefined;
331
- url?: string | undefined;
332
- note?: string | undefined;
333
- remoteImages?: string[] | undefined;
334
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
335
- unsupportedReason?: string | undefined;
336
- }[];
337
- collection: {
338
- description: string | null;
339
- url: string | null;
340
- title: string;
341
- id: string;
342
- children: string[];
343
- total: number | null;
344
- parentId: string | null;
345
- };
346
- collectionIds: string[];
347
- }, {
348
- references: {
349
- title: string;
350
- text: string;
351
- provider: "pinterest" | "arena" | "cosmos" | "x";
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?: "variant" | "image" | "video-cover" | "page" | undefined;
359
- }[];
360
- variant?: {
361
- projectId: string;
362
- sessionId: string;
363
- variantId: string;
364
- treeSha?: string | undefined;
365
- } | undefined;
366
- url?: string | undefined;
367
- note?: string | undefined;
368
- remoteImages?: string[] | undefined;
369
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
370
- unsupportedReason?: string | undefined;
371
- }[];
372
- collection: {
373
- description: string | null;
374
- url: string | null;
375
- title: string;
376
- id: string;
377
- children: string[];
378
- total: number | null;
379
- parentId: string | null;
380
- };
381
- collectionIds: string[];
382
- }>;
112
+ provider: z.ZodEnum<{
113
+ pinterest: "pinterest";
114
+ arena: "arena";
115
+ cosmos: "cosmos";
116
+ x: "x";
117
+ }>;
118
+ }, z.core.$strip>>;
119
+ }, z.core.$strip>;
383
120
  export declare const ReferencePlanInputSchema: z.ZodObject<{
384
121
  discoveryId: z.ZodString;
385
- runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
122
+ runtime: z.ZodEnum<{
123
+ claude: "claude";
124
+ codex: "codex";
125
+ cursor: "cursor";
126
+ }>;
386
127
  sources: z.ZodArray<z.ZodObject<{
387
128
  collection: z.ZodObject<{
388
129
  id: z.ZodString;
@@ -391,25 +132,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
391
132
  url: z.ZodNullable<z.ZodString>;
392
133
  total: z.ZodNullable<z.ZodNumber>;
393
134
  parentId: z.ZodNullable<z.ZodString>;
394
- children: z.ZodArray<z.ZodString, "many">;
395
- }, "strip", z.ZodTypeAny, {
396
- description: string | null;
397
- url: string | null;
398
- title: string;
399
- id: string;
400
- children: string[];
401
- total: number | null;
402
- parentId: string | null;
403
- }, {
404
- description: string | null;
405
- url: string | null;
406
- title: string;
407
- id: string;
408
- children: string[];
409
- total: number | null;
410
- parentId: string | null;
411
- }>;
412
- collectionIds: z.ZodArray<z.ZodString, "many">;
135
+ children: z.ZodArray<z.ZodString>;
136
+ }, z.core.$strip>;
137
+ collectionIds: z.ZodArray<z.ZodString>;
413
138
  references: z.ZodArray<z.ZodObject<{
414
139
  remoteId: z.ZodString;
415
140
  title: z.ZodString;
@@ -417,249 +142,51 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
417
142
  url: z.ZodOptional<z.ZodString>;
418
143
  media: z.ZodArray<z.ZodObject<{
419
144
  hash: z.ZodString;
420
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
145
+ mimeType: z.ZodEnum<{
146
+ "image/png": "image/png";
147
+ "image/jpeg": "image/jpeg";
148
+ "image/webp": "image/webp";
149
+ "image/gif": "image/gif";
150
+ }>;
421
151
  bytes: z.ZodNumber;
422
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
152
+ representation: z.ZodDefault<z.ZodEnum<{
153
+ variant: "variant";
154
+ image: "image";
155
+ "video-cover": "video-cover";
156
+ page: "page";
157
+ }>>;
423
158
  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: "variant" | "image" | "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?: "variant" | "image" | "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">>;
159
+ }, z.core.$strip>>;
160
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
162
+ image: "image";
163
+ "video-cover": "video-cover";
164
+ }>>>;
439
165
  unsupportedReason: z.ZodOptional<z.ZodString>;
440
166
  variant: z.ZodOptional<z.ZodObject<{
441
167
  projectId: z.ZodString;
442
168
  sessionId: z.ZodString;
443
169
  variantId: z.ZodString;
444
- } & {
445
170
  treeSha: z.ZodOptional<z.ZodString>;
446
- }, "strict", z.ZodTypeAny, {
447
- projectId: string;
448
- sessionId: string;
449
- variantId: string;
450
- treeSha?: string | undefined;
451
- }, {
452
- projectId: string;
453
- sessionId: string;
454
- variantId: string;
455
- treeSha?: string | undefined;
456
- }>>;
171
+ }, z.core.$strict>>;
457
172
  note: z.ZodOptional<z.ZodString>;
458
- } & {
459
- provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
460
- }, "strip", z.ZodTypeAny, {
461
- title: string;
462
- text: string;
463
- provider: "pinterest" | "arena" | "cosmos" | "x";
464
- remoteId: string;
465
- media: {
466
- hash: string;
467
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
468
- bytes: number;
469
- representation: "variant" | "image" | "video-cover" | "page";
470
- page?: number | undefined;
471
- }[];
472
- variant?: {
473
- projectId: string;
474
- sessionId: string;
475
- variantId: string;
476
- treeSha?: string | undefined;
477
- } | undefined;
478
- url?: string | undefined;
479
- note?: string | undefined;
480
- remoteImages?: string[] | undefined;
481
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
482
- unsupportedReason?: string | undefined;
483
- }, {
484
- title: string;
485
- text: string;
486
- provider: "pinterest" | "arena" | "cosmos" | "x";
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?: "variant" | "image" | "video-cover" | "page" | undefined;
494
- }[];
495
- variant?: {
496
- projectId: string;
497
- sessionId: string;
498
- variantId: string;
499
- treeSha?: string | undefined;
500
- } | undefined;
501
- url?: string | 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
- title: string;
510
- text: string;
511
- provider: "pinterest" | "arena" | "cosmos" | "x";
512
- remoteId: string;
513
- media: {
514
- hash: string;
515
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
516
- bytes: number;
517
- representation: "variant" | "image" | "video-cover" | "page";
518
- page?: number | undefined;
519
- }[];
520
- variant?: {
521
- projectId: string;
522
- sessionId: string;
523
- variantId: string;
524
- treeSha?: string | undefined;
525
- } | undefined;
526
- url?: string | undefined;
527
- note?: string | undefined;
528
- remoteImages?: string[] | undefined;
529
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
530
- unsupportedReason?: string | undefined;
531
- }[];
532
- collection: {
533
- description: string | null;
534
- url: string | null;
535
- title: string;
536
- id: string;
537
- children: string[];
538
- total: number | null;
539
- parentId: string | null;
540
- };
541
- collectionIds: string[];
542
- }, {
543
- references: {
544
- title: string;
545
- text: string;
546
- provider: "pinterest" | "arena" | "cosmos" | "x";
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?: "variant" | "image" | "video-cover" | "page" | undefined;
554
- }[];
555
- variant?: {
556
- projectId: string;
557
- sessionId: string;
558
- variantId: string;
559
- treeSha?: string | undefined;
560
- } | undefined;
561
- url?: string | undefined;
562
- note?: string | undefined;
563
- remoteImages?: string[] | undefined;
564
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
565
- unsupportedReason?: string | undefined;
566
- }[];
567
- collection: {
568
- description: string | null;
569
- url: string | null;
570
- title: string;
571
- id: string;
572
- children: string[];
573
- total: number | null;
574
- parentId: string | null;
575
- };
576
- collectionIds: string[];
577
- }>, "many">;
173
+ provider: z.ZodEnum<{
174
+ pinterest: "pinterest";
175
+ arena: "arena";
176
+ cosmos: "cosmos";
177
+ x: "x";
178
+ }>;
179
+ }, z.core.$strip>>;
180
+ }, z.core.$strip>>;
578
181
  reusableCount: z.ZodNumber;
579
- }, "strip", z.ZodTypeAny, {
580
- runtime: "claude" | "codex" | "cursor";
581
- discoveryId: string;
582
- sources: {
583
- references: {
584
- title: string;
585
- text: string;
586
- provider: "pinterest" | "arena" | "cosmos" | "x";
587
- remoteId: string;
588
- media: {
589
- hash: string;
590
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
591
- bytes: number;
592
- representation: "variant" | "image" | "video-cover" | "page";
593
- page?: number | undefined;
594
- }[];
595
- variant?: {
596
- projectId: string;
597
- sessionId: string;
598
- variantId: string;
599
- treeSha?: string | undefined;
600
- } | undefined;
601
- url?: string | undefined;
602
- note?: string | undefined;
603
- remoteImages?: string[] | undefined;
604
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
605
- unsupportedReason?: string | undefined;
606
- }[];
607
- collection: {
608
- description: string | null;
609
- url: string | null;
610
- title: string;
611
- id: string;
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
- title: string;
625
- text: string;
626
- provider: "pinterest" | "arena" | "cosmos" | "x";
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?: "variant" | "image" | "video-cover" | "page" | undefined;
634
- }[];
635
- variant?: {
636
- projectId: string;
637
- sessionId: string;
638
- variantId: string;
639
- treeSha?: string | undefined;
640
- } | undefined;
641
- url?: string | undefined;
642
- note?: string | undefined;
643
- remoteImages?: string[] | undefined;
644
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
645
- unsupportedReason?: string | undefined;
646
- }[];
647
- collection: {
648
- description: string | null;
649
- url: string | null;
650
- title: string;
651
- id: string;
652
- children: string[];
653
- total: number | null;
654
- parentId: string | null;
655
- };
656
- collectionIds: string[];
657
- }[];
658
- reusableCount: number;
659
- }>;
182
+ }, z.core.$strip>;
660
183
  export declare const ReferencePlanSchema: z.ZodObject<{
661
184
  discoveryId: z.ZodString;
662
- runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
185
+ runtime: z.ZodEnum<{
186
+ claude: "claude";
187
+ codex: "codex";
188
+ cursor: "cursor";
189
+ }>;
663
190
  sources: z.ZodArray<z.ZodObject<{
664
191
  collection: z.ZodObject<{
665
192
  id: z.ZodString;
@@ -668,25 +195,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
668
195
  url: z.ZodNullable<z.ZodString>;
669
196
  total: z.ZodNullable<z.ZodNumber>;
670
197
  parentId: z.ZodNullable<z.ZodString>;
671
- children: z.ZodArray<z.ZodString, "many">;
672
- }, "strip", z.ZodTypeAny, {
673
- description: string | null;
674
- url: string | null;
675
- title: string;
676
- id: string;
677
- children: string[];
678
- total: number | null;
679
- parentId: string | null;
680
- }, {
681
- description: string | null;
682
- url: string | null;
683
- title: string;
684
- id: string;
685
- children: string[];
686
- total: number | null;
687
- parentId: string | null;
688
- }>;
689
- collectionIds: z.ZodArray<z.ZodString, "many">;
198
+ children: z.ZodArray<z.ZodString>;
199
+ }, z.core.$strip>;
200
+ collectionIds: z.ZodArray<z.ZodString>;
690
201
  references: z.ZodArray<z.ZodObject<{
691
202
  remoteId: z.ZodString;
692
203
  title: z.ZodString;
@@ -694,330 +205,85 @@ export declare const ReferencePlanSchema: z.ZodObject<{
694
205
  url: z.ZodOptional<z.ZodString>;
695
206
  media: z.ZodArray<z.ZodObject<{
696
207
  hash: z.ZodString;
697
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
208
+ mimeType: z.ZodEnum<{
209
+ "image/png": "image/png";
210
+ "image/jpeg": "image/jpeg";
211
+ "image/webp": "image/webp";
212
+ "image/gif": "image/gif";
213
+ }>;
698
214
  bytes: z.ZodNumber;
699
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
215
+ representation: z.ZodDefault<z.ZodEnum<{
216
+ variant: "variant";
217
+ image: "image";
218
+ "video-cover": "video-cover";
219
+ page: "page";
220
+ }>>;
700
221
  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: "variant" | "image" | "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?: "variant" | "image" | "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">>;
222
+ }, z.core.$strip>>;
223
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
224
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
225
+ image: "image";
226
+ "video-cover": "video-cover";
227
+ }>>>;
716
228
  unsupportedReason: z.ZodOptional<z.ZodString>;
717
229
  variant: z.ZodOptional<z.ZodObject<{
718
230
  projectId: z.ZodString;
719
231
  sessionId: z.ZodString;
720
232
  variantId: z.ZodString;
721
- } & {
722
233
  treeSha: z.ZodOptional<z.ZodString>;
723
- }, "strict", z.ZodTypeAny, {
724
- projectId: string;
725
- sessionId: string;
726
- variantId: string;
727
- treeSha?: string | undefined;
728
- }, {
729
- projectId: string;
730
- sessionId: string;
731
- variantId: string;
732
- treeSha?: string | undefined;
733
- }>>;
234
+ }, z.core.$strict>>;
734
235
  note: z.ZodOptional<z.ZodString>;
735
- } & {
736
- provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
737
- }, "strip", z.ZodTypeAny, {
738
- title: string;
739
- text: string;
740
- provider: "pinterest" | "arena" | "cosmos" | "x";
741
- remoteId: string;
742
- media: {
743
- hash: string;
744
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
745
- bytes: number;
746
- representation: "variant" | "image" | "video-cover" | "page";
747
- page?: number | undefined;
748
- }[];
749
- variant?: {
750
- projectId: string;
751
- sessionId: string;
752
- variantId: string;
753
- treeSha?: string | undefined;
754
- } | undefined;
755
- url?: string | undefined;
756
- note?: string | undefined;
757
- remoteImages?: string[] | undefined;
758
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
759
- unsupportedReason?: string | undefined;
760
- }, {
761
- title: string;
762
- text: string;
763
- provider: "pinterest" | "arena" | "cosmos" | "x";
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?: "variant" | "image" | "video-cover" | "page" | undefined;
771
- }[];
772
- variant?: {
773
- projectId: string;
774
- sessionId: string;
775
- variantId: string;
776
- treeSha?: string | undefined;
777
- } | undefined;
778
- url?: string | 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
- title: string;
787
- text: string;
788
- provider: "pinterest" | "arena" | "cosmos" | "x";
789
- remoteId: string;
790
- media: {
791
- hash: string;
792
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
793
- bytes: number;
794
- representation: "variant" | "image" | "video-cover" | "page";
795
- page?: number | undefined;
796
- }[];
797
- variant?: {
798
- projectId: string;
799
- sessionId: string;
800
- variantId: string;
801
- treeSha?: string | undefined;
802
- } | undefined;
803
- url?: string | undefined;
804
- note?: string | undefined;
805
- remoteImages?: string[] | undefined;
806
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
807
- unsupportedReason?: string | undefined;
808
- }[];
809
- collection: {
810
- description: string | null;
811
- url: string | null;
812
- title: string;
813
- id: string;
814
- children: string[];
815
- total: number | null;
816
- parentId: string | null;
817
- };
818
- collectionIds: string[];
819
- }, {
820
- references: {
821
- title: string;
822
- text: string;
823
- provider: "pinterest" | "arena" | "cosmos" | "x";
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?: "variant" | "image" | "video-cover" | "page" | undefined;
831
- }[];
832
- variant?: {
833
- projectId: string;
834
- sessionId: string;
835
- variantId: string;
836
- treeSha?: string | undefined;
837
- } | undefined;
838
- url?: string | undefined;
839
- note?: string | undefined;
840
- remoteImages?: string[] | undefined;
841
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
842
- unsupportedReason?: string | undefined;
843
- }[];
844
- collection: {
845
- description: string | null;
846
- url: string | null;
847
- title: string;
848
- id: string;
849
- children: string[];
850
- total: number | null;
851
- parentId: string | null;
852
- };
853
- collectionIds: string[];
854
- }>, "many">;
236
+ provider: z.ZodEnum<{
237
+ pinterest: "pinterest";
238
+ arena: "arena";
239
+ cosmos: "cosmos";
240
+ x: "x";
241
+ }>;
242
+ }, z.core.$strip>>;
243
+ }, z.core.$strip>>;
855
244
  reusableCount: z.ZodNumber;
856
- } & {
857
245
  id: z.ZodString;
858
- profile: z.ZodEffects<z.ZodObject<{
246
+ profile: z.ZodPipe<z.ZodObject<{
859
247
  id: z.ZodString;
860
248
  username: z.ZodString;
861
249
  title: z.ZodString;
862
- url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
863
- }, "strip", z.ZodTypeAny, {
864
- url: string;
865
- title: string;
250
+ url: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString]>;
251
+ }, z.core.$strip>, z.ZodTransform<{
866
252
  id: string;
867
253
  username: string;
868
- }, {
869
- url: string;
870
254
  title: string;
871
- id: string;
872
- username: string;
873
- }>, {
874
255
  url: string;
875
- title: string;
876
- id: string;
877
- username: string;
878
256
  }, {
879
- url: string;
880
- title: string;
881
257
  id: string;
882
258
  username: string;
883
- }>;
259
+ title: string;
260
+ url: string;
261
+ }>>;
884
262
  revision: z.ZodString;
885
263
  createdAt: z.ZodString;
886
264
  expiresAt: z.ZodString;
887
265
  approvedAt: z.ZodNullable<z.ZodString>;
888
- jobIds: z.ZodArray<z.ZodString, "many">;
889
- }, "strip", z.ZodTypeAny, {
890
- expiresAt: string;
891
- revision: string;
892
- runtime: "claude" | "codex" | "cursor";
893
- id: string;
894
- profile: {
895
- url: string;
896
- title: string;
897
- id: string;
898
- username: string;
899
- };
900
- createdAt: string;
901
- discoveryId: string;
902
- sources: {
903
- references: {
904
- title: string;
905
- text: string;
906
- provider: "pinterest" | "arena" | "cosmos" | "x";
907
- remoteId: string;
908
- media: {
909
- hash: string;
910
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
911
- bytes: number;
912
- representation: "variant" | "image" | "video-cover" | "page";
913
- page?: number | undefined;
914
- }[];
915
- variant?: {
916
- projectId: string;
917
- sessionId: string;
918
- variantId: string;
919
- treeSha?: string | undefined;
920
- } | undefined;
921
- url?: string | undefined;
922
- note?: string | undefined;
923
- remoteImages?: string[] | undefined;
924
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
925
- unsupportedReason?: string | undefined;
926
- }[];
927
- collection: {
928
- description: string | null;
929
- url: string | null;
930
- title: string;
931
- id: string;
932
- children: string[];
933
- total: number | null;
934
- parentId: string | null;
935
- };
936
- collectionIds: string[];
937
- }[];
938
- reusableCount: number;
939
- approvedAt: string | null;
940
- jobIds: string[];
941
- }, {
942
- expiresAt: string;
943
- revision: string;
944
- runtime: "claude" | "codex" | "cursor";
945
- id: string;
946
- profile: {
947
- url: string;
948
- title: string;
949
- id: string;
950
- username: string;
951
- };
952
- createdAt: string;
953
- discoveryId: string;
954
- sources: {
955
- references: {
956
- title: string;
957
- text: string;
958
- provider: "pinterest" | "arena" | "cosmos" | "x";
959
- remoteId: string;
960
- media: {
961
- hash: string;
962
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
963
- bytes: number;
964
- page?: number | undefined;
965
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
966
- }[];
967
- variant?: {
968
- projectId: string;
969
- sessionId: string;
970
- variantId: string;
971
- treeSha?: string | undefined;
972
- } | undefined;
973
- url?: string | undefined;
974
- note?: string | undefined;
975
- remoteImages?: string[] | undefined;
976
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
977
- unsupportedReason?: string | undefined;
978
- }[];
979
- collection: {
980
- description: string | null;
981
- url: string | null;
982
- title: string;
983
- id: string;
984
- children: string[];
985
- total: number | null;
986
- parentId: string | null;
987
- };
988
- collectionIds: string[];
989
- }[];
990
- reusableCount: number;
991
- approvedAt: string | null;
992
- jobIds: string[];
993
- }>;
266
+ jobIds: z.ZodArray<z.ZodString>;
267
+ }, z.core.$strip>;
994
268
  export declare const ReferencePlanRequestSchema: z.ZodObject<{
995
269
  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
- collectionIds: string[];
1001
- discoveryId: string;
1002
- }, {
1003
- runtime: "claude" | "codex" | "cursor";
1004
- collectionIds: string[];
1005
- discoveryId: string;
1006
- }>;
270
+ collectionIds: z.ZodArray<z.ZodString>;
271
+ runtime: z.ZodEnum<{
272
+ claude: "claude";
273
+ codex: "codex";
274
+ cursor: "cursor";
275
+ }>;
276
+ }, z.core.$strict>;
1007
277
  export declare const ReferenceApprovalSchema: z.ZodObject<{
1008
278
  id: z.ZodString;
1009
279
  revision: z.ZodString;
1010
280
  isApproved: z.ZodLiteral<true>;
1011
- }, "strict", z.ZodTypeAny, {
1012
- revision: string;
1013
- id: string;
1014
- isApproved: true;
1015
- }, {
1016
- revision: string;
1017
- id: string;
1018
- isApproved: true;
281
+ }, z.core.$strict>;
282
+ export declare const ReferenceOnboardingActionSchema: z.ZodEnum<{
283
+ later: "later";
284
+ dismiss: "dismiss";
285
+ reset: "reset";
1019
286
  }>;
1020
- export declare const ReferenceOnboardingActionSchema: z.ZodEnum<["later", "dismiss", "reset"]>;
1021
287
  export type ReferenceDiscovery = z.infer<typeof ReferenceDiscoverySchema>;
1022
288
  export type ReferenceImportPlan = z.infer<typeof ReferencePlanSchema>;
1023
289
  export type ReferencePlanSource = z.infer<typeof ReferencePlanSourceSchema>;
@@ -1028,10 +294,10 @@ export declare const referencePlanSummary: (plan: ReferenceImportPlan) => {
1028
294
  revision: string;
1029
295
  discoveryId: string;
1030
296
  profile: {
1031
- url: string;
1032
- title: string;
1033
297
  id: string;
1034
298
  username: string;
299
+ title: string;
300
+ url: string;
1035
301
  };
1036
302
  provider: "pinterest" | "arena" | "cosmos" | "x";
1037
303
  runtime: "claude" | "codex" | "cursor";
@@ -1042,13 +308,13 @@ export declare const referencePlanSummary: (plan: ReferenceImportPlan) => {
1042
308
  collections: {
1043
309
  includedCollectionIds: string[];
1044
310
  referenceCount: number;
311
+ id: string;
312
+ title: string;
1045
313
  description: string | null;
1046
314
  url: string | null;
1047
- title: string;
1048
- id: string;
1049
- children: string[];
1050
315
  total: number | null;
1051
316
  parentId: string | null;
317
+ children: string[];
1052
318
  }[];
1053
319
  collectionCount: number;
1054
320
  referenceCount: number;