rivet-design 0.18.1 → 0.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.npm.md +1 -1
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +9 -2
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +5 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +193 -39
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +669 -234
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/cli/client.d.ts.map +1 -1
- package/dist/cli/client.js +11 -3
- package/dist/cli/client.js.map +1 -1
- package/dist/cli/commands/generationPreflight.d.ts +12 -0
- package/dist/cli/commands/generationPreflight.d.ts.map +1 -0
- package/dist/cli/commands/generationPreflight.js +40 -0
- package/dist/cli/commands/generationPreflight.js.map +1 -0
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +54 -12
- package/dist/cli/commands/mcpServe.js.map +1 -1
- package/dist/cli/commands/open.d.ts.map +1 -1
- package/dist/cli/commands/open.js +110 -76
- package/dist/cli/commands/open.js.map +1 -1
- package/dist/cli/commands/profile.d.ts.map +1 -1
- package/dist/cli/commands/profile.js +75 -2
- package/dist/cli/commands/profile.js.map +1 -1
- package/dist/cli/commands/serve.d.ts.map +1 -1
- package/dist/cli/commands/serve.js +20 -0
- package/dist/cli/commands/serve.js.map +1 -1
- package/dist/cli/commands/shared.d.ts.map +1 -1
- package/dist/cli/commands/shared.js +2 -2
- package/dist/cli/commands/shared.js.map +1 -1
- package/dist/cli/commands/stop.d.ts.map +1 -1
- package/dist/cli/commands/stop.js +29 -5
- package/dist/cli/commands/stop.js.map +1 -1
- package/dist/cli/commands/variants.d.ts +8 -1
- package/dist/cli/commands/variants.d.ts.map +1 -1
- package/dist/cli/commands/variants.js +13 -4
- package/dist/cli/commands/variants.js.map +1 -1
- package/dist/cli/referenceOnboarding.d.ts +3 -0
- package/dist/cli/referenceOnboarding.d.ts.map +1 -0
- package/dist/cli/referenceOnboarding.js +82 -0
- package/dist/cli/referenceOnboarding.js.map +1 -0
- package/dist/cli/router.d.ts.map +1 -1
- package/dist/cli/router.js +7 -7
- package/dist/cli/router.js.map +1 -1
- package/dist/cli/serverHandshake.d.ts +5 -4
- package/dist/cli/serverHandshake.d.ts.map +1 -1
- package/dist/cli/serverHandshake.js +66 -57
- package/dist/cli/serverHandshake.js.map +1 -1
- package/dist/cli/serverShutdown.d.ts +4 -0
- package/dist/cli/serverShutdown.d.ts.map +1 -0
- package/dist/cli/serverShutdown.js +20 -0
- package/dist/cli/serverShutdown.js.map +1 -0
- package/dist/cli/serverUnavailable.d.ts +1 -1
- package/dist/cli/serverUnavailable.d.ts.map +1 -1
- package/dist/cli/serverUnavailable.js +4 -0
- package/dist/cli/serverUnavailable.js.map +1 -1
- package/dist/cli/serverVersion.d.ts +1 -1
- package/dist/cli/serverVersion.d.ts.map +1 -1
- package/dist/cli/serverVersion.js +5 -23
- package/dist/cli/serverVersion.js.map +1 -1
- package/dist/install/codexSkill.d.ts +13 -0
- package/dist/install/codexSkill.d.ts.map +1 -0
- package/dist/install/codexSkill.js +64 -0
- package/dist/install/codexSkill.js.map +1 -0
- package/dist/install/harnesses.d.ts.map +1 -1
- package/dist/install/harnesses.js +25 -4
- package/dist/install/harnesses.js.map +1 -1
- package/dist/routes/agentVariants.d.ts +2 -1
- package/dist/routes/agentVariants.d.ts.map +1 -1
- package/dist/routes/agentVariants.js +26 -28
- package/dist/routes/agentVariants.js.map +1 -1
- package/dist/routes/cli.d.ts +3 -0
- package/dist/routes/cli.d.ts.map +1 -1
- package/dist/routes/cli.js +66 -9
- package/dist/routes/cli.js.map +1 -1
- package/dist/routes/library/index.d.ts.map +1 -1
- package/dist/routes/library/index.js +2 -0
- package/dist/routes/library/index.js.map +1 -1
- package/dist/routes/library/profiles.d.ts.map +1 -1
- package/dist/routes/library/profiles.js +5 -4
- package/dist/routes/library/profiles.js.map +1 -1
- package/dist/routes/library/referenceOnboarding.d.ts +4 -0
- package/dist/routes/library/referenceOnboarding.d.ts.map +1 -0
- package/dist/routes/library/referenceOnboarding.js +94 -0
- package/dist/routes/library/referenceOnboarding.js.map +1 -0
- package/dist/routes/runtimeAdmission.d.ts +13 -0
- package/dist/routes/runtimeAdmission.d.ts.map +1 -0
- package/dist/routes/runtimeAdmission.js +42 -0
- package/dist/routes/runtimeAdmission.js.map +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +7 -4
- package/dist/server.js.map +1 -1
- package/dist/services/IntegrationsClient.d.ts +77 -0
- package/dist/services/IntegrationsClient.d.ts.map +1 -1
- package/dist/services/IntegrationsClient.js +123 -6
- package/dist/services/IntegrationsClient.js.map +1 -1
- package/dist/services/ProjectImport.d.ts.map +1 -1
- package/dist/services/ProjectImport.js +5 -12
- package/dist/services/ProjectImport.js.map +1 -1
- package/dist/services/RuntimeAdmission.d.ts +31 -0
- package/dist/services/RuntimeAdmission.d.ts.map +1 -0
- package/dist/services/RuntimeAdmission.js +77 -0
- package/dist/services/RuntimeAdmission.js.map +1 -0
- package/dist/services/TelemetryService.d.ts +1 -1
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js.map +1 -1
- package/dist/services/TreeStore.d.ts +7 -0
- package/dist/services/TreeStore.d.ts.map +1 -1
- package/dist/services/TreeStore.js +18 -0
- package/dist/services/TreeStore.js.map +1 -1
- package/dist/services/VariantHistoryService.js +1 -1
- package/dist/services/VariantHistoryService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +38 -29
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +244 -17
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
- package/dist/services/profiles/DesignProfiles.js +257 -6
- package/dist/services/profiles/DesignProfiles.js.map +1 -1
- package/dist/services/profiles/ProfileImports.d.ts +3 -3
- package/dist/services/profiles/ProfileImports.d.ts.map +1 -1
- package/dist/services/profiles/ProfileImports.js +25 -1
- package/dist/services/profiles/ProfileImports.js.map +1 -1
- package/dist/services/profiles/ProfilePlanning.d.ts +96 -0
- package/dist/services/profiles/ProfilePlanning.d.ts.map +1 -0
- package/dist/services/profiles/ProfilePlanning.js +187 -0
- package/dist/services/profiles/ProfilePlanning.js.map +1 -0
- package/dist/services/profiles/ProfilePreparation.d.ts +6 -1
- package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -1
- package/dist/services/profiles/ProfilePreparation.js +8 -4
- package/dist/services/profiles/ProfilePreparation.js.map +1 -1
- package/dist/services/profiles/ReferenceReader.d.ts +75 -0
- package/dist/services/profiles/ReferenceReader.d.ts.map +1 -0
- package/dist/services/profiles/ReferenceReader.js +97 -0
- package/dist/services/profiles/ReferenceReader.js.map +1 -0
- package/dist/services/profiles/analysisBatch.js +1 -1
- package/dist/services/profiles/analysisBatch.js.map +1 -1
- package/dist/services/profiles/boardPage.d.ts +2 -1
- package/dist/services/profiles/boardPage.d.ts.map +1 -1
- package/dist/services/profiles/boardPage.js.map +1 -1
- package/dist/services/profiles/cosmosPage.d.ts +10 -0
- package/dist/services/profiles/cosmosPage.d.ts.map +1 -0
- package/dist/services/profiles/cosmosPage.js +104 -0
- package/dist/services/profiles/cosmosPage.js.map +1 -0
- package/dist/services/profiles/profileAccount.d.ts.map +1 -1
- package/dist/services/profiles/profileAccount.js +3 -1
- package/dist/services/profiles/profileAccount.js.map +1 -1
- package/dist/services/profiles/profileContext.d.ts +1 -1
- package/dist/services/profiles/profileContext.d.ts.map +1 -1
- package/dist/services/profiles/profileContext.js +28 -5
- package/dist/services/profiles/profileContext.js.map +1 -1
- package/dist/services/runtimeActivity.d.ts +3 -0
- package/dist/services/runtimeActivity.d.ts.map +1 -0
- package/dist/services/runtimeActivity.js +70 -0
- package/dist/services/runtimeActivity.js.map +1 -0
- package/dist/services/runtimeVersion.d.ts +4 -0
- package/dist/services/runtimeVersion.d.ts.map +1 -0
- package/dist/services/runtimeVersion.js +30 -0
- package/dist/services/runtimeVersion.js.map +1 -0
- package/dist/storage/library/ProjectRuntimeRecords.d.ts +15 -0
- package/dist/storage/library/ProjectRuntimeRecords.d.ts.map +1 -0
- package/dist/storage/library/ProjectRuntimeRecords.js +66 -0
- package/dist/storage/library/ProjectRuntimeRecords.js.map +1 -0
- package/dist/storage/library/migrations.d.ts +1 -0
- package/dist/storage/library/migrations.d.ts.map +1 -1
- package/dist/storage/library/migrations.js +9 -1
- package/dist/storage/library/migrations.js.map +1 -1
- package/dist/storage/library/schema/projectRuntime.d.ts +72 -0
- package/dist/storage/library/schema/projectRuntime.d.ts.map +1 -0
- package/dist/storage/library/schema/projectRuntime.js +16 -0
- package/dist/storage/library/schema/projectRuntime.js.map +1 -0
- package/dist/storage/profiles/ProfilePlans.d.ts +320 -0
- package/dist/storage/profiles/ProfilePlans.d.ts.map +1 -0
- package/dist/storage/profiles/ProfilePlans.js +256 -0
- package/dist/storage/profiles/ProfilePlans.js.map +1 -0
- package/dist/storage/profiles/ProfileRecords.d.ts +71 -10
- package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -1
- package/dist/storage/profiles/ProfileRecords.js +152 -62
- package/dist/storage/profiles/ProfileRecords.js.map +1 -1
- package/dist/storage/profiles/migrations.d.ts +2 -2
- package/dist/storage/profiles/migrations.d.ts.map +1 -1
- package/dist/storage/profiles/migrations.js +14 -0
- package/dist/storage/profiles/migrations.js.map +1 -1
- package/dist/storage/profiles/planSchema.d.ts +347 -0
- package/dist/storage/profiles/planSchema.d.ts.map +1 -0
- package/dist/storage/profiles/planSchema.js +34 -0
- package/dist/storage/profiles/planSchema.js.map +1 -0
- package/dist/storage/profiles/schema.d.ts +59 -4
- package/dist/storage/profiles/schema.d.ts.map +1 -1
- package/dist/storage/profiles/schema.js +14 -1
- package/dist/storage/profiles/schema.js.map +1 -1
- package/dist/types/cosmos-profile.d.ts +130 -0
- package/dist/types/cosmos-profile.d.ts.map +1 -0
- package/dist/types/cosmos-profile.js +27 -0
- package/dist/types/cosmos-profile.js.map +1 -0
- package/dist/types/cosmos.d.ts +330 -0
- package/dist/types/cosmos.d.ts.map +1 -0
- package/dist/types/cosmos.js +157 -0
- package/dist/types/cosmos.js.map +1 -0
- package/dist/types/design-profile.d.ts +129 -16
- package/dist/types/design-profile.d.ts.map +1 -1
- package/dist/types/design-profile.js +50 -2
- package/dist/types/design-profile.js.map +1 -1
- package/dist/types/reference-connectors.d.ts +226 -0
- package/dist/types/reference-connectors.d.ts.map +1 -0
- package/dist/types/reference-connectors.js +92 -0
- package/dist/types/reference-connectors.js.map +1 -0
- package/dist/types/reference-onboarding.d.ts +1065 -0
- package/dist/types/reference-onboarding.d.ts.map +1 -0
- package/dist/types/reference-onboarding.js +108 -0
- package/dist/types/reference-onboarding.js.map +1 -0
- package/dist/types/reference-pages.d.ts +168 -0
- package/dist/types/reference-pages.d.ts.map +1 -0
- package/dist/types/reference-pages.js +26 -0
- package/dist/types/reference-pages.js.map +1 -0
- package/dist/types/variant-reference.d.ts +19 -4
- package/dist/types/variant-reference.d.ts.map +1 -1
- package/dist/types/variant-reference.js +20 -8
- package/dist/types/variant-reference.js.map +1 -1
- package/dist/types/x-bookmarks.d.ts +8 -8
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +6 -2
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/codex-skill.d.ts +3 -0
- package/dist/utils/skills/codex-skill.d.ts.map +1 -0
- package/dist/utils/skills/codex-skill.js +30 -0
- package/dist/utils/skills/codex-skill.js.map +1 -0
- package/package.json +2 -1
- package/src/ui/dist/assets/{LibraryApp-BzcRWsfQ.js → LibraryApp-DFhxcf--.js} +5 -5
- package/src/ui/dist/assets/main-Ayzl0f1H.css +1 -0
- package/src/ui/dist/assets/main-D5n04THm.js +438 -0
- package/src/ui/dist/index.html +2 -2
- package/src/ui/dist/assets/main-CHCea2Fu.css +0 -1
- package/src/ui/dist/assets/main-DXqdB6Oi.js +0 -438
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PROFILE_CANDIDATE_IMAGE_LIMIT = 6;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const PROFILE_UPLOAD_COUNT = 100;
|
|
4
|
+
export declare const PROFILE_UPLOAD_BYTES: number;
|
|
5
|
+
export declare const PROFILE_UPLOAD_ENCODED_BYTES: number;
|
|
6
|
+
export declare const PROFILE_PREPARATION_BODY_BYTES: number;
|
|
7
|
+
export declare const RemoteProfileProviderSchema: z.ZodEnum<["pinterest", "arena", "x", "cosmos"]>;
|
|
8
|
+
export interface ProfileCollectionProgress {
|
|
9
|
+
id: string;
|
|
10
|
+
total: number;
|
|
11
|
+
isComplete: boolean;
|
|
12
|
+
}
|
|
4
13
|
export declare const isRemoteProfileProvider: (value: string) => value is z.infer<typeof RemoteProfileProviderSchema>;
|
|
5
|
-
export declare const ProfileProviderSchema: z.ZodEnum<["image", "pinterest", "arena", "x", "text", "pdf", "variant"]>;
|
|
14
|
+
export declare const ProfileProviderSchema: z.ZodEnum<["image", "pinterest", "arena", "x", "cosmos", "text", "pdf", "variant"]>;
|
|
6
15
|
export declare const ProfileRuntimeSchema: z.ZodEnum<["codex", "claude", "cursor"]>;
|
|
7
16
|
export declare const ProfileVariantIdentitySchema: z.ZodObject<{
|
|
8
17
|
projectId: z.ZodString;
|
|
@@ -61,23 +70,23 @@ export declare const ProfileMediaSchema: z.ZodObject<{
|
|
|
61
70
|
representation?: "image" | "variant" | "video-cover" | "page" | undefined;
|
|
62
71
|
}>;
|
|
63
72
|
export declare const ProfileSourceInputSchema: z.ZodObject<{
|
|
64
|
-
provider: z.ZodEnum<["image", "pinterest", "arena", "x", "text", "pdf", "variant"]>;
|
|
73
|
+
provider: z.ZodEnum<["image", "pinterest", "arena", "x", "cosmos", "text", "pdf", "variant"]>;
|
|
65
74
|
remoteId: z.ZodString;
|
|
66
75
|
title: z.ZodString;
|
|
67
76
|
url: z.ZodOptional<z.ZodString>;
|
|
68
77
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
provider: "text" | "image" | "arena" | "pinterest" | "
|
|
78
|
+
provider: "text" | "image" | "variant" | "arena" | "pinterest" | "x" | "cosmos" | "pdf";
|
|
70
79
|
title: string;
|
|
71
80
|
remoteId: string;
|
|
72
81
|
url?: string | undefined;
|
|
73
82
|
}, {
|
|
74
|
-
provider: "text" | "image" | "arena" | "pinterest" | "
|
|
83
|
+
provider: "text" | "image" | "variant" | "arena" | "pinterest" | "x" | "cosmos" | "pdf";
|
|
75
84
|
title: string;
|
|
76
85
|
remoteId: string;
|
|
77
86
|
url?: string | undefined;
|
|
78
87
|
}>;
|
|
79
88
|
export declare const ProfileReferenceInputSchema: z.ZodObject<{
|
|
80
|
-
provider: z.ZodEnum<["image", "pinterest", "arena", "x", "text", "pdf", "variant"]>;
|
|
89
|
+
provider: z.ZodEnum<["image", "pinterest", "arena", "x", "cosmos", "text", "pdf", "variant"]>;
|
|
81
90
|
remoteId: z.ZodString;
|
|
82
91
|
title: z.ZodString;
|
|
83
92
|
text: z.ZodString;
|
|
@@ -124,7 +133,7 @@ export declare const ProfileReferenceInputSchema: z.ZodObject<{
|
|
|
124
133
|
note: z.ZodOptional<z.ZodString>;
|
|
125
134
|
}, "strip", z.ZodTypeAny, {
|
|
126
135
|
text: string;
|
|
127
|
-
provider: "text" | "image" | "arena" | "pinterest" | "
|
|
136
|
+
provider: "text" | "image" | "variant" | "arena" | "pinterest" | "x" | "cosmos" | "pdf";
|
|
128
137
|
title: string;
|
|
129
138
|
remoteId: string;
|
|
130
139
|
media: {
|
|
@@ -147,7 +156,7 @@ export declare const ProfileReferenceInputSchema: z.ZodObject<{
|
|
|
147
156
|
unsupportedReason?: string | undefined;
|
|
148
157
|
}, {
|
|
149
158
|
text: string;
|
|
150
|
-
provider: "text" | "image" | "arena" | "pinterest" | "
|
|
159
|
+
provider: "text" | "image" | "variant" | "arena" | "pinterest" | "x" | "cosmos" | "pdf";
|
|
151
160
|
title: string;
|
|
152
161
|
remoteId: string;
|
|
153
162
|
media: {
|
|
@@ -266,6 +275,7 @@ export declare const ProfilePreparationSchema: z.ZodObject<{
|
|
|
266
275
|
excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
267
276
|
excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
268
277
|
excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
278
|
+
suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
269
279
|
}, "strip", z.ZodTypeAny, {
|
|
270
280
|
mode: "auto" | "off";
|
|
271
281
|
instruction: string;
|
|
@@ -274,6 +284,7 @@ export declare const ProfilePreparationSchema: z.ZodObject<{
|
|
|
274
284
|
excludedSourceIds: string[];
|
|
275
285
|
excludedReferenceIds: string[];
|
|
276
286
|
excludedMediaHashes: string[];
|
|
287
|
+
suppliedInputHashes?: string[] | undefined;
|
|
277
288
|
}, {
|
|
278
289
|
instruction: string;
|
|
279
290
|
runtime: "claude" | "codex" | "cursor";
|
|
@@ -282,9 +293,74 @@ export declare const ProfilePreparationSchema: z.ZodObject<{
|
|
|
282
293
|
excludedSourceIds?: string[] | undefined;
|
|
283
294
|
excludedReferenceIds?: string[] | undefined;
|
|
284
295
|
excludedMediaHashes?: string[] | undefined;
|
|
296
|
+
suppliedInputHashes?: string[] | undefined;
|
|
285
297
|
}>;
|
|
286
298
|
export type ProfilePreparation = z.infer<typeof ProfilePreparationSchema>;
|
|
299
|
+
export declare const ProfilePreparationRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
300
|
+
requestId: z.ZodString;
|
|
301
|
+
instruction: z.ZodString;
|
|
302
|
+
runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
|
|
303
|
+
mode: z.ZodDefault<z.ZodEnum<["auto", "off"]>>;
|
|
304
|
+
excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
305
|
+
excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
306
|
+
excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
307
|
+
suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
308
|
+
} & {
|
|
309
|
+
uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
mode: "auto" | "off";
|
|
312
|
+
instruction: string;
|
|
313
|
+
runtime: "claude" | "codex" | "cursor";
|
|
314
|
+
requestId: string;
|
|
315
|
+
excludedSourceIds: string[];
|
|
316
|
+
excludedReferenceIds: string[];
|
|
317
|
+
excludedMediaHashes: string[];
|
|
318
|
+
suppliedInputHashes?: string[] | undefined;
|
|
319
|
+
uploads?: string[] | undefined;
|
|
320
|
+
}, {
|
|
321
|
+
instruction: string;
|
|
322
|
+
runtime: "claude" | "codex" | "cursor";
|
|
323
|
+
requestId: string;
|
|
324
|
+
mode?: "auto" | "off" | undefined;
|
|
325
|
+
excludedSourceIds?: string[] | undefined;
|
|
326
|
+
excludedReferenceIds?: string[] | undefined;
|
|
327
|
+
excludedMediaHashes?: string[] | undefined;
|
|
328
|
+
suppliedInputHashes?: string[] | undefined;
|
|
329
|
+
uploads?: string[] | undefined;
|
|
330
|
+
}>, {
|
|
331
|
+
mode: "auto" | "off";
|
|
332
|
+
instruction: string;
|
|
333
|
+
runtime: "claude" | "codex" | "cursor";
|
|
334
|
+
requestId: string;
|
|
335
|
+
excludedSourceIds: string[];
|
|
336
|
+
excludedReferenceIds: string[];
|
|
337
|
+
excludedMediaHashes: string[];
|
|
338
|
+
suppliedInputHashes?: string[] | undefined;
|
|
339
|
+
uploads?: string[] | undefined;
|
|
340
|
+
}, {
|
|
341
|
+
instruction: string;
|
|
342
|
+
runtime: "claude" | "codex" | "cursor";
|
|
343
|
+
requestId: string;
|
|
344
|
+
mode?: "auto" | "off" | undefined;
|
|
345
|
+
excludedSourceIds?: string[] | undefined;
|
|
346
|
+
excludedReferenceIds?: string[] | undefined;
|
|
347
|
+
excludedMediaHashes?: string[] | undefined;
|
|
348
|
+
suppliedInputHashes?: string[] | undefined;
|
|
349
|
+
uploads?: string[] | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
export type ProfilePreparationRequest = z.infer<typeof ProfilePreparationRequestSchema>;
|
|
287
352
|
export declare const ProfilePacketSchema: z.ZodObject<{
|
|
353
|
+
suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnknown, {
|
|
354
|
+
id: string;
|
|
355
|
+
title: string;
|
|
356
|
+
image?: {
|
|
357
|
+
hash: string;
|
|
358
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
359
|
+
} | undefined;
|
|
360
|
+
url?: string | undefined;
|
|
361
|
+
reason?: string | undefined;
|
|
362
|
+
}, unknown>, "many">>;
|
|
363
|
+
failedUploadCount: z.ZodOptional<z.ZodNumber>;
|
|
288
364
|
usage: z.ZodOptional<z.ZodObject<{
|
|
289
365
|
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
290
366
|
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -365,13 +441,13 @@ export declare const ProfilePacketSchema: z.ZodObject<{
|
|
|
365
441
|
hash: z.ZodString;
|
|
366
442
|
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
|
|
367
443
|
}, "strip", z.ZodTypeAny, {
|
|
444
|
+
path: string;
|
|
368
445
|
hash: string;
|
|
369
446
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
370
|
-
path: string;
|
|
371
447
|
}, {
|
|
448
|
+
path: string;
|
|
372
449
|
hash: string;
|
|
373
450
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
374
|
-
path: string;
|
|
375
451
|
}>, "many">;
|
|
376
452
|
durationMs: z.ZodNumber;
|
|
377
453
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -396,9 +472,9 @@ export declare const ProfilePacketSchema: z.ZodObject<{
|
|
|
396
472
|
candidateIds: string[];
|
|
397
473
|
contextText: string;
|
|
398
474
|
images: {
|
|
475
|
+
path: string;
|
|
399
476
|
hash: string;
|
|
400
477
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
401
|
-
path: string;
|
|
402
478
|
}[];
|
|
403
479
|
durationMs: number;
|
|
404
480
|
usage?: {
|
|
@@ -407,6 +483,17 @@ export declare const ProfilePacketSchema: z.ZodObject<{
|
|
|
407
483
|
cachedInputTokens?: number | undefined;
|
|
408
484
|
allocation?: "equal-share" | undefined;
|
|
409
485
|
} | undefined;
|
|
486
|
+
suppliedReferences?: {
|
|
487
|
+
id: string;
|
|
488
|
+
title: string;
|
|
489
|
+
image?: {
|
|
490
|
+
hash: string;
|
|
491
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
492
|
+
} | undefined;
|
|
493
|
+
url?: string | undefined;
|
|
494
|
+
reason?: string | undefined;
|
|
495
|
+
}[] | undefined;
|
|
496
|
+
failedUploadCount?: number | undefined;
|
|
410
497
|
}, {
|
|
411
498
|
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
412
499
|
requestId: string;
|
|
@@ -429,9 +516,9 @@ export declare const ProfilePacketSchema: z.ZodObject<{
|
|
|
429
516
|
candidateIds: string[];
|
|
430
517
|
contextText: string;
|
|
431
518
|
images: {
|
|
519
|
+
path: string;
|
|
432
520
|
hash: string;
|
|
433
521
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
434
|
-
path: string;
|
|
435
522
|
}[];
|
|
436
523
|
durationMs: number;
|
|
437
524
|
usage?: {
|
|
@@ -440,22 +527,35 @@ export declare const ProfilePacketSchema: z.ZodObject<{
|
|
|
440
527
|
cachedInputTokens?: number | undefined;
|
|
441
528
|
allocation?: "equal-share" | undefined;
|
|
442
529
|
} | undefined;
|
|
530
|
+
suppliedReferences?: unknown[] | undefined;
|
|
531
|
+
failedUploadCount?: number | undefined;
|
|
443
532
|
}>;
|
|
444
533
|
export type ProfilePacket = z.infer<typeof ProfilePacketSchema>;
|
|
445
534
|
export declare const ProfileContextSchema: z.ZodObject<{
|
|
446
535
|
status: z.ZodEnum<["selected", "empty", "off", "unavailable", "timeout"]>;
|
|
536
|
+
suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnknown, {
|
|
537
|
+
id: string;
|
|
538
|
+
title: string;
|
|
539
|
+
image?: {
|
|
540
|
+
hash: string;
|
|
541
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
542
|
+
} | undefined;
|
|
543
|
+
url?: string | undefined;
|
|
544
|
+
reason?: string | undefined;
|
|
545
|
+
}, unknown>, "many">>;
|
|
546
|
+
failedUploadCount: z.ZodOptional<z.ZodNumber>;
|
|
447
547
|
images: z.ZodArray<z.ZodObject<{
|
|
448
548
|
path: z.ZodString;
|
|
449
549
|
hash: z.ZodString;
|
|
450
550
|
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
|
|
451
551
|
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
path: string;
|
|
452
553
|
hash: string;
|
|
453
554
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
454
|
-
path: string;
|
|
455
555
|
}, {
|
|
556
|
+
path: string;
|
|
456
557
|
hash: string;
|
|
457
558
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
458
|
-
path: string;
|
|
459
559
|
}>, "many">;
|
|
460
560
|
durationMs: z.ZodNumber;
|
|
461
561
|
} & {
|
|
@@ -533,11 +633,22 @@ export declare const ProfileContextSchema: z.ZodObject<{
|
|
|
533
633
|
mediaHashes?: string[] | undefined;
|
|
534
634
|
}[];
|
|
535
635
|
images: {
|
|
636
|
+
path: string;
|
|
536
637
|
hash: string;
|
|
537
638
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
538
|
-
path: string;
|
|
539
639
|
}[];
|
|
540
640
|
durationMs: number;
|
|
641
|
+
suppliedReferences?: {
|
|
642
|
+
id: string;
|
|
643
|
+
title: string;
|
|
644
|
+
image?: {
|
|
645
|
+
hash: string;
|
|
646
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
647
|
+
} | undefined;
|
|
648
|
+
url?: string | undefined;
|
|
649
|
+
reason?: string | undefined;
|
|
650
|
+
}[] | undefined;
|
|
651
|
+
failedUploadCount?: number | undefined;
|
|
541
652
|
}, {
|
|
542
653
|
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
543
654
|
requestId: string;
|
|
@@ -557,11 +668,13 @@ export declare const ProfileContextSchema: z.ZodObject<{
|
|
|
557
668
|
mediaHashes?: string[] | undefined;
|
|
558
669
|
}[];
|
|
559
670
|
images: {
|
|
671
|
+
path: string;
|
|
560
672
|
hash: string;
|
|
561
673
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
562
|
-
path: string;
|
|
563
674
|
}[];
|
|
564
675
|
durationMs: number;
|
|
676
|
+
suppliedReferences?: unknown[] | undefined;
|
|
677
|
+
failedUploadCount?: number | undefined;
|
|
565
678
|
}>;
|
|
566
679
|
export type ProfileContext = z.infer<typeof ProfileContextSchema>;
|
|
567
680
|
export interface ProfileContextResult extends ProfileContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-profile.d.ts","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"design-profile.d.ts","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAGxC,eAAO,MAAM,oBAAoB,QAAmB,CAAC;AACrD,eAAO,MAAM,4BAA4B,QACA,CAAC;AAC1C,eAAO,MAAM,8BAA8B,QACgB,CAAC;AAE5D,eAAO,MAAM,2BAA2B,kDAKtC,CAAC;AACH,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;CACrB;AACD,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,KACZ,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CACA,CAAC;AAEvD,eAAO,MAAM,qBAAqB,qFAMhC,CAAC;AACH,eAAO,MAAM,oBAAoB,0CAAwC,CAAC;AAC1E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAM9B,CAAC;AACZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAI5E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EAKnC,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetC,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AACH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AAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa3C,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAYF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4C9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileContextSchema = exports.ProfilePacketSchema = exports.ProfilePreparationSchema = exports.ProfileObservationSchema = exports.ProfileUsageSchema = exports.ProfileReferenceInputSchema = exports.ProfileSourceInputSchema = exports.ProfileMediaSchema = exports.ProfileVariantInputSchema = exports.ProfileVariantIdentitySchema = exports.ProfileRuntimeSchema = exports.ProfileProviderSchema = exports.isRemoteProfileProvider = exports.RemoteProfileProviderSchema = exports.PROFILE_CANDIDATE_IMAGE_LIMIT = void 0;
|
|
3
|
+
exports.ProfileContextSchema = exports.ProfilePacketSchema = exports.ProfilePreparationRequestSchema = exports.ProfilePreparationSchema = exports.ProfileObservationSchema = exports.ProfileUsageSchema = exports.ProfileReferenceInputSchema = exports.ProfileSourceInputSchema = exports.ProfileMediaSchema = exports.ProfileVariantInputSchema = exports.ProfileVariantIdentitySchema = exports.ProfileRuntimeSchema = exports.ProfileProviderSchema = exports.isRemoteProfileProvider = exports.RemoteProfileProviderSchema = exports.PROFILE_PREPARATION_BODY_BYTES = exports.PROFILE_UPLOAD_ENCODED_BYTES = exports.PROFILE_UPLOAD_BYTES = exports.PROFILE_UPLOAD_COUNT = exports.PROFILE_CANDIDATE_IMAGE_LIMIT = void 0;
|
|
4
|
+
const variant_reference_1 = require("./variant-reference");
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
6
|
exports.PROFILE_CANDIDATE_IMAGE_LIMIT = 6;
|
|
6
|
-
exports.
|
|
7
|
+
exports.PROFILE_UPLOAD_COUNT = 100;
|
|
8
|
+
const DATA_URL_HEADER_LENGTH = 100;
|
|
9
|
+
const PREPARATION_METADATA_BYTES = 256 * 1024;
|
|
10
|
+
exports.PROFILE_UPLOAD_BYTES = 35 * 1024 * 1024;
|
|
11
|
+
exports.PROFILE_UPLOAD_ENCODED_BYTES = Math.ceil(exports.PROFILE_UPLOAD_BYTES / 3) * 4;
|
|
12
|
+
exports.PROFILE_PREPARATION_BODY_BYTES = exports.PROFILE_UPLOAD_ENCODED_BYTES + PREPARATION_METADATA_BYTES;
|
|
13
|
+
exports.RemoteProfileProviderSchema = zod_1.z.enum([
|
|
14
|
+
'pinterest',
|
|
15
|
+
'arena',
|
|
16
|
+
'x',
|
|
17
|
+
'cosmos',
|
|
18
|
+
]);
|
|
7
19
|
const isRemoteProfileProvider = (value) => exports.RemoteProfileProviderSchema.safeParse(value).success;
|
|
8
20
|
exports.isRemoteProfileProvider = isRemoteProfileProvider;
|
|
9
21
|
exports.ProfileProviderSchema = zod_1.z.enum([
|
|
@@ -82,8 +94,42 @@ exports.ProfilePreparationSchema = zod_1.z.object({
|
|
|
82
94
|
excludedSourceIds: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
83
95
|
excludedReferenceIds: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
84
96
|
excludedMediaHashes: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
97
|
+
suppliedInputHashes: zod_1.z
|
|
98
|
+
.array(zod_1.z.string().regex(/^[a-f0-9]{64}$/))
|
|
99
|
+
.max(exports.PROFILE_UPLOAD_COUNT)
|
|
100
|
+
.optional(),
|
|
101
|
+
});
|
|
102
|
+
exports.ProfilePreparationRequestSchema = exports.ProfilePreparationSchema.extend({
|
|
103
|
+
uploads: zod_1.z
|
|
104
|
+
.array(zod_1.z.string().max(exports.PROFILE_UPLOAD_ENCODED_BYTES + DATA_URL_HEADER_LENGTH))
|
|
105
|
+
.max(exports.PROFILE_UPLOAD_COUNT)
|
|
106
|
+
.optional(),
|
|
107
|
+
}).refine((input) => (input.uploads ?? []).reduce((size, image) => size + image.length, 0) <=
|
|
108
|
+
exports.PROFILE_UPLOAD_ENCODED_BYTES +
|
|
109
|
+
exports.PROFILE_UPLOAD_COUNT * DATA_URL_HEADER_LENGTH, 'Supplied images exceed the profile upload budget');
|
|
110
|
+
const suppliedReferenceSchema = zod_1.z
|
|
111
|
+
.unknown()
|
|
112
|
+
.transform((value, context) => {
|
|
113
|
+
const parsed = variant_reference_1.variantReferenceSchema.safeParse(value);
|
|
114
|
+
if (parsed.success)
|
|
115
|
+
return parsed.data;
|
|
116
|
+
context.addIssue({
|
|
117
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
118
|
+
message: 'Invalid supplied image reference',
|
|
119
|
+
});
|
|
120
|
+
return zod_1.z.NEVER;
|
|
85
121
|
});
|
|
86
122
|
exports.ProfilePacketSchema = zod_1.z.object({
|
|
123
|
+
suppliedReferences: zod_1.z
|
|
124
|
+
.array(suppliedReferenceSchema)
|
|
125
|
+
.max(exports.PROFILE_UPLOAD_COUNT)
|
|
126
|
+
.optional(),
|
|
127
|
+
failedUploadCount: zod_1.z
|
|
128
|
+
.number()
|
|
129
|
+
.int()
|
|
130
|
+
.min(0)
|
|
131
|
+
.max(exports.PROFILE_UPLOAD_COUNT)
|
|
132
|
+
.optional(),
|
|
87
133
|
usage: exports.ProfileUsageSchema.optional(),
|
|
88
134
|
requestId: zod_1.z.string(),
|
|
89
135
|
status: zod_1.z.enum(['selected', 'empty', 'off', 'unavailable', 'timeout']),
|
|
@@ -116,6 +162,8 @@ exports.ProfilePacketSchema = zod_1.z.object({
|
|
|
116
162
|
});
|
|
117
163
|
exports.ProfileContextSchema = exports.ProfilePacketSchema.pick({
|
|
118
164
|
requestId: true,
|
|
165
|
+
suppliedReferences: true,
|
|
166
|
+
failedUploadCount: true,
|
|
119
167
|
status: true,
|
|
120
168
|
selected: true,
|
|
121
169
|
images: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-profile.js","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"design-profile.js","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"names":[],"mappings":";;;AAAA,2DAG6B;AAC7B,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,CAAC,CAAC;AAClC,QAAA,oBAAoB,GAAG,GAAG,CAAC;AACxC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,MAAM,0BAA0B,GAAG,GAAG,GAAG,IAAI,CAAC;AACjC,QAAA,oBAAoB,GAAG,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CAAC,CAAC;CACpD,CAAC,CAAC"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AuthenticatedReferenceProviderSchema: z.ZodEnum<["pinterest", "arena", "x"]>;
|
|
3
|
+
export declare const ReferenceProviderSchema: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
|
|
4
|
+
export type ReferenceProvider = z.infer<typeof ReferenceProviderSchema>;
|
|
5
|
+
export type AuthenticatedReferenceProvider = z.infer<typeof AuthenticatedReferenceProviderSchema>;
|
|
6
|
+
export declare const ReferenceIdSchema: z.ZodString;
|
|
7
|
+
export declare const ReferenceProfileSchema: z.ZodEffects<z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
username: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
url: string;
|
|
15
|
+
title: string;
|
|
16
|
+
username: string;
|
|
17
|
+
}, {
|
|
18
|
+
id: string;
|
|
19
|
+
url: string;
|
|
20
|
+
title: string;
|
|
21
|
+
username: string;
|
|
22
|
+
}>, {
|
|
23
|
+
id: string;
|
|
24
|
+
url: string;
|
|
25
|
+
title: string;
|
|
26
|
+
username: string;
|
|
27
|
+
}, {
|
|
28
|
+
id: string;
|
|
29
|
+
url: string;
|
|
30
|
+
title: string;
|
|
31
|
+
username: string;
|
|
32
|
+
}>;
|
|
33
|
+
export type ReferenceProfile = z.infer<typeof ReferenceProfileSchema>;
|
|
34
|
+
export declare const referenceProvider: (profile: ReferenceProfile) => ReferenceProvider;
|
|
35
|
+
export declare const ReferenceCollectionSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
title: z.ZodString;
|
|
38
|
+
description: z.ZodNullable<z.ZodString>;
|
|
39
|
+
url: z.ZodNullable<z.ZodString>;
|
|
40
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
42
|
+
children: z.ZodArray<z.ZodString, "many">;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
id: string;
|
|
45
|
+
url: string | null;
|
|
46
|
+
title: string;
|
|
47
|
+
description: string | null;
|
|
48
|
+
children: string[];
|
|
49
|
+
total: number | null;
|
|
50
|
+
parentId: string | null;
|
|
51
|
+
}, {
|
|
52
|
+
id: string;
|
|
53
|
+
url: string | null;
|
|
54
|
+
title: string;
|
|
55
|
+
description: string | null;
|
|
56
|
+
children: string[];
|
|
57
|
+
total: number | null;
|
|
58
|
+
parentId: string | null;
|
|
59
|
+
}>;
|
|
60
|
+
export type ReferenceCollection = z.infer<typeof ReferenceCollectionSchema>;
|
|
61
|
+
export declare const ReferenceDiscoveryRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
62
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
63
|
+
}, "strict", z.ZodTypeAny, {
|
|
64
|
+
url: string;
|
|
65
|
+
}, {
|
|
66
|
+
url: string;
|
|
67
|
+
}>, z.ZodObject<{
|
|
68
|
+
provider: z.ZodEnum<["pinterest", "arena", "x"]>;
|
|
69
|
+
}, "strict", z.ZodTypeAny, {
|
|
70
|
+
provider: "arena" | "pinterest" | "x";
|
|
71
|
+
}, {
|
|
72
|
+
provider: "arena" | "pinterest" | "x";
|
|
73
|
+
}>]>;
|
|
74
|
+
export type ReferenceDiscoveryRequest = z.infer<typeof ReferenceDiscoveryRequestSchema>;
|
|
75
|
+
export declare const referenceSourceId: ({ profile, collection, }: {
|
|
76
|
+
profile: ReferenceProfile;
|
|
77
|
+
collection: Pick<ReferenceCollection, "id" | "url">;
|
|
78
|
+
}) => string;
|
|
79
|
+
export declare const ReferenceCatalogSchema: z.ZodObject<{
|
|
80
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
title: z.ZodString;
|
|
83
|
+
description: z.ZodNullable<z.ZodString>;
|
|
84
|
+
url: z.ZodNullable<z.ZodString>;
|
|
85
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
86
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
87
|
+
children: z.ZodArray<z.ZodString, "many">;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
id: string;
|
|
90
|
+
url: string | null;
|
|
91
|
+
title: string;
|
|
92
|
+
description: string | null;
|
|
93
|
+
children: string[];
|
|
94
|
+
total: number | null;
|
|
95
|
+
parentId: string | null;
|
|
96
|
+
}, {
|
|
97
|
+
id: string;
|
|
98
|
+
url: string | null;
|
|
99
|
+
title: string;
|
|
100
|
+
description: string | null;
|
|
101
|
+
children: string[];
|
|
102
|
+
total: number | null;
|
|
103
|
+
parentId: string | null;
|
|
104
|
+
}>, "many">;
|
|
105
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
total: number | null;
|
|
109
|
+
nextCursor: string | null;
|
|
110
|
+
collections: {
|
|
111
|
+
id: string;
|
|
112
|
+
url: string | null;
|
|
113
|
+
title: string;
|
|
114
|
+
description: string | null;
|
|
115
|
+
children: string[];
|
|
116
|
+
total: number | null;
|
|
117
|
+
parentId: string | null;
|
|
118
|
+
}[];
|
|
119
|
+
}, {
|
|
120
|
+
total: number | null;
|
|
121
|
+
nextCursor: string | null;
|
|
122
|
+
collections: {
|
|
123
|
+
id: string;
|
|
124
|
+
url: string | null;
|
|
125
|
+
title: string;
|
|
126
|
+
description: string | null;
|
|
127
|
+
children: string[];
|
|
128
|
+
total: number | null;
|
|
129
|
+
parentId: string | null;
|
|
130
|
+
}[];
|
|
131
|
+
}>;
|
|
132
|
+
export declare const ReferenceCatalogPageSchema: z.ZodObject<{
|
|
133
|
+
collections: z.ZodArray<z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
title: z.ZodString;
|
|
136
|
+
description: z.ZodNullable<z.ZodString>;
|
|
137
|
+
url: z.ZodNullable<z.ZodString>;
|
|
138
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
139
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
140
|
+
children: z.ZodArray<z.ZodString, "many">;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
id: string;
|
|
143
|
+
url: string | null;
|
|
144
|
+
title: string;
|
|
145
|
+
description: string | null;
|
|
146
|
+
children: string[];
|
|
147
|
+
total: number | null;
|
|
148
|
+
parentId: string | null;
|
|
149
|
+
}, {
|
|
150
|
+
id: string;
|
|
151
|
+
url: string | null;
|
|
152
|
+
title: string;
|
|
153
|
+
description: string | null;
|
|
154
|
+
children: string[];
|
|
155
|
+
total: number | null;
|
|
156
|
+
parentId: string | null;
|
|
157
|
+
}>, "many">;
|
|
158
|
+
total: z.ZodNullable<z.ZodNumber>;
|
|
159
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
160
|
+
} & {
|
|
161
|
+
profile: z.ZodEffects<z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
username: z.ZodString;
|
|
164
|
+
title: z.ZodString;
|
|
165
|
+
url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
id: string;
|
|
168
|
+
url: string;
|
|
169
|
+
title: string;
|
|
170
|
+
username: string;
|
|
171
|
+
}, {
|
|
172
|
+
id: string;
|
|
173
|
+
url: string;
|
|
174
|
+
title: string;
|
|
175
|
+
username: string;
|
|
176
|
+
}>, {
|
|
177
|
+
id: string;
|
|
178
|
+
url: string;
|
|
179
|
+
title: string;
|
|
180
|
+
username: string;
|
|
181
|
+
}, {
|
|
182
|
+
id: string;
|
|
183
|
+
url: string;
|
|
184
|
+
title: string;
|
|
185
|
+
username: string;
|
|
186
|
+
}>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
total: number | null;
|
|
189
|
+
nextCursor: string | null;
|
|
190
|
+
collections: {
|
|
191
|
+
id: string;
|
|
192
|
+
url: string | null;
|
|
193
|
+
title: string;
|
|
194
|
+
description: string | null;
|
|
195
|
+
children: string[];
|
|
196
|
+
total: number | null;
|
|
197
|
+
parentId: string | null;
|
|
198
|
+
}[];
|
|
199
|
+
profile: {
|
|
200
|
+
id: string;
|
|
201
|
+
url: string;
|
|
202
|
+
title: string;
|
|
203
|
+
username: string;
|
|
204
|
+
};
|
|
205
|
+
}, {
|
|
206
|
+
total: number | null;
|
|
207
|
+
nextCursor: string | null;
|
|
208
|
+
collections: {
|
|
209
|
+
id: string;
|
|
210
|
+
url: string | null;
|
|
211
|
+
title: string;
|
|
212
|
+
description: string | null;
|
|
213
|
+
children: string[];
|
|
214
|
+
total: number | null;
|
|
215
|
+
parentId: string | null;
|
|
216
|
+
}[];
|
|
217
|
+
profile: {
|
|
218
|
+
id: string;
|
|
219
|
+
url: string;
|
|
220
|
+
title: string;
|
|
221
|
+
username: string;
|
|
222
|
+
};
|
|
223
|
+
}>;
|
|
224
|
+
export type ReferenceCatalogPage = z.infer<typeof ReferenceCatalogPageSchema>;
|
|
225
|
+
export declare const referenceScopeDisclosure: Record<ReferenceProvider, string>;
|
|
226
|
+
//# sourceMappingURL=reference-connectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-connectors.d.ts","sourceRoot":"","sources":["../../src/types/reference-connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oCAAoC,wCAI/C,CAAC;AACH,eAAO,MAAM,uBAAuB,kDAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAA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