rivet-design 0.26.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/rivet.js +13 -0
- package/dist/agent-variants/PreviewRuntime.js +20 -7
- 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 +1001 -4868
- package/dist/agent-variants/contracts.js +1 -121
- package/dist/agent-variants/index.d.ts +1 -1
- package/dist/agent-variants/variantsTelemetry.d.ts +4 -8
- package/dist/agent-variants/variantsTelemetry.js +3 -0
- package/dist/agent-variants/workItemInput.d.ts +386 -386
- 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/commands/mcpServe.js +1 -0
- package/dist/cli/commands/serve.js +2 -0
- package/dist/cli/editorSession.d.ts +1 -13
- package/dist/cli/handoff.d.ts +1 -0
- package/dist/cli/handoff.js +20 -4
- package/dist/cli/router.js +1 -0
- package/dist/cli/runtimeInterruption.d.ts +2 -16
- package/dist/cli/telemetry.d.ts +10 -0
- package/dist/cli/telemetry.js +37 -1
- package/dist/config/pluginMetrics.js +36 -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.d.ts +19 -0
- package/dist/index.js +15 -6
- 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 +15 -9
- 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 +4 -4
- package/dist/routes/variantRequestSchema.js +7 -2
- package/dist/server.js +8 -0
- 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/DependencyPreparationService.js +57 -19
- package/dist/services/GuidanceVerifierRunner.js +4 -4
- 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/ProjectPackageManager.d.ts +5 -0
- package/dist/services/ProjectPackageManager.js +33 -11
- package/dist/services/ProjectRegistry.d.ts +5 -24
- package/dist/services/TelemetryService.d.ts +9 -64
- package/dist/services/TelemetryService.js +10 -113
- package/dist/services/TreeStore.d.ts +0 -2
- package/dist/services/TreeStore.js +0 -24
- package/dist/services/WorktreeManager.js +5 -0
- package/dist/services/profiles/DesignProfiles.d.ts +180 -125
- package/dist/services/profiles/DesignProfiles.js +16 -8
- 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 +69 -560
- package/dist/types/guidance-verifier.js +15 -2
- 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/devServerError.d.ts +5 -0
- package/dist/utils/devServerError.js +4 -0
- package/dist/utils/displayLocale.d.ts +0 -1
- package/dist/utils/displayLocale.js +1 -3
- package/dist/utils/failureReason.d.ts +16 -0
- package/dist/utils/failureReason.js +106 -0
- package/dist/utils/hostedLogPrivacy.d.ts +1 -0
- package/dist/utils/hostedLogPrivacy.js +10 -4
- package/dist/utils/skills/claude-skill.d.ts +1 -1
- package/dist/utils/skills/claude-skill.js +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.js +3 -3
- package/dist/utils/skills/cursor-rules.d.ts +1 -1
- package/dist/utils/skills/cursor-rules.js +1 -1
- package/package.json +5 -5
- package/src/ui/dist/assets/LibraryEntry-RI9Lc7P3.js +37 -0
- package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
- package/src/ui/dist/assets/main-DgrLzS5j.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-Cr4GFYXW.js +0 -37
- package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
- package/src/ui/dist/assets/main-tPO1OCpZ.js +0 -439
|
@@ -23,23 +23,23 @@ export declare const referenceDiscoveries: import("drizzle-orm/sqlite-core").SQL
|
|
|
23
23
|
tableName: "reference_discoveries";
|
|
24
24
|
dataType: "object json";
|
|
25
25
|
data: {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
profile: {
|
|
27
|
+
id: string;
|
|
28
|
+
username: string;
|
|
29
|
+
title: string;
|
|
30
|
+
url: string;
|
|
31
|
+
};
|
|
28
32
|
collections: {
|
|
33
|
+
id: string;
|
|
34
|
+
title: string;
|
|
29
35
|
description: string | null;
|
|
30
36
|
url: string | null;
|
|
31
|
-
title: string;
|
|
32
|
-
id: string;
|
|
33
|
-
children: string[];
|
|
34
37
|
total: number | null;
|
|
35
38
|
parentId: string | null;
|
|
39
|
+
children: string[];
|
|
36
40
|
}[];
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
title: string;
|
|
40
|
-
id: string;
|
|
41
|
-
username: string;
|
|
42
|
-
};
|
|
41
|
+
total: number;
|
|
42
|
+
id: string;
|
|
43
43
|
createdAt: string;
|
|
44
44
|
};
|
|
45
45
|
driverParam: string;
|
|
@@ -81,24 +81,23 @@ export declare const referencePlans: import("drizzle-orm/sqlite-core").SQLiteTab
|
|
|
81
81
|
tableName: "reference_plans";
|
|
82
82
|
dataType: "object json";
|
|
83
83
|
data: {
|
|
84
|
-
expiresAt: string;
|
|
85
|
-
revision: string;
|
|
86
|
-
runtime: "claude" | "codex" | "cursor";
|
|
87
|
-
id: string;
|
|
88
|
-
profile: {
|
|
89
|
-
url: string;
|
|
90
|
-
title: string;
|
|
91
|
-
id: string;
|
|
92
|
-
username: string;
|
|
93
|
-
};
|
|
94
|
-
createdAt: string;
|
|
95
84
|
discoveryId: string;
|
|
85
|
+
runtime: "claude" | "codex" | "cursor";
|
|
96
86
|
sources: {
|
|
87
|
+
collection: {
|
|
88
|
+
id: string;
|
|
89
|
+
title: string;
|
|
90
|
+
description: string | null;
|
|
91
|
+
url: string | null;
|
|
92
|
+
total: number | null;
|
|
93
|
+
parentId: string | null;
|
|
94
|
+
children: string[];
|
|
95
|
+
};
|
|
96
|
+
collectionIds: string[];
|
|
97
97
|
references: {
|
|
98
|
+
remoteId: string;
|
|
98
99
|
title: string;
|
|
99
100
|
text: string;
|
|
100
|
-
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
101
|
-
remoteId: string;
|
|
102
101
|
media: {
|
|
103
102
|
hash: string;
|
|
104
103
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
@@ -106,30 +105,31 @@ export declare const referencePlans: import("drizzle-orm/sqlite-core").SQLiteTab
|
|
|
106
105
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
107
106
|
page?: number | undefined;
|
|
108
107
|
}[];
|
|
108
|
+
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
109
|
+
url?: string | undefined;
|
|
110
|
+
remoteImages?: string[] | undefined;
|
|
111
|
+
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
112
|
+
unsupportedReason?: string | undefined;
|
|
109
113
|
variant?: {
|
|
110
114
|
projectId: string;
|
|
111
115
|
sessionId: string;
|
|
112
116
|
variantId: string;
|
|
113
117
|
treeSha?: string | undefined;
|
|
114
118
|
} | undefined;
|
|
115
|
-
url?: string | undefined;
|
|
116
119
|
note?: string | undefined;
|
|
117
|
-
remoteImages?: string[] | undefined;
|
|
118
|
-
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
119
|
-
unsupportedReason?: string | undefined;
|
|
120
120
|
}[];
|
|
121
|
-
collection: {
|
|
122
|
-
description: string | null;
|
|
123
|
-
url: string | null;
|
|
124
|
-
title: string;
|
|
125
|
-
id: string;
|
|
126
|
-
children: string[];
|
|
127
|
-
total: number | null;
|
|
128
|
-
parentId: string | null;
|
|
129
|
-
};
|
|
130
|
-
collectionIds: string[];
|
|
131
121
|
}[];
|
|
132
122
|
reusableCount: number;
|
|
123
|
+
id: string;
|
|
124
|
+
profile: {
|
|
125
|
+
id: string;
|
|
126
|
+
username: string;
|
|
127
|
+
title: string;
|
|
128
|
+
url: string;
|
|
129
|
+
};
|
|
130
|
+
revision: string;
|
|
131
|
+
createdAt: string;
|
|
132
|
+
expiresAt: string;
|
|
133
133
|
approvedAt: string | null;
|
|
134
134
|
jobIds: string[];
|
|
135
135
|
};
|
|
@@ -226,7 +226,7 @@ export declare const referenceOnboarding: import("drizzle-orm/sqlite-core").SQLi
|
|
|
226
226
|
name: string;
|
|
227
227
|
tableName: "reference_onboarding";
|
|
228
228
|
dataType: "string enum";
|
|
229
|
-
data: "pending" | "
|
|
229
|
+
data: "pending" | "later" | "complete" | "dismissed";
|
|
230
230
|
driverParam: string;
|
|
231
231
|
notNull: true;
|
|
232
232
|
hasDefault: false;
|
|
@@ -297,7 +297,7 @@ export declare const connectorOnboarding: import("drizzle-orm/sqlite-core").SQLi
|
|
|
297
297
|
name: string;
|
|
298
298
|
tableName: "connector_onboarding";
|
|
299
299
|
dataType: "string enum";
|
|
300
|
-
data: "pending" | "
|
|
300
|
+
data: "pending" | "later" | "complete" | "dismissed";
|
|
301
301
|
driverParam: string;
|
|
302
302
|
notNull: true;
|
|
303
303
|
hasDefault: false;
|
|
@@ -126,15 +126,15 @@ export declare const guidance: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
126
126
|
tableName: "guidance";
|
|
127
127
|
dataType: "object json";
|
|
128
128
|
data: {
|
|
129
|
-
path: string;
|
|
130
|
-
source: string;
|
|
131
129
|
hash: string;
|
|
132
130
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
133
131
|
bytes: number;
|
|
134
132
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
133
|
+
source: string;
|
|
135
134
|
alt: string;
|
|
136
|
-
|
|
135
|
+
path: string;
|
|
137
136
|
page?: number | undefined;
|
|
137
|
+
title?: string | undefined;
|
|
138
138
|
}[];
|
|
139
139
|
driverParam: string;
|
|
140
140
|
notNull: false;
|
|
@@ -152,14 +152,13 @@ export declare const guidance: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
152
152
|
tableName: "guidance";
|
|
153
153
|
dataType: "object json";
|
|
154
154
|
data: ({
|
|
155
|
-
path: string;
|
|
156
155
|
kind: "directory";
|
|
156
|
+
path: string;
|
|
157
157
|
intent: string;
|
|
158
158
|
} | {
|
|
159
|
-
url: string;
|
|
160
159
|
kind: "url" | "repository";
|
|
160
|
+
url: string;
|
|
161
161
|
intent: string;
|
|
162
|
-
digest?: string | undefined;
|
|
163
162
|
revision?: string | undefined;
|
|
164
163
|
files?: {
|
|
165
164
|
name: string;
|
|
@@ -167,6 +166,7 @@ export declare const guidance: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
167
166
|
path?: string | undefined;
|
|
168
167
|
sha256?: string | undefined;
|
|
169
168
|
}[] | undefined;
|
|
169
|
+
digest?: string | undefined;
|
|
170
170
|
})[];
|
|
171
171
|
driverParam: string;
|
|
172
172
|
notNull: false;
|
|
@@ -187,12 +187,12 @@ export declare const guidance: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
187
187
|
markdown: string;
|
|
188
188
|
sourceDigest: string;
|
|
189
189
|
package?: {
|
|
190
|
+
runtime: "node";
|
|
191
|
+
entrypoint: string;
|
|
190
192
|
files: {
|
|
191
193
|
name: string;
|
|
192
194
|
content: string;
|
|
193
195
|
}[];
|
|
194
|
-
runtime: "node";
|
|
195
|
-
entrypoint: string;
|
|
196
196
|
} | undefined;
|
|
197
197
|
};
|
|
198
198
|
driverParam: string;
|
|
@@ -527,10 +527,10 @@ export declare const references: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
527
527
|
tableName: "profile_references";
|
|
528
528
|
dataType: "object json";
|
|
529
529
|
data: {
|
|
530
|
-
title: string;
|
|
531
|
-
text: string;
|
|
532
530
|
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
533
531
|
remoteId: string;
|
|
532
|
+
title: string;
|
|
533
|
+
text: string;
|
|
534
534
|
media: {
|
|
535
535
|
hash: string;
|
|
536
536
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
@@ -538,17 +538,17 @@ export declare const references: import("drizzle-orm/sqlite-core").SQLiteTableWi
|
|
|
538
538
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
539
539
|
page?: number | undefined;
|
|
540
540
|
}[];
|
|
541
|
+
url?: string | undefined;
|
|
542
|
+
remoteImages?: string[] | undefined;
|
|
543
|
+
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
544
|
+
unsupportedReason?: string | undefined;
|
|
541
545
|
variant?: {
|
|
542
546
|
projectId: string;
|
|
543
547
|
sessionId: string;
|
|
544
548
|
variantId: string;
|
|
545
549
|
treeSha?: string | undefined;
|
|
546
550
|
} | undefined;
|
|
547
|
-
url?: string | undefined;
|
|
548
551
|
note?: string | undefined;
|
|
549
|
-
remoteImages?: string[] | undefined;
|
|
550
|
-
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
551
|
-
unsupportedReason?: string | undefined;
|
|
552
552
|
};
|
|
553
553
|
driverParam: string;
|
|
554
554
|
notNull: true;
|
|
@@ -715,11 +715,11 @@ export declare const observations: import("drizzle-orm/sqlite-core").SQLiteTable
|
|
|
715
715
|
tableName: "observations";
|
|
716
716
|
dataType: "object json";
|
|
717
717
|
data: {
|
|
718
|
-
|
|
718
|
+
referenceId: string;
|
|
719
719
|
revision: number;
|
|
720
|
+
description: string;
|
|
720
721
|
runtime: "claude" | "codex" | "cursor" | "user";
|
|
721
722
|
evidence: "observation" | "preference";
|
|
722
|
-
referenceId: string;
|
|
723
723
|
usage?: {
|
|
724
724
|
inputTokens?: number | undefined;
|
|
725
725
|
outputTokens?: number | undefined;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Account } from './account';
|
|
3
|
+
export declare const ErrorResponseSchema: z.ZodObject<{
|
|
4
|
+
error: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
7
|
+
export declare const VariantsErrorResponseSchema: z.ZodObject<{
|
|
8
|
+
errorCode: z.ZodString;
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type VariantsErrorResponse = z.infer<typeof VariantsErrorResponseSchema>;
|
|
12
|
+
export declare const SupportTicketErrorResponseSchema: z.ZodObject<{
|
|
13
|
+
error: z.ZodOptional<z.ZodString>;
|
|
14
|
+
details: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
15
|
+
formErrors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
fieldErrors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
17
|
+
}, z.core.$strip>]>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type SupportTicketErrorResponse = z.infer<typeof SupportTicketErrorResponseSchema>;
|
|
20
|
+
export declare const BrowserSessionResponseSchema: z.ZodObject<{
|
|
21
|
+
token: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type BrowserSessionResponse = z.infer<typeof BrowserSessionResponseSchema>;
|
|
24
|
+
export declare const LibraryViewLaunchResponseSchema: z.ZodObject<{
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type LibraryViewLaunchResponse = z.infer<typeof LibraryViewLaunchResponseSchema>;
|
|
28
|
+
export declare const LibraryProjectListResponseSchema: z.ZodObject<{
|
|
29
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
lastOpenedAt: z.ZodString;
|
|
34
|
+
projectPath: z.ZodString;
|
|
35
|
+
isAvailable: z.ZodBoolean;
|
|
36
|
+
storageKind: z.ZodEnum<{
|
|
37
|
+
project: "project";
|
|
38
|
+
bundle: "bundle";
|
|
39
|
+
}>;
|
|
40
|
+
issue: z.ZodOptional<z.ZodString>;
|
|
41
|
+
historyIssue: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type LibraryProjectListResponse = z.infer<typeof LibraryProjectListResponseSchema>;
|
|
45
|
+
export declare const LibraryProjectResponseSchema: z.ZodObject<{
|
|
46
|
+
project: z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
lastOpenedAt: z.ZodString;
|
|
51
|
+
projectPath: z.ZodString;
|
|
52
|
+
isAvailable: z.ZodBoolean;
|
|
53
|
+
storageKind: z.ZodEnum<{
|
|
54
|
+
project: "project";
|
|
55
|
+
bundle: "bundle";
|
|
56
|
+
}>;
|
|
57
|
+
issue: z.ZodOptional<z.ZodString>;
|
|
58
|
+
historyIssue: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export type LibraryProjectResponse = z.infer<typeof LibraryProjectResponseSchema>;
|
|
62
|
+
export declare const LibraryProjectRemovalResponseSchema: z.ZodObject<{
|
|
63
|
+
projectId: z.ZodString;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type LibraryProjectRemovalResponse = z.infer<typeof LibraryProjectRemovalResponseSchema>;
|
|
66
|
+
export declare const LibraryProjectPreviewResponseSchema: z.ZodObject<{
|
|
67
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
68
|
+
dataUrl: z.ZodString;
|
|
69
|
+
label: z.ZodString;
|
|
70
|
+
capturedAt: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type LibraryProjectPreviewResponse = z.infer<typeof LibraryProjectPreviewResponseSchema>;
|
|
74
|
+
export declare const FolderSelectionResponseSchema: z.ZodObject<{
|
|
75
|
+
projectPath: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type FolderSelectionResponse = z.infer<typeof FolderSelectionResponseSchema>;
|
|
78
|
+
export declare const ProjectRuntimeResponseSchema: z.ZodObject<{
|
|
79
|
+
editorUrl: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type ProjectRuntimeResponse = z.infer<typeof ProjectRuntimeResponseSchema>;
|
|
82
|
+
export declare const DirectionPreviewResponseSchema: z.ZodObject<{
|
|
83
|
+
url: z.ZodString;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type DirectionPreviewResponse = z.infer<typeof DirectionPreviewResponseSchema>;
|
|
86
|
+
export declare const DirectionUpdateResponseSchema: z.ZodObject<{
|
|
87
|
+
saved: z.ZodLiteral<true>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type DirectionUpdateResponse = z.infer<typeof DirectionUpdateResponseSchema>;
|
|
90
|
+
export declare const ViewNavigationSchema: z.ZodObject<{
|
|
91
|
+
requestId: z.ZodString;
|
|
92
|
+
sequence: z.ZodNumber;
|
|
93
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
95
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type ViewNavigation = z.infer<typeof ViewNavigationSchema>;
|
|
98
|
+
export declare const ViewNavigationsResponseSchema: z.ZodObject<{
|
|
99
|
+
navigations: z.ZodArray<z.ZodObject<{
|
|
100
|
+
requestId: z.ZodString;
|
|
101
|
+
sequence: z.ZodNumber;
|
|
102
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type ViewNavigationsResponse = z.infer<typeof ViewNavigationsResponseSchema>;
|
|
108
|
+
export declare const NavigationAcknowledgementResponseSchema: z.ZodObject<{
|
|
109
|
+
acknowledged: z.ZodBoolean;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type NavigationAcknowledgementResponse = z.infer<typeof NavigationAcknowledgementResponseSchema>;
|
|
112
|
+
export declare const ReferenceProfileStatusResponseSchema: z.ZodObject<{
|
|
113
|
+
profile: z.ZodObject<{
|
|
114
|
+
isEnabled: z.ZodBoolean;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
117
|
+
provider: z.ZodEnum<{
|
|
118
|
+
variant: "variant";
|
|
119
|
+
text: "text";
|
|
120
|
+
pinterest: "pinterest";
|
|
121
|
+
arena: "arena";
|
|
122
|
+
cosmos: "cosmos";
|
|
123
|
+
x: "x";
|
|
124
|
+
image: "image";
|
|
125
|
+
pdf: "pdf";
|
|
126
|
+
}>;
|
|
127
|
+
title: z.ZodString;
|
|
128
|
+
url: z.ZodNullable<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type ReferenceProfileStatusResponse = z.infer<typeof ReferenceProfileStatusResponseSchema>;
|
|
132
|
+
export declare const ReferenceImportPlanSummarySchema: z.ZodObject<{
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
revision: z.ZodString;
|
|
135
|
+
collectionCount: z.ZodNumber;
|
|
136
|
+
referenceCount: z.ZodNumber;
|
|
137
|
+
imageCount: z.ZodNumber;
|
|
138
|
+
reusableCount: z.ZodNumber;
|
|
139
|
+
unsupportedCount: z.ZodNumber;
|
|
140
|
+
scopeDisclosure: z.ZodString;
|
|
141
|
+
usageDisclosure: z.ZodString;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export type ReferenceImportPlanSummary = z.infer<typeof ReferenceImportPlanSummarySchema>;
|
|
144
|
+
export declare const AccountResponseSchema: z.ZodType<Account>;
|
|
145
|
+
export declare const VariantsUiStateSchema: z.ZodObject<{
|
|
146
|
+
pinned: z.ZodArray<z.ZodString>;
|
|
147
|
+
order: z.ZodObject<{
|
|
148
|
+
groups: z.ZodArray<z.ZodString>;
|
|
149
|
+
rows: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export type VariantsUiState = z.infer<typeof VariantsUiStateSchema>;
|
|
153
|
+
export declare const VariantsUiStateResponseSchema: z.ZodObject<{
|
|
154
|
+
projectPath: z.ZodString;
|
|
155
|
+
uiState: z.ZodObject<{
|
|
156
|
+
pinned: z.ZodArray<z.ZodString>;
|
|
157
|
+
order: z.ZodObject<{
|
|
158
|
+
groups: z.ZodArray<z.ZodString>;
|
|
159
|
+
rows: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
export type VariantsUiStateResponse = z.infer<typeof VariantsUiStateResponseSchema>;
|
|
164
|
+
export declare const VariantsUiStateUpdateSchema: z.ZodObject<{
|
|
165
|
+
uiState: z.ZodObject<{
|
|
166
|
+
pinned: z.ZodArray<z.ZodString>;
|
|
167
|
+
order: z.ZodObject<{
|
|
168
|
+
groups: z.ZodArray<z.ZodString>;
|
|
169
|
+
rows: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
//# sourceMappingURL=api-responses.d.ts.map
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VariantsUiStateUpdateSchema = exports.VariantsUiStateResponseSchema = exports.VariantsUiStateSchema = exports.AccountResponseSchema = exports.ReferenceImportPlanSummarySchema = exports.ReferenceProfileStatusResponseSchema = exports.NavigationAcknowledgementResponseSchema = exports.ViewNavigationsResponseSchema = exports.ViewNavigationSchema = exports.DirectionUpdateResponseSchema = exports.DirectionPreviewResponseSchema = exports.ProjectRuntimeResponseSchema = exports.FolderSelectionResponseSchema = exports.LibraryProjectPreviewResponseSchema = exports.LibraryProjectRemovalResponseSchema = exports.LibraryProjectResponseSchema = exports.LibraryProjectListResponseSchema = exports.LibraryViewLaunchResponseSchema = exports.BrowserSessionResponseSchema = exports.SupportTicketErrorResponseSchema = exports.VariantsErrorResponseSchema = exports.ErrorResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const design_profile_1 = require("./design-profile");
|
|
6
|
+
const project_library_1 = require("./project-library");
|
|
7
|
+
exports.ErrorResponseSchema = zod_1.z.object({ error: zod_1.z.string() });
|
|
8
|
+
exports.VariantsErrorResponseSchema = zod_1.z.object({
|
|
9
|
+
errorCode: zod_1.z.string(),
|
|
10
|
+
message: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
exports.SupportTicketErrorResponseSchema = zod_1.z.object({
|
|
13
|
+
error: zod_1.z.string().optional(),
|
|
14
|
+
details: zod_1.z
|
|
15
|
+
.union([
|
|
16
|
+
zod_1.z.string(),
|
|
17
|
+
zod_1.z.object({
|
|
18
|
+
formErrors: zod_1.z.array(zod_1.z.string()).optional(),
|
|
19
|
+
fieldErrors: zod_1.z
|
|
20
|
+
.record(zod_1.z.string(), zod_1.z.array(zod_1.z.string()).optional())
|
|
21
|
+
.optional(),
|
|
22
|
+
}),
|
|
23
|
+
])
|
|
24
|
+
.optional(),
|
|
25
|
+
});
|
|
26
|
+
exports.BrowserSessionResponseSchema = zod_1.z.object({
|
|
27
|
+
token: zod_1.z.string().min(1),
|
|
28
|
+
});
|
|
29
|
+
exports.LibraryViewLaunchResponseSchema = zod_1.z.object({
|
|
30
|
+
url: zod_1.z.string().url(),
|
|
31
|
+
});
|
|
32
|
+
exports.LibraryProjectListResponseSchema = zod_1.z.object({
|
|
33
|
+
projects: zod_1.z.array(project_library_1.LibraryProjectSchema),
|
|
34
|
+
});
|
|
35
|
+
exports.LibraryProjectResponseSchema = zod_1.z.object({
|
|
36
|
+
project: project_library_1.LibraryProjectSchema,
|
|
37
|
+
});
|
|
38
|
+
exports.LibraryProjectRemovalResponseSchema = zod_1.z.object({
|
|
39
|
+
projectId: zod_1.z.string(),
|
|
40
|
+
});
|
|
41
|
+
exports.LibraryProjectPreviewResponseSchema = zod_1.z.object({
|
|
42
|
+
preview: project_library_1.LibraryProjectPreviewSchema.nullable(),
|
|
43
|
+
});
|
|
44
|
+
exports.FolderSelectionResponseSchema = zod_1.z.object({
|
|
45
|
+
projectPath: zod_1.z.string().nullable(),
|
|
46
|
+
});
|
|
47
|
+
exports.ProjectRuntimeResponseSchema = zod_1.z.object({
|
|
48
|
+
editorUrl: zod_1.z.string(),
|
|
49
|
+
});
|
|
50
|
+
exports.DirectionPreviewResponseSchema = zod_1.z.object({ url: zod_1.z.string() });
|
|
51
|
+
exports.DirectionUpdateResponseSchema = zod_1.z.object({
|
|
52
|
+
saved: zod_1.z.literal(true),
|
|
53
|
+
});
|
|
54
|
+
exports.ViewNavigationSchema = zod_1.z.object({
|
|
55
|
+
requestId: zod_1.z.string(),
|
|
56
|
+
sequence: zod_1.z.number(),
|
|
57
|
+
projectId: zod_1.z.string().optional(),
|
|
58
|
+
sessionId: zod_1.z.string().optional(),
|
|
59
|
+
variantId: zod_1.z.string().optional(),
|
|
60
|
+
});
|
|
61
|
+
exports.ViewNavigationsResponseSchema = zod_1.z.object({
|
|
62
|
+
navigations: zod_1.z.array(exports.ViewNavigationSchema),
|
|
63
|
+
});
|
|
64
|
+
exports.NavigationAcknowledgementResponseSchema = zod_1.z.object({
|
|
65
|
+
acknowledged: zod_1.z.boolean(),
|
|
66
|
+
});
|
|
67
|
+
exports.ReferenceProfileStatusResponseSchema = zod_1.z.object({
|
|
68
|
+
profile: zod_1.z.object({ isEnabled: zod_1.z.boolean() }),
|
|
69
|
+
sources: zod_1.z.array(zod_1.z.object({
|
|
70
|
+
provider: design_profile_1.ProfileProviderSchema,
|
|
71
|
+
title: zod_1.z.string(),
|
|
72
|
+
url: zod_1.z.string().nullable(),
|
|
73
|
+
})),
|
|
74
|
+
});
|
|
75
|
+
exports.ReferenceImportPlanSummarySchema = zod_1.z.object({
|
|
76
|
+
id: zod_1.z.string(),
|
|
77
|
+
revision: zod_1.z.string(),
|
|
78
|
+
collectionCount: zod_1.z.number(),
|
|
79
|
+
referenceCount: zod_1.z.number(),
|
|
80
|
+
imageCount: zod_1.z.number(),
|
|
81
|
+
reusableCount: zod_1.z.number(),
|
|
82
|
+
unsupportedCount: zod_1.z.number(),
|
|
83
|
+
scopeDisclosure: zod_1.z.string(),
|
|
84
|
+
usageDisclosure: zod_1.z.string(),
|
|
85
|
+
});
|
|
86
|
+
exports.AccountResponseSchema = zod_1.z.object({
|
|
87
|
+
isAuthenticated: zod_1.z.boolean(),
|
|
88
|
+
email: zod_1.z.string().optional(),
|
|
89
|
+
name: zod_1.z.string().optional(),
|
|
90
|
+
userId: zod_1.z.string().optional(),
|
|
91
|
+
});
|
|
92
|
+
const VariantsUiStateKeySchema = zod_1.z.string().min(1).max(500);
|
|
93
|
+
exports.VariantsUiStateSchema = zod_1.z.object({
|
|
94
|
+
pinned: zod_1.z.array(VariantsUiStateKeySchema).max(1000),
|
|
95
|
+
order: zod_1.z.object({
|
|
96
|
+
groups: zod_1.z.array(VariantsUiStateKeySchema).max(1000),
|
|
97
|
+
rows: zod_1.z.record(zod_1.z.string(), zod_1.z.array(VariantsUiStateKeySchema).max(1000)),
|
|
98
|
+
}),
|
|
99
|
+
});
|
|
100
|
+
exports.VariantsUiStateResponseSchema = zod_1.z.object({
|
|
101
|
+
projectPath: zod_1.z.string(),
|
|
102
|
+
uiState: exports.VariantsUiStateSchema,
|
|
103
|
+
});
|
|
104
|
+
exports.VariantsUiStateUpdateSchema = zod_1.z.object({
|
|
105
|
+
uiState: exports.VariantsUiStateSchema,
|
|
106
|
+
projectPath: zod_1.z.string().optional(),
|
|
107
|
+
});
|
|
108
|
+
//# sourceMappingURL=api-responses.js.map
|
|
@@ -1,126 +1,38 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const CosmosProfileSchema: z.ZodObject<{
|
|
3
|
-
id: z.
|
|
3
|
+
id: z.ZodString;
|
|
4
4
|
username: z.ZodString;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
url: z.
|
|
7
|
-
},
|
|
8
|
-
url: string;
|
|
9
|
-
title: string;
|
|
10
|
-
id: string;
|
|
11
|
-
username: string;
|
|
12
|
-
}, {
|
|
13
|
-
url: string;
|
|
14
|
-
title: string;
|
|
15
|
-
id: string;
|
|
16
|
-
username: string;
|
|
17
|
-
}>;
|
|
6
|
+
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
18
8
|
export declare const CosmosProfileCollectionSchema: z.ZodObject<{
|
|
19
|
-
id: z.
|
|
9
|
+
id: z.ZodString;
|
|
20
10
|
title: z.ZodString;
|
|
21
11
|
description: z.ZodNullable<z.ZodString>;
|
|
22
|
-
url: z.
|
|
12
|
+
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
23
13
|
total: z.ZodNumber;
|
|
24
|
-
parentId: z.ZodNullable<z.
|
|
25
|
-
children: z.ZodArray<z.
|
|
26
|
-
},
|
|
27
|
-
description: string | null;
|
|
28
|
-
url: string;
|
|
29
|
-
title: string;
|
|
30
|
-
id: string;
|
|
31
|
-
children: string[];
|
|
32
|
-
total: number;
|
|
33
|
-
parentId: string | null;
|
|
34
|
-
}, {
|
|
35
|
-
description: string | null;
|
|
36
|
-
url: string;
|
|
37
|
-
title: string;
|
|
38
|
-
id: string;
|
|
39
|
-
children: string[];
|
|
40
|
-
total: number;
|
|
41
|
-
parentId: string | null;
|
|
42
|
-
}>;
|
|
14
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
15
|
+
children: z.ZodArray<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
43
17
|
export declare const CosmosProfilePageSchema: z.ZodObject<{
|
|
44
18
|
profile: z.ZodObject<{
|
|
45
|
-
id: z.
|
|
19
|
+
id: z.ZodString;
|
|
46
20
|
username: z.ZodString;
|
|
47
21
|
title: z.ZodString;
|
|
48
|
-
url: z.
|
|
49
|
-
},
|
|
50
|
-
url: string;
|
|
51
|
-
title: string;
|
|
52
|
-
id: string;
|
|
53
|
-
username: string;
|
|
54
|
-
}, {
|
|
55
|
-
url: string;
|
|
56
|
-
title: string;
|
|
57
|
-
id: string;
|
|
58
|
-
username: string;
|
|
59
|
-
}>;
|
|
22
|
+
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
60
24
|
collections: z.ZodArray<z.ZodObject<{
|
|
61
|
-
id: z.
|
|
25
|
+
id: z.ZodString;
|
|
62
26
|
title: z.ZodString;
|
|
63
27
|
description: z.ZodNullable<z.ZodString>;
|
|
64
|
-
url: z.
|
|
28
|
+
url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
65
29
|
total: z.ZodNumber;
|
|
66
|
-
parentId: z.ZodNullable<z.
|
|
67
|
-
children: z.ZodArray<z.
|
|
68
|
-
},
|
|
69
|
-
description: string | null;
|
|
70
|
-
url: string;
|
|
71
|
-
title: string;
|
|
72
|
-
id: string;
|
|
73
|
-
children: string[];
|
|
74
|
-
total: number;
|
|
75
|
-
parentId: string | null;
|
|
76
|
-
}, {
|
|
77
|
-
description: string | null;
|
|
78
|
-
url: string;
|
|
79
|
-
title: string;
|
|
80
|
-
id: string;
|
|
81
|
-
children: string[];
|
|
82
|
-
total: number;
|
|
83
|
-
parentId: string | null;
|
|
84
|
-
}>, "many">;
|
|
30
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
31
|
+
children: z.ZodArray<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
85
33
|
total: z.ZodNumber;
|
|
86
34
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
87
|
-
},
|
|
88
|
-
total: number;
|
|
89
|
-
nextCursor: string | null;
|
|
90
|
-
collections: {
|
|
91
|
-
description: string | null;
|
|
92
|
-
url: string;
|
|
93
|
-
title: string;
|
|
94
|
-
id: string;
|
|
95
|
-
children: string[];
|
|
96
|
-
total: number;
|
|
97
|
-
parentId: string | null;
|
|
98
|
-
}[];
|
|
99
|
-
profile: {
|
|
100
|
-
url: string;
|
|
101
|
-
title: string;
|
|
102
|
-
id: string;
|
|
103
|
-
username: string;
|
|
104
|
-
};
|
|
105
|
-
}, {
|
|
106
|
-
total: number;
|
|
107
|
-
nextCursor: string | null;
|
|
108
|
-
collections: {
|
|
109
|
-
description: string | null;
|
|
110
|
-
url: string;
|
|
111
|
-
title: string;
|
|
112
|
-
id: string;
|
|
113
|
-
children: string[];
|
|
114
|
-
total: number;
|
|
115
|
-
parentId: string | null;
|
|
116
|
-
}[];
|
|
117
|
-
profile: {
|
|
118
|
-
url: string;
|
|
119
|
-
title: string;
|
|
120
|
-
id: string;
|
|
121
|
-
username: string;
|
|
122
|
-
};
|
|
123
|
-
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
124
36
|
export type CosmosProfilePage = z.infer<typeof CosmosProfilePageSchema>;
|
|
125
37
|
export interface CosmosDiscoveryInput {
|
|
126
38
|
url: string;
|