rivet-design 0.26.0 → 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.
- package/bin/rivet.js +13 -0
- package/dist/agent-variants/WorkerExecutorService.d.ts +0 -2
- package/dist/agent-variants/WorkerExecutorService.js +0 -18
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -8
- package/dist/agent-variants/contracts.d.ts +1099 -4966
- package/dist/agent-variants/contracts.js +1 -121
- package/dist/agent-variants/index.d.ts +1 -1
- package/dist/agent-variants/variantsTelemetry.d.ts +0 -8
- package/dist/agent-variants/workItemInput.d.ts +464 -464
- package/dist/cli/commands/contextRequest.js +1 -1
- package/dist/cli/commands/guidanceReferences.d.ts +2 -2
- package/dist/cli/commands/guidanceVerifierPackage.d.ts +2 -2
- package/dist/cli/editorSession.d.ts +1 -13
- package/dist/cli/runtimeInterruption.d.ts +2 -16
- package/dist/config/pluginMetrics.js +0 -1
- package/dist/hosts/workerDefaults.d.ts +0 -11
- package/dist/hosts/workerDefaults.js +1 -30
- package/dist/index-core.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/install/automaticCliUpdate.d.ts +1 -0
- package/dist/install/automaticCliUpdate.js +32 -22
- package/dist/install/channelCli.d.ts +1 -1
- package/dist/install/channelCli.js +11 -6
- package/dist/install/channelManager.d.ts +5 -2
- package/dist/install/globalBootstrap.d.ts +5 -3
- package/dist/install/globalBootstrap.js +21 -9
- package/dist/install/npmCommand.d.ts +15 -0
- package/dist/install/npmCommand.js +59 -0
- package/dist/routes/agentVariants.js +3 -14
- package/dist/routes/library/browserAccess.js +6 -2
- package/dist/routes/library/guidance.js +3 -1
- package/dist/routes/library/middleware.js +4 -4
- package/dist/routes/library/navigation.js +3 -1
- package/dist/routes/library/profiles.js +5 -5
- package/dist/routes/library/projects.js +17 -7
- package/dist/routes/library/referenceOnboarding.js +4 -2
- package/dist/routes/library/schemas.d.ts +2 -15
- package/dist/routes/telemetry.js +1 -1
- package/dist/routes/variantRequestSchema.d.ts +8 -8
- package/dist/routes/variantRequestSchema.js +7 -2
- package/dist/services/AuthService.d.ts +3 -56
- package/dist/services/AuthService.js +0 -28
- package/dist/services/ConfigManager.d.ts +0 -2
- package/dist/services/ConfigManager.js +0 -14
- package/dist/services/GuidanceVerifierRunner.js +13 -2
- package/dist/services/HubDiscovery.d.ts +1 -9
- package/dist/services/IntegrationsClient.d.ts +16 -16
- package/dist/services/MCPOnboardingTelemetry.d.ts +0 -14
- package/dist/services/MCPOnboardingTelemetry.js +0 -62
- package/dist/services/ProjectRegistry.d.ts +5 -24
- package/dist/services/TelemetryService.d.ts +1 -62
- package/dist/services/TelemetryService.js +0 -113
- package/dist/services/TreeStore.d.ts +0 -2
- package/dist/services/TreeStore.js +0 -24
- package/dist/services/profiles/DesignProfiles.d.ts +180 -125
- package/dist/services/profiles/ProfilePlanning.d.ts +38 -38
- package/dist/services/profiles/ReferenceReader.d.ts +14 -14
- package/dist/services/profiles/modelContract.js +4 -4
- package/dist/storage/library/ProjectPreviewCache.d.ts +1 -13
- package/dist/storage/profiles/ProfilePlans.d.ts +137 -137
- package/dist/storage/profiles/ProfileRecords.d.ts +62 -37
- package/dist/storage/profiles/planSchema.d.ts +40 -40
- package/dist/storage/profiles/schema.d.ts +16 -16
- package/dist/types/api-responses.d.ts +174 -0
- package/dist/types/api-responses.js +108 -0
- package/dist/types/cosmos-profile.d.ts +17 -105
- package/dist/types/cosmos.d.ts +48 -266
- package/dist/types/design-library.d.ts +230 -61
- package/dist/types/design-library.js +38 -1
- package/dist/types/design-profile.d.ts +220 -529
- package/dist/types/design-profile.js +5 -1
- package/dist/types/guidance-references.d.ts +68 -316
- package/dist/types/guidance-verifier.d.ts +103 -197
- package/dist/types/guidance-verifier.js +36 -13
- package/dist/types/guidance.d.ts +182 -1643
- package/dist/types/guidance.js +4 -1
- package/dist/types/project-library.d.ts +60 -30
- package/dist/types/project-library.js +32 -1
- package/dist/types/reference-connectors.d.ts +38 -162
- package/dist/types/reference-onboarding.d.ts +144 -878
- package/dist/types/reference-pages.d.ts +27 -139
- package/dist/types/x-bookmarks.d.ts +40 -296
- package/dist/utils/displayLocale.d.ts +0 -1
- package/dist/utils/displayLocale.js +1 -3
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.js +2 -2
- package/package.json +4 -4
- package/src/ui/dist/assets/LibraryEntry-92R_T-Xa.js +37 -0
- package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
- package/src/ui/dist/assets/main-DgEfJvYu.js +497 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/types/change-types.d.ts +0 -66
- package/dist/types/change-types.js +0 -3
- package/src/ui/dist/assets/LibraryEntry-CFkd6v_O.js +0 -37
- package/src/ui/dist/assets/main-B_jie9r3.js +0 -439
- package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
|
@@ -4,254 +4,211 @@ export declare const PROFILE_UPLOAD_COUNT = 100;
|
|
|
4
4
|
export declare const PROFILE_UPLOAD_BYTES: number;
|
|
5
5
|
export declare const PROFILE_UPLOAD_ENCODED_BYTES: number;
|
|
6
6
|
export declare const PROFILE_PREPARATION_BODY_BYTES: number;
|
|
7
|
-
export declare const RemoteProfileProviderSchema: z.ZodEnum<
|
|
7
|
+
export declare const RemoteProfileProviderSchema: z.ZodEnum<{
|
|
8
|
+
pinterest: "pinterest";
|
|
9
|
+
arena: "arena";
|
|
10
|
+
cosmos: "cosmos";
|
|
11
|
+
x: "x";
|
|
12
|
+
}>;
|
|
8
13
|
export interface ProfileCollectionProgress {
|
|
9
14
|
id: string;
|
|
10
15
|
total: number;
|
|
11
16
|
isComplete: boolean;
|
|
12
17
|
}
|
|
13
18
|
export declare const isRemoteProfileProvider: (value: string) => value is z.infer<typeof RemoteProfileProviderSchema>;
|
|
14
|
-
export declare const ProfileProviderSchema: z.ZodEnum<
|
|
15
|
-
|
|
19
|
+
export declare const ProfileProviderSchema: z.ZodEnum<{
|
|
20
|
+
variant: "variant";
|
|
21
|
+
text: "text";
|
|
22
|
+
pinterest: "pinterest";
|
|
23
|
+
arena: "arena";
|
|
24
|
+
cosmos: "cosmos";
|
|
25
|
+
x: "x";
|
|
26
|
+
image: "image";
|
|
27
|
+
pdf: "pdf";
|
|
28
|
+
}>;
|
|
29
|
+
export declare const ProfileRuntimeSchema: z.ZodEnum<{
|
|
30
|
+
claude: "claude";
|
|
31
|
+
codex: "codex";
|
|
32
|
+
cursor: "cursor";
|
|
33
|
+
}>;
|
|
16
34
|
export declare const ProfileVariantIdentitySchema: z.ZodObject<{
|
|
17
35
|
projectId: z.ZodString;
|
|
18
36
|
sessionId: z.ZodString;
|
|
19
37
|
variantId: z.ZodString;
|
|
20
|
-
},
|
|
21
|
-
projectId: string;
|
|
22
|
-
sessionId: string;
|
|
23
|
-
variantId: string;
|
|
24
|
-
}, {
|
|
25
|
-
projectId: string;
|
|
26
|
-
sessionId: string;
|
|
27
|
-
variantId: string;
|
|
28
|
-
}>;
|
|
38
|
+
}, z.core.$strict>;
|
|
29
39
|
export declare const ProfileVariantInputSchema: z.ZodObject<{
|
|
30
40
|
projectId: z.ZodString;
|
|
31
41
|
sessionId: z.ZodString;
|
|
32
42
|
variantId: z.ZodString;
|
|
33
|
-
|
|
34
|
-
|
|
43
|
+
runtime: z.ZodEnum<{
|
|
44
|
+
claude: "claude";
|
|
45
|
+
codex: "codex";
|
|
46
|
+
cursor: "cursor";
|
|
47
|
+
}>;
|
|
35
48
|
note: z.ZodOptional<z.ZodString>;
|
|
36
49
|
imageFile: z.ZodOptional<z.ZodString>;
|
|
37
|
-
},
|
|
38
|
-
runtime: "claude" | "codex" | "cursor";
|
|
39
|
-
projectId: string;
|
|
40
|
-
sessionId: string;
|
|
41
|
-
variantId: string;
|
|
42
|
-
note?: string | undefined;
|
|
43
|
-
imageFile?: string | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
runtime: "claude" | "codex" | "cursor";
|
|
46
|
-
projectId: string;
|
|
47
|
-
sessionId: string;
|
|
48
|
-
variantId: string;
|
|
49
|
-
note?: string | undefined;
|
|
50
|
-
imageFile?: string | undefined;
|
|
51
|
-
}>;
|
|
50
|
+
}, z.core.$strict>;
|
|
52
51
|
export type ProfileVariantInput = z.infer<typeof ProfileVariantInputSchema>;
|
|
53
52
|
export declare const ProfileMediaSchema: z.ZodObject<{
|
|
54
53
|
hash: z.ZodString;
|
|
55
|
-
mimeType: z.ZodEnum<
|
|
54
|
+
mimeType: z.ZodEnum<{
|
|
55
|
+
"image/png": "image/png";
|
|
56
|
+
"image/jpeg": "image/jpeg";
|
|
57
|
+
"image/webp": "image/webp";
|
|
58
|
+
"image/gif": "image/gif";
|
|
59
|
+
}>;
|
|
56
60
|
bytes: z.ZodNumber;
|
|
57
|
-
representation: z.ZodDefault<z.ZodEnum<
|
|
61
|
+
representation: z.ZodDefault<z.ZodEnum<{
|
|
62
|
+
variant: "variant";
|
|
63
|
+
image: "image";
|
|
64
|
+
"video-cover": "video-cover";
|
|
65
|
+
page: "page";
|
|
66
|
+
}>>;
|
|
58
67
|
page: z.ZodOptional<z.ZodNumber>;
|
|
59
|
-
},
|
|
60
|
-
hash: string;
|
|
61
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
62
|
-
bytes: number;
|
|
63
|
-
representation: "variant" | "image" | "video-cover" | "page";
|
|
64
|
-
page?: number | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
hash: string;
|
|
67
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
68
|
-
bytes: number;
|
|
69
|
-
page?: number | undefined;
|
|
70
|
-
representation?: "variant" | "image" | "video-cover" | "page" | undefined;
|
|
71
|
-
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
72
69
|
export declare const ProfileSourceInputSchema: z.ZodObject<{
|
|
73
|
-
provider: z.ZodEnum<
|
|
70
|
+
provider: z.ZodEnum<{
|
|
71
|
+
variant: "variant";
|
|
72
|
+
text: "text";
|
|
73
|
+
pinterest: "pinterest";
|
|
74
|
+
arena: "arena";
|
|
75
|
+
cosmos: "cosmos";
|
|
76
|
+
x: "x";
|
|
77
|
+
image: "image";
|
|
78
|
+
pdf: "pdf";
|
|
79
|
+
}>;
|
|
74
80
|
remoteId: z.ZodString;
|
|
75
81
|
title: z.ZodString;
|
|
76
82
|
url: z.ZodOptional<z.ZodString>;
|
|
77
|
-
},
|
|
78
|
-
title: string;
|
|
79
|
-
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
80
|
-
remoteId: string;
|
|
81
|
-
url?: string | undefined;
|
|
82
|
-
}, {
|
|
83
|
-
title: string;
|
|
84
|
-
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
85
|
-
remoteId: string;
|
|
86
|
-
url?: string | undefined;
|
|
87
|
-
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
88
84
|
export declare const ProfileReferenceInputSchema: z.ZodObject<{
|
|
89
|
-
provider: z.ZodEnum<
|
|
85
|
+
provider: z.ZodEnum<{
|
|
86
|
+
variant: "variant";
|
|
87
|
+
text: "text";
|
|
88
|
+
pinterest: "pinterest";
|
|
89
|
+
arena: "arena";
|
|
90
|
+
cosmos: "cosmos";
|
|
91
|
+
x: "x";
|
|
92
|
+
image: "image";
|
|
93
|
+
pdf: "pdf";
|
|
94
|
+
}>;
|
|
90
95
|
remoteId: z.ZodString;
|
|
91
96
|
title: z.ZodString;
|
|
92
97
|
text: z.ZodString;
|
|
93
98
|
url: z.ZodOptional<z.ZodString>;
|
|
94
99
|
media: z.ZodArray<z.ZodObject<{
|
|
95
100
|
hash: z.ZodString;
|
|
96
|
-
mimeType: z.ZodEnum<
|
|
101
|
+
mimeType: z.ZodEnum<{
|
|
102
|
+
"image/png": "image/png";
|
|
103
|
+
"image/jpeg": "image/jpeg";
|
|
104
|
+
"image/webp": "image/webp";
|
|
105
|
+
"image/gif": "image/gif";
|
|
106
|
+
}>;
|
|
97
107
|
bytes: z.ZodNumber;
|
|
98
|
-
representation: z.ZodDefault<z.ZodEnum<
|
|
108
|
+
representation: z.ZodDefault<z.ZodEnum<{
|
|
109
|
+
variant: "variant";
|
|
110
|
+
image: "image";
|
|
111
|
+
"video-cover": "video-cover";
|
|
112
|
+
page: "page";
|
|
113
|
+
}>>;
|
|
99
114
|
page: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}, {
|
|
107
|
-
hash: string;
|
|
108
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
109
|
-
bytes: number;
|
|
110
|
-
page?: number | undefined;
|
|
111
|
-
representation?: "variant" | "image" | "video-cover" | "page" | undefined;
|
|
112
|
-
}>, "many">;
|
|
113
|
-
remoteImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
114
|
-
remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<["image", "video-cover"]>, "many">>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
remoteImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
118
|
+
image: "image";
|
|
119
|
+
"video-cover": "video-cover";
|
|
120
|
+
}>>>;
|
|
115
121
|
unsupportedReason: z.ZodOptional<z.ZodString>;
|
|
116
122
|
variant: z.ZodOptional<z.ZodObject<{
|
|
117
123
|
projectId: z.ZodString;
|
|
118
124
|
sessionId: z.ZodString;
|
|
119
125
|
variantId: z.ZodString;
|
|
120
|
-
} & {
|
|
121
126
|
treeSha: z.ZodOptional<z.ZodString>;
|
|
122
|
-
},
|
|
123
|
-
projectId: string;
|
|
124
|
-
sessionId: string;
|
|
125
|
-
variantId: string;
|
|
126
|
-
treeSha?: string | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
projectId: string;
|
|
129
|
-
sessionId: string;
|
|
130
|
-
variantId: string;
|
|
131
|
-
treeSha?: string | undefined;
|
|
132
|
-
}>>;
|
|
127
|
+
}, z.core.$strict>>;
|
|
133
128
|
note: z.ZodOptional<z.ZodString>;
|
|
134
|
-
},
|
|
135
|
-
title: string;
|
|
136
|
-
text: string;
|
|
137
|
-
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
138
|
-
remoteId: string;
|
|
139
|
-
media: {
|
|
140
|
-
hash: string;
|
|
141
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
142
|
-
bytes: number;
|
|
143
|
-
representation: "variant" | "image" | "video-cover" | "page";
|
|
144
|
-
page?: number | undefined;
|
|
145
|
-
}[];
|
|
146
|
-
variant?: {
|
|
147
|
-
projectId: string;
|
|
148
|
-
sessionId: string;
|
|
149
|
-
variantId: string;
|
|
150
|
-
treeSha?: string | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
url?: string | undefined;
|
|
153
|
-
note?: string | undefined;
|
|
154
|
-
remoteImages?: string[] | undefined;
|
|
155
|
-
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
156
|
-
unsupportedReason?: string | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
title: string;
|
|
159
|
-
text: string;
|
|
160
|
-
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
161
|
-
remoteId: string;
|
|
162
|
-
media: {
|
|
163
|
-
hash: string;
|
|
164
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
165
|
-
bytes: number;
|
|
166
|
-
page?: number | undefined;
|
|
167
|
-
representation?: "variant" | "image" | "video-cover" | "page" | undefined;
|
|
168
|
-
}[];
|
|
169
|
-
variant?: {
|
|
170
|
-
projectId: string;
|
|
171
|
-
sessionId: string;
|
|
172
|
-
variantId: string;
|
|
173
|
-
treeSha?: string | undefined;
|
|
174
|
-
} | undefined;
|
|
175
|
-
url?: string | undefined;
|
|
176
|
-
note?: string | undefined;
|
|
177
|
-
remoteImages?: string[] | undefined;
|
|
178
|
-
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
179
|
-
unsupportedReason?: string | undefined;
|
|
180
|
-
}>;
|
|
129
|
+
}, z.core.$strip>;
|
|
181
130
|
export declare const ProfileUsageSchema: z.ZodObject<{
|
|
182
131
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
183
132
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
184
133
|
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
185
134
|
allocation: z.ZodOptional<z.ZodLiteral<"equal-share">>;
|
|
186
|
-
},
|
|
187
|
-
inputTokens?: number | undefined;
|
|
188
|
-
outputTokens?: number | undefined;
|
|
189
|
-
cachedInputTokens?: number | undefined;
|
|
190
|
-
allocation?: "equal-share" | undefined;
|
|
191
|
-
}, {
|
|
192
|
-
inputTokens?: number | undefined;
|
|
193
|
-
outputTokens?: number | undefined;
|
|
194
|
-
cachedInputTokens?: number | undefined;
|
|
195
|
-
allocation?: "equal-share" | undefined;
|
|
196
|
-
}>;
|
|
135
|
+
}, z.core.$strip>;
|
|
197
136
|
export type ProfileUsage = z.infer<typeof ProfileUsageSchema>;
|
|
198
137
|
export declare const ProfileObservationSchema: z.ZodObject<{
|
|
199
138
|
referenceId: z.ZodString;
|
|
200
139
|
revision: z.ZodNumber;
|
|
201
140
|
description: z.ZodString;
|
|
202
|
-
runtime: z.ZodUnion<[z.ZodEnum<
|
|
203
|
-
|
|
141
|
+
runtime: z.ZodUnion<readonly [z.ZodEnum<{
|
|
142
|
+
claude: "claude";
|
|
143
|
+
codex: "codex";
|
|
144
|
+
cursor: "cursor";
|
|
145
|
+
}>, z.ZodLiteral<"user">]>;
|
|
146
|
+
evidence: z.ZodEnum<{
|
|
147
|
+
observation: "observation";
|
|
148
|
+
preference: "preference";
|
|
149
|
+
}>;
|
|
204
150
|
usage: z.ZodOptional<z.ZodObject<{
|
|
205
151
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
206
152
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
207
153
|
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
208
154
|
allocation: z.ZodOptional<z.ZodLiteral<"equal-share">>;
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
outputTokens?: number | undefined;
|
|
212
|
-
cachedInputTokens?: number | undefined;
|
|
213
|
-
allocation?: "equal-share" | undefined;
|
|
214
|
-
}, {
|
|
215
|
-
inputTokens?: number | undefined;
|
|
216
|
-
outputTokens?: number | undefined;
|
|
217
|
-
cachedInputTokens?: number | undefined;
|
|
218
|
-
allocation?: "equal-share" | undefined;
|
|
219
|
-
}>>;
|
|
220
|
-
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
description: string;
|
|
222
|
-
revision: number;
|
|
223
|
-
runtime: "claude" | "codex" | "cursor" | "user";
|
|
224
|
-
evidence: "observation" | "preference";
|
|
225
|
-
referenceId: string;
|
|
226
|
-
usage?: {
|
|
227
|
-
inputTokens?: number | undefined;
|
|
228
|
-
outputTokens?: number | undefined;
|
|
229
|
-
cachedInputTokens?: number | undefined;
|
|
230
|
-
allocation?: "equal-share" | undefined;
|
|
231
|
-
} | undefined;
|
|
232
|
-
}, {
|
|
233
|
-
description: string;
|
|
234
|
-
revision: number;
|
|
235
|
-
runtime: "claude" | "codex" | "cursor" | "user";
|
|
236
|
-
evidence: "observation" | "preference";
|
|
237
|
-
referenceId: string;
|
|
238
|
-
usage?: {
|
|
239
|
-
inputTokens?: number | undefined;
|
|
240
|
-
outputTokens?: number | undefined;
|
|
241
|
-
cachedInputTokens?: number | undefined;
|
|
242
|
-
allocation?: "equal-share" | undefined;
|
|
243
|
-
} | undefined;
|
|
244
|
-
}>;
|
|
155
|
+
}, z.core.$strip>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
245
157
|
export type ProfileProvider = z.infer<typeof ProfileProviderSchema>;
|
|
246
158
|
export type ProfileRuntime = z.infer<typeof ProfileRuntimeSchema>;
|
|
247
159
|
export type ProfileMedia = z.infer<typeof ProfileMediaSchema>;
|
|
248
160
|
export type ProfileSourceInput = z.infer<typeof ProfileSourceInputSchema>;
|
|
249
161
|
export type ProfileReferenceInput = z.infer<typeof ProfileReferenceInputSchema>;
|
|
250
162
|
export type ProfileObservation = z.infer<typeof ProfileObservationSchema>;
|
|
251
|
-
export
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
163
|
+
export declare const ProfileReferenceSchema: z.ZodObject<{
|
|
164
|
+
provider: z.ZodEnum<{
|
|
165
|
+
variant: "variant";
|
|
166
|
+
text: "text";
|
|
167
|
+
pinterest: "pinterest";
|
|
168
|
+
arena: "arena";
|
|
169
|
+
cosmos: "cosmos";
|
|
170
|
+
x: "x";
|
|
171
|
+
image: "image";
|
|
172
|
+
pdf: "pdf";
|
|
173
|
+
}>;
|
|
174
|
+
remoteId: z.ZodString;
|
|
175
|
+
title: z.ZodString;
|
|
176
|
+
text: z.ZodString;
|
|
177
|
+
url: z.ZodOptional<z.ZodString>;
|
|
178
|
+
media: z.ZodArray<z.ZodObject<{
|
|
179
|
+
hash: z.ZodString;
|
|
180
|
+
mimeType: z.ZodEnum<{
|
|
181
|
+
"image/png": "image/png";
|
|
182
|
+
"image/jpeg": "image/jpeg";
|
|
183
|
+
"image/webp": "image/webp";
|
|
184
|
+
"image/gif": "image/gif";
|
|
185
|
+
}>;
|
|
186
|
+
bytes: z.ZodNumber;
|
|
187
|
+
representation: z.ZodDefault<z.ZodEnum<{
|
|
188
|
+
variant: "variant";
|
|
189
|
+
image: "image";
|
|
190
|
+
"video-cover": "video-cover";
|
|
191
|
+
page: "page";
|
|
192
|
+
}>>;
|
|
193
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
remoteImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
196
|
+
remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
197
|
+
image: "image";
|
|
198
|
+
"video-cover": "video-cover";
|
|
199
|
+
}>>>;
|
|
200
|
+
unsupportedReason: z.ZodOptional<z.ZodString>;
|
|
201
|
+
variant: z.ZodOptional<z.ZodObject<{
|
|
202
|
+
projectId: z.ZodString;
|
|
203
|
+
sessionId: z.ZodString;
|
|
204
|
+
variantId: z.ZodString;
|
|
205
|
+
treeSha: z.ZodOptional<z.ZodString>;
|
|
206
|
+
}, z.core.$strict>>;
|
|
207
|
+
note: z.ZodOptional<z.ZodString>;
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
revision: z.ZodNumber;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export type ProfileReference = z.infer<typeof ProfileReferenceSchema>;
|
|
255
212
|
export interface ProfileCandidate {
|
|
256
213
|
reference: ProfileReference;
|
|
257
214
|
observation: ProfileObservation;
|
|
@@ -270,87 +227,44 @@ export interface ProfileIndexWork {
|
|
|
270
227
|
export declare const ProfilePreparationSchema: z.ZodObject<{
|
|
271
228
|
requestId: z.ZodString;
|
|
272
229
|
instruction: z.ZodString;
|
|
273
|
-
runtime: z.ZodEnum<
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}, {
|
|
289
|
-
runtime: "claude" | "codex" | "cursor";
|
|
290
|
-
requestId: string;
|
|
291
|
-
instruction: string;
|
|
292
|
-
mode?: "off" | "auto" | "uploads" | undefined;
|
|
293
|
-
excludedSourceIds?: string[] | undefined;
|
|
294
|
-
excludedReferenceIds?: string[] | undefined;
|
|
295
|
-
excludedMediaHashes?: string[] | undefined;
|
|
296
|
-
suppliedInputHashes?: string[] | undefined;
|
|
297
|
-
}>;
|
|
230
|
+
runtime: z.ZodEnum<{
|
|
231
|
+
claude: "claude";
|
|
232
|
+
codex: "codex";
|
|
233
|
+
cursor: "cursor";
|
|
234
|
+
}>;
|
|
235
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
236
|
+
off: "off";
|
|
237
|
+
auto: "auto";
|
|
238
|
+
uploads: "uploads";
|
|
239
|
+
}>>;
|
|
240
|
+
excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
241
|
+
excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
242
|
+
excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
243
|
+
suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
244
|
+
}, z.core.$strip>;
|
|
298
245
|
export type ProfilePreparation = z.infer<typeof ProfilePreparationSchema>;
|
|
299
|
-
export declare const ProfilePreparationRequestSchema: z.
|
|
246
|
+
export declare const ProfilePreparationRequestSchema: z.ZodObject<{
|
|
300
247
|
requestId: z.ZodString;
|
|
301
248
|
instruction: z.ZodString;
|
|
302
|
-
runtime: z.ZodEnum<
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
mode:
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
uploads?: string[] | undefined;
|
|
319
|
-
suppliedInputHashes?: string[] | undefined;
|
|
320
|
-
}, {
|
|
321
|
-
runtime: "claude" | "codex" | "cursor";
|
|
322
|
-
requestId: string;
|
|
323
|
-
instruction: string;
|
|
324
|
-
mode?: "off" | "auto" | "uploads" | undefined;
|
|
325
|
-
uploads?: string[] | undefined;
|
|
326
|
-
excludedSourceIds?: string[] | undefined;
|
|
327
|
-
excludedReferenceIds?: string[] | undefined;
|
|
328
|
-
excludedMediaHashes?: string[] | undefined;
|
|
329
|
-
suppliedInputHashes?: string[] | undefined;
|
|
330
|
-
}>, {
|
|
331
|
-
mode: "off" | "auto" | "uploads";
|
|
332
|
-
runtime: "claude" | "codex" | "cursor";
|
|
333
|
-
requestId: string;
|
|
334
|
-
instruction: string;
|
|
335
|
-
excludedSourceIds: string[];
|
|
336
|
-
excludedReferenceIds: string[];
|
|
337
|
-
excludedMediaHashes: string[];
|
|
338
|
-
uploads?: string[] | undefined;
|
|
339
|
-
suppliedInputHashes?: string[] | undefined;
|
|
340
|
-
}, {
|
|
341
|
-
runtime: "claude" | "codex" | "cursor";
|
|
342
|
-
requestId: string;
|
|
343
|
-
instruction: string;
|
|
344
|
-
mode?: "off" | "auto" | "uploads" | undefined;
|
|
345
|
-
uploads?: string[] | undefined;
|
|
346
|
-
excludedSourceIds?: string[] | undefined;
|
|
347
|
-
excludedReferenceIds?: string[] | undefined;
|
|
348
|
-
excludedMediaHashes?: string[] | undefined;
|
|
349
|
-
suppliedInputHashes?: string[] | undefined;
|
|
350
|
-
}>;
|
|
249
|
+
runtime: z.ZodEnum<{
|
|
250
|
+
claude: "claude";
|
|
251
|
+
codex: "codex";
|
|
252
|
+
cursor: "cursor";
|
|
253
|
+
}>;
|
|
254
|
+
excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
255
|
+
excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
256
|
+
excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
257
|
+
suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
258
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
259
|
+
off: "off";
|
|
260
|
+
auto: "auto";
|
|
261
|
+
uploads: "uploads";
|
|
262
|
+
}>>;
|
|
263
|
+
uploads: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
|
+
}, z.core.$strip>;
|
|
351
265
|
export type ProfilePreparationRequest = z.infer<typeof ProfilePreparationRequestSchema>;
|
|
352
266
|
export declare const ProfilePacketSchema: z.ZodObject<{
|
|
353
|
-
suppliedReferences: z.ZodOptional<z.ZodArray<z.
|
|
267
|
+
suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
354
268
|
title: string;
|
|
355
269
|
id: string;
|
|
356
270
|
reason?: string | undefined;
|
|
@@ -359,181 +273,62 @@ export declare const ProfilePacketSchema: z.ZodObject<{
|
|
|
359
273
|
hash: string;
|
|
360
274
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
361
275
|
} | undefined;
|
|
362
|
-
}, unknown
|
|
276
|
+
}, unknown>>>>;
|
|
363
277
|
failedUploadCount: z.ZodOptional<z.ZodNumber>;
|
|
364
278
|
usage: z.ZodOptional<z.ZodObject<{
|
|
365
279
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
366
280
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
367
281
|
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
368
282
|
allocation: z.ZodOptional<z.ZodLiteral<"equal-share">>;
|
|
369
|
-
},
|
|
370
|
-
inputTokens?: number | undefined;
|
|
371
|
-
outputTokens?: number | undefined;
|
|
372
|
-
cachedInputTokens?: number | undefined;
|
|
373
|
-
allocation?: "equal-share" | undefined;
|
|
374
|
-
}, {
|
|
375
|
-
inputTokens?: number | undefined;
|
|
376
|
-
outputTokens?: number | undefined;
|
|
377
|
-
cachedInputTokens?: number | undefined;
|
|
378
|
-
allocation?: "equal-share" | undefined;
|
|
379
|
-
}>>;
|
|
283
|
+
}, z.core.$strip>>;
|
|
380
284
|
requestId: z.ZodString;
|
|
381
|
-
status: z.ZodEnum<
|
|
382
|
-
|
|
383
|
-
|
|
285
|
+
status: z.ZodEnum<{
|
|
286
|
+
timeout: "timeout";
|
|
287
|
+
off: "off";
|
|
288
|
+
selected: "selected";
|
|
289
|
+
empty: "empty";
|
|
290
|
+
unavailable: "unavailable";
|
|
291
|
+
}>;
|
|
292
|
+
queries: z.ZodArray<z.ZodString>;
|
|
293
|
+
candidateIds: z.ZodArray<z.ZodString>;
|
|
384
294
|
selected: z.ZodArray<z.ZodObject<{
|
|
385
295
|
id: z.ZodString;
|
|
386
296
|
revision: z.ZodNumber;
|
|
387
297
|
title: z.ZodOptional<z.ZodString>;
|
|
388
298
|
url: z.ZodOptional<z.ZodString>;
|
|
389
|
-
mediaHashes: z.ZodOptional<z.ZodArray<z.ZodString
|
|
299
|
+
mediaHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
390
300
|
reason: z.ZodString;
|
|
391
|
-
sourceTitles: z.ZodArray<z.ZodString
|
|
301
|
+
sourceTitles: z.ZodArray<z.ZodString>;
|
|
392
302
|
variant: z.ZodOptional<z.ZodObject<{
|
|
393
303
|
projectId: z.ZodString;
|
|
394
304
|
sessionId: z.ZodString;
|
|
395
305
|
variantId: z.ZodString;
|
|
396
|
-
} & {
|
|
397
306
|
treeSha: z.ZodOptional<z.ZodString>;
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
sessionId: string;
|
|
401
|
-
variantId: string;
|
|
402
|
-
treeSha?: string | undefined;
|
|
403
|
-
}, {
|
|
404
|
-
projectId: string;
|
|
405
|
-
sessionId: string;
|
|
406
|
-
variantId: string;
|
|
407
|
-
treeSha?: string | undefined;
|
|
408
|
-
}>>;
|
|
409
|
-
}, "strip", z.ZodTypeAny, {
|
|
410
|
-
reason: string;
|
|
411
|
-
revision: number;
|
|
412
|
-
id: string;
|
|
413
|
-
sourceTitles: string[];
|
|
414
|
-
variant?: {
|
|
415
|
-
projectId: string;
|
|
416
|
-
sessionId: string;
|
|
417
|
-
variantId: string;
|
|
418
|
-
treeSha?: string | undefined;
|
|
419
|
-
} | undefined;
|
|
420
|
-
url?: string | undefined;
|
|
421
|
-
title?: string | undefined;
|
|
422
|
-
mediaHashes?: string[] | undefined;
|
|
423
|
-
}, {
|
|
424
|
-
reason: string;
|
|
425
|
-
revision: number;
|
|
426
|
-
id: string;
|
|
427
|
-
sourceTitles: string[];
|
|
428
|
-
variant?: {
|
|
429
|
-
projectId: string;
|
|
430
|
-
sessionId: string;
|
|
431
|
-
variantId: string;
|
|
432
|
-
treeSha?: string | undefined;
|
|
433
|
-
} | undefined;
|
|
434
|
-
url?: string | undefined;
|
|
435
|
-
title?: string | undefined;
|
|
436
|
-
mediaHashes?: string[] | undefined;
|
|
437
|
-
}>, "many">;
|
|
307
|
+
}, z.core.$strict>>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
438
309
|
contextText: z.ZodString;
|
|
439
310
|
images: z.ZodArray<z.ZodObject<{
|
|
440
311
|
path: z.ZodString;
|
|
441
312
|
hash: z.ZodString;
|
|
442
|
-
mimeType: z.ZodEnum<
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
hash: string;
|
|
450
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
451
|
-
}>, "many">;
|
|
313
|
+
mimeType: z.ZodEnum<{
|
|
314
|
+
"image/png": "image/png";
|
|
315
|
+
"image/jpeg": "image/jpeg";
|
|
316
|
+
"image/webp": "image/webp";
|
|
317
|
+
"image/gif": "image/gif";
|
|
318
|
+
}>;
|
|
319
|
+
}, z.core.$strip>>;
|
|
452
320
|
durationMs: z.ZodNumber;
|
|
453
|
-
},
|
|
454
|
-
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
455
|
-
requestId: string;
|
|
456
|
-
selected: {
|
|
457
|
-
reason: string;
|
|
458
|
-
revision: number;
|
|
459
|
-
id: string;
|
|
460
|
-
sourceTitles: string[];
|
|
461
|
-
variant?: {
|
|
462
|
-
projectId: string;
|
|
463
|
-
sessionId: string;
|
|
464
|
-
variantId: string;
|
|
465
|
-
treeSha?: string | undefined;
|
|
466
|
-
} | undefined;
|
|
467
|
-
url?: string | undefined;
|
|
468
|
-
title?: string | undefined;
|
|
469
|
-
mediaHashes?: string[] | undefined;
|
|
470
|
-
}[];
|
|
471
|
-
queries: string[];
|
|
472
|
-
candidateIds: string[];
|
|
473
|
-
contextText: string;
|
|
474
|
-
images: {
|
|
475
|
-
path: string;
|
|
476
|
-
hash: string;
|
|
477
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
478
|
-
}[];
|
|
479
|
-
durationMs: number;
|
|
480
|
-
usage?: {
|
|
481
|
-
inputTokens?: number | undefined;
|
|
482
|
-
outputTokens?: number | undefined;
|
|
483
|
-
cachedInputTokens?: number | undefined;
|
|
484
|
-
allocation?: "equal-share" | undefined;
|
|
485
|
-
} | undefined;
|
|
486
|
-
suppliedReferences?: {
|
|
487
|
-
title: string;
|
|
488
|
-
id: string;
|
|
489
|
-
reason?: string | undefined;
|
|
490
|
-
url?: string | undefined;
|
|
491
|
-
image?: {
|
|
492
|
-
hash: string;
|
|
493
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
494
|
-
} | undefined;
|
|
495
|
-
}[] | undefined;
|
|
496
|
-
failedUploadCount?: number | undefined;
|
|
497
|
-
}, {
|
|
498
|
-
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
499
|
-
requestId: string;
|
|
500
|
-
selected: {
|
|
501
|
-
reason: string;
|
|
502
|
-
revision: number;
|
|
503
|
-
id: string;
|
|
504
|
-
sourceTitles: string[];
|
|
505
|
-
variant?: {
|
|
506
|
-
projectId: string;
|
|
507
|
-
sessionId: string;
|
|
508
|
-
variantId: string;
|
|
509
|
-
treeSha?: string | undefined;
|
|
510
|
-
} | undefined;
|
|
511
|
-
url?: string | undefined;
|
|
512
|
-
title?: string | undefined;
|
|
513
|
-
mediaHashes?: string[] | undefined;
|
|
514
|
-
}[];
|
|
515
|
-
queries: string[];
|
|
516
|
-
candidateIds: string[];
|
|
517
|
-
contextText: string;
|
|
518
|
-
images: {
|
|
519
|
-
path: string;
|
|
520
|
-
hash: string;
|
|
521
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
522
|
-
}[];
|
|
523
|
-
durationMs: number;
|
|
524
|
-
usage?: {
|
|
525
|
-
inputTokens?: number | undefined;
|
|
526
|
-
outputTokens?: number | undefined;
|
|
527
|
-
cachedInputTokens?: number | undefined;
|
|
528
|
-
allocation?: "equal-share" | undefined;
|
|
529
|
-
} | undefined;
|
|
530
|
-
suppliedReferences?: unknown[] | undefined;
|
|
531
|
-
failedUploadCount?: number | undefined;
|
|
532
|
-
}>;
|
|
321
|
+
}, z.core.$strip>;
|
|
533
322
|
export type ProfilePacket = z.infer<typeof ProfilePacketSchema>;
|
|
534
323
|
export declare const ProfileContextSchema: z.ZodObject<{
|
|
535
|
-
status: z.ZodEnum<
|
|
536
|
-
|
|
324
|
+
status: z.ZodEnum<{
|
|
325
|
+
timeout: "timeout";
|
|
326
|
+
off: "off";
|
|
327
|
+
selected: "selected";
|
|
328
|
+
empty: "empty";
|
|
329
|
+
unavailable: "unavailable";
|
|
330
|
+
}>;
|
|
331
|
+
suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
537
332
|
title: string;
|
|
538
333
|
id: string;
|
|
539
334
|
reason?: string | undefined;
|
|
@@ -542,140 +337,36 @@ export declare const ProfileContextSchema: z.ZodObject<{
|
|
|
542
337
|
hash: string;
|
|
543
338
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
544
339
|
} | undefined;
|
|
545
|
-
}, unknown
|
|
340
|
+
}, unknown>>>>;
|
|
546
341
|
failedUploadCount: z.ZodOptional<z.ZodNumber>;
|
|
547
342
|
images: z.ZodArray<z.ZodObject<{
|
|
548
343
|
path: z.ZodString;
|
|
549
344
|
hash: z.ZodString;
|
|
550
|
-
mimeType: z.ZodEnum<
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
hash: string;
|
|
558
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
559
|
-
}>, "many">;
|
|
345
|
+
mimeType: z.ZodEnum<{
|
|
346
|
+
"image/png": "image/png";
|
|
347
|
+
"image/jpeg": "image/jpeg";
|
|
348
|
+
"image/webp": "image/webp";
|
|
349
|
+
"image/gif": "image/gif";
|
|
350
|
+
}>;
|
|
351
|
+
}, z.core.$strip>>;
|
|
560
352
|
durationMs: z.ZodNumber;
|
|
561
|
-
} & {
|
|
562
353
|
requestId: z.ZodString;
|
|
563
354
|
selected: z.ZodArray<z.ZodObject<{
|
|
564
355
|
id: z.ZodString;
|
|
565
356
|
revision: z.ZodNumber;
|
|
566
357
|
title: z.ZodOptional<z.ZodString>;
|
|
567
358
|
url: z.ZodOptional<z.ZodString>;
|
|
568
|
-
mediaHashes: z.ZodOptional<z.ZodArray<z.ZodString
|
|
359
|
+
mediaHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
569
360
|
reason: z.ZodString;
|
|
570
|
-
sourceTitles: z.ZodArray<z.ZodString
|
|
361
|
+
sourceTitles: z.ZodArray<z.ZodString>;
|
|
571
362
|
variant: z.ZodOptional<z.ZodObject<{
|
|
572
363
|
projectId: z.ZodString;
|
|
573
364
|
sessionId: z.ZodString;
|
|
574
365
|
variantId: z.ZodString;
|
|
575
|
-
} & {
|
|
576
366
|
treeSha: z.ZodOptional<z.ZodString>;
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
variantId: string;
|
|
581
|
-
treeSha?: string | undefined;
|
|
582
|
-
}, {
|
|
583
|
-
projectId: string;
|
|
584
|
-
sessionId: string;
|
|
585
|
-
variantId: string;
|
|
586
|
-
treeSha?: string | undefined;
|
|
587
|
-
}>>;
|
|
588
|
-
}, "strip", z.ZodTypeAny, {
|
|
589
|
-
reason: string;
|
|
590
|
-
revision: number;
|
|
591
|
-
id: string;
|
|
592
|
-
sourceTitles: string[];
|
|
593
|
-
variant?: {
|
|
594
|
-
projectId: string;
|
|
595
|
-
sessionId: string;
|
|
596
|
-
variantId: string;
|
|
597
|
-
treeSha?: string | undefined;
|
|
598
|
-
} | undefined;
|
|
599
|
-
url?: string | undefined;
|
|
600
|
-
title?: string | undefined;
|
|
601
|
-
mediaHashes?: string[] | undefined;
|
|
602
|
-
}, {
|
|
603
|
-
reason: string;
|
|
604
|
-
revision: number;
|
|
605
|
-
id: string;
|
|
606
|
-
sourceTitles: string[];
|
|
607
|
-
variant?: {
|
|
608
|
-
projectId: string;
|
|
609
|
-
sessionId: string;
|
|
610
|
-
variantId: string;
|
|
611
|
-
treeSha?: string | undefined;
|
|
612
|
-
} | undefined;
|
|
613
|
-
url?: string | undefined;
|
|
614
|
-
title?: string | undefined;
|
|
615
|
-
mediaHashes?: string[] | undefined;
|
|
616
|
-
}>, "many">;
|
|
617
|
-
}, "strip", z.ZodTypeAny, {
|
|
618
|
-
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
619
|
-
requestId: string;
|
|
620
|
-
selected: {
|
|
621
|
-
reason: string;
|
|
622
|
-
revision: number;
|
|
623
|
-
id: string;
|
|
624
|
-
sourceTitles: string[];
|
|
625
|
-
variant?: {
|
|
626
|
-
projectId: string;
|
|
627
|
-
sessionId: string;
|
|
628
|
-
variantId: string;
|
|
629
|
-
treeSha?: string | undefined;
|
|
630
|
-
} | undefined;
|
|
631
|
-
url?: string | undefined;
|
|
632
|
-
title?: string | undefined;
|
|
633
|
-
mediaHashes?: string[] | undefined;
|
|
634
|
-
}[];
|
|
635
|
-
images: {
|
|
636
|
-
path: string;
|
|
637
|
-
hash: string;
|
|
638
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
639
|
-
}[];
|
|
640
|
-
durationMs: number;
|
|
641
|
-
suppliedReferences?: {
|
|
642
|
-
title: string;
|
|
643
|
-
id: string;
|
|
644
|
-
reason?: string | undefined;
|
|
645
|
-
url?: string | undefined;
|
|
646
|
-
image?: {
|
|
647
|
-
hash: string;
|
|
648
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
649
|
-
} | undefined;
|
|
650
|
-
}[] | undefined;
|
|
651
|
-
failedUploadCount?: number | undefined;
|
|
652
|
-
}, {
|
|
653
|
-
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
654
|
-
requestId: string;
|
|
655
|
-
selected: {
|
|
656
|
-
reason: string;
|
|
657
|
-
revision: number;
|
|
658
|
-
id: string;
|
|
659
|
-
sourceTitles: string[];
|
|
660
|
-
variant?: {
|
|
661
|
-
projectId: string;
|
|
662
|
-
sessionId: string;
|
|
663
|
-
variantId: string;
|
|
664
|
-
treeSha?: string | undefined;
|
|
665
|
-
} | undefined;
|
|
666
|
-
url?: string | undefined;
|
|
667
|
-
title?: string | undefined;
|
|
668
|
-
mediaHashes?: string[] | undefined;
|
|
669
|
-
}[];
|
|
670
|
-
images: {
|
|
671
|
-
path: string;
|
|
672
|
-
hash: string;
|
|
673
|
-
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
674
|
-
}[];
|
|
675
|
-
durationMs: number;
|
|
676
|
-
suppliedReferences?: unknown[] | undefined;
|
|
677
|
-
failedUploadCount?: number | undefined;
|
|
678
|
-
}>;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
}, z.core.$strip>>;
|
|
369
|
+
}, z.core.$strip>;
|
|
679
370
|
export type ProfileContext = z.infer<typeof ProfileContextSchema>;
|
|
680
371
|
export interface ProfileContextResult extends ProfileContext {
|
|
681
372
|
isRecorded: boolean;
|