@replohq/canopy-sdk 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/_vendor/replo-utils/lib/geometry.d.ts +18 -0
  2. package/_vendor/replo-utils/lib/geometry.mjs +9 -0
  3. package/_vendor/replo-utils/lib/misc.d.ts +8 -8
  4. package/_vendor/replo-utils/lib/misc.mjs +1 -1
  5. package/_vendor/schemas/agentTools/customIntegrations/loaders/product.mjs +1 -1
  6. package/_vendor/schemas/errors.d.ts +1 -1
  7. package/_vendor/schemas/errors.mjs +7 -3
  8. package/_vendor/schemas/generated/selectMode.d.ts +8 -2
  9. package/_vendor/schemas/objectType.d.ts +2 -0
  10. package/_vendor/schemas/objectType.mjs +1 -1
  11. package/_vendor/schemas/registry.d.ts +283 -9
  12. package/_vendor/schemas/selectMode.d.ts +41 -2
  13. package/_vendor/schemas/selectMode.mjs +13 -4
  14. package/{chunk-XK2K3263.mjs → chunk-MSIQX4QA.mjs} +9 -7
  15. package/{chunk-7WEM5FUJ.mjs → chunk-ZLOHRRSZ.mjs} +118 -3
  16. package/consent/consent-actions.d.ts +6 -0
  17. package/consent/consent-actions.js +1 -2
  18. package/consent/consent-actions.js.map +2 -2
  19. package/consent/consent-store.d.ts +19 -4
  20. package/consent/consent-store.js +32 -12
  21. package/consent/consent-store.js.map +2 -2
  22. package/consent/cookie.js +5 -10
  23. package/consent/cookie.js.map +2 -2
  24. package/consent/types.d.ts +5 -0
  25. package/consent/window-api.js +1 -1
  26. package/consent/window-api.js.map +2 -2
  27. package/editor/ClientErrorBoundary.d.ts +6 -3
  28. package/editor/ClientErrorBoundary.js +18 -5
  29. package/editor/ClientErrorBoundary.js.map +2 -2
  30. package/editor/LinkInterceptor.js +5 -5
  31. package/editor/LinkInterceptor.js.map +2 -2
  32. package/editor/NextErrorReporter.d.ts +1 -0
  33. package/editor/NextErrorReporter.js +63 -0
  34. package/editor/NextErrorReporter.js.map +7 -0
  35. package/editor/select-mode/hooks/useSelectModeController.js +2 -1
  36. package/editor/select-mode/hooks/useSelectModeController.js.map +2 -2
  37. package/editor/select-mode/hooks/useSelectionInteractions.d.ts +3 -3
  38. package/editor/select-mode/hooks/useSelectionInteractions.js +54 -16
  39. package/editor/select-mode/hooks/useSelectionInteractions.js.map +2 -2
  40. package/editor/select-mode/interactions/selectionGeometry.d.ts +37 -12
  41. package/editor/select-mode/interactions/selectionGeometry.js +52 -24
  42. package/editor/select-mode/interactions/selectionGeometry.js.map +2 -2
  43. package/editor/select-mode/selectionFrame.d.ts +26 -7
  44. package/editor/select-mode/selectionFrame.js +58 -34
  45. package/editor/select-mode/selectionFrame.js.map +2 -2
  46. package/editor/select-mode/symbolicate.js +32 -1
  47. package/editor/select-mode/symbolicate.js.map +2 -2
  48. package/package.json +1 -1
  49. package/providers/replo-provider.js +11 -7
  50. package/providers/replo-provider.js.map +2 -2
@@ -0,0 +1,18 @@
1
+ export type GeometryRect = {
2
+ left: number;
3
+ right: number;
4
+ top: number;
5
+ bottom: number;
6
+ };
7
+ /**
8
+ * Whether two axis-aligned rects overlap. `tolerance` expands the test
9
+ * rect on every side, so rects that fall a few pixels short of touching
10
+ * (sub-pixel rendering, borders) still count as intersecting.
11
+ */
12
+ export declare function isIntersecting(targetRect: GeometryRect, destinationRect: GeometryRect, { tolerance }?: {
13
+ tolerance?: number;
14
+ }): boolean;
15
+ /**
16
+ * Whether `targetRect` wholly contains `testRect`.
17
+ */
18
+ export declare function isRectEnclosing(targetRect: GeometryRect, testRect: GeometryRect): boolean;
@@ -0,0 +1,9 @@
1
+ // ../replo-utils/lib/geometry.ts
2
+ function isIntersecting(targetRect, destinationRect, { tolerance = 0 } = {}) {
3
+ return targetRect.left <= destinationRect.right + tolerance && targetRect.right >= destinationRect.left - tolerance && targetRect.top <= destinationRect.bottom + tolerance && targetRect.bottom >= destinationRect.top - tolerance;
4
+ }
5
+ function isRectEnclosing(targetRect, testRect) {
6
+ return targetRect.left <= testRect.left && targetRect.right >= testRect.right && targetRect.top <= testRect.top && targetRect.bottom >= testRect.bottom;
7
+ }
8
+
9
+ export { isIntersecting, isRectEnclosing };
@@ -65,22 +65,22 @@ export declare function exhaustiveSwitch<UnionType extends {
65
65
  type: string;
66
66
  }>(value: UnionType): <ResultType>(cases: StructureRecord<UnionType, ResultType>) => ResultType;
67
67
  export declare function exhaustiveSwitch<UnionType extends Record<KeyType, string>, KeyType extends keyof UnionType>(value: UnionType, key: KeyType): <ResultType>(cases: StructureRecordGeneric<UnionType, ResultType, KeyType>) => ResultType;
68
- type EmptyObject<ObjectType> = {
69
- [KeyType in keyof ObjectType]?: never;
68
+ type EmptyObject<ValueType> = {
69
+ [KeyType in keyof ValueType]?: never;
70
70
  };
71
- type EmptyObjectOf<ObjectType> = EmptyObject<ObjectType> extends ObjectType ? EmptyObject<ObjectType> : never;
71
+ type EmptyObjectOf<ValueType> = EmptyObject<ValueType> extends ValueType ? EmptyObject<ValueType> : never;
72
72
  /**
73
73
  * The same as `isEmpty` from lodash, but with a few additional overloads for
74
74
  * stronger type-checking on empty arrays.
75
75
  */
76
76
  export declare function isEmpty(value: string): value is "";
77
- export declare function isEmpty<ArrayType extends any[]>(value: ArrayType | null | undefined): value is (ArrayType & []) | null | undefined;
78
- export declare function isEmpty<ArrayLikeType extends ArrayLike<any>>(value: ArrayLikeType | null | undefined): value is (ArrayLikeType & {
77
+ export declare function isEmpty<ValueType extends any[]>(value: ValueType | null | undefined): value is (ValueType & []) | null | undefined;
78
+ export declare function isEmpty<ValueType extends ArrayLike<any>>(value: ValueType | null | undefined): value is (ValueType & {
79
79
  length: 0;
80
80
  }) | null | undefined;
81
81
  export declare function isEmpty(value: Map<any, any> | Set<any> | ArrayLike<any> | null | undefined): boolean;
82
82
  export declare function isEmpty(value: object): boolean;
83
- export declare function isEmpty<ObjectType extends object>(value: ObjectType | null | undefined): value is EmptyObjectOf<ObjectType> | null | undefined;
83
+ export declare function isEmpty<ValueType extends object>(value: ValueType | null | undefined): value is EmptyObjectOf<ValueType> | null | undefined;
84
84
  export declare function isEmpty(value?: any): boolean;
85
85
  export declare function noop(): void;
86
86
  export declare function preventDefault(event: {
@@ -103,13 +103,13 @@ export declare function invariant(condition: unknown, message: string | (() => s
103
103
  }): asserts condition;
104
104
  export declare const mergeReplacingObjects: (first: Object, second: Object) => void;
105
105
  export declare const mergeReplacingArrays: (first: Object, second: Object) => void;
106
- export declare const deepCloneAndMergeReplacingArrays: <SourceType>(source: SourceType, ...toMerge: Object[]) => SourceType;
106
+ export declare const deepCloneAndMergeReplacingArrays: <ValueType>(source: ValueType, ...toMerge: Object[]) => ValueType;
107
107
  /**
108
108
  * hasOwnProperty with a type assertion. If this returns true, typescript knows that `obj`
109
109
  * has a property called `prop` from that point forward
110
110
  * https://fettblog.eu/typescript-hasownproperty/
111
111
  */
112
- export declare function hasOwnProperty<ObjectType extends {} | null | undefined, PropType extends PropertyKey>(obj: ObjectType, prop: PropType): obj is ObjectType & Record<PropType, unknown>;
112
+ export declare function hasOwnProperty<ObjectType extends {} | null | undefined, KeyType extends PropertyKey>(obj: ObjectType, prop: KeyType): obj is ObjectType & Record<KeyType, unknown>;
113
113
  /**
114
114
  * Given a string | number param, converts it to a string, unless it's nullish
115
115
  * in which case it just returns it. Useful for times when you have string | number
@@ -1,2 +1,2 @@
1
- export { coerceNumberToString, deepCloneAndMergeReplacingArrays, errorMessage, exhaustiveSwitch, formatFileSize, getFromRecordOrNull, hasOwnProperty, invariant, isEmpty, isFunction_default as isFunction, isNotNullish, isNullish, isPrimitive, isRecord, mergeReplacingArrays, mergeReplacingObjects, noop, preventDefault, sleep, stringValue, warning } from '../../../chunk-XK2K3263.mjs';
1
+ export { coerceNumberToString, deepCloneAndMergeReplacingArrays, errorMessage, exhaustiveSwitch, formatFileSize, getFromRecordOrNull, hasOwnProperty, invariant, isEmpty, isFunction_default as isFunction, isNotNullish, isNullish, isPrimitive, isRecord, mergeReplacingArrays, mergeReplacingObjects, noop, preventDefault, sleep, stringValue, warning } from '../../../chunk-MSIQX4QA.mjs';
2
2
  export { isNumber_default as isNumber, isString_default as isString } from '../../../chunk-GV5FY7ZZ.mjs';
@@ -1,4 +1,4 @@
1
- import { priceSchema, metafieldSchema, imageSchema, selectedOptionSchema, mediaSchema, productOptionSchema, productSchema } from '../../../../../chunk-7WEM5FUJ.mjs';
1
+ import { priceSchema, metafieldSchema, imageSchema, selectedOptionSchema, mediaSchema, productOptionSchema, productSchema } from '../../../../../chunk-ZLOHRRSZ.mjs';
2
2
  import { sellingPlanGroupSchema } from '../../../../../chunk-4TZVNC3W.mjs';
3
3
  import { z } from 'zod';
4
4
 
@@ -66,7 +66,7 @@ export declare class ReploHTTPError extends ReploError {
66
66
  userFacingDetails: ErrorUserFacingDetails;
67
67
  statusCode: number;
68
68
  details?: object;
69
- constructor(config: {
69
+ constructor(config: ReploErrorConfig & {
70
70
  statusCode: number;
71
71
  userFacingDetails: ErrorUserFacingDetails;
72
72
  details?: object;
@@ -1,4 +1,4 @@
1
- import { MapCache_default, exhaustiveSwitch, hasOwnProperty, identity_default, baseFor_default, keys_default, Stack_default, isLength_default, isIndex_default, isArguments_default, getTag_default, isBuffer_default, isTypedArray_default, eq_default, Uint8Array_default, getAllKeys_default, baseAssignValue_default } from '../../chunk-XK2K3263.mjs';
1
+ import { MapCache_default, exhaustiveSwitch, hasOwnProperty, identity_default, baseFor_default, keys_default, Stack_default, isLength_default, isIndex_default, isArguments_default, getTag_default, isBuffer_default, isTypedArray_default, eq_default, Uint8Array_default, getAllKeys_default, baseAssignValue_default } from '../../chunk-MSIQX4QA.mjs';
2
2
  import { Symbol_default, isArray_default, isObject_default, isObjectLike_default, baseGetTag_default } from '../../chunk-GV5FY7ZZ.mjs';
3
3
  import { z, ZodError } from 'zod';
4
4
 
@@ -654,8 +654,12 @@ var ReploHTTPError = class extends ReploError {
654
654
  details;
655
655
  constructor(config) {
656
656
  super({
657
- message: config.userFacingDetails.message,
658
- additionalData: { statusCode: config.statusCode }
657
+ ...config,
658
+ message: config.message ?? config.userFacingDetails.message,
659
+ additionalData: {
660
+ ...config.additionalData,
661
+ statusCode: config.statusCode
662
+ }
659
663
  });
660
664
  this.statusCode = config.statusCode;
661
665
  this.userFacingDetails = config.userFacingDetails;
@@ -25,6 +25,10 @@ export type SelectModeBoundingRect = {
25
25
  width: number;
26
26
  height: number;
27
27
  };
28
+ export type SelectModeSelectionRect = {
29
+ id: string;
30
+ rect: SelectModeBoundingRect;
31
+ };
28
32
  export type SelectedElement = {
29
33
  kind: "react-element";
30
34
  selector: string;
@@ -61,7 +65,8 @@ export type SelectModeSelection = {
61
65
  items: SelectableData[];
62
66
  } | {
63
67
  type: "drag";
64
- rect: SelectModeBoundingRect;
68
+ dragRect: SelectModeBoundingRect;
69
+ selectionRects: SelectModeSelectionRect[];
65
70
  };
66
71
  export type SelectModeParentMessage = {
67
72
  type: "replo:select:setDisplayMode";
@@ -87,7 +92,8 @@ export type SelectModeIframeMessage = {
87
92
  rect: SelectModeBoundingRect;
88
93
  } | {
89
94
  type: "replo:select:dragRectUpdated";
90
- rect: SelectModeBoundingRect | null;
95
+ dragRect: SelectModeBoundingRect | null;
96
+ selectionRects: SelectModeSelectionRect[];
91
97
  } | {
92
98
  type: "replo:select:areaSelected";
93
99
  rect: SelectModeBoundingRect;
@@ -332,6 +332,7 @@ export declare const registryItemSchema: z.ZodObject<{
332
332
  slug: z.ZodOptional<z.ZodString>;
333
333
  title: z.ZodOptional<z.ZodString>;
334
334
  type: z.ZodOptional<z.ZodEnum<{
335
+ product: "product";
335
336
  plan: "plan";
336
337
  site: "site";
337
338
  page: "page";
@@ -745,6 +746,7 @@ declare const OBJECT_TYPE_REGISTRY: {
745
746
  slug: z.ZodOptional<z.ZodString>;
746
747
  title: z.ZodOptional<z.ZodString>;
747
748
  type: z.ZodOptional<z.ZodEnum<{
749
+ product: "product";
748
750
  plan: "plan";
749
751
  site: "site";
750
752
  page: "page";
@@ -1,2 +1,2 @@
1
- export { assetSchema, collectionSchema, customerIoBroadcastSchema, customerIoCampaignSchema, customerIoSegmentSchema, externalVideoSchema, getObjectTypeDefinition, imageSchema, integrationSchema, intelligemsExperienceSchema, levantaAffiliateLinkSchema, levantaProductSchema, looxReviewSchema, mediaImageSchema, mediaSchema, metafieldSchema, okendoReviewSchema, optionValueSchema, optionValueSwatchSchema, opusClipSchema, opusCollectionSchema, opusProjectSchema, pageSchema, planSchema, previewImageSchema, priceSchema, productOptionSchema, productSchema, registryItemSchema, segmentSourceSchema, selectedOptionSchema, transformReploProductToCanonical, variantSchema, videoSchema, videoSourceSchema, vwoCampaignSchema } from '../../chunk-7WEM5FUJ.mjs';
1
+ export { assetSchema, collectionSchema, customerIoBroadcastSchema, customerIoCampaignSchema, customerIoSegmentSchema, externalVideoSchema, getObjectTypeDefinition, imageSchema, integrationSchema, intelligemsExperienceSchema, levantaAffiliateLinkSchema, levantaProductSchema, looxReviewSchema, mediaImageSchema, mediaSchema, metafieldSchema, okendoReviewSchema, optionValueSchema, optionValueSwatchSchema, opusClipSchema, opusCollectionSchema, opusProjectSchema, pageSchema, planSchema, previewImageSchema, priceSchema, productOptionSchema, productSchema, registryItemSchema, segmentSourceSchema, selectedOptionSchema, transformReploProductToCanonical, variantSchema, videoSchema, videoSourceSchema, vwoCampaignSchema } from '../../chunk-ZLOHRRSZ.mjs';
2
2
  import '../../chunk-4TZVNC3W.mjs';
@@ -1,12 +1,8 @@
1
1
  import { z } from "zod";
2
2
  /**
3
- * Schemas for the registry Worker — the persistent
4
- * registry of project-authored items (templates, skills, etc.) backed by
5
- * Postgres + R2.
6
- *
7
- * NOTE: Not to be confused with `schemas/registryItem.ts`, which is the
8
- * legacy editor-side catalog shape used by the agent-browser/home tabs and
9
- * is unrelated to the registry Worker.
3
+ * Schemas for the Bedrock registry — the persistent registry of
4
+ * project-authored items (templates, skills, etc.) served by
5
+ * `apps/bedrock-api` and backed by Postgres + R2.
10
6
  *
11
7
  * Per the "PG = searchable + listing display only" rule:
12
8
  * - Top-level row columns hold identity/search/preview fields.
@@ -14,10 +10,11 @@ import { z } from "zod";
14
10
  * aren't covered by standard columns. Types with no metadata store `null`.
15
11
  * - Detailed content (full file trees, npm dependencies) lives in the R2
16
12
  * `.registry.json` doc, not the PG row.
17
- * - Preview imagery is referenced by external URL via `previewUrls` — the
18
- * registry Worker does not host preview blobs anymore.
13
+ * - Preview imagery is referenced by external URL via `previewUrls`; the
14
+ * registry does not host preview blobs.
19
15
  */
20
16
  export declare const registryItemTypeSchema: z.ZodEnum<{
17
+ product: "product";
21
18
  plan: "plan";
22
19
  site: "site";
23
20
  page: "page";
@@ -25,6 +22,13 @@ export declare const registryItemTypeSchema: z.ZodEnum<{
25
22
  skill: "skill";
26
23
  branding: "branding";
27
24
  }>;
25
+ export declare const registryItemVisibilitySchema: z.ZodEnum<{
26
+ public: "public";
27
+ unlisted: "unlisted";
28
+ }>;
29
+ export declare const registrySlugSchema: z.ZodString;
30
+ export declare const registryItemIdSchema: z.ZodString;
31
+ export declare const registryContentFilesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
28
32
  export declare const registryItemSourceIdentitySchema: z.ZodObject<{
29
33
  sourceType: z.ZodString;
30
34
  sourceKey: z.ZodString;
@@ -54,6 +58,25 @@ export declare const skillRegistryItemMetadataSchema: z.ZodObject<{
54
58
  command: z.ZodOptional<z.ZodString>;
55
59
  tagline: z.ZodOptional<z.ZodString>;
56
60
  }, z.core.$strict>;
61
+ export declare const productRegistryItemMetadataSchema: z.ZodObject<{
62
+ provider: z.ZodString;
63
+ providerDisplayName: z.ZodString;
64
+ providerProductId: z.ZodString;
65
+ productType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
66
+ productTypeName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
67
+ categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
+ defaultVariantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ capabilities: z.ZodObject<{
70
+ mockupGeneration: z.ZodBoolean;
71
+ fileUpload: z.ZodBoolean;
72
+ productCreation: z.ZodBoolean;
73
+ orderFulfillment: z.ZodBoolean;
74
+ variantEditing: z.ZodBoolean;
75
+ }, z.core.$strict>;
76
+ techniques: z.ZodDefault<z.ZodArray<z.ZodString>>;
77
+ colors: z.ZodDefault<z.ZodArray<z.ZodString>>;
78
+ sizes: z.ZodDefault<z.ZodArray<z.ZodString>>;
79
+ }, z.core.$strict>;
57
80
  export declare const genericRegistryItemMetadataSchema: z.ZodUnion<readonly [z.ZodObject<{
58
81
  brandName: z.ZodOptional<z.ZodString>;
59
82
  brandDomain: z.ZodOptional<z.ZodString>;
@@ -74,12 +97,31 @@ export declare const genericRegistryItemMetadataSchema: z.ZodUnion<readonly [z.Z
74
97
  logoUrl: z.ZodOptional<z.ZodString>;
75
98
  faviconUrl: z.ZodOptional<z.ZodString>;
76
99
  tagline: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ provider: z.ZodString;
102
+ providerDisplayName: z.ZodString;
103
+ providerProductId: z.ZodString;
104
+ productType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
105
+ productTypeName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
106
+ categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
107
+ defaultVariantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ capabilities: z.ZodObject<{
109
+ mockupGeneration: z.ZodBoolean;
110
+ fileUpload: z.ZodBoolean;
111
+ productCreation: z.ZodBoolean;
112
+ orderFulfillment: z.ZodBoolean;
113
+ variantEditing: z.ZodBoolean;
114
+ }, z.core.$strict>;
115
+ techniques: z.ZodDefault<z.ZodArray<z.ZodString>>;
116
+ colors: z.ZodDefault<z.ZodArray<z.ZodString>>;
117
+ sizes: z.ZodDefault<z.ZodArray<z.ZodString>>;
77
118
  }, z.core.$strict>]>;
78
119
  export declare const registryItemMetadataSchema: z.ZodObject<{
79
120
  id: z.ZodString;
80
121
  slug: z.ZodString;
81
122
  name: z.ZodString;
82
123
  type: z.ZodEnum<{
124
+ product: "product";
83
125
  plan: "plan";
84
126
  site: "site";
85
127
  page: "page";
@@ -107,6 +149,24 @@ export declare const registryItemMetadataSchema: z.ZodObject<{
107
149
  logoUrl: z.ZodOptional<z.ZodString>;
108
150
  faviconUrl: z.ZodOptional<z.ZodString>;
109
151
  tagline: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strict>, z.ZodObject<{
153
+ provider: z.ZodString;
154
+ providerDisplayName: z.ZodString;
155
+ providerProductId: z.ZodString;
156
+ productType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
157
+ productTypeName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
158
+ categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
159
+ defaultVariantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ capabilities: z.ZodObject<{
161
+ mockupGeneration: z.ZodBoolean;
162
+ fileUpload: z.ZodBoolean;
163
+ productCreation: z.ZodBoolean;
164
+ orderFulfillment: z.ZodBoolean;
165
+ variantEditing: z.ZodBoolean;
166
+ }, z.core.$strict>;
167
+ techniques: z.ZodDefault<z.ZodArray<z.ZodString>>;
168
+ colors: z.ZodDefault<z.ZodArray<z.ZodString>>;
169
+ sizes: z.ZodDefault<z.ZodArray<z.ZodString>>;
110
170
  }, z.core.$strict>]>>;
111
171
  projectId: z.ZodNullable<z.ZodString>;
112
172
  createdBy: z.ZodNullable<z.ZodString>;
@@ -127,6 +187,7 @@ export declare const registryListItemsResultSchema: z.ZodObject<{
127
187
  slug: z.ZodString;
128
188
  name: z.ZodString;
129
189
  type: z.ZodEnum<{
190
+ product: "product";
130
191
  plan: "plan";
131
192
  site: "site";
132
193
  page: "page";
@@ -154,6 +215,24 @@ export declare const registryListItemsResultSchema: z.ZodObject<{
154
215
  logoUrl: z.ZodOptional<z.ZodString>;
155
216
  faviconUrl: z.ZodOptional<z.ZodString>;
156
217
  tagline: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strict>, z.ZodObject<{
219
+ provider: z.ZodString;
220
+ providerDisplayName: z.ZodString;
221
+ providerProductId: z.ZodString;
222
+ productType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
223
+ productTypeName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
224
+ categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
225
+ defaultVariantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ capabilities: z.ZodObject<{
227
+ mockupGeneration: z.ZodBoolean;
228
+ fileUpload: z.ZodBoolean;
229
+ productCreation: z.ZodBoolean;
230
+ orderFulfillment: z.ZodBoolean;
231
+ variantEditing: z.ZodBoolean;
232
+ }, z.core.$strict>;
233
+ techniques: z.ZodDefault<z.ZodArray<z.ZodString>>;
234
+ colors: z.ZodDefault<z.ZodArray<z.ZodString>>;
235
+ sizes: z.ZodDefault<z.ZodArray<z.ZodString>>;
157
236
  }, z.core.$strict>]>>;
158
237
  projectId: z.ZodNullable<z.ZodString>;
159
238
  createdBy: z.ZodNullable<z.ZodString>;
@@ -181,6 +260,7 @@ export declare const registryItemDetailSchema: z.ZodObject<{
181
260
  slug: z.ZodString;
182
261
  name: z.ZodString;
183
262
  type: z.ZodEnum<{
263
+ product: "product";
184
264
  plan: "plan";
185
265
  site: "site";
186
266
  page: "page";
@@ -208,6 +288,24 @@ export declare const registryItemDetailSchema: z.ZodObject<{
208
288
  logoUrl: z.ZodOptional<z.ZodString>;
209
289
  faviconUrl: z.ZodOptional<z.ZodString>;
210
290
  tagline: z.ZodOptional<z.ZodString>;
291
+ }, z.core.$strict>, z.ZodObject<{
292
+ provider: z.ZodString;
293
+ providerDisplayName: z.ZodString;
294
+ providerProductId: z.ZodString;
295
+ productType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
296
+ productTypeName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
297
+ categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
298
+ defaultVariantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
+ capabilities: z.ZodObject<{
300
+ mockupGeneration: z.ZodBoolean;
301
+ fileUpload: z.ZodBoolean;
302
+ productCreation: z.ZodBoolean;
303
+ orderFulfillment: z.ZodBoolean;
304
+ variantEditing: z.ZodBoolean;
305
+ }, z.core.$strict>;
306
+ techniques: z.ZodDefault<z.ZodArray<z.ZodString>>;
307
+ colors: z.ZodDefault<z.ZodArray<z.ZodString>>;
308
+ sizes: z.ZodDefault<z.ZodArray<z.ZodString>>;
211
309
  }, z.core.$strict>]>>;
212
310
  projectId: z.ZodNullable<z.ZodString>;
213
311
  createdBy: z.ZodNullable<z.ZodString>;
@@ -223,11 +321,80 @@ export declare const registryItemDetailSchema: z.ZodObject<{
223
321
  updatedAt: z.ZodString;
224
322
  previewHtml: z.ZodNullable<z.ZodString>;
225
323
  }, z.core.$strip>;
324
+ export declare const registryItemPreviewResultSchema: z.ZodObject<{
325
+ item: z.ZodObject<{
326
+ id: z.ZodString;
327
+ slug: z.ZodString;
328
+ name: z.ZodString;
329
+ type: z.ZodEnum<{
330
+ product: "product";
331
+ plan: "plan";
332
+ site: "site";
333
+ page: "page";
334
+ section: "section";
335
+ skill: "skill";
336
+ branding: "branding";
337
+ }>;
338
+ metadata: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
339
+ brandName: z.ZodOptional<z.ZodString>;
340
+ brandDomain: z.ZodOptional<z.ZodString>;
341
+ logoUrl: z.ZodOptional<z.ZodString>;
342
+ }, z.core.$strict>, z.ZodObject<{
343
+ brandName: z.ZodOptional<z.ZodString>;
344
+ brandDomain: z.ZodOptional<z.ZodString>;
345
+ logoUrl: z.ZodOptional<z.ZodString>;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ brandName: z.ZodOptional<z.ZodString>;
348
+ brandDomain: z.ZodOptional<z.ZodString>;
349
+ logoUrl: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ command: z.ZodOptional<z.ZodString>;
352
+ tagline: z.ZodOptional<z.ZodString>;
353
+ }, z.core.$strict>, z.ZodObject<{
354
+ palette: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
+ logoUrl: z.ZodOptional<z.ZodString>;
356
+ faviconUrl: z.ZodOptional<z.ZodString>;
357
+ tagline: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strict>, z.ZodObject<{
359
+ provider: z.ZodString;
360
+ providerDisplayName: z.ZodString;
361
+ providerProductId: z.ZodString;
362
+ productType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
363
+ productTypeName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
364
+ categoryIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
365
+ defaultVariantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
+ capabilities: z.ZodObject<{
367
+ mockupGeneration: z.ZodBoolean;
368
+ fileUpload: z.ZodBoolean;
369
+ productCreation: z.ZodBoolean;
370
+ orderFulfillment: z.ZodBoolean;
371
+ variantEditing: z.ZodBoolean;
372
+ }, z.core.$strict>;
373
+ techniques: z.ZodDefault<z.ZodArray<z.ZodString>>;
374
+ colors: z.ZodDefault<z.ZodArray<z.ZodString>>;
375
+ sizes: z.ZodDefault<z.ZodArray<z.ZodString>>;
376
+ }, z.core.$strict>]>>;
377
+ sourceType: z.ZodNullable<z.ZodString>;
378
+ sourceKey: z.ZodNullable<z.ZodString>;
379
+ shortLink: z.ZodNullable<z.ZodString>;
380
+ description: z.ZodNullable<z.ZodString>;
381
+ visibility: z.ZodString;
382
+ tags: z.ZodArray<z.ZodString>;
383
+ category: z.ZodNullable<z.ZodString>;
384
+ previewUrls: z.ZodArray<z.ZodString>;
385
+ createdAt: z.ZodString;
386
+ updatedAt: z.ZodString;
387
+ previewHtml: z.ZodNullable<z.ZodString>;
388
+ projectId: z.ZodNull;
389
+ createdBy: z.ZodNull;
390
+ }, z.core.$strip>;
391
+ }, z.core.$strip>;
226
392
  export declare const registryItemContentSchema: z.ZodObject<{
227
393
  meta: z.ZodObject<{
228
394
  id: z.ZodString;
229
395
  slug: z.ZodString;
230
396
  type: z.ZodEnum<{
397
+ product: "product";
231
398
  plan: "plan";
232
399
  site: "site";
233
400
  page: "page";
@@ -241,3 +408,110 @@ export declare const registryItemContentSchema: z.ZodObject<{
241
408
  files: z.ZodRecord<z.ZodString, z.ZodString>;
242
409
  dependencies: z.ZodArray<z.ZodString>;
243
410
  }, z.core.$strip>;
411
+ export declare const publicSkillSchema: z.ZodObject<{
412
+ object: z.ZodLiteral<"skill">;
413
+ id: z.ZodString;
414
+ slug: z.ZodString;
415
+ name: z.ZodString;
416
+ description: z.ZodNullable<z.ZodString>;
417
+ command: z.ZodNullable<z.ZodString>;
418
+ tagline: z.ZodNullable<z.ZodString>;
419
+ tags: z.ZodArray<z.ZodString>;
420
+ category: z.ZodNullable<z.ZodString>;
421
+ visibility: z.ZodString;
422
+ createdAt: z.ZodString;
423
+ updatedAt: z.ZodString;
424
+ }, z.core.$strip>;
425
+ export declare const publicSkillUpsertInputSchema: z.ZodObject<{
426
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
427
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
429
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
430
+ command: z.ZodOptional<z.ZodString>;
431
+ tagline: z.ZodOptional<z.ZodString>;
432
+ name: z.ZodString;
433
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ }, z.core.$strip>;
435
+ export declare const registryItemDocumentSchema: z.ZodObject<{
436
+ id: z.ZodString;
437
+ slug: z.ZodString;
438
+ name: z.ZodString;
439
+ type: z.ZodEnum<{
440
+ product: "product";
441
+ plan: "plan";
442
+ site: "site";
443
+ page: "page";
444
+ section: "section";
445
+ skill: "skill";
446
+ branding: "branding";
447
+ }>;
448
+ projectId: z.ZodNullable<z.ZodString>;
449
+ createdBy: z.ZodNullable<z.ZodString>;
450
+ description: z.ZodNullable<z.ZodString>;
451
+ visibility: z.ZodString;
452
+ tags: z.ZodArray<z.ZodString>;
453
+ category: z.ZodNullable<z.ZodString>;
454
+ sourceType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
455
+ sourceKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
456
+ shortLink: z.ZodDefault<z.ZodNullable<z.ZodString>>;
457
+ previewUrls: z.ZodArray<z.ZodString>;
458
+ previewHtml: z.ZodNullable<z.ZodString>;
459
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
460
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
461
+ dependencies: z.ZodArray<z.ZodString>;
462
+ embeddingText: z.ZodString;
463
+ embedding: z.ZodArray<z.ZodNumber>;
464
+ createdAt: z.ZodString;
465
+ updatedAt: z.ZodString;
466
+ }, z.core.$strip>;
467
+ export declare const registryCreateItemInputSchema: z.ZodObject<{
468
+ item: z.ZodObject<{
469
+ id: z.ZodString;
470
+ slug: z.ZodString;
471
+ name: z.ZodString;
472
+ type: z.ZodEnum<{
473
+ product: "product";
474
+ plan: "plan";
475
+ site: "site";
476
+ page: "page";
477
+ section: "section";
478
+ skill: "skill";
479
+ branding: "branding";
480
+ }>;
481
+ projectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
482
+ createdBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
483
+ sourceType: z.ZodDefault<z.ZodNullable<z.ZodString>>;
484
+ sourceKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
485
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
486
+ metadata: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
487
+ visibility: z.ZodDefault<z.ZodEnum<{
488
+ public: "public";
489
+ unlisted: "unlisted";
490
+ }>>;
491
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
492
+ category: z.ZodDefault<z.ZodNullable<z.ZodString>>;
493
+ previewUrls: z.ZodDefault<z.ZodArray<z.ZodString>>;
494
+ previewHtml: z.ZodDefault<z.ZodNullable<z.ZodString>>;
495
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
496
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
497
+ }, z.core.$strip>;
498
+ }, z.core.$strip>;
499
+ export declare const registryCreateItemOutputSchema: z.ZodObject<{
500
+ created: z.ZodObject<{
501
+ id: z.ZodString;
502
+ type: z.ZodEnum<{
503
+ product: "product";
504
+ plan: "plan";
505
+ site: "site";
506
+ page: "page";
507
+ section: "section";
508
+ skill: "skill";
509
+ branding: "branding";
510
+ }>;
511
+ slug: z.ZodString;
512
+ sourceType: z.ZodNullable<z.ZodString>;
513
+ sourceKey: z.ZodNullable<z.ZodString>;
514
+ url: z.ZodString;
515
+ shareUrl: z.ZodNullable<z.ZodString>;
516
+ }, z.core.$strip>;
517
+ }, z.core.$strip>;
@@ -30,6 +30,19 @@ export declare const selectModeBoundingRectSchema: z.ZodObject<{
30
30
  width: z.ZodNumber;
31
31
  height: z.ZodNumber;
32
32
  }, z.core.$strip>;
33
+ export declare const selectModeSelectionRectSchema: z.ZodObject<{
34
+ id: z.ZodString;
35
+ rect: z.ZodObject<{
36
+ x: z.ZodNumber;
37
+ y: z.ZodNumber;
38
+ left: z.ZodNumber;
39
+ top: z.ZodNumber;
40
+ right: z.ZodNumber;
41
+ bottom: z.ZodNumber;
42
+ width: z.ZodNumber;
43
+ height: z.ZodNumber;
44
+ }, z.core.$strip>;
45
+ }, z.core.$strip>;
33
46
  export type RectOffset = {
34
47
  left: number;
35
48
  top: number;
@@ -316,7 +329,7 @@ export declare const selectModeSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
316
329
  }, z.core.$strip>], "kind">>;
317
330
  }, z.core.$strip>, z.ZodObject<{
318
331
  type: z.ZodLiteral<"drag">;
319
- rect: z.ZodObject<{
332
+ dragRect: z.ZodObject<{
320
333
  x: z.ZodNumber;
321
334
  y: z.ZodNumber;
322
335
  left: z.ZodNumber;
@@ -326,6 +339,19 @@ export declare const selectModeSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
326
339
  width: z.ZodNumber;
327
340
  height: z.ZodNumber;
328
341
  }, z.core.$strip>;
342
+ selectionRects: z.ZodArray<z.ZodObject<{
343
+ id: z.ZodString;
344
+ rect: z.ZodObject<{
345
+ x: z.ZodNumber;
346
+ y: z.ZodNumber;
347
+ left: z.ZodNumber;
348
+ top: z.ZodNumber;
349
+ right: z.ZodNumber;
350
+ bottom: z.ZodNumber;
351
+ width: z.ZodNumber;
352
+ height: z.ZodNumber;
353
+ }, z.core.$strip>;
354
+ }, z.core.$strip>>;
329
355
  }, z.core.$strip>], "type">;
330
356
  export declare const selectModeParentMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
331
357
  type: z.ZodLiteral<"replo:select:setDisplayMode">;
@@ -435,7 +461,7 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
435
461
  }, z.core.$strip>;
436
462
  }, z.core.$strip>, z.ZodObject<{
437
463
  type: z.ZodLiteral<"replo:select:dragRectUpdated">;
438
- rect: z.ZodNullable<z.ZodObject<{
464
+ dragRect: z.ZodNullable<z.ZodObject<{
439
465
  x: z.ZodNumber;
440
466
  y: z.ZodNumber;
441
467
  left: z.ZodNumber;
@@ -445,6 +471,19 @@ export declare const selectModeIframeMessageSchema: z.ZodDiscriminatedUnion<[z.Z
445
471
  width: z.ZodNumber;
446
472
  height: z.ZodNumber;
447
473
  }, z.core.$strip>>;
474
+ selectionRects: z.ZodArray<z.ZodObject<{
475
+ id: z.ZodString;
476
+ rect: z.ZodObject<{
477
+ x: z.ZodNumber;
478
+ y: z.ZodNumber;
479
+ left: z.ZodNumber;
480
+ top: z.ZodNumber;
481
+ right: z.ZodNumber;
482
+ bottom: z.ZodNumber;
483
+ width: z.ZodNumber;
484
+ height: z.ZodNumber;
485
+ }, z.core.$strip>;
486
+ }, z.core.$strip>>;
448
487
  }, z.core.$strip>, z.ZodObject<{
449
488
  type: z.ZodLiteral<"replo:select:areaSelected">;
450
489
  rect: z.ZodObject<{