rivet-design 0.26.1 → 0.26.2

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 (93) hide show
  1. package/bin/rivet.js +13 -0
  2. package/dist/agent-variants/WorkerExecutorService.d.ts +0 -2
  3. package/dist/agent-variants/WorkerExecutorService.js +0 -18
  4. package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -8
  5. package/dist/agent-variants/contracts.d.ts +897 -4764
  6. package/dist/agent-variants/contracts.js +1 -121
  7. package/dist/agent-variants/index.d.ts +1 -1
  8. package/dist/agent-variants/variantsTelemetry.d.ts +0 -8
  9. package/dist/agent-variants/workItemInput.d.ts +278 -278
  10. package/dist/cli/commands/contextRequest.js +1 -1
  11. package/dist/cli/commands/guidanceReferences.d.ts +2 -2
  12. package/dist/cli/commands/guidanceVerifierPackage.d.ts +2 -2
  13. package/dist/cli/editorSession.d.ts +1 -13
  14. package/dist/cli/runtimeInterruption.d.ts +2 -16
  15. package/dist/config/pluginMetrics.js +0 -1
  16. package/dist/hosts/workerDefaults.d.ts +0 -11
  17. package/dist/hosts/workerDefaults.js +1 -30
  18. package/dist/index-core.d.ts +0 -1
  19. package/dist/index.js +1 -1
  20. package/dist/install/automaticCliUpdate.d.ts +1 -0
  21. package/dist/install/automaticCliUpdate.js +32 -22
  22. package/dist/install/channelCli.d.ts +1 -1
  23. package/dist/install/channelCli.js +11 -6
  24. package/dist/install/channelManager.d.ts +5 -2
  25. package/dist/install/globalBootstrap.d.ts +5 -3
  26. package/dist/install/globalBootstrap.js +21 -9
  27. package/dist/install/npmCommand.d.ts +15 -0
  28. package/dist/install/npmCommand.js +59 -0
  29. package/dist/routes/agentVariants.js +3 -14
  30. package/dist/routes/library/browserAccess.js +6 -2
  31. package/dist/routes/library/guidance.js +3 -1
  32. package/dist/routes/library/middleware.js +4 -4
  33. package/dist/routes/library/navigation.js +3 -1
  34. package/dist/routes/library/profiles.js +5 -5
  35. package/dist/routes/library/projects.js +17 -7
  36. package/dist/routes/library/referenceOnboarding.js +4 -2
  37. package/dist/routes/library/schemas.d.ts +2 -15
  38. package/dist/routes/telemetry.js +1 -1
  39. package/dist/routes/variantRequestSchema.d.ts +4 -4
  40. package/dist/routes/variantRequestSchema.js +7 -2
  41. package/dist/services/AuthService.d.ts +3 -56
  42. package/dist/services/AuthService.js +0 -28
  43. package/dist/services/ConfigManager.d.ts +0 -2
  44. package/dist/services/ConfigManager.js +0 -14
  45. package/dist/services/HubDiscovery.d.ts +1 -9
  46. package/dist/services/IntegrationsClient.d.ts +16 -16
  47. package/dist/services/MCPOnboardingTelemetry.d.ts +0 -14
  48. package/dist/services/MCPOnboardingTelemetry.js +0 -62
  49. package/dist/services/ProjectRegistry.d.ts +5 -24
  50. package/dist/services/TelemetryService.d.ts +1 -62
  51. package/dist/services/TelemetryService.js +0 -113
  52. package/dist/services/TreeStore.d.ts +0 -2
  53. package/dist/services/TreeStore.js +0 -24
  54. package/dist/services/profiles/DesignProfiles.d.ts +180 -125
  55. package/dist/services/profiles/ProfilePlanning.d.ts +38 -38
  56. package/dist/services/profiles/ReferenceReader.d.ts +14 -14
  57. package/dist/services/profiles/modelContract.js +4 -4
  58. package/dist/storage/library/ProjectPreviewCache.d.ts +1 -13
  59. package/dist/storage/profiles/ProfilePlans.d.ts +137 -137
  60. package/dist/storage/profiles/ProfileRecords.d.ts +62 -37
  61. package/dist/storage/profiles/planSchema.d.ts +40 -40
  62. package/dist/storage/profiles/schema.d.ts +16 -16
  63. package/dist/types/api-responses.d.ts +174 -0
  64. package/dist/types/api-responses.js +108 -0
  65. package/dist/types/cosmos-profile.d.ts +17 -105
  66. package/dist/types/cosmos.d.ts +48 -266
  67. package/dist/types/design-library.d.ts +230 -61
  68. package/dist/types/design-library.js +38 -1
  69. package/dist/types/design-profile.d.ts +220 -529
  70. package/dist/types/design-profile.js +5 -1
  71. package/dist/types/guidance-references.d.ts +68 -316
  72. package/dist/types/guidance-verifier.d.ts +65 -558
  73. package/dist/types/guidance-verifier.js +1 -1
  74. package/dist/types/guidance.d.ts +182 -1643
  75. package/dist/types/guidance.js +4 -1
  76. package/dist/types/project-library.d.ts +60 -30
  77. package/dist/types/project-library.js +32 -1
  78. package/dist/types/reference-connectors.d.ts +38 -162
  79. package/dist/types/reference-onboarding.d.ts +144 -878
  80. package/dist/types/reference-pages.d.ts +27 -139
  81. package/dist/types/x-bookmarks.d.ts +40 -296
  82. package/dist/utils/displayLocale.d.ts +0 -1
  83. package/dist/utils/displayLocale.js +1 -3
  84. package/package.json +4 -4
  85. package/src/ui/dist/assets/LibraryEntry-92R_T-Xa.js +37 -0
  86. package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
  87. package/src/ui/dist/assets/main-DgEfJvYu.js +497 -0
  88. package/src/ui/dist/index.html +2 -2
  89. package/dist/types/change-types.d.ts +0 -66
  90. package/dist/types/change-types.js +0 -3
  91. package/src/ui/dist/assets/LibraryEntry-Cr4GFYXW.js +0 -37
  92. package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
  93. package/src/ui/dist/assets/main-tPO1OCpZ.js +0 -439
@@ -2,1751 +2,300 @@ import { z } from 'zod';
2
2
  export declare const GUIDANCE_IMAGE_BYTES: number;
3
3
  export declare const GuidanceAttachmentSchema: z.ZodObject<{
4
4
  hash: z.ZodString;
5
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
5
+ mimeType: z.ZodEnum<{
6
+ "image/png": "image/png";
7
+ "image/jpeg": "image/jpeg";
8
+ "image/webp": "image/webp";
9
+ "image/gif": "image/gif";
10
+ }>;
6
11
  bytes: z.ZodNumber;
7
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
12
+ representation: z.ZodDefault<z.ZodEnum<{
13
+ variant: "variant";
14
+ image: "image";
15
+ "video-cover": "video-cover";
16
+ page: "page";
17
+ }>>;
8
18
  page: z.ZodOptional<z.ZodNumber>;
9
- } & {
10
19
  source: z.ZodString;
11
20
  alt: z.ZodString;
12
21
  title: z.ZodOptional<z.ZodString>;
13
22
  path: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- path: string;
16
- source: string;
17
- hash: string;
18
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
19
- bytes: number;
20
- representation: "variant" | "image" | "video-cover" | "page";
21
- alt: string;
22
- title?: string | undefined;
23
- page?: number | undefined;
24
- }, {
25
- path: string;
26
- source: string;
27
- hash: string;
28
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
29
- bytes: number;
30
- alt: string;
31
- title?: string | undefined;
32
- page?: number | undefined;
33
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
34
- }>;
23
+ }, z.core.$strip>;
35
24
  export type GuidanceAttachment = z.infer<typeof GuidanceAttachmentSchema>;
36
25
  export declare const guidanceByteLength: (markdown: string) => number;
37
26
  export declare const GuidanceDocumentSchema: z.ZodObject<{
38
27
  id: z.ZodString;
39
28
  title: z.ZodString;
40
- markdown: z.ZodEffects<z.ZodString, string, string>;
29
+ markdown: z.ZodString;
41
30
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
31
  hash: z.ZodString;
43
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
32
+ mimeType: z.ZodEnum<{
33
+ "image/png": "image/png";
34
+ "image/jpeg": "image/jpeg";
35
+ "image/webp": "image/webp";
36
+ "image/gif": "image/gif";
37
+ }>;
44
38
  bytes: z.ZodNumber;
45
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
39
+ representation: z.ZodDefault<z.ZodEnum<{
40
+ variant: "variant";
41
+ image: "image";
42
+ "video-cover": "video-cover";
43
+ page: "page";
44
+ }>>;
46
45
  page: z.ZodOptional<z.ZodNumber>;
47
- } & {
48
46
  source: z.ZodString;
49
47
  alt: z.ZodString;
50
48
  title: z.ZodOptional<z.ZodString>;
51
49
  path: z.ZodString;
52
- }, "strip", z.ZodTypeAny, {
53
- path: string;
54
- source: string;
55
- hash: string;
56
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
57
- bytes: number;
58
- representation: "variant" | "image" | "video-cover" | "page";
59
- alt: string;
60
- title?: string | undefined;
61
- page?: number | undefined;
62
- }, {
63
- path: string;
64
- source: string;
65
- hash: string;
66
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
67
- bytes: number;
68
- alt: string;
69
- title?: string | undefined;
70
- page?: number | undefined;
71
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
72
- }>, "many">>;
73
- references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
74
- kind: z.ZodEnum<["url", "repository"]>;
75
- url: z.ZodEffects<z.ZodString, string, string>;
50
+ }, z.core.$strip>>>;
51
+ references: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ kind: z.ZodEnum<{
53
+ url: "url";
54
+ repository: "repository";
55
+ }>;
56
+ url: z.ZodString;
76
57
  intent: z.ZodString;
77
58
  revision: z.ZodOptional<z.ZodString>;
78
- } & {
79
59
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
- name: z.ZodEffects<z.ZodString, string, string>;
81
- content: z.ZodEffects<z.ZodString, string, string>;
82
- } & {
60
+ name: z.ZodString;
61
+ content: z.ZodString;
83
62
  path: z.ZodOptional<z.ZodString>;
84
63
  sha256: z.ZodOptional<z.ZodString>;
85
- }, "strict", z.ZodTypeAny, {
86
- name: string;
87
- content: string;
88
- path?: string | undefined;
89
- sha256?: string | undefined;
90
- }, {
91
- name: string;
92
- content: string;
93
- path?: string | undefined;
94
- sha256?: string | undefined;
95
- }>, "many">>;
64
+ }, z.core.$strict>>>;
96
65
  digest: z.ZodOptional<z.ZodString>;
97
- }, "strict", z.ZodTypeAny, {
98
- url: string;
99
- kind: "url" | "repository";
100
- intent: string;
101
- digest?: string | undefined;
102
- revision?: string | undefined;
103
- files?: {
104
- name: string;
105
- content: string;
106
- path?: string | undefined;
107
- sha256?: string | undefined;
108
- }[] | undefined;
109
- }, {
110
- url: string;
111
- kind: "url" | "repository";
112
- intent: string;
113
- digest?: string | undefined;
114
- revision?: string | undefined;
115
- files?: {
116
- name: string;
117
- content: string;
118
- path?: string | undefined;
119
- sha256?: string | undefined;
120
- }[] | undefined;
121
- }>, z.ZodObject<{
66
+ }, z.core.$strict>, z.ZodObject<{
122
67
  kind: z.ZodLiteral<"directory">;
123
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
68
+ path: z.ZodString;
124
69
  intent: z.ZodString;
125
- }, "strict", z.ZodTypeAny, {
126
- path: string;
127
- kind: "directory";
128
- intent: string;
129
- }, {
130
- path: string;
131
- kind: "directory";
132
- intent: string;
133
- }>]>, "many">, ({
134
- path: string;
135
- kind: "directory";
136
- intent: string;
137
- } | {
138
- url: string;
139
- kind: "url" | "repository";
140
- intent: string;
141
- digest?: string | undefined;
142
- revision?: string | undefined;
143
- files?: {
144
- name: string;
145
- content: string;
146
- path?: string | undefined;
147
- sha256?: string | undefined;
148
- }[] | undefined;
149
- })[], ({
150
- path: string;
151
- kind: "directory";
152
- intent: string;
153
- } | {
154
- url: string;
155
- kind: "url" | "repository";
156
- intent: string;
157
- digest?: string | undefined;
158
- revision?: string | undefined;
159
- files?: {
160
- name: string;
161
- content: string;
162
- path?: string | undefined;
163
- sha256?: string | undefined;
164
- }[] | undefined;
165
- })[]>>;
166
- }, "strict", z.ZodTypeAny, {
167
- title: string;
168
- id: string;
169
- markdown: string;
170
- attachments?: {
171
- path: string;
172
- source: string;
173
- hash: string;
174
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
175
- bytes: number;
176
- representation: "variant" | "image" | "video-cover" | "page";
177
- alt: string;
178
- title?: string | undefined;
179
- page?: number | undefined;
180
- }[] | undefined;
181
- references?: ({
182
- path: string;
183
- kind: "directory";
184
- intent: string;
185
- } | {
186
- url: string;
187
- kind: "url" | "repository";
188
- intent: string;
189
- digest?: string | undefined;
190
- revision?: string | undefined;
191
- files?: {
192
- name: string;
193
- content: string;
194
- path?: string | undefined;
195
- sha256?: string | undefined;
196
- }[] | undefined;
197
- })[] | undefined;
198
- }, {
199
- title: string;
200
- id: string;
201
- markdown: string;
202
- attachments?: {
203
- path: string;
204
- source: string;
205
- hash: string;
206
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
207
- bytes: number;
208
- alt: string;
209
- title?: string | undefined;
210
- page?: number | undefined;
211
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
212
- }[] | undefined;
213
- references?: ({
214
- path: string;
215
- kind: "directory";
216
- intent: string;
217
- } | {
218
- url: string;
219
- kind: "url" | "repository";
220
- intent: string;
221
- digest?: string | undefined;
222
- revision?: string | undefined;
223
- files?: {
224
- name: string;
225
- content: string;
226
- path?: string | undefined;
227
- sha256?: string | undefined;
228
- }[] | undefined;
229
- })[] | undefined;
230
- }>;
70
+ }, z.core.$strict>], "kind">>>;
71
+ }, z.core.$strict>;
231
72
  export declare const SavedGuidanceSchema: z.ZodObject<{
232
73
  id: z.ZodString;
233
74
  title: z.ZodString;
234
- markdown: z.ZodEffects<z.ZodString, string, string>;
75
+ markdown: z.ZodString;
235
76
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
236
77
  hash: z.ZodString;
237
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
78
+ mimeType: z.ZodEnum<{
79
+ "image/png": "image/png";
80
+ "image/jpeg": "image/jpeg";
81
+ "image/webp": "image/webp";
82
+ "image/gif": "image/gif";
83
+ }>;
238
84
  bytes: z.ZodNumber;
239
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
85
+ representation: z.ZodDefault<z.ZodEnum<{
86
+ variant: "variant";
87
+ image: "image";
88
+ "video-cover": "video-cover";
89
+ page: "page";
90
+ }>>;
240
91
  page: z.ZodOptional<z.ZodNumber>;
241
- } & {
242
92
  source: z.ZodString;
243
93
  alt: z.ZodString;
244
94
  title: z.ZodOptional<z.ZodString>;
245
95
  path: z.ZodString;
246
- }, "strip", z.ZodTypeAny, {
247
- path: string;
248
- source: string;
249
- hash: string;
250
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
251
- bytes: number;
252
- representation: "variant" | "image" | "video-cover" | "page";
253
- alt: string;
254
- title?: string | undefined;
255
- page?: number | undefined;
256
- }, {
257
- path: string;
258
- source: string;
259
- hash: string;
260
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
261
- bytes: number;
262
- alt: string;
263
- title?: string | undefined;
264
- page?: number | undefined;
265
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
266
- }>, "many">>;
267
- references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
268
- kind: z.ZodEnum<["url", "repository"]>;
269
- url: z.ZodEffects<z.ZodString, string, string>;
96
+ }, z.core.$strip>>>;
97
+ references: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
98
+ kind: z.ZodEnum<{
99
+ url: "url";
100
+ repository: "repository";
101
+ }>;
102
+ url: z.ZodString;
270
103
  intent: z.ZodString;
271
104
  revision: z.ZodOptional<z.ZodString>;
272
- } & {
273
105
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
274
- name: z.ZodEffects<z.ZodString, string, string>;
275
- content: z.ZodEffects<z.ZodString, string, string>;
276
- } & {
106
+ name: z.ZodString;
107
+ content: z.ZodString;
277
108
  path: z.ZodOptional<z.ZodString>;
278
109
  sha256: z.ZodOptional<z.ZodString>;
279
- }, "strict", z.ZodTypeAny, {
280
- name: string;
281
- content: string;
282
- path?: string | undefined;
283
- sha256?: string | undefined;
284
- }, {
285
- name: string;
286
- content: string;
287
- path?: string | undefined;
288
- sha256?: string | undefined;
289
- }>, "many">>;
110
+ }, z.core.$strict>>>;
290
111
  digest: z.ZodOptional<z.ZodString>;
291
- }, "strict", z.ZodTypeAny, {
292
- url: string;
293
- kind: "url" | "repository";
294
- intent: string;
295
- digest?: string | undefined;
296
- revision?: string | undefined;
297
- files?: {
298
- name: string;
299
- content: string;
300
- path?: string | undefined;
301
- sha256?: string | undefined;
302
- }[] | undefined;
303
- }, {
304
- url: string;
305
- kind: "url" | "repository";
306
- intent: string;
307
- digest?: string | undefined;
308
- revision?: string | undefined;
309
- files?: {
310
- name: string;
311
- content: string;
312
- path?: string | undefined;
313
- sha256?: string | undefined;
314
- }[] | undefined;
315
- }>, z.ZodObject<{
112
+ }, z.core.$strict>, z.ZodObject<{
316
113
  kind: z.ZodLiteral<"directory">;
317
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
114
+ path: z.ZodString;
318
115
  intent: z.ZodString;
319
- }, "strict", z.ZodTypeAny, {
320
- path: string;
321
- kind: "directory";
322
- intent: string;
323
- }, {
324
- path: string;
325
- kind: "directory";
326
- intent: string;
327
- }>]>, "many">, ({
328
- path: string;
329
- kind: "directory";
330
- intent: string;
331
- } | {
332
- url: string;
333
- kind: "url" | "repository";
334
- intent: string;
335
- digest?: string | undefined;
336
- revision?: string | undefined;
337
- files?: {
338
- name: string;
339
- content: string;
340
- path?: string | undefined;
341
- sha256?: string | undefined;
342
- }[] | undefined;
343
- })[], ({
344
- path: string;
345
- kind: "directory";
346
- intent: string;
347
- } | {
348
- url: string;
349
- kind: "url" | "repository";
350
- intent: string;
351
- digest?: string | undefined;
352
- revision?: string | undefined;
353
- files?: {
354
- name: string;
355
- content: string;
356
- path?: string | undefined;
357
- sha256?: string | undefined;
358
- }[] | undefined;
359
- })[]>>;
360
- } & {
116
+ }, z.core.$strict>], "kind">>>;
361
117
  isEnabled: z.ZodBoolean;
362
118
  verifier: z.ZodOptional<z.ZodObject<{
363
119
  isStale: z.ZodBoolean;
364
- }, "strict", z.ZodTypeAny, {
365
- isStale: boolean;
366
- }, {
367
- isStale: boolean;
368
- }>>;
369
- }, "strict", z.ZodTypeAny, {
370
- title: string;
371
- id: string;
372
- markdown: string;
373
- isEnabled: boolean;
374
- verifier?: {
375
- isStale: boolean;
376
- } | undefined;
377
- attachments?: {
378
- path: string;
379
- source: string;
380
- hash: string;
381
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
382
- bytes: number;
383
- representation: "variant" | "image" | "video-cover" | "page";
384
- alt: string;
385
- title?: string | undefined;
386
- page?: number | undefined;
387
- }[] | undefined;
388
- references?: ({
389
- path: string;
390
- kind: "directory";
391
- intent: string;
392
- } | {
393
- url: string;
394
- kind: "url" | "repository";
395
- intent: string;
396
- digest?: string | undefined;
397
- revision?: string | undefined;
398
- files?: {
399
- name: string;
400
- content: string;
401
- path?: string | undefined;
402
- sha256?: string | undefined;
403
- }[] | undefined;
404
- })[] | undefined;
405
- }, {
406
- title: string;
407
- id: string;
408
- markdown: string;
409
- isEnabled: boolean;
410
- verifier?: {
411
- isStale: boolean;
412
- } | undefined;
413
- attachments?: {
414
- path: string;
415
- source: string;
416
- hash: string;
417
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
418
- bytes: number;
419
- alt: string;
420
- title?: string | undefined;
421
- page?: number | undefined;
422
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
423
- }[] | undefined;
424
- references?: ({
425
- path: string;
426
- kind: "directory";
427
- intent: string;
428
- } | {
429
- url: string;
430
- kind: "url" | "repository";
431
- intent: string;
432
- digest?: string | undefined;
433
- revision?: string | undefined;
434
- files?: {
435
- name: string;
436
- content: string;
437
- path?: string | undefined;
438
- sha256?: string | undefined;
439
- }[] | undefined;
440
- })[] | undefined;
441
- }>;
120
+ }, z.core.$strict>>;
121
+ }, z.core.$strict>;
442
122
  export declare const GuidanceInputSchema: z.ZodObject<{
443
123
  title: z.ZodString;
444
- markdown: z.ZodEffects<z.ZodString, string, string>;
124
+ markdown: z.ZodString;
445
125
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
446
126
  hash: z.ZodString;
447
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
127
+ mimeType: z.ZodEnum<{
128
+ "image/png": "image/png";
129
+ "image/jpeg": "image/jpeg";
130
+ "image/webp": "image/webp";
131
+ "image/gif": "image/gif";
132
+ }>;
448
133
  bytes: z.ZodNumber;
449
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
134
+ representation: z.ZodDefault<z.ZodEnum<{
135
+ variant: "variant";
136
+ image: "image";
137
+ "video-cover": "video-cover";
138
+ page: "page";
139
+ }>>;
450
140
  page: z.ZodOptional<z.ZodNumber>;
451
- } & {
452
141
  source: z.ZodString;
453
142
  alt: z.ZodString;
454
143
  title: z.ZodOptional<z.ZodString>;
455
144
  path: z.ZodString;
456
- }, "strip", z.ZodTypeAny, {
457
- path: string;
458
- source: string;
459
- hash: string;
460
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
461
- bytes: number;
462
- representation: "variant" | "image" | "video-cover" | "page";
463
- alt: string;
464
- title?: string | undefined;
465
- page?: number | undefined;
466
- }, {
467
- path: string;
468
- source: string;
469
- hash: string;
470
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
471
- bytes: number;
472
- alt: string;
473
- title?: string | undefined;
474
- page?: number | undefined;
475
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
476
- }>, "many">>;
477
- references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
478
- kind: z.ZodEnum<["url", "repository"]>;
479
- url: z.ZodEffects<z.ZodString, string, string>;
145
+ }, z.core.$strip>>>;
146
+ references: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
147
+ kind: z.ZodEnum<{
148
+ url: "url";
149
+ repository: "repository";
150
+ }>;
151
+ url: z.ZodString;
480
152
  intent: z.ZodString;
481
153
  revision: z.ZodOptional<z.ZodString>;
482
- } & {
483
154
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
484
- name: z.ZodEffects<z.ZodString, string, string>;
485
- content: z.ZodEffects<z.ZodString, string, string>;
486
- } & {
155
+ name: z.ZodString;
156
+ content: z.ZodString;
487
157
  path: z.ZodOptional<z.ZodString>;
488
158
  sha256: z.ZodOptional<z.ZodString>;
489
- }, "strict", z.ZodTypeAny, {
490
- name: string;
491
- content: string;
492
- path?: string | undefined;
493
- sha256?: string | undefined;
494
- }, {
495
- name: string;
496
- content: string;
497
- path?: string | undefined;
498
- sha256?: string | undefined;
499
- }>, "many">>;
159
+ }, z.core.$strict>>>;
500
160
  digest: z.ZodOptional<z.ZodString>;
501
- }, "strict", z.ZodTypeAny, {
502
- url: string;
503
- kind: "url" | "repository";
504
- intent: string;
505
- digest?: string | undefined;
506
- revision?: string | undefined;
507
- files?: {
508
- name: string;
509
- content: string;
510
- path?: string | undefined;
511
- sha256?: string | undefined;
512
- }[] | undefined;
513
- }, {
514
- url: string;
515
- kind: "url" | "repository";
516
- intent: string;
517
- digest?: string | undefined;
518
- revision?: string | undefined;
519
- files?: {
520
- name: string;
521
- content: string;
522
- path?: string | undefined;
523
- sha256?: string | undefined;
524
- }[] | undefined;
525
- }>, z.ZodObject<{
161
+ }, z.core.$strict>, z.ZodObject<{
526
162
  kind: z.ZodLiteral<"directory">;
527
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
163
+ path: z.ZodString;
528
164
  intent: z.ZodString;
529
- }, "strict", z.ZodTypeAny, {
530
- path: string;
531
- kind: "directory";
532
- intent: string;
533
- }, {
534
- path: string;
535
- kind: "directory";
536
- intent: string;
537
- }>]>, "many">, ({
538
- path: string;
539
- kind: "directory";
540
- intent: string;
541
- } | {
542
- url: string;
543
- kind: "url" | "repository";
544
- intent: string;
545
- digest?: string | undefined;
546
- revision?: string | undefined;
547
- files?: {
548
- name: string;
549
- content: string;
550
- path?: string | undefined;
551
- sha256?: string | undefined;
552
- }[] | undefined;
553
- })[], ({
554
- path: string;
555
- kind: "directory";
556
- intent: string;
557
- } | {
558
- url: string;
559
- kind: "url" | "repository";
560
- intent: string;
561
- digest?: string | undefined;
562
- revision?: string | undefined;
563
- files?: {
564
- name: string;
565
- content: string;
566
- path?: string | undefined;
567
- sha256?: string | undefined;
568
- }[] | undefined;
569
- })[]>>;
570
- } & {
165
+ }, z.core.$strict>], "kind">>>;
571
166
  isEnabled: z.ZodDefault<z.ZodBoolean>;
572
- }, "strict", z.ZodTypeAny, {
573
- title: string;
574
- markdown: string;
575
- isEnabled: boolean;
576
- attachments?: {
577
- path: string;
578
- source: string;
579
- hash: string;
580
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
581
- bytes: number;
582
- representation: "variant" | "image" | "video-cover" | "page";
583
- alt: string;
584
- title?: string | undefined;
585
- page?: number | undefined;
586
- }[] | undefined;
587
- references?: ({
588
- path: string;
589
- kind: "directory";
590
- intent: string;
591
- } | {
592
- url: string;
593
- kind: "url" | "repository";
594
- intent: string;
595
- digest?: string | undefined;
596
- revision?: string | undefined;
597
- files?: {
598
- name: string;
599
- content: string;
600
- path?: string | undefined;
601
- sha256?: string | undefined;
602
- }[] | undefined;
603
- })[] | undefined;
604
- }, {
605
- title: string;
606
- markdown: string;
607
- attachments?: {
608
- path: string;
609
- source: string;
610
- hash: string;
611
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
612
- bytes: number;
613
- alt: string;
614
- title?: string | undefined;
615
- page?: number | undefined;
616
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
617
- }[] | undefined;
618
- references?: ({
619
- path: string;
620
- kind: "directory";
621
- intent: string;
622
- } | {
623
- url: string;
624
- kind: "url" | "repository";
625
- intent: string;
626
- digest?: string | undefined;
627
- revision?: string | undefined;
628
- files?: {
629
- name: string;
630
- content: string;
631
- path?: string | undefined;
632
- sha256?: string | undefined;
633
- }[] | undefined;
634
- })[] | undefined;
635
- isEnabled?: boolean | undefined;
636
- }>;
637
- export declare const GuidanceUpdateSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
167
+ }, z.core.$strict>;
168
+ export declare const GuidanceUpdateSchema: z.ZodObject<{
638
169
  title: z.ZodOptional<z.ZodString>;
639
- markdown: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
170
+ markdown: z.ZodOptional<z.ZodString>;
640
171
  attachments: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
641
172
  hash: z.ZodString;
642
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
173
+ mimeType: z.ZodEnum<{
174
+ "image/png": "image/png";
175
+ "image/jpeg": "image/jpeg";
176
+ "image/webp": "image/webp";
177
+ "image/gif": "image/gif";
178
+ }>;
643
179
  bytes: z.ZodNumber;
644
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
180
+ representation: z.ZodDefault<z.ZodEnum<{
181
+ variant: "variant";
182
+ image: "image";
183
+ "video-cover": "video-cover";
184
+ page: "page";
185
+ }>>;
645
186
  page: z.ZodOptional<z.ZodNumber>;
646
- } & {
647
187
  source: z.ZodString;
648
188
  alt: z.ZodString;
649
189
  title: z.ZodOptional<z.ZodString>;
650
190
  path: z.ZodString;
651
- }, "strip", z.ZodTypeAny, {
652
- path: string;
653
- source: string;
654
- hash: string;
655
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
656
- bytes: number;
657
- representation: "variant" | "image" | "video-cover" | "page";
658
- alt: string;
659
- title?: string | undefined;
660
- page?: number | undefined;
661
- }, {
662
- path: string;
663
- source: string;
664
- hash: string;
665
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
666
- bytes: number;
667
- alt: string;
668
- title?: string | undefined;
669
- page?: number | undefined;
670
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
671
- }>, "many">>>;
672
- references: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
673
- kind: z.ZodEnum<["url", "repository"]>;
674
- url: z.ZodEffects<z.ZodString, string, string>;
191
+ }, z.core.$strip>>>>;
192
+ references: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
193
+ kind: z.ZodEnum<{
194
+ url: "url";
195
+ repository: "repository";
196
+ }>;
197
+ url: z.ZodString;
675
198
  intent: z.ZodString;
676
199
  revision: z.ZodOptional<z.ZodString>;
677
- } & {
678
200
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
679
- name: z.ZodEffects<z.ZodString, string, string>;
680
- content: z.ZodEffects<z.ZodString, string, string>;
681
- } & {
201
+ name: z.ZodString;
202
+ content: z.ZodString;
682
203
  path: z.ZodOptional<z.ZodString>;
683
204
  sha256: z.ZodOptional<z.ZodString>;
684
- }, "strict", z.ZodTypeAny, {
685
- name: string;
686
- content: string;
687
- path?: string | undefined;
688
- sha256?: string | undefined;
689
- }, {
690
- name: string;
691
- content: string;
692
- path?: string | undefined;
693
- sha256?: string | undefined;
694
- }>, "many">>;
205
+ }, z.core.$strict>>>;
695
206
  digest: z.ZodOptional<z.ZodString>;
696
- }, "strict", z.ZodTypeAny, {
697
- url: string;
698
- kind: "url" | "repository";
699
- intent: string;
700
- digest?: string | undefined;
701
- revision?: string | undefined;
702
- files?: {
703
- name: string;
704
- content: string;
705
- path?: string | undefined;
706
- sha256?: string | undefined;
707
- }[] | undefined;
708
- }, {
709
- url: string;
710
- kind: "url" | "repository";
711
- intent: string;
712
- digest?: string | undefined;
713
- revision?: string | undefined;
714
- files?: {
715
- name: string;
716
- content: string;
717
- path?: string | undefined;
718
- sha256?: string | undefined;
719
- }[] | undefined;
720
- }>, z.ZodObject<{
207
+ }, z.core.$strict>, z.ZodObject<{
721
208
  kind: z.ZodLiteral<"directory">;
722
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
209
+ path: z.ZodString;
723
210
  intent: z.ZodString;
724
- }, "strict", z.ZodTypeAny, {
725
- path: string;
726
- kind: "directory";
727
- intent: string;
728
- }, {
729
- path: string;
730
- kind: "directory";
731
- intent: string;
732
- }>]>, "many">, ({
733
- path: string;
734
- kind: "directory";
735
- intent: string;
736
- } | {
737
- url: string;
738
- kind: "url" | "repository";
739
- intent: string;
740
- digest?: string | undefined;
741
- revision?: string | undefined;
742
- files?: {
743
- name: string;
744
- content: string;
745
- path?: string | undefined;
746
- sha256?: string | undefined;
747
- }[] | undefined;
748
- })[], ({
749
- path: string;
750
- kind: "directory";
751
- intent: string;
752
- } | {
753
- url: string;
754
- kind: "url" | "repository";
755
- intent: string;
756
- digest?: string | undefined;
757
- revision?: string | undefined;
758
- files?: {
759
- name: string;
760
- content: string;
761
- path?: string | undefined;
762
- sha256?: string | undefined;
763
- }[] | undefined;
764
- })[]>>>;
211
+ }, z.core.$strict>], "kind">>>>;
765
212
  isEnabled: z.ZodOptional<z.ZodBoolean>;
766
- } & {
767
213
  verifier: z.ZodOptional<z.ZodNullable<z.ZodObject<{
768
- markdown: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
769
- package: z.ZodOptional<z.ZodEffects<z.ZodObject<{
214
+ markdown: z.ZodString;
215
+ package: z.ZodOptional<z.ZodObject<{
770
216
  runtime: z.ZodLiteral<"node">;
771
- entrypoint: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
772
- files: z.ZodEffects<z.ZodArray<z.ZodObject<{
773
- name: z.ZodEffects<z.ZodString, string, string>;
774
- content: z.ZodEffects<z.ZodString, string, string>;
775
- }, "strict", z.ZodTypeAny, {
776
- name: string;
777
- content: string;
778
- }, {
779
- name: string;
780
- content: string;
781
- }>, "many">, {
782
- name: string;
783
- content: string;
784
- }[], {
785
- name: string;
786
- content: string;
787
- }[]>;
788
- }, "strict", z.ZodTypeAny, {
789
- files: {
790
- name: string;
791
- content: string;
792
- }[];
793
- runtime: "node";
794
- entrypoint: string;
795
- }, {
796
- files: {
797
- name: string;
798
- content: string;
799
- }[];
800
- runtime: "node";
801
- entrypoint: string;
802
- }>, {
803
- files: {
804
- name: string;
805
- content: string;
806
- }[];
807
- runtime: "node";
808
- entrypoint: string;
809
- }, {
810
- files: {
811
- name: string;
812
- content: string;
813
- }[];
814
- runtime: "node";
815
- entrypoint: string;
816
- }>>;
217
+ entrypoint: z.ZodString;
218
+ files: z.ZodArray<z.ZodObject<{
219
+ name: z.ZodString;
220
+ content: z.ZodString;
221
+ }, z.core.$strict>>;
222
+ }, z.core.$strict>>;
817
223
  sourceDigest: z.ZodString;
818
- }, "strict", z.ZodTypeAny, {
819
- markdown: string;
820
- sourceDigest: string;
821
- package?: {
822
- files: {
823
- name: string;
824
- content: string;
825
- }[];
826
- runtime: "node";
827
- entrypoint: string;
828
- } | undefined;
829
- }, {
830
- markdown: string;
831
- sourceDigest: string;
832
- package?: {
833
- files: {
834
- name: string;
835
- content: string;
836
- }[];
837
- runtime: "node";
838
- entrypoint: string;
839
- } | undefined;
840
- }>>>;
841
- }, "strict", z.ZodTypeAny, {
842
- verifier?: {
843
- markdown: string;
844
- sourceDigest: string;
845
- package?: {
846
- files: {
847
- name: string;
848
- content: string;
849
- }[];
850
- runtime: "node";
851
- entrypoint: string;
852
- } | undefined;
853
- } | null | undefined;
854
- title?: string | undefined;
855
- markdown?: string | undefined;
856
- attachments?: {
857
- path: string;
858
- source: string;
859
- hash: string;
860
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
861
- bytes: number;
862
- representation: "variant" | "image" | "video-cover" | "page";
863
- alt: string;
864
- title?: string | undefined;
865
- page?: number | undefined;
866
- }[] | undefined;
867
- references?: ({
868
- path: string;
869
- kind: "directory";
870
- intent: string;
871
- } | {
872
- url: string;
873
- kind: "url" | "repository";
874
- intent: string;
875
- digest?: string | undefined;
876
- revision?: string | undefined;
877
- files?: {
878
- name: string;
879
- content: string;
880
- path?: string | undefined;
881
- sha256?: string | undefined;
882
- }[] | undefined;
883
- })[] | undefined;
884
- isEnabled?: boolean | undefined;
885
- }, {
886
- verifier?: {
887
- markdown: string;
888
- sourceDigest: string;
889
- package?: {
890
- files: {
891
- name: string;
892
- content: string;
893
- }[];
894
- runtime: "node";
895
- entrypoint: string;
896
- } | undefined;
897
- } | null | undefined;
898
- title?: string | undefined;
899
- markdown?: string | undefined;
900
- attachments?: {
901
- path: string;
902
- source: string;
903
- hash: string;
904
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
905
- bytes: number;
906
- alt: string;
907
- title?: string | undefined;
908
- page?: number | undefined;
909
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
910
- }[] | undefined;
911
- references?: ({
912
- path: string;
913
- kind: "directory";
914
- intent: string;
915
- } | {
916
- url: string;
917
- kind: "url" | "repository";
918
- intent: string;
919
- digest?: string | undefined;
920
- revision?: string | undefined;
921
- files?: {
922
- name: string;
923
- content: string;
924
- path?: string | undefined;
925
- sha256?: string | undefined;
926
- }[] | undefined;
927
- })[] | undefined;
928
- isEnabled?: boolean | undefined;
929
- }>, {
930
- verifier?: {
931
- markdown: string;
932
- sourceDigest: string;
933
- package?: {
934
- files: {
935
- name: string;
936
- content: string;
937
- }[];
938
- runtime: "node";
939
- entrypoint: string;
940
- } | undefined;
941
- } | null | undefined;
942
- title?: string | undefined;
943
- markdown?: string | undefined;
944
- attachments?: {
945
- path: string;
946
- source: string;
947
- hash: string;
948
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
949
- bytes: number;
950
- representation: "variant" | "image" | "video-cover" | "page";
951
- alt: string;
952
- title?: string | undefined;
953
- page?: number | undefined;
954
- }[] | undefined;
955
- references?: ({
956
- path: string;
957
- kind: "directory";
958
- intent: string;
959
- } | {
960
- url: string;
961
- kind: "url" | "repository";
962
- intent: string;
963
- digest?: string | undefined;
964
- revision?: string | undefined;
965
- files?: {
966
- name: string;
967
- content: string;
968
- path?: string | undefined;
969
- sha256?: string | undefined;
970
- }[] | undefined;
971
- })[] | undefined;
972
- isEnabled?: boolean | undefined;
973
- }, {
974
- verifier?: {
975
- markdown: string;
976
- sourceDigest: string;
977
- package?: {
978
- files: {
979
- name: string;
980
- content: string;
981
- }[];
982
- runtime: "node";
983
- entrypoint: string;
984
- } | undefined;
985
- } | null | undefined;
986
- title?: string | undefined;
987
- markdown?: string | undefined;
988
- attachments?: {
989
- path: string;
990
- source: string;
991
- hash: string;
992
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
993
- bytes: number;
994
- alt: string;
995
- title?: string | undefined;
996
- page?: number | undefined;
997
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
998
- }[] | undefined;
999
- references?: ({
1000
- path: string;
1001
- kind: "directory";
1002
- intent: string;
1003
- } | {
1004
- url: string;
1005
- kind: "url" | "repository";
1006
- intent: string;
1007
- digest?: string | undefined;
1008
- revision?: string | undefined;
1009
- files?: {
1010
- name: string;
1011
- content: string;
1012
- path?: string | undefined;
1013
- sha256?: string | undefined;
1014
- }[] | undefined;
1015
- })[] | undefined;
1016
- isEnabled?: boolean | undefined;
1017
- }>, {
1018
- verifier?: {
1019
- markdown: string;
1020
- sourceDigest: string;
1021
- package?: {
1022
- files: {
1023
- name: string;
1024
- content: string;
1025
- }[];
1026
- runtime: "node";
1027
- entrypoint: string;
1028
- } | undefined;
1029
- } | null | undefined;
1030
- title?: string | undefined;
1031
- markdown?: string | undefined;
1032
- attachments?: {
1033
- path: string;
1034
- source: string;
1035
- hash: string;
1036
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
1037
- bytes: number;
1038
- representation: "variant" | "image" | "video-cover" | "page";
1039
- alt: string;
1040
- title?: string | undefined;
1041
- page?: number | undefined;
1042
- }[] | undefined;
1043
- references?: ({
1044
- path: string;
1045
- kind: "directory";
1046
- intent: string;
1047
- } | {
1048
- url: string;
1049
- kind: "url" | "repository";
1050
- intent: string;
1051
- digest?: string | undefined;
1052
- revision?: string | undefined;
1053
- files?: {
1054
- name: string;
1055
- content: string;
1056
- path?: string | undefined;
1057
- sha256?: string | undefined;
1058
- }[] | undefined;
1059
- })[] | undefined;
1060
- isEnabled?: boolean | undefined;
1061
- }, {
1062
- verifier?: {
1063
- markdown: string;
1064
- sourceDigest: string;
1065
- package?: {
1066
- files: {
1067
- name: string;
1068
- content: string;
1069
- }[];
1070
- runtime: "node";
1071
- entrypoint: string;
1072
- } | undefined;
1073
- } | null | undefined;
1074
- title?: string | undefined;
1075
- markdown?: string | undefined;
1076
- attachments?: {
1077
- path: string;
1078
- source: string;
1079
- hash: string;
1080
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
1081
- bytes: number;
1082
- alt: string;
1083
- title?: string | undefined;
1084
- page?: number | undefined;
1085
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
1086
- }[] | undefined;
1087
- references?: ({
1088
- path: string;
1089
- kind: "directory";
1090
- intent: string;
1091
- } | {
1092
- url: string;
1093
- kind: "url" | "repository";
1094
- intent: string;
1095
- digest?: string | undefined;
1096
- revision?: string | undefined;
1097
- files?: {
1098
- name: string;
1099
- content: string;
1100
- path?: string | undefined;
1101
- sha256?: string | undefined;
1102
- }[] | undefined;
1103
- })[] | undefined;
1104
- isEnabled?: boolean | undefined;
1105
- }>;
1106
- export declare const GuidanceUploadSchema: z.ZodObject<Omit<{
224
+ }, z.core.$strict>>>;
225
+ }, z.core.$strict>;
226
+ export declare const GuidanceUploadSchema: z.ZodObject<{
1107
227
  title: z.ZodString;
1108
- markdown: z.ZodEffects<z.ZodString, string, string>;
1109
- attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1110
- hash: z.ZodString;
1111
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
1112
- bytes: z.ZodNumber;
1113
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
1114
- page: z.ZodOptional<z.ZodNumber>;
1115
- } & {
1116
- source: z.ZodString;
1117
- alt: z.ZodString;
1118
- title: z.ZodOptional<z.ZodString>;
1119
- path: z.ZodString;
1120
- }, "strip", z.ZodTypeAny, {
1121
- path: string;
1122
- source: string;
1123
- hash: string;
1124
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
1125
- bytes: number;
1126
- representation: "variant" | "image" | "video-cover" | "page";
1127
- alt: string;
1128
- title?: string | undefined;
1129
- page?: number | undefined;
1130
- }, {
1131
- path: string;
1132
- source: string;
1133
- hash: string;
1134
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
1135
- bytes: number;
1136
- alt: string;
1137
- title?: string | undefined;
1138
- page?: number | undefined;
1139
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
1140
- }>, "many">>;
1141
- references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1142
- kind: z.ZodEnum<["url", "repository"]>;
1143
- url: z.ZodEffects<z.ZodString, string, string>;
1144
- intent: z.ZodString;
1145
- revision: z.ZodOptional<z.ZodString>;
1146
- } & {
1147
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1148
- name: z.ZodEffects<z.ZodString, string, string>;
1149
- content: z.ZodEffects<z.ZodString, string, string>;
1150
- } & {
1151
- path: z.ZodOptional<z.ZodString>;
1152
- sha256: z.ZodOptional<z.ZodString>;
1153
- }, "strict", z.ZodTypeAny, {
1154
- name: string;
1155
- content: string;
1156
- path?: string | undefined;
1157
- sha256?: string | undefined;
1158
- }, {
1159
- name: string;
1160
- content: string;
1161
- path?: string | undefined;
1162
- sha256?: string | undefined;
1163
- }>, "many">>;
1164
- digest: z.ZodOptional<z.ZodString>;
1165
- }, "strict", z.ZodTypeAny, {
1166
- url: string;
1167
- kind: "url" | "repository";
1168
- intent: string;
1169
- digest?: string | undefined;
1170
- revision?: string | undefined;
1171
- files?: {
1172
- name: string;
1173
- content: string;
1174
- path?: string | undefined;
1175
- sha256?: string | undefined;
1176
- }[] | undefined;
1177
- }, {
1178
- url: string;
1179
- kind: "url" | "repository";
1180
- intent: string;
1181
- digest?: string | undefined;
1182
- revision?: string | undefined;
1183
- files?: {
1184
- name: string;
1185
- content: string;
1186
- path?: string | undefined;
1187
- sha256?: string | undefined;
1188
- }[] | undefined;
1189
- }>, z.ZodObject<{
1190
- kind: z.ZodLiteral<"directory">;
1191
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1192
- intent: z.ZodString;
1193
- }, "strict", z.ZodTypeAny, {
1194
- path: string;
1195
- kind: "directory";
1196
- intent: string;
1197
- }, {
1198
- path: string;
1199
- kind: "directory";
1200
- intent: string;
1201
- }>]>, "many">, ({
1202
- path: string;
1203
- kind: "directory";
1204
- intent: string;
1205
- } | {
1206
- url: string;
1207
- kind: "url" | "repository";
1208
- intent: string;
1209
- digest?: string | undefined;
1210
- revision?: string | undefined;
1211
- files?: {
1212
- name: string;
1213
- content: string;
1214
- path?: string | undefined;
1215
- sha256?: string | undefined;
1216
- }[] | undefined;
1217
- })[], ({
1218
- path: string;
1219
- kind: "directory";
1220
- intent: string;
1221
- } | {
1222
- url: string;
1223
- kind: "url" | "repository";
1224
- intent: string;
1225
- digest?: string | undefined;
1226
- revision?: string | undefined;
1227
- files?: {
1228
- name: string;
1229
- content: string;
1230
- path?: string | undefined;
1231
- sha256?: string | undefined;
1232
- }[] | undefined;
1233
- })[]>>;
1234
- } & {
228
+ markdown: z.ZodString;
1235
229
  isEnabled: z.ZodDefault<z.ZodBoolean>;
1236
- }, "attachments" | "references"> & {
1237
230
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
1238
231
  source: z.ZodString;
1239
232
  dataUrl: z.ZodString;
1240
- }, "strict", z.ZodTypeAny, {
1241
- source: string;
1242
- dataUrl: string;
1243
- }, {
1244
- source: string;
1245
- dataUrl: string;
1246
- }>, "many">>;
1247
- references: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1248
- kind: z.ZodEnum<["url", "repository"]>;
1249
- url: z.ZodEffects<z.ZodString, string, string>;
233
+ }, z.core.$strict>>>;
234
+ references: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
235
+ kind: z.ZodEnum<{
236
+ url: "url";
237
+ repository: "repository";
238
+ }>;
239
+ url: z.ZodString;
1250
240
  intent: z.ZodString;
1251
241
  revision: z.ZodOptional<z.ZodString>;
1252
- } & {
1253
242
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1254
- name: z.ZodEffects<z.ZodString, string, string>;
1255
- content: z.ZodEffects<z.ZodString, string, string>;
1256
- }, "strict", z.ZodTypeAny, {
1257
- name: string;
1258
- content: string;
1259
- }, {
1260
- name: string;
1261
- content: string;
1262
- }>, "many">>;
1263
- }, "strict", z.ZodTypeAny, {
1264
- url: string;
1265
- kind: "url" | "repository";
1266
- intent: string;
1267
- revision?: string | undefined;
1268
- files?: {
1269
- name: string;
1270
- content: string;
1271
- }[] | undefined;
1272
- }, {
1273
- url: string;
1274
- kind: "url" | "repository";
1275
- intent: string;
1276
- revision?: string | undefined;
1277
- files?: {
1278
- name: string;
1279
- content: string;
1280
- }[] | undefined;
1281
- }>, z.ZodObject<{
243
+ name: z.ZodString;
244
+ content: z.ZodString;
245
+ }, z.core.$strict>>>;
246
+ }, z.core.$strict>, z.ZodObject<{
1282
247
  kind: z.ZodLiteral<"directory">;
1283
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
248
+ path: z.ZodString;
1284
249
  intent: z.ZodString;
1285
- }, "strict", z.ZodTypeAny, {
1286
- path: string;
1287
- kind: "directory";
1288
- intent: string;
1289
- }, {
1290
- path: string;
1291
- kind: "directory";
1292
- intent: string;
1293
- }>]>, "many">, ({
1294
- path: string;
1295
- kind: "directory";
1296
- intent: string;
1297
- } | {
1298
- url: string;
1299
- kind: "url" | "repository";
1300
- intent: string;
1301
- revision?: string | undefined;
1302
- files?: {
1303
- name: string;
1304
- content: string;
1305
- }[] | undefined;
1306
- })[], ({
1307
- path: string;
1308
- kind: "directory";
1309
- intent: string;
1310
- } | {
1311
- url: string;
1312
- kind: "url" | "repository";
1313
- intent: string;
1314
- revision?: string | undefined;
1315
- files?: {
1316
- name: string;
1317
- content: string;
1318
- }[] | undefined;
1319
- })[]>>;
1320
- }, "strict", z.ZodTypeAny, {
1321
- title: string;
1322
- markdown: string;
1323
- isEnabled: boolean;
1324
- references?: ({
1325
- path: string;
1326
- kind: "directory";
1327
- intent: string;
1328
- } | {
1329
- url: string;
1330
- kind: "url" | "repository";
1331
- intent: string;
1332
- revision?: string | undefined;
1333
- files?: {
1334
- name: string;
1335
- content: string;
1336
- }[] | undefined;
1337
- })[] | undefined;
1338
- images?: {
1339
- source: string;
1340
- dataUrl: string;
1341
- }[] | undefined;
1342
- }, {
1343
- title: string;
1344
- markdown: string;
1345
- references?: ({
1346
- path: string;
1347
- kind: "directory";
1348
- intent: string;
1349
- } | {
1350
- url: string;
1351
- kind: "url" | "repository";
1352
- intent: string;
1353
- revision?: string | undefined;
1354
- files?: {
1355
- name: string;
1356
- content: string;
1357
- }[] | undefined;
1358
- })[] | undefined;
1359
- images?: {
1360
- source: string;
1361
- dataUrl: string;
1362
- }[] | undefined;
1363
- isEnabled?: boolean | undefined;
1364
- }>;
1365
- export declare const GuidanceUploadUpdateSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
250
+ }, z.core.$strict>], "kind">>>;
251
+ }, z.core.$strict>;
252
+ export declare const GuidanceUploadUpdateSchema: z.ZodObject<{
1366
253
  title: z.ZodOptional<z.ZodString>;
1367
- markdown: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1368
- isEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
254
+ markdown: z.ZodOptional<z.ZodString>;
1369
255
  images: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1370
256
  source: z.ZodString;
1371
257
  dataUrl: z.ZodString;
1372
- }, "strict", z.ZodTypeAny, {
1373
- source: string;
1374
- dataUrl: string;
1375
- }, {
1376
- source: string;
1377
- dataUrl: string;
1378
- }>, "many">>>;
1379
- references: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1380
- kind: z.ZodEnum<["url", "repository"]>;
1381
- url: z.ZodEffects<z.ZodString, string, string>;
258
+ }, z.core.$strict>>>>;
259
+ references: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
260
+ kind: z.ZodEnum<{
261
+ url: "url";
262
+ repository: "repository";
263
+ }>;
264
+ url: z.ZodString;
1382
265
  intent: z.ZodString;
1383
266
  revision: z.ZodOptional<z.ZodString>;
1384
- } & {
1385
267
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1386
- name: z.ZodEffects<z.ZodString, string, string>;
1387
- content: z.ZodEffects<z.ZodString, string, string>;
1388
- }, "strict", z.ZodTypeAny, {
1389
- name: string;
1390
- content: string;
1391
- }, {
1392
- name: string;
1393
- content: string;
1394
- }>, "many">>;
1395
- }, "strict", z.ZodTypeAny, {
1396
- url: string;
1397
- kind: "url" | "repository";
1398
- intent: string;
1399
- revision?: string | undefined;
1400
- files?: {
1401
- name: string;
1402
- content: string;
1403
- }[] | undefined;
1404
- }, {
1405
- url: string;
1406
- kind: "url" | "repository";
1407
- intent: string;
1408
- revision?: string | undefined;
1409
- files?: {
1410
- name: string;
1411
- content: string;
1412
- }[] | undefined;
1413
- }>, z.ZodObject<{
268
+ name: z.ZodString;
269
+ content: z.ZodString;
270
+ }, z.core.$strict>>>;
271
+ }, z.core.$strict>, z.ZodObject<{
1414
272
  kind: z.ZodLiteral<"directory">;
1415
- path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
273
+ path: z.ZodString;
1416
274
  intent: z.ZodString;
1417
- }, "strict", z.ZodTypeAny, {
1418
- path: string;
1419
- kind: "directory";
1420
- intent: string;
1421
- }, {
1422
- path: string;
1423
- kind: "directory";
1424
- intent: string;
1425
- }>]>, "many">, ({
1426
- path: string;
1427
- kind: "directory";
1428
- intent: string;
1429
- } | {
1430
- url: string;
1431
- kind: "url" | "repository";
1432
- intent: string;
1433
- revision?: string | undefined;
1434
- files?: {
1435
- name: string;
1436
- content: string;
1437
- }[] | undefined;
1438
- })[], ({
1439
- path: string;
1440
- kind: "directory";
1441
- intent: string;
1442
- } | {
1443
- url: string;
1444
- kind: "url" | "repository";
1445
- intent: string;
1446
- revision?: string | undefined;
1447
- files?: {
1448
- name: string;
1449
- content: string;
1450
- }[] | undefined;
1451
- })[]>>>;
1452
- } & {
275
+ }, z.core.$strict>], "kind">>>>;
276
+ isEnabled: z.ZodOptional<z.ZodBoolean>;
1453
277
  verifier: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1454
- markdown: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1455
- package: z.ZodOptional<z.ZodEffects<z.ZodObject<{
278
+ markdown: z.ZodString;
279
+ package: z.ZodOptional<z.ZodObject<{
1456
280
  runtime: z.ZodLiteral<"node">;
1457
- entrypoint: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1458
- files: z.ZodEffects<z.ZodArray<z.ZodObject<{
1459
- name: z.ZodEffects<z.ZodString, string, string>;
1460
- content: z.ZodEffects<z.ZodString, string, string>;
1461
- }, "strict", z.ZodTypeAny, {
1462
- name: string;
1463
- content: string;
1464
- }, {
1465
- name: string;
1466
- content: string;
1467
- }>, "many">, {
1468
- name: string;
1469
- content: string;
1470
- }[], {
1471
- name: string;
1472
- content: string;
1473
- }[]>;
1474
- }, "strict", z.ZodTypeAny, {
1475
- files: {
1476
- name: string;
1477
- content: string;
1478
- }[];
1479
- runtime: "node";
1480
- entrypoint: string;
1481
- }, {
1482
- files: {
1483
- name: string;
1484
- content: string;
1485
- }[];
1486
- runtime: "node";
1487
- entrypoint: string;
1488
- }>, {
1489
- files: {
1490
- name: string;
1491
- content: string;
1492
- }[];
1493
- runtime: "node";
1494
- entrypoint: string;
1495
- }, {
1496
- files: {
1497
- name: string;
1498
- content: string;
1499
- }[];
1500
- runtime: "node";
1501
- entrypoint: string;
1502
- }>>;
281
+ entrypoint: z.ZodString;
282
+ files: z.ZodArray<z.ZodObject<{
283
+ name: z.ZodString;
284
+ content: z.ZodString;
285
+ }, z.core.$strict>>;
286
+ }, z.core.$strict>>;
1503
287
  sourceDigest: z.ZodString;
1504
- }, "strict", z.ZodTypeAny, {
1505
- markdown: string;
1506
- sourceDigest: string;
1507
- package?: {
1508
- files: {
1509
- name: string;
1510
- content: string;
1511
- }[];
1512
- runtime: "node";
1513
- entrypoint: string;
1514
- } | undefined;
1515
- }, {
1516
- markdown: string;
1517
- sourceDigest: string;
1518
- package?: {
1519
- files: {
1520
- name: string;
1521
- content: string;
1522
- }[];
1523
- runtime: "node";
1524
- entrypoint: string;
1525
- } | undefined;
1526
- }>>>;
1527
- }, "strict", z.ZodTypeAny, {
1528
- verifier?: {
1529
- markdown: string;
1530
- sourceDigest: string;
1531
- package?: {
1532
- files: {
1533
- name: string;
1534
- content: string;
1535
- }[];
1536
- runtime: "node";
1537
- entrypoint: string;
1538
- } | undefined;
1539
- } | null | undefined;
1540
- title?: string | undefined;
1541
- markdown?: string | undefined;
1542
- references?: ({
1543
- path: string;
1544
- kind: "directory";
1545
- intent: string;
1546
- } | {
1547
- url: string;
1548
- kind: "url" | "repository";
1549
- intent: string;
1550
- revision?: string | undefined;
1551
- files?: {
1552
- name: string;
1553
- content: string;
1554
- }[] | undefined;
1555
- })[] | undefined;
1556
- images?: {
1557
- source: string;
1558
- dataUrl: string;
1559
- }[] | undefined;
1560
- isEnabled?: boolean | undefined;
1561
- }, {
1562
- verifier?: {
1563
- markdown: string;
1564
- sourceDigest: string;
1565
- package?: {
1566
- files: {
1567
- name: string;
1568
- content: string;
1569
- }[];
1570
- runtime: "node";
1571
- entrypoint: string;
1572
- } | undefined;
1573
- } | null | undefined;
1574
- title?: string | undefined;
1575
- markdown?: string | undefined;
1576
- references?: ({
1577
- path: string;
1578
- kind: "directory";
1579
- intent: string;
1580
- } | {
1581
- url: string;
1582
- kind: "url" | "repository";
1583
- intent: string;
1584
- revision?: string | undefined;
1585
- files?: {
1586
- name: string;
1587
- content: string;
1588
- }[] | undefined;
1589
- })[] | undefined;
1590
- images?: {
1591
- source: string;
1592
- dataUrl: string;
1593
- }[] | undefined;
1594
- isEnabled?: boolean | undefined;
1595
- }>, {
1596
- verifier?: {
1597
- markdown: string;
1598
- sourceDigest: string;
1599
- package?: {
1600
- files: {
1601
- name: string;
1602
- content: string;
1603
- }[];
1604
- runtime: "node";
1605
- entrypoint: string;
1606
- } | undefined;
1607
- } | null | undefined;
1608
- title?: string | undefined;
1609
- markdown?: string | undefined;
1610
- references?: ({
1611
- path: string;
1612
- kind: "directory";
1613
- intent: string;
1614
- } | {
1615
- url: string;
1616
- kind: "url" | "repository";
1617
- intent: string;
1618
- revision?: string | undefined;
1619
- files?: {
1620
- name: string;
1621
- content: string;
1622
- }[] | undefined;
1623
- })[] | undefined;
1624
- images?: {
1625
- source: string;
1626
- dataUrl: string;
1627
- }[] | undefined;
1628
- isEnabled?: boolean | undefined;
1629
- }, {
1630
- verifier?: {
1631
- markdown: string;
1632
- sourceDigest: string;
1633
- package?: {
1634
- files: {
1635
- name: string;
1636
- content: string;
1637
- }[];
1638
- runtime: "node";
1639
- entrypoint: string;
1640
- } | undefined;
1641
- } | null | undefined;
1642
- title?: string | undefined;
1643
- markdown?: string | undefined;
1644
- references?: ({
1645
- path: string;
1646
- kind: "directory";
1647
- intent: string;
1648
- } | {
1649
- url: string;
1650
- kind: "url" | "repository";
1651
- intent: string;
1652
- revision?: string | undefined;
1653
- files?: {
1654
- name: string;
1655
- content: string;
1656
- }[] | undefined;
1657
- })[] | undefined;
1658
- images?: {
1659
- source: string;
1660
- dataUrl: string;
1661
- }[] | undefined;
1662
- isEnabled?: boolean | undefined;
1663
- }>, {
1664
- verifier?: {
1665
- markdown: string;
1666
- sourceDigest: string;
1667
- package?: {
1668
- files: {
1669
- name: string;
1670
- content: string;
1671
- }[];
1672
- runtime: "node";
1673
- entrypoint: string;
1674
- } | undefined;
1675
- } | null | undefined;
1676
- title?: string | undefined;
1677
- markdown?: string | undefined;
1678
- references?: ({
1679
- path: string;
1680
- kind: "directory";
1681
- intent: string;
1682
- } | {
1683
- url: string;
1684
- kind: "url" | "repository";
1685
- intent: string;
1686
- revision?: string | undefined;
1687
- files?: {
1688
- name: string;
1689
- content: string;
1690
- }[] | undefined;
1691
- })[] | undefined;
1692
- images?: {
1693
- source: string;
1694
- dataUrl: string;
1695
- }[] | undefined;
1696
- isEnabled?: boolean | undefined;
1697
- }, {
1698
- verifier?: {
1699
- markdown: string;
1700
- sourceDigest: string;
1701
- package?: {
1702
- files: {
1703
- name: string;
1704
- content: string;
1705
- }[];
1706
- runtime: "node";
1707
- entrypoint: string;
1708
- } | undefined;
1709
- } | null | undefined;
1710
- title?: string | undefined;
1711
- markdown?: string | undefined;
1712
- references?: ({
1713
- path: string;
1714
- kind: "directory";
1715
- intent: string;
1716
- } | {
1717
- url: string;
1718
- kind: "url" | "repository";
1719
- intent: string;
1720
- revision?: string | undefined;
1721
- files?: {
1722
- name: string;
1723
- content: string;
1724
- }[] | undefined;
1725
- })[] | undefined;
1726
- images?: {
1727
- source: string;
1728
- dataUrl: string;
1729
- }[] | undefined;
1730
- isEnabled?: boolean | undefined;
1731
- }>;
288
+ }, z.core.$strict>>>;
289
+ }, z.core.$strict>;
1732
290
  export type GuidanceUpload = z.input<typeof GuidanceUploadSchema>;
1733
291
  export type GuidanceUploadUpdate = z.infer<typeof GuidanceUploadUpdateSchema>;
1734
- export declare const GuidanceSelectionSchema: z.ZodEffects<z.ZodObject<{
1735
- mode: z.ZodDefault<z.ZodEnum<["auto", "off"]>>;
1736
- excludedIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1737
- }, "strict", z.ZodTypeAny, {
1738
- mode: "off" | "auto";
1739
- excludedIds: string[];
1740
- }, {
1741
- mode?: "off" | "auto" | undefined;
1742
- excludedIds?: string[] | undefined;
1743
- }>, {
1744
- mode: "off" | "auto";
1745
- excludedIds: string[];
1746
- }, {
1747
- mode?: "off" | "auto" | undefined;
1748
- excludedIds?: string[] | undefined;
1749
- }>;
292
+ export declare const GuidanceSelectionSchema: z.ZodObject<{
293
+ mode: z.ZodDefault<z.ZodEnum<{
294
+ off: "off";
295
+ auto: "auto";
296
+ }>>;
297
+ excludedIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
298
+ }, z.core.$strict>;
1750
299
  export type GuidanceDocument = z.infer<typeof GuidanceDocumentSchema>;
1751
300
  export type SavedGuidance = z.infer<typeof SavedGuidanceSchema>;
1752
301
  export type GuidanceInput = z.input<typeof GuidanceInputSchema>;
@@ -1763,17 +312,7 @@ export declare const GuidanceWarningSchema: z.ZodObject<{
1763
312
  documentCount: z.ZodNumber;
1764
313
  byteCount: z.ZodNumber;
1765
314
  message: z.ZodString;
1766
- }, "strip", z.ZodTypeAny, {
1767
- code: "large_saved_context";
1768
- message: string;
1769
- documentCount: number;
1770
- byteCount: number;
1771
- }, {
1772
- code: "large_saved_context";
1773
- message: string;
1774
- documentCount: number;
1775
- byteCount: number;
1776
- }>;
315
+ }, z.core.$strip>;
1777
316
  export type GuidanceWarning = z.infer<typeof GuidanceWarningSchema>;
1778
317
  export declare const guidanceWarning: (documents: readonly GuidanceDocument[]) => GuidanceWarning | undefined;
1779
318
  //# sourceMappingURL=guidance.d.ts.map