@gscdump/contracts 0.17.3 → 0.17.5

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/dist/index.d.mts CHANGED
@@ -1115,6 +1115,14 @@ declare const registerPartnerSiteSchema: z.ZodObject<{
1115
1115
  "job.failed": "job.failed";
1116
1116
  }>>>;
1117
1117
  teamId: z.ZodOptional<z.ZodString>;
1118
+ enabledSearchTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1119
+ web: "web";
1120
+ image: "image";
1121
+ video: "video";
1122
+ news: "news";
1123
+ discover: "discover";
1124
+ googleNews: "googleNews";
1125
+ }>>>;
1118
1126
  }, z.core.$strip>;
1119
1127
  declare const bulkRegisterPartnerSitesSchema: z.ZodObject<{
1120
1128
  userId: z.ZodOptional<z.ZodString>;
@@ -1208,6 +1216,14 @@ declare const gscdumpAnalysisParamsSchema: z.ZodObject<{
1208
1216
  minPosition: z.ZodOptional<z.ZodNumber>;
1209
1217
  maxPosition: z.ZodOptional<z.ZodNumber>;
1210
1218
  maxCtr: z.ZodOptional<z.ZodNumber>;
1219
+ searchType: z.ZodOptional<z.ZodEnum<{
1220
+ web: "web";
1221
+ image: "image";
1222
+ video: "video";
1223
+ news: "news";
1224
+ discover: "discover";
1225
+ googleNews: "googleNews";
1226
+ }>>;
1211
1227
  }, z.core.$strip>;
1212
1228
  declare const gscdumpAnalysisResponseSchema: z.ZodObject<{
1213
1229
  preset: z.ZodEnum<{
@@ -2616,6 +2632,14 @@ declare const partnerEndpointSchemas: {
2616
2632
  "job.failed": "job.failed";
2617
2633
  }>>>;
2618
2634
  teamId: z.ZodOptional<z.ZodString>;
2635
+ enabledSearchTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2636
+ web: "web";
2637
+ image: "image";
2638
+ video: "video";
2639
+ news: "news";
2640
+ discover: "discover";
2641
+ googleNews: "googleNews";
2642
+ }>>>;
2619
2643
  }, z.core.$strip>;
2620
2644
  readonly response: z.ZodObject<{
2621
2645
  siteId: z.ZodString;
@@ -2813,6 +2837,14 @@ declare const partnerEndpointSchemas: {
2813
2837
  minPosition: z.ZodOptional<z.ZodNumber>;
2814
2838
  maxPosition: z.ZodOptional<z.ZodNumber>;
2815
2839
  maxCtr: z.ZodOptional<z.ZodNumber>;
2840
+ searchType: z.ZodOptional<z.ZodEnum<{
2841
+ web: "web";
2842
+ image: "image";
2843
+ video: "video";
2844
+ news: "news";
2845
+ discover: "discover";
2846
+ googleNews: "googleNews";
2847
+ }>>;
2816
2848
  }, z.core.$strip>;
2817
2849
  readonly response: z.ZodObject<{
2818
2850
  preset: z.ZodEnum<{
package/dist/index.mjs CHANGED
@@ -657,7 +657,8 @@ const registerPartnerSiteSchema = z.object({
657
657
  externalSiteUrl: z.string().optional(),
658
658
  webhookUrl: z.url().optional(),
659
659
  webhookEvents: z.array(z.enum(CANONICAL_WEBHOOK_EVENTS)).optional(),
660
- teamId: z.string().optional()
660
+ teamId: z.string().optional(),
661
+ enabledSearchTypes: z.array(searchTypeSchema).optional()
661
662
  });
662
663
  const bulkRegisterPartnerSitesSchema = z.object({
663
664
  userId: z.string().optional(),
@@ -724,7 +725,8 @@ const gscdumpAnalysisParamsSchema = z.object({
724
725
  minImpressions: z.number().optional(),
725
726
  minPosition: z.number().optional(),
726
727
  maxPosition: z.number().optional(),
727
- maxCtr: z.number().optional()
728
+ maxCtr: z.number().optional(),
729
+ searchType: searchTypeSchema.optional()
728
730
  }).superRefine((value, ctx) => {
729
731
  if ((value.preset === "brand-only" || value.preset === "non-brand") && !value.brandTerms?.trim()) ctx.addIssue({
730
732
  code: "custom",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/contracts",
3
3
  "type": "module",
4
- "version": "0.17.3",
4
+ "version": "0.17.5",
5
5
  "description": "Shared gscdump.com API, webhook, realtime, and lifecycle contracts.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",