@replohq/sdk 1.11.2 → 1.12.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.
@@ -1,7 +1,7 @@
1
1
  export const BUILD_METADATA = {
2
2
  "packageName": "@replohq/sdk",
3
- "version": "1.11.2",
3
+ "version": "1.12.0",
4
4
  "branch": "HEAD",
5
- "commit": "f02cf0301b5a644ce494911576c7640be6d43050",
6
- "builtAt": "2026-09-21T23:29:22.214Z"
5
+ "commit": "3d57d078085b1361b40fd9feb54651a1fca5a985",
6
+ "builtAt": "2026-09-22T02:12:30.362Z"
7
7
  };
@@ -128,6 +128,17 @@ export declare const metafieldSchema: z.ZodObject<{
128
128
  namespace: z.ZodString;
129
129
  type: z.ZodString;
130
130
  value: z.ZodString;
131
+ reference: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
132
+ kind: z.ZodLiteral<"image">;
133
+ url: z.ZodNullable<z.ZodString>;
134
+ }, z.core.$strip>, z.ZodObject<{
135
+ kind: z.ZodLiteral<"file">;
136
+ url: z.ZodNullable<z.ZodString>;
137
+ }, z.core.$strip>, z.ZodObject<{
138
+ kind: z.ZodLiteral<"video">;
139
+ url: z.ZodNullable<z.ZodString>;
140
+ previewUrl: z.ZodNullable<z.ZodString>;
141
+ }, z.core.$strip>], "kind">>>;
131
142
  }, z.core.$strip>;
132
143
  export declare const sellingPlanPriceAdjustmentSchema: z.ZodObject<{
133
144
  value: z.ZodNumber;
@@ -365,6 +376,17 @@ export declare const productSchema: z.ZodObject<{
365
376
  namespace: z.ZodString;
366
377
  type: z.ZodString;
367
378
  value: z.ZodString;
379
+ reference: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
380
+ kind: z.ZodLiteral<"image">;
381
+ url: z.ZodNullable<z.ZodString>;
382
+ }, z.core.$strip>, z.ZodObject<{
383
+ kind: z.ZodLiteral<"file">;
384
+ url: z.ZodNullable<z.ZodString>;
385
+ }, z.core.$strip>, z.ZodObject<{
386
+ kind: z.ZodLiteral<"video">;
387
+ url: z.ZodNullable<z.ZodString>;
388
+ previewUrl: z.ZodNullable<z.ZodString>;
389
+ }, z.core.$strip>], "kind">>>;
368
390
  }, z.core.$strip>>>;
369
391
  }, z.core.$strip>;
370
392
  export type Product = z.infer<typeof productSchema>;
@@ -408,6 +430,17 @@ export declare const fullVariantSchema: z.ZodObject<{
408
430
  namespace: z.ZodString;
409
431
  type: z.ZodString;
410
432
  value: z.ZodString;
433
+ reference: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
434
+ kind: z.ZodLiteral<"image">;
435
+ url: z.ZodNullable<z.ZodString>;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ kind: z.ZodLiteral<"file">;
438
+ url: z.ZodNullable<z.ZodString>;
439
+ }, z.core.$strip>, z.ZodObject<{
440
+ kind: z.ZodLiteral<"video">;
441
+ url: z.ZodNullable<z.ZodString>;
442
+ previewUrl: z.ZodNullable<z.ZodString>;
443
+ }, z.core.$strip>], "kind">>>;
411
444
  }, z.core.$strip>>>;
412
445
  }, z.core.$strip>;
413
446
  export declare const fullProductSchema: z.ZodObject<{
@@ -466,6 +499,17 @@ export declare const fullProductSchema: z.ZodObject<{
466
499
  namespace: z.ZodString;
467
500
  type: z.ZodString;
468
501
  value: z.ZodString;
502
+ reference: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
503
+ kind: z.ZodLiteral<"image">;
504
+ url: z.ZodNullable<z.ZodString>;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ kind: z.ZodLiteral<"file">;
507
+ url: z.ZodNullable<z.ZodString>;
508
+ }, z.core.$strip>, z.ZodObject<{
509
+ kind: z.ZodLiteral<"video">;
510
+ url: z.ZodNullable<z.ZodString>;
511
+ previewUrl: z.ZodNullable<z.ZodString>;
512
+ }, z.core.$strip>], "kind">>>;
469
513
  }, z.core.$strip>>>;
470
514
  }, z.core.$strip>>;
471
515
  images: z.ZodArray<z.ZodObject<{
@@ -544,6 +588,17 @@ export declare const fullProductSchema: z.ZodObject<{
544
588
  namespace: z.ZodString;
545
589
  type: z.ZodString;
546
590
  value: z.ZodString;
591
+ reference: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
592
+ kind: z.ZodLiteral<"image">;
593
+ url: z.ZodNullable<z.ZodString>;
594
+ }, z.core.$strip>, z.ZodObject<{
595
+ kind: z.ZodLiteral<"file">;
596
+ url: z.ZodNullable<z.ZodString>;
597
+ }, z.core.$strip>, z.ZodObject<{
598
+ kind: z.ZodLiteral<"video">;
599
+ url: z.ZodNullable<z.ZodString>;
600
+ previewUrl: z.ZodNullable<z.ZodString>;
601
+ }, z.core.$strip>], "kind">>>;
547
602
  }, z.core.$strip>>;
548
603
  }, z.core.$strip>;
549
604
  export declare const fullCollectionSchema: z.ZodObject<{
@@ -562,6 +617,17 @@ export declare const fullCollectionSchema: z.ZodObject<{
562
617
  namespace: z.ZodString;
563
618
  type: z.ZodString;
564
619
  value: z.ZodString;
620
+ reference: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
621
+ kind: z.ZodLiteral<"image">;
622
+ url: z.ZodNullable<z.ZodString>;
623
+ }, z.core.$strip>, z.ZodObject<{
624
+ kind: z.ZodLiteral<"file">;
625
+ url: z.ZodNullable<z.ZodString>;
626
+ }, z.core.$strip>, z.ZodObject<{
627
+ kind: z.ZodLiteral<"video">;
628
+ url: z.ZodNullable<z.ZodString>;
629
+ previewUrl: z.ZodNullable<z.ZodString>;
630
+ }, z.core.$strip>], "kind">>>;
565
631
  }, z.core.$strip>>>;
566
632
  }, z.core.$strip>;
567
633
  export declare const paginatedProductsSchema: z.ZodObject<{
@@ -715,6 +781,17 @@ export declare const paginatedProductsSchema: z.ZodObject<{
715
781
  namespace: z.ZodString;
716
782
  type: z.ZodString;
717
783
  value: z.ZodString;
784
+ reference: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
785
+ kind: z.ZodLiteral<"image">;
786
+ url: z.ZodNullable<z.ZodString>;
787
+ }, z.core.$strip>, z.ZodObject<{
788
+ kind: z.ZodLiteral<"file">;
789
+ url: z.ZodNullable<z.ZodString>;
790
+ }, z.core.$strip>, z.ZodObject<{
791
+ kind: z.ZodLiteral<"video">;
792
+ url: z.ZodNullable<z.ZodString>;
793
+ previewUrl: z.ZodNullable<z.ZodString>;
794
+ }, z.core.$strip>], "kind">>>;
718
795
  }, z.core.$strip>>>;
719
796
  }, z.core.$strip>>;
720
797
  pageInfo: z.ZodObject<{
@@ -67,11 +67,21 @@ const productOptionSchema = z.object({
67
67
  values: z.array(z.string()),
68
68
  optionValues: z.array(optionValueSchema).optional()
69
69
  });
70
+ const metafieldReferenceSchema = z.discriminatedUnion("kind", [
71
+ z.object({ kind: z.literal("image"), url: z.string().nullable() }),
72
+ z.object({ kind: z.literal("file"), url: z.string().nullable() }),
73
+ z.object({
74
+ kind: z.literal("video"),
75
+ url: z.string().nullable(),
76
+ previewUrl: z.string().nullable()
77
+ })
78
+ ]);
70
79
  const metafieldSchema = z.object({
71
80
  key: z.string(),
72
81
  namespace: z.string(),
73
82
  type: z.string(),
74
- value: z.string()
83
+ value: z.string(),
84
+ reference: metafieldReferenceSchema.nullish()
75
85
  });
76
86
  const sellingPlanPriceAdjustmentSchema = z.object({
77
87
  value: z.number(),
@@ -151,6 +151,17 @@ declare const rebuyRecommendationsOutputSchema: z.ZodObject<{
151
151
  namespace: z.ZodString;
152
152
  type: z.ZodString;
153
153
  value: z.ZodString;
154
+ reference: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
155
+ kind: z.ZodLiteral<"image">;
156
+ url: z.ZodNullable<z.ZodString>;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ kind: z.ZodLiteral<"file">;
159
+ url: z.ZodNullable<z.ZodString>;
160
+ }, z.core.$strip>, z.ZodObject<{
161
+ kind: z.ZodLiteral<"video">;
162
+ url: z.ZodNullable<z.ZodString>;
163
+ previewUrl: z.ZodNullable<z.ZodString>;
164
+ }, z.core.$strip>], "kind">>>;
154
165
  }, z.core.$strip>>>;
155
166
  }, z.core.$strip>>;
156
167
  }, z.core.$strip>;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@replohq/sdk",
3
- "version": "1.11.2",
3
+ "version": "1.12.0",
4
4
  "reploBuild": {
5
5
  "packageName": "@replohq/sdk",
6
- "version": "1.11.2",
6
+ "version": "1.12.0",
7
7
  "branch": "HEAD",
8
- "commit": "f02cf0301b5a644ce494911576c7640be6d43050",
9
- "builtAt": "2026-09-21T23:29:22.214Z"
8
+ "commit": "3d57d078085b1361b40fd9feb54651a1fca5a985",
9
+ "builtAt": "2026-09-22T02:12:30.362Z"
10
10
  },
11
11
  "description": "Replo SDK — cart, analytics, and data loaders for agent-built Next.js sites.",
12
12
  "license": "SEE LICENSE IN LICENSE",