@gscdump/contracts 2.1.0 → 2.1.1

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.
@@ -732,7 +732,7 @@ declare const partnerEndpoints: {
732
732
  code: import("zod").ZodEnum<{
733
733
  missing_refresh_token: "missing_refresh_token";
734
734
  missing_analytics_scope: "missing_analytics_scope";
735
- missing_indexing_scope: "missing_indexing_scope";
735
+ missing_gsc_read_scope: "missing_gsc_read_scope";
736
736
  token_refresh_failed: "token_refresh_failed";
737
737
  permission_lost: "permission_lost";
738
738
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -851,7 +851,7 @@ declare const partnerEndpoints: {
851
851
  existing: import("zod").ZodOptional<import("zod").ZodBoolean>;
852
852
  indexingEligible: import("zod").ZodOptional<import("zod").ZodBoolean>;
853
853
  indexingIneligibleReason: import("zod").ZodOptional<import("zod").ZodEnum<{
854
- missing_indexing_scope: "missing_indexing_scope";
854
+ missing_gsc_read_scope: "missing_gsc_read_scope";
855
855
  insufficient_gsc_permission: "insufficient_gsc_permission";
856
856
  free_plan: "free_plan";
857
857
  }>>;
@@ -969,7 +969,7 @@ declare const partnerEndpoints: {
969
969
  code: import("zod").ZodEnum<{
970
970
  missing_refresh_token: "missing_refresh_token";
971
971
  missing_analytics_scope: "missing_analytics_scope";
972
- missing_indexing_scope: "missing_indexing_scope";
972
+ missing_gsc_read_scope: "missing_gsc_read_scope";
973
973
  token_refresh_failed: "token_refresh_failed";
974
974
  permission_lost: "permission_lost";
975
975
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -1034,7 +1034,7 @@ declare const partnerEndpoints: {
1034
1034
  site: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
1035
1035
  indexingEligible: import("zod").ZodOptional<import("zod").ZodBoolean>;
1036
1036
  indexingIneligibleReason: import("zod").ZodOptional<import("zod").ZodEnum<{
1037
- missing_indexing_scope: "missing_indexing_scope";
1037
+ missing_gsc_read_scope: "missing_gsc_read_scope";
1038
1038
  insufficient_gsc_permission: "insufficient_gsc_permission";
1039
1039
  free_plan: "free_plan";
1040
1040
  }>>;
@@ -14,7 +14,7 @@ declare const sitemapStatuses: readonly ["unknown", "discovering", "none_found",
14
14
  declare const sitemapNextActions: readonly ["submit_sitemap", "wait_for_sitemaps", "retry_sitemaps", "none"];
15
15
  declare const indexingStatuses: readonly ["not_requested", "missing_scope", "insufficient_permission", "waiting_for_sitemaps", "discovering", "checking", "ready", "budget_exhausted", "no_urls", "failed"];
16
16
  declare const indexingNextActions: readonly ["reconnect_google", "fix_gsc_permission", "wait_for_sitemaps", "wait_for_indexing", "retry_indexing", "none"];
17
- declare const lifecycleErrorCodes: readonly ["missing_refresh_token", "missing_analytics_scope", "missing_indexing_scope", "token_refresh_failed", "permission_lost", "insufficient_gsc_permission", "gsc_property_not_found", "gsc_property_unverified", "user_database_not_provisioned", "sync_failed", "sitemap_sync_failed", "indexing_failed"];
17
+ declare const lifecycleErrorCodes: readonly ["missing_refresh_token", "missing_analytics_scope", "missing_gsc_read_scope", "token_refresh_failed", "permission_lost", "insufficient_gsc_permission", "gsc_property_not_found", "gsc_property_unverified", "user_database_not_provisioned", "sync_failed", "sitemap_sync_failed", "indexing_failed"];
18
18
  type AccountStatus = typeof accountStatuses[number];
19
19
  type AccountNextAction = typeof accountNextActions[number];
20
20
  type PropertyStatus = typeof propertyStatuses[number];
@@ -92,7 +92,7 @@ const indexingNextActions = [
92
92
  const lifecycleErrorCodes = [
93
93
  "missing_refresh_token",
94
94
  "missing_analytics_scope",
95
- "missing_indexing_scope",
95
+ "missing_gsc_read_scope",
96
96
  "token_refresh_failed",
97
97
  "permission_lost",
98
98
  "insufficient_gsc_permission",
@@ -786,7 +786,7 @@ declare const lifecycleErrorSchema: z.ZodObject<{
786
786
  code: z.ZodEnum<{
787
787
  missing_refresh_token: "missing_refresh_token";
788
788
  missing_analytics_scope: "missing_analytics_scope";
789
- missing_indexing_scope: "missing_indexing_scope";
789
+ missing_gsc_read_scope: "missing_gsc_read_scope";
790
790
  token_refresh_failed: "token_refresh_failed";
791
791
  permission_lost: "permission_lost";
792
792
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -931,7 +931,7 @@ declare const partnerLifecycleSiteSchema: z.ZodObject<{
931
931
  code: z.ZodEnum<{
932
932
  missing_refresh_token: "missing_refresh_token";
933
933
  missing_analytics_scope: "missing_analytics_scope";
934
- missing_indexing_scope: "missing_indexing_scope";
934
+ missing_gsc_read_scope: "missing_gsc_read_scope";
935
935
  token_refresh_failed: "token_refresh_failed";
936
936
  permission_lost: "permission_lost";
937
937
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -1084,7 +1084,7 @@ declare const partnerLifecycleResponseSchema: z.ZodObject<{
1084
1084
  code: z.ZodEnum<{
1085
1085
  missing_refresh_token: "missing_refresh_token";
1086
1086
  missing_analytics_scope: "missing_analytics_scope";
1087
- missing_indexing_scope: "missing_indexing_scope";
1087
+ missing_gsc_read_scope: "missing_gsc_read_scope";
1088
1088
  token_refresh_failed: "token_refresh_failed";
1089
1089
  permission_lost: "permission_lost";
1090
1090
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -1153,7 +1153,7 @@ declare const gscdumpSiteRegistrationSchema: z.ZodObject<{
1153
1153
  existing: z.ZodOptional<z.ZodBoolean>;
1154
1154
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
1155
1155
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
1156
- missing_indexing_scope: "missing_indexing_scope";
1156
+ missing_gsc_read_scope: "missing_gsc_read_scope";
1157
1157
  insufficient_gsc_permission: "insufficient_gsc_permission";
1158
1158
  free_plan: "free_plan";
1159
1159
  }>>;
@@ -1271,7 +1271,7 @@ declare const gscdumpSiteRegistrationSchema: z.ZodObject<{
1271
1271
  code: z.ZodEnum<{
1272
1272
  missing_refresh_token: "missing_refresh_token";
1273
1273
  missing_analytics_scope: "missing_analytics_scope";
1274
- missing_indexing_scope: "missing_indexing_scope";
1274
+ missing_gsc_read_scope: "missing_gsc_read_scope";
1275
1275
  token_refresh_failed: "token_refresh_failed";
1276
1276
  permission_lost: "permission_lost";
1277
1277
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -1358,7 +1358,7 @@ declare const bulkRegisterPartnerSitesResponseSchema: z.ZodObject<{
1358
1358
  site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1359
1359
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
1360
1360
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
1361
- missing_indexing_scope: "missing_indexing_scope";
1361
+ missing_gsc_read_scope: "missing_gsc_read_scope";
1362
1362
  insufficient_gsc_permission: "insufficient_gsc_permission";
1363
1363
  free_plan: "free_plan";
1364
1364
  }>>;
@@ -3748,7 +3748,7 @@ declare const partnerControlEndpointSchemas: {
3748
3748
  code: z.ZodEnum<{
3749
3749
  missing_refresh_token: "missing_refresh_token";
3750
3750
  missing_analytics_scope: "missing_analytics_scope";
3751
- missing_indexing_scope: "missing_indexing_scope";
3751
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3752
3752
  token_refresh_failed: "token_refresh_failed";
3753
3753
  permission_lost: "permission_lost";
3754
3754
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -3854,7 +3854,7 @@ declare const partnerControlEndpointSchemas: {
3854
3854
  existing: z.ZodOptional<z.ZodBoolean>;
3855
3855
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
3856
3856
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
3857
- missing_indexing_scope: "missing_indexing_scope";
3857
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3858
3858
  insufficient_gsc_permission: "insufficient_gsc_permission";
3859
3859
  free_plan: "free_plan";
3860
3860
  }>>;
@@ -3972,7 +3972,7 @@ declare const partnerControlEndpointSchemas: {
3972
3972
  code: z.ZodEnum<{
3973
3973
  missing_refresh_token: "missing_refresh_token";
3974
3974
  missing_analytics_scope: "missing_analytics_scope";
3975
- missing_indexing_scope: "missing_indexing_scope";
3975
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3976
3976
  token_refresh_failed: "token_refresh_failed";
3977
3977
  permission_lost: "permission_lost";
3978
3978
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -4034,7 +4034,7 @@ declare const partnerControlEndpointSchemas: {
4034
4034
  site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4035
4035
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
4036
4036
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
4037
- missing_indexing_scope: "missing_indexing_scope";
4037
+ missing_gsc_read_scope: "missing_gsc_read_scope";
4038
4038
  insufficient_gsc_permission: "insufficient_gsc_permission";
4039
4039
  free_plan: "free_plan";
4040
4040
  }>>;
@@ -5447,7 +5447,7 @@ declare const partnerEndpointSchemas: {
5447
5447
  code: z.ZodEnum<{
5448
5448
  missing_refresh_token: "missing_refresh_token";
5449
5449
  missing_analytics_scope: "missing_analytics_scope";
5450
- missing_indexing_scope: "missing_indexing_scope";
5450
+ missing_gsc_read_scope: "missing_gsc_read_scope";
5451
5451
  token_refresh_failed: "token_refresh_failed";
5452
5452
  permission_lost: "permission_lost";
5453
5453
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -5553,7 +5553,7 @@ declare const partnerEndpointSchemas: {
5553
5553
  existing: z.ZodOptional<z.ZodBoolean>;
5554
5554
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
5555
5555
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
5556
- missing_indexing_scope: "missing_indexing_scope";
5556
+ missing_gsc_read_scope: "missing_gsc_read_scope";
5557
5557
  insufficient_gsc_permission: "insufficient_gsc_permission";
5558
5558
  free_plan: "free_plan";
5559
5559
  }>>;
@@ -5671,7 +5671,7 @@ declare const partnerEndpointSchemas: {
5671
5671
  code: z.ZodEnum<{
5672
5672
  missing_refresh_token: "missing_refresh_token";
5673
5673
  missing_analytics_scope: "missing_analytics_scope";
5674
- missing_indexing_scope: "missing_indexing_scope";
5674
+ missing_gsc_read_scope: "missing_gsc_read_scope";
5675
5675
  token_refresh_failed: "token_refresh_failed";
5676
5676
  permission_lost: "permission_lost";
5677
5677
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -5733,7 +5733,7 @@ declare const partnerEndpointSchemas: {
5733
5733
  site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5734
5734
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
5735
5735
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
5736
- missing_indexing_scope: "missing_indexing_scope";
5736
+ missing_gsc_read_scope: "missing_gsc_read_scope";
5737
5737
  insufficient_gsc_permission: "insufficient_gsc_permission";
5738
5738
  free_plan: "free_plan";
5739
5739
  }>>;
package/dist/schemas.mjs CHANGED
@@ -533,7 +533,7 @@ const gscdumpSiteRegistrationSchema = z.object({
533
533
  indexingEligible: z.boolean().optional(),
534
534
  indexingIneligibleReason: z.enum([
535
535
  "free_plan",
536
- "missing_indexing_scope",
536
+ "missing_gsc_read_scope",
537
537
  "insufficient_gsc_permission"
538
538
  ]).optional(),
539
539
  indexingPermissionLevel: z.string().nullable().optional(),
@@ -582,7 +582,7 @@ const bulkRegisterPartnerSitesResponseSchema = z.object({
582
582
  indexingEligible: z.boolean().optional(),
583
583
  indexingIneligibleReason: z.enum([
584
584
  "free_plan",
585
- "missing_indexing_scope",
585
+ "missing_gsc_read_scope",
586
586
  "insufficient_gsc_permission"
587
587
  ]).optional(),
588
588
  indexingPermissionLevel: z.string().nullable().optional(),
package/dist/types.d.mts CHANGED
@@ -471,7 +471,7 @@ interface GscdumpSiteRegistration {
471
471
  message?: string;
472
472
  existing?: boolean;
473
473
  indexingEligible?: boolean;
474
- indexingIneligibleReason?: 'free_plan' | 'missing_indexing_scope' | 'insufficient_gsc_permission';
474
+ indexingIneligibleReason?: 'free_plan' | 'missing_gsc_read_scope' | 'insufficient_gsc_permission';
475
475
  indexingPermissionLevel?: string | null;
476
476
  grantedScopes?: string[];
477
477
  site?: PartnerLifecycleSite | null;
@@ -524,7 +524,7 @@ interface GscdumpUserSite {
524
524
  percent: number;
525
525
  };
526
526
  indexingEligible?: boolean;
527
- indexingIneligibleReason?: 'free_plan' | 'missing_indexing_scope' | 'insufficient_gsc_permission';
527
+ indexingIneligibleReason?: 'free_plan' | 'missing_gsc_read_scope' | 'insufficient_gsc_permission';
528
528
  indexingPermissionLevel?: string | null;
529
529
  grantedScopes?: string[];
530
530
  indexingStatus?: 'not_started' | 'indexing' | 'complete';
@@ -980,7 +980,7 @@ interface BulkRegisterPartnerSiteResult {
980
980
  error?: string;
981
981
  site?: PartnerLifecycleSite | null;
982
982
  indexingEligible?: boolean;
983
- indexingIneligibleReason?: 'free_plan' | 'missing_indexing_scope' | 'insufficient_gsc_permission';
983
+ indexingIneligibleReason?: 'free_plan' | 'missing_gsc_read_scope' | 'insufficient_gsc_permission';
984
984
  indexingPermissionLevel?: string | null;
985
985
  grantedScopes?: string[];
986
986
  }
@@ -262,7 +262,7 @@ declare function createGscdumpV1BrowserSchemas(realtimeSchemas?: RealtimeV1Schem
262
262
  readonly code: z.ZodEnum<{
263
263
  missing_refresh_token: "missing_refresh_token";
264
264
  missing_analytics_scope: "missing_analytics_scope";
265
- missing_indexing_scope: "missing_indexing_scope";
265
+ missing_gsc_read_scope: "missing_gsc_read_scope";
266
266
  token_refresh_failed: "token_refresh_failed";
267
267
  permission_lost: "permission_lost";
268
268
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -418,7 +418,7 @@ declare function createGscdumpV1BrowserSchemas(realtimeSchemas?: RealtimeV1Schem
418
418
  readonly code: z.ZodEnum<{
419
419
  missing_refresh_token: "missing_refresh_token";
420
420
  missing_analytics_scope: "missing_analytics_scope";
421
- missing_indexing_scope: "missing_indexing_scope";
421
+ missing_gsc_read_scope: "missing_gsc_read_scope";
422
422
  token_refresh_failed: "token_refresh_failed";
423
423
  permission_lost: "permission_lost";
424
424
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -171,51 +171,54 @@ function createGscdumpV1BrowserSchemas(realtimeSchemas = createRealtimeV1Schemas
171
171
  _nestedGroups: z.array(normalizedFilter).min(1),
172
172
  _groupType: z.enum(["and", "or"]).optional()
173
173
  })]));
174
+ const analyticsRowsRequest = z.strictObject({
175
+ dimensions: z.array(z.enum(dimensions)).min(1),
176
+ metrics: z.array(z.enum(metrics)).optional(),
177
+ filter: normalizedFilter.optional(),
178
+ prefilter: normalizedFilter.optional(),
179
+ orderBy: z.strictObject({
180
+ column: z.enum([...metrics, "date"]),
181
+ dir: z.enum(["asc", "desc"])
182
+ }).optional(),
183
+ rowLimit: z.number().int().positive().max(25e3).optional(),
184
+ startRow: z.number().int().nonnegative().optional(),
185
+ dataState: z.enum([
186
+ "final",
187
+ "all",
188
+ "hourly_all"
189
+ ]).optional(),
190
+ aggregationType: z.enum([
191
+ "auto",
192
+ "byPage",
193
+ "byProperty",
194
+ "byNewsShowcasePanel"
195
+ ]).optional(),
196
+ searchType: z.enum([
197
+ "web",
198
+ "image",
199
+ "video",
200
+ "news",
201
+ "discover",
202
+ "googleNews"
203
+ ]).optional()
204
+ });
205
+ const analyticsRowData = defineResponseObject({ rows: z.array(z.record(z.string(), z.union([
206
+ z.string(),
207
+ z.number(),
208
+ z.boolean(),
209
+ z.null()
210
+ ]))) });
211
+ const analyticsMeta = defineResponseObject({
212
+ requestId: realtimeSchemas.publicRequestId,
213
+ surface: z.literal("analytics"),
214
+ version: z.literal("1.0"),
215
+ sourceName: z.string().min(1),
216
+ sourceKind: z.enum(["row", "sql"]),
217
+ queryMs: z.number().nonnegative()
218
+ });
174
219
  return {
175
- analyticsRowsRequest: z.strictObject({
176
- dimensions: z.array(z.enum(dimensions)).min(1),
177
- metrics: z.array(z.enum(metrics)).optional(),
178
- filter: normalizedFilter.optional(),
179
- prefilter: normalizedFilter.optional(),
180
- orderBy: z.strictObject({
181
- column: z.enum([...metrics, "date"]),
182
- dir: z.enum(["asc", "desc"])
183
- }).optional(),
184
- rowLimit: z.number().int().positive().max(25e3).optional(),
185
- startRow: z.number().int().nonnegative().optional(),
186
- dataState: z.enum([
187
- "final",
188
- "all",
189
- "hourly_all"
190
- ]).optional(),
191
- aggregationType: z.enum([
192
- "auto",
193
- "byPage",
194
- "byProperty",
195
- "byNewsShowcasePanel"
196
- ]).optional(),
197
- searchType: z.enum([
198
- "web",
199
- "image",
200
- "video",
201
- "news",
202
- "discover",
203
- "googleNews"
204
- ]).optional()
205
- }),
206
- analyticsRowsResponse: defineSuccessResponse(defineResponseObject({ rows: z.array(z.record(z.string(), z.union([
207
- z.string(),
208
- z.number(),
209
- z.boolean(),
210
- z.null()
211
- ]))) }), defineResponseObject({
212
- requestId: realtimeSchemas.publicRequestId,
213
- surface: z.literal("analytics"),
214
- version: z.literal("1.0"),
215
- sourceName: z.string().min(1),
216
- sourceKind: z.enum(["row", "sql"]),
217
- queryMs: z.number().nonnegative()
218
- })),
220
+ analyticsRowsRequest,
221
+ analyticsRowsResponse: defineSuccessResponse(analyticsRowData, analyticsMeta),
219
222
  keywordEnrichmentRequest,
220
223
  keywordEnrichmentResponse,
221
224
  lifecycleResponse,
@@ -1975,7 +1975,7 @@ declare function createGscdumpV1Protocol(): {
1975
1975
  readonly code: z.ZodEnum<{
1976
1976
  missing_refresh_token: "missing_refresh_token";
1977
1977
  missing_analytics_scope: "missing_analytics_scope";
1978
- missing_indexing_scope: "missing_indexing_scope";
1978
+ missing_gsc_read_scope: "missing_gsc_read_scope";
1979
1979
  token_refresh_failed: "token_refresh_failed";
1980
1980
  permission_lost: "permission_lost";
1981
1981
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -2131,7 +2131,7 @@ declare function createGscdumpV1Protocol(): {
2131
2131
  readonly code: z.ZodEnum<{
2132
2132
  missing_refresh_token: "missing_refresh_token";
2133
2133
  missing_analytics_scope: "missing_analytics_scope";
2134
- missing_indexing_scope: "missing_indexing_scope";
2134
+ missing_gsc_read_scope: "missing_gsc_read_scope";
2135
2135
  token_refresh_failed: "token_refresh_failed";
2136
2136
  permission_lost: "permission_lost";
2137
2137
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -2483,7 +2483,7 @@ declare function createGscdumpV1Protocol(): {
2483
2483
  existing: z.ZodOptional<z.ZodBoolean>;
2484
2484
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
2485
2485
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
2486
- missing_indexing_scope: "missing_indexing_scope";
2486
+ missing_gsc_read_scope: "missing_gsc_read_scope";
2487
2487
  insufficient_gsc_permission: "insufficient_gsc_permission";
2488
2488
  free_plan: "free_plan";
2489
2489
  }>>;
@@ -2601,7 +2601,7 @@ declare function createGscdumpV1Protocol(): {
2601
2601
  code: z.ZodEnum<{
2602
2602
  missing_refresh_token: "missing_refresh_token";
2603
2603
  missing_analytics_scope: "missing_analytics_scope";
2604
- missing_indexing_scope: "missing_indexing_scope";
2604
+ missing_gsc_read_scope: "missing_gsc_read_scope";
2605
2605
  token_refresh_failed: "token_refresh_failed";
2606
2606
  permission_lost: "permission_lost";
2607
2607
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -2640,7 +2640,7 @@ declare function createGscdumpV1Protocol(): {
2640
2640
  existing: z.ZodOptional<z.ZodBoolean>;
2641
2641
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
2642
2642
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
2643
- missing_indexing_scope: "missing_indexing_scope";
2643
+ missing_gsc_read_scope: "missing_gsc_read_scope";
2644
2644
  insufficient_gsc_permission: "insufficient_gsc_permission";
2645
2645
  free_plan: "free_plan";
2646
2646
  }>>;
@@ -2758,7 +2758,7 @@ declare function createGscdumpV1Protocol(): {
2758
2758
  code: z.ZodEnum<{
2759
2759
  missing_refresh_token: "missing_refresh_token";
2760
2760
  missing_analytics_scope: "missing_analytics_scope";
2761
- missing_indexing_scope: "missing_indexing_scope";
2761
+ missing_gsc_read_scope: "missing_gsc_read_scope";
2762
2762
  token_refresh_failed: "token_refresh_failed";
2763
2763
  permission_lost: "permission_lost";
2764
2764
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -3114,7 +3114,7 @@ declare function createGscdumpV1Protocol(): {
3114
3114
  readonly code: z.ZodEnum<{
3115
3115
  missing_refresh_token: "missing_refresh_token";
3116
3116
  missing_analytics_scope: "missing_analytics_scope";
3117
- missing_indexing_scope: "missing_indexing_scope";
3117
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3118
3118
  token_refresh_failed: "token_refresh_failed";
3119
3119
  permission_lost: "permission_lost";
3120
3120
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -3270,7 +3270,7 @@ declare function createGscdumpV1Protocol(): {
3270
3270
  readonly code: z.ZodEnum<{
3271
3271
  missing_refresh_token: "missing_refresh_token";
3272
3272
  missing_analytics_scope: "missing_analytics_scope";
3273
- missing_indexing_scope: "missing_indexing_scope";
3273
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3274
3274
  token_refresh_failed: "token_refresh_failed";
3275
3275
  permission_lost: "permission_lost";
3276
3276
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -3616,7 +3616,7 @@ declare function createGscdumpV1Protocol(): {
3616
3616
  existing: z.ZodOptional<z.ZodBoolean>;
3617
3617
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
3618
3618
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
3619
- missing_indexing_scope: "missing_indexing_scope";
3619
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3620
3620
  insufficient_gsc_permission: "insufficient_gsc_permission";
3621
3621
  free_plan: "free_plan";
3622
3622
  }>>;
@@ -3734,7 +3734,7 @@ declare function createGscdumpV1Protocol(): {
3734
3734
  code: z.ZodEnum<{
3735
3735
  missing_refresh_token: "missing_refresh_token";
3736
3736
  missing_analytics_scope: "missing_analytics_scope";
3737
- missing_indexing_scope: "missing_indexing_scope";
3737
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3738
3738
  token_refresh_failed: "token_refresh_failed";
3739
3739
  permission_lost: "permission_lost";
3740
3740
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -3773,7 +3773,7 @@ declare function createGscdumpV1Protocol(): {
3773
3773
  existing: z.ZodOptional<z.ZodBoolean>;
3774
3774
  indexingEligible: z.ZodOptional<z.ZodBoolean>;
3775
3775
  indexingIneligibleReason: z.ZodOptional<z.ZodEnum<{
3776
- missing_indexing_scope: "missing_indexing_scope";
3776
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3777
3777
  insufficient_gsc_permission: "insufficient_gsc_permission";
3778
3778
  free_plan: "free_plan";
3779
3779
  }>>;
@@ -3891,7 +3891,7 @@ declare function createGscdumpV1Protocol(): {
3891
3891
  code: z.ZodEnum<{
3892
3892
  missing_refresh_token: "missing_refresh_token";
3893
3893
  missing_analytics_scope: "missing_analytics_scope";
3894
- missing_indexing_scope: "missing_indexing_scope";
3894
+ missing_gsc_read_scope: "missing_gsc_read_scope";
3895
3895
  token_refresh_failed: "token_refresh_failed";
3896
3896
  permission_lost: "permission_lost";
3897
3897
  insufficient_gsc_permission: "insufficient_gsc_permission";
@@ -566,7 +566,8 @@ function createGscdumpV1Protocol() {
566
566
  streamId: realtimeSchemas.streamId,
567
567
  sequence: realtimeSchemas.sequence
568
568
  });
569
- const headResponse = defineSuccessResponse(defineResponseObject({ head: responseStreamHead.producer }, { head: responseStreamHead.client }), realtimeResponseMeta);
569
+ const headData = defineResponseObject({ head: responseStreamHead.producer }, { head: responseStreamHead.client });
570
+ const headResponse = defineSuccessResponse(headData, realtimeResponseMeta);
570
571
  const ticketDataProducerShape = {
571
572
  socketUrl: z.url().refine((value) => value.startsWith("wss://"), "socketUrl must use wss."),
572
573
  protocol: z.literal(GSCDUMP_REALTIME_SUBPROTOCOL),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/contracts",
3
3
  "type": "module",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "description": "Shared gscdump.com API, webhook, realtime, and lifecycle contracts.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",