@gscdump/contracts 0.18.3 → 0.18.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
@@ -285,15 +285,103 @@ declare const sitemapHistoryResponseSchema: z.ZodObject<{
285
285
  capturedAt: z.ZodString;
286
286
  }, z.core.$loose>>;
287
287
  }, z.core.$loose>;
288
+ /** Adaptive recheck schedule shape — must match `ScheduleState` in types.ts. */
289
+ declare const scheduleStateSchema: z.ZodObject<{
290
+ nextAt: z.ZodNumber;
291
+ consecutiveUnchanged: z.ZodNumber;
292
+ policyVersion: z.ZodNumber;
293
+ }, z.core.$loose>;
294
+ /**
295
+ * `raw` extension on inspection records. JSON-encoded `string | null`
296
+ * fields surface unchanged from D1; consumers parse on read. `.loose()`
297
+ * preserves forward-compatibility for fields added without a contract bump.
298
+ */
299
+ declare const inspectionRecordRawSchema: z.ZodObject<{
300
+ schedule: z.ZodOptional<z.ZodObject<{
301
+ nextAt: z.ZodNumber;
302
+ consecutiveUnchanged: z.ZodNumber;
303
+ policyVersion: z.ZodNumber;
304
+ }, z.core.$loose>>;
305
+ nextCheckAfter: z.ZodOptional<z.ZodNumber>;
306
+ priority: z.ZodOptional<z.ZodEnum<{
307
+ high: "high";
308
+ medium: "medium";
309
+ low: "low";
310
+ }>>;
311
+ sitemaps: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ referringUrls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ crawlingUserAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ mobileIssues: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ richResultsItems: z.ZodOptional<z.ZodNullable<z.ZodString>>;
316
+ inspectionResultLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
+ }, z.core.$loose>;
288
318
  declare const inspectionHistoryRecordSchema: z.ZodObject<{
289
319
  url: z.ZodString;
290
320
  inspectedAt: z.ZodString;
321
+ indexStatus: z.ZodOptional<z.ZodString>;
322
+ lastCrawlTime: z.ZodOptional<z.ZodString>;
323
+ googleCanonical: z.ZodOptional<z.ZodString>;
324
+ userCanonical: z.ZodOptional<z.ZodString>;
325
+ coverageState: z.ZodOptional<z.ZodString>;
326
+ robotsTxtState: z.ZodOptional<z.ZodString>;
327
+ indexingState: z.ZodOptional<z.ZodString>;
328
+ pageFetchState: z.ZodOptional<z.ZodString>;
329
+ mobileUsabilityVerdict: z.ZodOptional<z.ZodString>;
330
+ richResultsVerdict: z.ZodOptional<z.ZodString>;
331
+ raw: z.ZodOptional<z.ZodObject<{
332
+ schedule: z.ZodOptional<z.ZodObject<{
333
+ nextAt: z.ZodNumber;
334
+ consecutiveUnchanged: z.ZodNumber;
335
+ policyVersion: z.ZodNumber;
336
+ }, z.core.$loose>>;
337
+ nextCheckAfter: z.ZodOptional<z.ZodNumber>;
338
+ priority: z.ZodOptional<z.ZodEnum<{
339
+ high: "high";
340
+ medium: "medium";
341
+ low: "low";
342
+ }>>;
343
+ sitemaps: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
+ referringUrls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ crawlingUserAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ mobileIssues: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
+ richResultsItems: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
+ inspectionResultLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ }, z.core.$loose>>;
291
350
  }, z.core.$loose>;
292
351
  declare const inspectionHistoryResponseSchema: z.ZodObject<{
293
352
  url: z.ZodNullable<z.ZodString>;
294
353
  records: z.ZodArray<z.ZodObject<{
295
354
  url: z.ZodString;
296
355
  inspectedAt: z.ZodString;
356
+ indexStatus: z.ZodOptional<z.ZodString>;
357
+ lastCrawlTime: z.ZodOptional<z.ZodString>;
358
+ googleCanonical: z.ZodOptional<z.ZodString>;
359
+ userCanonical: z.ZodOptional<z.ZodString>;
360
+ coverageState: z.ZodOptional<z.ZodString>;
361
+ robotsTxtState: z.ZodOptional<z.ZodString>;
362
+ indexingState: z.ZodOptional<z.ZodString>;
363
+ pageFetchState: z.ZodOptional<z.ZodString>;
364
+ mobileUsabilityVerdict: z.ZodOptional<z.ZodString>;
365
+ richResultsVerdict: z.ZodOptional<z.ZodString>;
366
+ raw: z.ZodOptional<z.ZodObject<{
367
+ schedule: z.ZodOptional<z.ZodObject<{
368
+ nextAt: z.ZodNumber;
369
+ consecutiveUnchanged: z.ZodNumber;
370
+ policyVersion: z.ZodNumber;
371
+ }, z.core.$loose>>;
372
+ nextCheckAfter: z.ZodOptional<z.ZodNumber>;
373
+ priority: z.ZodOptional<z.ZodEnum<{
374
+ high: "high";
375
+ medium: "medium";
376
+ low: "low";
377
+ }>>;
378
+ sitemaps: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
+ referringUrls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ crawlingUserAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ mobileIssues: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ richResultsItems: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ inspectionResultLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ }, z.core.$loose>>;
297
385
  }, z.core.$loose>>;
298
386
  }, z.core.$loose>;
299
387
  declare const sitemapIndexSchema: z.ZodObject<{
@@ -308,6 +396,35 @@ declare const inspectionIndexSchema: z.ZodObject<{
308
396
  records: z.ZodRecord<z.ZodString, z.ZodObject<{
309
397
  url: z.ZodString;
310
398
  inspectedAt: z.ZodString;
399
+ indexStatus: z.ZodOptional<z.ZodString>;
400
+ lastCrawlTime: z.ZodOptional<z.ZodString>;
401
+ googleCanonical: z.ZodOptional<z.ZodString>;
402
+ userCanonical: z.ZodOptional<z.ZodString>;
403
+ coverageState: z.ZodOptional<z.ZodString>;
404
+ robotsTxtState: z.ZodOptional<z.ZodString>;
405
+ indexingState: z.ZodOptional<z.ZodString>;
406
+ pageFetchState: z.ZodOptional<z.ZodString>;
407
+ mobileUsabilityVerdict: z.ZodOptional<z.ZodString>;
408
+ richResultsVerdict: z.ZodOptional<z.ZodString>;
409
+ raw: z.ZodOptional<z.ZodObject<{
410
+ schedule: z.ZodOptional<z.ZodObject<{
411
+ nextAt: z.ZodNumber;
412
+ consecutiveUnchanged: z.ZodNumber;
413
+ policyVersion: z.ZodNumber;
414
+ }, z.core.$loose>>;
415
+ nextCheckAfter: z.ZodOptional<z.ZodNumber>;
416
+ priority: z.ZodOptional<z.ZodEnum<{
417
+ high: "high";
418
+ medium: "medium";
419
+ low: "low";
420
+ }>>;
421
+ sitemaps: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ referringUrls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ crawlingUserAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ mobileIssues: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
+ richResultsItems: z.ZodOptional<z.ZodNullable<z.ZodString>>;
426
+ inspectionResultLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
+ }, z.core.$loose>>;
311
428
  }, z.core.$loose>>;
312
429
  }, z.core.$loose>;
313
430
  declare const rollupEnvelopeSchema: z.ZodObject<{
@@ -2152,6 +2269,35 @@ declare const partnerEndpointSchemas: {
2152
2269
  records: z.ZodArray<z.ZodObject<{
2153
2270
  url: z.ZodString;
2154
2271
  inspectedAt: z.ZodString;
2272
+ indexStatus: z.ZodOptional<z.ZodString>;
2273
+ lastCrawlTime: z.ZodOptional<z.ZodString>;
2274
+ googleCanonical: z.ZodOptional<z.ZodString>;
2275
+ userCanonical: z.ZodOptional<z.ZodString>;
2276
+ coverageState: z.ZodOptional<z.ZodString>;
2277
+ robotsTxtState: z.ZodOptional<z.ZodString>;
2278
+ indexingState: z.ZodOptional<z.ZodString>;
2279
+ pageFetchState: z.ZodOptional<z.ZodString>;
2280
+ mobileUsabilityVerdict: z.ZodOptional<z.ZodString>;
2281
+ richResultsVerdict: z.ZodOptional<z.ZodString>;
2282
+ raw: z.ZodOptional<z.ZodObject<{
2283
+ schedule: z.ZodOptional<z.ZodObject<{
2284
+ nextAt: z.ZodNumber;
2285
+ consecutiveUnchanged: z.ZodNumber;
2286
+ policyVersion: z.ZodNumber;
2287
+ }, z.core.$loose>>;
2288
+ nextCheckAfter: z.ZodOptional<z.ZodNumber>;
2289
+ priority: z.ZodOptional<z.ZodEnum<{
2290
+ high: "high";
2291
+ medium: "medium";
2292
+ low: "low";
2293
+ }>>;
2294
+ sitemaps: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2295
+ referringUrls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2296
+ crawlingUserAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2297
+ mobileIssues: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2298
+ richResultsItems: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2299
+ inspectionResultLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2300
+ }, z.core.$loose>>;
2155
2301
  }, z.core.$loose>>;
2156
2302
  }, z.core.$loose>;
2157
2303
  };
@@ -2161,6 +2307,35 @@ declare const partnerEndpointSchemas: {
2161
2307
  records: z.ZodRecord<z.ZodString, z.ZodObject<{
2162
2308
  url: z.ZodString;
2163
2309
  inspectedAt: z.ZodString;
2310
+ indexStatus: z.ZodOptional<z.ZodString>;
2311
+ lastCrawlTime: z.ZodOptional<z.ZodString>;
2312
+ googleCanonical: z.ZodOptional<z.ZodString>;
2313
+ userCanonical: z.ZodOptional<z.ZodString>;
2314
+ coverageState: z.ZodOptional<z.ZodString>;
2315
+ robotsTxtState: z.ZodOptional<z.ZodString>;
2316
+ indexingState: z.ZodOptional<z.ZodString>;
2317
+ pageFetchState: z.ZodOptional<z.ZodString>;
2318
+ mobileUsabilityVerdict: z.ZodOptional<z.ZodString>;
2319
+ richResultsVerdict: z.ZodOptional<z.ZodString>;
2320
+ raw: z.ZodOptional<z.ZodObject<{
2321
+ schedule: z.ZodOptional<z.ZodObject<{
2322
+ nextAt: z.ZodNumber;
2323
+ consecutiveUnchanged: z.ZodNumber;
2324
+ policyVersion: z.ZodNumber;
2325
+ }, z.core.$loose>>;
2326
+ nextCheckAfter: z.ZodOptional<z.ZodNumber>;
2327
+ priority: z.ZodOptional<z.ZodEnum<{
2328
+ high: "high";
2329
+ medium: "medium";
2330
+ low: "low";
2331
+ }>>;
2332
+ sitemaps: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2333
+ referringUrls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2334
+ crawlingUserAgent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2335
+ mobileIssues: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2336
+ richResultsItems: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2337
+ inspectionResultLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2338
+ }, z.core.$loose>>;
2164
2339
  }, z.core.$loose>>;
2165
2340
  }, z.core.$loose>;
2166
2341
  };
@@ -3480,6 +3655,37 @@ interface SitemapHistoryResponse {
3480
3655
  path: string | null;
3481
3656
  snapshots: SitemapHistoryRecord[];
3482
3657
  }
3658
+ /**
3659
+ * Wire-format extension carried under `InspectionHistoryRecord.raw`.
3660
+ *
3661
+ * Source of truth: D1 `url_indexing_status` (per the 2026-05-19 redesign).
3662
+ * Most fields are JSON-encoded TEXT in D1 and surface here unchanged as
3663
+ * `string | null`; consumers parse on read.
3664
+ *
3665
+ * Additional keys are tolerated (`[key: string]: unknown`) for
3666
+ * forward-compatibility — new fields can ship without a contract bump.
3667
+ */
3668
+ interface InspectionRecordRaw {
3669
+ /** Adaptive recheck schedule owned by `inspectionPolicy.observe`. */
3670
+ schedule?: ScheduleState;
3671
+ /** Unix seconds. Mirrors the `next_check_after` column. */
3672
+ nextCheckAfter?: number;
3673
+ /** Mirrors the `next_check_priority` column. */
3674
+ priority?: 'high' | 'medium' | 'low';
3675
+ /** JSON-encoded `string[]` of sitemap URLs containing this URL. */
3676
+ sitemaps?: string | null;
3677
+ /** JSON-encoded `string[]` of referring URLs Google reported. */
3678
+ referringUrls?: string | null;
3679
+ /** Crawler that fetched the URL (`Googlebot smartphone` etc.). */
3680
+ crawlingUserAgent?: string | null;
3681
+ /** JSON-encoded mobile-usability issues. */
3682
+ mobileIssues?: string | null;
3683
+ /** JSON-encoded rich-results items array. */
3684
+ richResultsItems?: string | null;
3685
+ /** Deep link into the GSC URL Inspection tool. */
3686
+ inspectionResultLink?: string | null;
3687
+ [key: string]: unknown;
3688
+ }
3483
3689
  interface InspectionHistoryRecord {
3484
3690
  url: string;
3485
3691
  inspectedAt: string;
@@ -3493,10 +3699,7 @@ interface InspectionHistoryRecord {
3493
3699
  pageFetchState?: string;
3494
3700
  mobileUsabilityVerdict?: string;
3495
3701
  richResultsVerdict?: string;
3496
- raw?: {
3497
- schedule?: ScheduleState;
3498
- [key: string]: unknown;
3499
- };
3702
+ raw?: InspectionRecordRaw;
3500
3703
  }
3501
3704
  interface InspectionHistoryResponse {
3502
3705
  url: string | null;
@@ -4781,4 +4984,4 @@ declare const WEBHOOK_CONTRACT_VERSION_HEADER = "X-GSCDump-Contract-Version";
4781
4984
  declare const WEBHOOK_TIMESTAMP_HEADER = "X-GSCDump-Timestamp";
4782
4985
  declare const CANONICAL_WEBHOOK_EVENTS: readonly ["user.lifecycle.changed", "site.lifecycle.changed", "site.analytics.ready", "site.indexing.ready", "site.auth.failed", "job.failed"];
4783
4986
  declare const VALID_WEBHOOK_EVENTS: readonly ["user.lifecycle.changed", "site.lifecycle.changed", "site.analytics.ready", "site.indexing.ready", "site.auth.failed", "job.failed"];
4784
- export { AccountNextAction, AccountStatus, type AddPartnerTeamMemberParams, type AnalysisSourcesResponse, type AnalyticsClient, AnalyticsNextAction, AnalyticsStatus, type BackfillRange, type BackfillResponse, type BindPartnerSiteTeamParams, type BuilderState, type BulkRegisterPartnerSiteResult, type BulkRegisterPartnerSitesParams, type BulkRegisterPartnerSitesResponse, CANONICAL_WEBHOOK_EVENTS, type CanonicalWebhookEventType, type ColumnDef, type ColumnType, type CountriesResponse, type CountryRow, type CreatePartnerTeamParams, type CreateWebhookEnvelopeOptions, type DataDetailOptions, type DataQueryOptions, type DeletePartnerUserResponse, type Dimension, type Filter, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, type Grain, type GscApiRange, type GscComparisonFilter, type GscRowQueryMeta, type GscRowQueryResponse, type GscSearchAnalyticsDimension, type GscSearchAnalyticsFilter, type GscSearchAnalyticsFilterGroup, type GscSearchAnalyticsFilterOperator, type GscSearchAnalyticsRequest, type GscSearchAnalyticsResponse, type GscSearchAnalyticsRow, type GscSearchType, type GscdumpAnalysisParams, type GscdumpAnalysisPreset, type GscdumpAnalysisResponse, type GscdumpAnalysisSourcesResponse, type GscdumpAvailableSite, type GscdumpCanonicalMismatchRow, type GscdumpCanonicalMismatchesResponse, type GscdumpDataDetailResponse, type GscdumpDataResponse, type GscdumpDataRow, type GscdumpDateRangeParams, type GscdumpHealthResponse, type GscdumpIndexPercentResponse, type GscdumpIndexPercentSitemap, type GscdumpIndexPercentTrendPoint, type GscdumpIndexingDiagnosticsResponse, type GscdumpIndexingInspectRateLimited, type GscdumpIndexingInspectRequest, type GscdumpIndexingInspectResponse, type GscdumpIndexingInspectResult, type GscdumpIndexingResponse, type GscdumpIndexingTrendPoint, type GscdumpIndexingUrl, type GscdumpIndexingUrlStatus, type GscdumpIndexingUrlsResponse, type GscdumpInvisibleUrlRow, type GscdumpKeywordSparklinesParams, type GscdumpKeywordSparklinesResponse, type GscdumpMeta, type GscdumpOrphanPageRow, type GscdumpPerSitemapHistoryEntry, type GscdumpPermissionRecovery, type GscdumpQueryTrendParams, type GscdumpQueryTrendResponse, type GscdumpSiteRegistration, type GscdumpSiteReportResponse, type GscdumpSitemap, type GscdumpSitemapChangesResponse, type GscdumpSitemapHistory, type GscdumpSitemapsResponse, type GscdumpSyncJobItem, type GscdumpSyncJobStatus, type GscdumpSyncJobsQueueCounts, type GscdumpSyncJobsResponse, type GscdumpSyncProgressDateStatus, type GscdumpSyncProgressPhaseCounts, type GscdumpSyncProgressResponse, type GscdumpSyncProgressSite, type GscdumpSyncStatusResponse, type GscdumpTeamMemberRow, type GscdumpTeamRow, type GscdumpTopAssociationParams, type GscdumpTopAssociationResponse, type GscdumpTotals, type GscdumpUserMeResponse, type GscdumpUserRegistration, type GscdumpUserSettings, type GscdumpUserSite, type GscdumpUserStatus, type GscdumpUserTokenUpdate, type IndexingDiagnostics, type IndexingInspectRateLimit, type IndexingInspectRateLimited, type IndexingInspectRequest, type IndexingInspectResponse, type IndexingInspectResult, type IndexingIssue, type IndexingIssueSeverity, IndexingNextAction, IndexingStatus, type IndexingUrlRow, type IndexingUrlStatus, type IndexingUrlsParams, type IndexingUrlsResponse, type InspectionHistoryRecord, type InspectionHistoryResponse, type InspectionIndex, LifecycleError, LifecycleErrorCode, LifecycleProgress, LifecycleWebhookEnvelope, LifecycleWebhookEvent, type Metric, type PartnerClient, PartnerLifecycleAccount, PartnerLifecycleResponse, PartnerLifecycleSite, type PartnerRealtimeEvent, type PartnerRealtimeEventType, type PartnerRealtimeMessage, type PartnerWebhookData, type PartnerWebhookHeaders, PropertyNextAction, PropertyStatus, QuerySourceMode, type RealtimeAuthFailedEvent, type RealtimeAuthRequiredMessage, type RealtimeConnectedMessage, type RealtimeEnrichmentCompleteEvent, type RealtimeErrorMessage, type RealtimeJobFailedEvent, type RealtimeNeedsReauthEvent, type RealtimePongMessage, type RealtimeSiteAddedEvent, type RealtimeSiteRemovedEvent, type RealtimeSubscribedMessage, type RealtimeSyncCompleteEvent, type RealtimeSyncFailedEvent, type RealtimeSyncJobCompleteEvent, type RealtimeSyncProgressEvent, type RealtimeSyncSiteCompleteEvent, type RegisterPartnerSiteParams, type RegisterPartnerUserParams, type RollupEnvelope, type Row, type ScheduleState, type SearchAppearanceResponse, type SearchAppearanceRow, type SiteListItem, type SitemapAddedRow, type SitemapChangesResponse, type SitemapHistoryRecord, type SitemapHistoryResponse, type SitemapIndex, SitemapNextAction, type SitemapRemovedRow, SitemapStatus, type SourceInfoResponse, type TableName, type TableSchema, type TenantCtx, type UpdatePartnerUserTokensParams, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, type WebhookEnvelope, type WebhookEventType, type WhoamiResponse, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsNextActions, analyticsRoutes, analyticsStatuses, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, builderStateSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDateRangeParamsSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlStatusSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, jobFailedWebhookPayloadSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, lifecycleWebhookEvents, parseGrantedScopes, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerRoutes, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, querySourceModes, registerPartnerSiteSchema, registerPartnerUserSchema, rollupEnvelopeSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, siteListItemSchema, sitemapChangesResponseSchema, sitemapHistoryRecordSchema, sitemapHistoryResponseSchema, sitemapIndexSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, updatePartnerUserTokensSchema, webhookEventTypeSchema, whoamiResponseSchema };
4987
+ export { AccountNextAction, AccountStatus, type AddPartnerTeamMemberParams, type AnalysisSourcesResponse, type AnalyticsClient, AnalyticsNextAction, AnalyticsStatus, type BackfillRange, type BackfillResponse, type BindPartnerSiteTeamParams, type BuilderState, type BulkRegisterPartnerSiteResult, type BulkRegisterPartnerSitesParams, type BulkRegisterPartnerSitesResponse, CANONICAL_WEBHOOK_EVENTS, type CanonicalWebhookEventType, type ColumnDef, type ColumnType, type CountriesResponse, type CountryRow, type CreatePartnerTeamParams, type CreateWebhookEnvelopeOptions, type DataDetailOptions, type DataQueryOptions, type DeletePartnerUserResponse, type Dimension, type Filter, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, type Grain, type GscApiRange, type GscComparisonFilter, type GscRowQueryMeta, type GscRowQueryResponse, type GscSearchAnalyticsDimension, type GscSearchAnalyticsFilter, type GscSearchAnalyticsFilterGroup, type GscSearchAnalyticsFilterOperator, type GscSearchAnalyticsRequest, type GscSearchAnalyticsResponse, type GscSearchAnalyticsRow, type GscSearchType, type GscdumpAnalysisParams, type GscdumpAnalysisPreset, type GscdumpAnalysisResponse, type GscdumpAnalysisSourcesResponse, type GscdumpAvailableSite, type GscdumpCanonicalMismatchRow, type GscdumpCanonicalMismatchesResponse, type GscdumpDataDetailResponse, type GscdumpDataResponse, type GscdumpDataRow, type GscdumpDateRangeParams, type GscdumpHealthResponse, type GscdumpIndexPercentResponse, type GscdumpIndexPercentSitemap, type GscdumpIndexPercentTrendPoint, type GscdumpIndexingDiagnosticsResponse, type GscdumpIndexingInspectRateLimited, type GscdumpIndexingInspectRequest, type GscdumpIndexingInspectResponse, type GscdumpIndexingInspectResult, type GscdumpIndexingResponse, type GscdumpIndexingTrendPoint, type GscdumpIndexingUrl, type GscdumpIndexingUrlStatus, type GscdumpIndexingUrlsResponse, type GscdumpInvisibleUrlRow, type GscdumpKeywordSparklinesParams, type GscdumpKeywordSparklinesResponse, type GscdumpMeta, type GscdumpOrphanPageRow, type GscdumpPerSitemapHistoryEntry, type GscdumpPermissionRecovery, type GscdumpQueryTrendParams, type GscdumpQueryTrendResponse, type GscdumpSiteRegistration, type GscdumpSiteReportResponse, type GscdumpSitemap, type GscdumpSitemapChangesResponse, type GscdumpSitemapHistory, type GscdumpSitemapsResponse, type GscdumpSyncJobItem, type GscdumpSyncJobStatus, type GscdumpSyncJobsQueueCounts, type GscdumpSyncJobsResponse, type GscdumpSyncProgressDateStatus, type GscdumpSyncProgressPhaseCounts, type GscdumpSyncProgressResponse, type GscdumpSyncProgressSite, type GscdumpSyncStatusResponse, type GscdumpTeamMemberRow, type GscdumpTeamRow, type GscdumpTopAssociationParams, type GscdumpTopAssociationResponse, type GscdumpTotals, type GscdumpUserMeResponse, type GscdumpUserRegistration, type GscdumpUserSettings, type GscdumpUserSite, type GscdumpUserStatus, type GscdumpUserTokenUpdate, type IndexingDiagnostics, type IndexingInspectRateLimit, type IndexingInspectRateLimited, type IndexingInspectRequest, type IndexingInspectResponse, type IndexingInspectResult, type IndexingIssue, type IndexingIssueSeverity, IndexingNextAction, IndexingStatus, type IndexingUrlRow, type IndexingUrlStatus, type IndexingUrlsParams, type IndexingUrlsResponse, type InspectionHistoryRecord, type InspectionHistoryResponse, type InspectionIndex, type InspectionRecordRaw, LifecycleError, LifecycleErrorCode, LifecycleProgress, LifecycleWebhookEnvelope, LifecycleWebhookEvent, type Metric, type PartnerClient, PartnerLifecycleAccount, PartnerLifecycleResponse, PartnerLifecycleSite, type PartnerRealtimeEvent, type PartnerRealtimeEventType, type PartnerRealtimeMessage, type PartnerWebhookData, type PartnerWebhookHeaders, PropertyNextAction, PropertyStatus, QuerySourceMode, type RealtimeAuthFailedEvent, type RealtimeAuthRequiredMessage, type RealtimeConnectedMessage, type RealtimeEnrichmentCompleteEvent, type RealtimeErrorMessage, type RealtimeJobFailedEvent, type RealtimeNeedsReauthEvent, type RealtimePongMessage, type RealtimeSiteAddedEvent, type RealtimeSiteRemovedEvent, type RealtimeSubscribedMessage, type RealtimeSyncCompleteEvent, type RealtimeSyncFailedEvent, type RealtimeSyncJobCompleteEvent, type RealtimeSyncProgressEvent, type RealtimeSyncSiteCompleteEvent, type RegisterPartnerSiteParams, type RegisterPartnerUserParams, type RollupEnvelope, type Row, type ScheduleState, type SearchAppearanceResponse, type SearchAppearanceRow, type SiteListItem, type SitemapAddedRow, type SitemapChangesResponse, type SitemapHistoryRecord, type SitemapHistoryResponse, type SitemapIndex, SitemapNextAction, type SitemapRemovedRow, SitemapStatus, type SourceInfoResponse, type TableName, type TableSchema, type TenantCtx, type UpdatePartnerUserTokensParams, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, type WebhookEnvelope, type WebhookEventType, type WhoamiResponse, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsNextActions, analyticsRoutes, analyticsStatuses, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, builderStateSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDateRangeParamsSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlStatusSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, jobFailedWebhookPayloadSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, lifecycleWebhookEvents, parseGrantedScopes, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerRoutes, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, querySourceModes, registerPartnerSiteSchema, registerPartnerUserSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, siteListItemSchema, sitemapChangesResponseSchema, sitemapHistoryRecordSchema, sitemapHistoryResponseSchema, sitemapIndexSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, updatePartnerUserTokensSchema, webhookEventTypeSchema, whoamiResponseSchema };
package/dist/index.mjs CHANGED
@@ -277,9 +277,40 @@ const sitemapHistoryResponseSchema = z.object({
277
277
  path: z.string().nullable(),
278
278
  snapshots: z.array(sitemapHistoryRecordSchema)
279
279
  }).loose();
280
+ const scheduleStateSchema = z.object({
281
+ nextAt: z.number(),
282
+ consecutiveUnchanged: z.number(),
283
+ policyVersion: z.number()
284
+ }).loose();
285
+ const inspectionRecordRawSchema = z.object({
286
+ schedule: scheduleStateSchema.optional(),
287
+ nextCheckAfter: z.number().optional(),
288
+ priority: z.enum([
289
+ "high",
290
+ "medium",
291
+ "low"
292
+ ]).optional(),
293
+ sitemaps: z.string().nullable().optional(),
294
+ referringUrls: z.string().nullable().optional(),
295
+ crawlingUserAgent: z.string().nullable().optional(),
296
+ mobileIssues: z.string().nullable().optional(),
297
+ richResultsItems: z.string().nullable().optional(),
298
+ inspectionResultLink: z.string().nullable().optional()
299
+ }).loose();
280
300
  const inspectionHistoryRecordSchema = z.object({
281
301
  url: z.string(),
282
- inspectedAt: z.string()
302
+ inspectedAt: z.string(),
303
+ indexStatus: z.string().optional(),
304
+ lastCrawlTime: z.string().optional(),
305
+ googleCanonical: z.string().optional(),
306
+ userCanonical: z.string().optional(),
307
+ coverageState: z.string().optional(),
308
+ robotsTxtState: z.string().optional(),
309
+ indexingState: z.string().optional(),
310
+ pageFetchState: z.string().optional(),
311
+ mobileUsabilityVerdict: z.string().optional(),
312
+ richResultsVerdict: z.string().optional(),
313
+ raw: inspectionRecordRawSchema.optional()
283
314
  }).loose();
284
315
  const inspectionHistoryResponseSchema = z.object({
285
316
  url: z.string().nullable(),
@@ -1417,4 +1448,4 @@ const partnerEndpointSchemas = {
1417
1448
  realtimeEvent: { message: partnerRealtimeEventSchema },
1418
1449
  webhook: { message: partnerWebhookEnvelopeSchema }
1419
1450
  };
1420
- export { CANONICAL_WEBHOOK_EVENTS, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsNextActions, analyticsRoutes, analyticsStatuses, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, builderStateSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDateRangeParamsSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlStatusSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, jobFailedWebhookPayloadSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, lifecycleWebhookEvents, parseGrantedScopes, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerRoutes, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, querySourceModes, registerPartnerSiteSchema, registerPartnerUserSchema, rollupEnvelopeSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, siteListItemSchema, sitemapChangesResponseSchema, sitemapHistoryRecordSchema, sitemapHistoryResponseSchema, sitemapIndexSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, updatePartnerUserTokensSchema, webhookEventTypeSchema, whoamiResponseSchema };
1451
+ export { CANONICAL_WEBHOOK_EVENTS, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsNextActions, analyticsRoutes, analyticsStatuses, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, builderStateSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDateRangeParamsSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlStatusSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, jobFailedWebhookPayloadSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, lifecycleWebhookEvents, parseGrantedScopes, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerRoutes, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, querySourceModes, registerPartnerSiteSchema, registerPartnerUserSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, siteListItemSchema, sitemapChangesResponseSchema, sitemapHistoryRecordSchema, sitemapHistoryResponseSchema, sitemapIndexSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, updatePartnerUserTokensSchema, webhookEventTypeSchema, whoamiResponseSchema };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/contracts",
3
3
  "type": "module",
4
- "version": "0.18.3",
4
+ "version": "0.18.5",
5
5
  "description": "Shared gscdump.com API, webhook, realtime, and lifecycle contracts.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",