@gscdump/contracts 4.7.0 → 5.0.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.
- package/dist/endpoints.d.mts +4 -4
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/indexing-coverage.d.mts +18 -18
- package/dist/record-read.d.mts +45 -0
- package/dist/record-read.mjs +22 -0
- package/dist/schemas.d.mts +13 -16
- package/dist/schemas.mjs +0 -1
- package/dist/types.d.mts +0 -1
- package/dist/v1/bing-sites.d.mts +750 -0
- package/dist/v1/bing-sites.mjs +214 -0
- package/dist/v1/http.d.mts +3 -1
- package/dist/v1/http.mjs +3 -1
- package/dist/v1/index.d.mts +3 -1
- package/dist/v1/index.mjs +3 -1
- package/dist/v1/operations.d.mts +2812 -880
- package/dist/v1/operations.mjs +408 -0
- package/dist/v1/route-catalog.d.mts +30 -0
- package/dist/v1/route-catalog.mjs +30 -0
- package/dist/v1/sitemap-submission.d.mts +301 -0
- package/dist/v1/sitemap-submission.mjs +123 -0
- package/package.json +1 -1
package/dist/endpoints.d.mts
CHANGED
|
@@ -1076,8 +1076,8 @@ export declare const partnerEndpoints: {
|
|
|
1076
1076
|
status: import("zod").ZodEnum<{
|
|
1077
1077
|
error: "error";
|
|
1078
1078
|
registered: "registered";
|
|
1079
|
-
not_found: "not_found";
|
|
1080
1079
|
already_exists: "already_exists";
|
|
1080
|
+
not_found: "not_found";
|
|
1081
1081
|
}>;
|
|
1082
1082
|
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1083
1083
|
site: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
@@ -1431,19 +1431,19 @@ export declare const partnerEndpoints: {
|
|
|
1431
1431
|
_tag: import("zod").ZodLiteral<"counted">;
|
|
1432
1432
|
capturedAt: import("zod").ZodString;
|
|
1433
1433
|
counts: import("zod").ZodObject<{
|
|
1434
|
+
indexed: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1435
|
+
not_found: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1436
|
+
redirect: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1434
1437
|
unknown_to_google: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1435
1438
|
discovered_not_indexed: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1436
1439
|
crawled_not_indexed: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1437
|
-
indexed: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1438
1440
|
noindex: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1439
1441
|
blocked_robots: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1440
1442
|
soft_404: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1441
|
-
not_found: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1442
1443
|
server_error: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1443
1444
|
access_denied: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1444
1445
|
access_forbidden: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1445
1446
|
blocked_4xx: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1446
|
-
redirect: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1447
1447
|
redirect_error: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1448
1448
|
alternate_canonical: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1449
1449
|
duplicate_no_canonical: import("zod").ZodDefault<import("zod").ZodNumber>;
|
package/dist/index.d.mts
CHANGED
|
@@ -7,5 +7,6 @@ import { COVERAGE_LADDER, COVERAGE_STATE_TAGS, CoverageLadderTag, CoverageStateC
|
|
|
7
7
|
import { AccountNextAction, AccountStatus, AnalyticsNextAction, AnalyticsStatus, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, GSCDUMP_WRITE_ANALYTICS_SCOPE, IndexingNextAction, IndexingStatus, LifecycleError, LifecycleErrorCode, LifecycleProgress, LifecycleWebhookEnvelope, LifecycleWebhookEvent, PartnerLifecycleAccount, PartnerLifecycleResponse, PartnerLifecycleSite, PropertyNextAction, PropertyStatus, QuerySourceMode, SitemapNextAction, SitemapStatus, accountNextActions, accountStatuses, analyticsNextActions, analyticsStatuses, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingNextActions, indexingStatuses, lifecycleErrorCodes, parseGrantedScopes, propertyNextActions, propertyStatuses, querySourceModes, sitemapNextActions, sitemapStatuses } from "./onboarding.mjs";
|
|
8
8
|
import { AddPartnerTeamMemberParams, AnalysisSourcesOptions, AnalysisSourcesResponse, BackfillRange, BackfillResponse, BindPartnerSiteTeamParams, BindPartnerTeamCatalogParams, BindPartnerTeamCatalogResponse, BuilderStateWire, BulkRegisterPartnerSiteResult, BulkRegisterPartnerSitesParams, BulkRegisterPartnerSitesResponse, CanonicalWebhookEnvelope, CanonicalWebhookEventData, CanonicalWebhookEventType, ColumnDef, ColumnType, CountriesResponse, CountryRow, CreatePartnerTeamParams, CreateWebhookEnvelopeOptions, DataDetailOptions, DataQueryOptions, DeletePartnerUserResponse, Dimension, Filter, Grain, GscAddAndVerifyResponse, GscApiRange, GscComparisonFilter, GscRowQueryMeta, GscRowQueryResponse, GscVerificationDnsRecord, GscVerificationMethod, GscVerificationRequest, GscVerificationSite, GscVerificationTokenResponse, GscdumpAnalysisBundleParams, GscdumpAnalysisBundleResponse, GscdumpAnalysisParams, GscdumpAnalysisPreset, GscdumpAnalysisResponse, GscdumpAnalysisSourcesResponse, GscdumpAvailableSite, GscdumpCanonicalDifferenceKind, GscdumpCanonicalMismatchRow, GscdumpCanonicalMismatchesResponse, GscdumpDataDetailResponse, GscdumpDataResponse, GscdumpDataRow, GscdumpHealthResponse, GscdumpIndexPercentResponse, GscdumpIndexPercentSitemap, GscdumpIndexPercentTrendPoint, GscdumpIndexingDiagnosticsResponse, GscdumpIndexingInspectRateLimited, GscdumpIndexingInspectRequest, GscdumpIndexingInspectResponse, GscdumpIndexingInspectResult, GscdumpIndexingIssueSeverity, GscdumpIndexingResponse, GscdumpIndexingTrendPoint, GscdumpIndexingUrl, GscdumpIndexingUrlStatus, GscdumpIndexingUrlsResponse, GscdumpInvisibleUrlRow, GscdumpKeywordSparklinesParams, GscdumpKeywordSparklinesResponse, GscdumpMeta, GscdumpOrphanPageRow, GscdumpPageTrendParams, GscdumpPageTrendResponse, GscdumpPerSitemapHistoryEntry, GscdumpPermissionRecovery, GscdumpQueryTrendParams, GscdumpQueryTrendResponse, GscdumpRichResultItem, GscdumpSiteIntIdCrosswalkEntry, GscdumpSiteIntIdCrosswalkResponse, GscdumpSiteRegistration, GscdumpSiteReportResponse, GscdumpSitemap, GscdumpSitemapChangesResponse, GscdumpSitemapExportResponse, GscdumpSitemapGeneration, GscdumpSitemapHistory, GscdumpSitemapMembershipEvidence, GscdumpSitemapMembershipParams, GscdumpSitemapMembershipResponse, GscdumpSitemapUrlsResponse, GscdumpSitemapsResponse, GscdumpSyncJobItem, GscdumpSyncJobStatus, GscdumpSyncJobsQueueCounts, GscdumpSyncJobsResponse, GscdumpSyncProgressDateStatus, GscdumpSyncProgressPhaseCounts, GscdumpSyncProgressResponse, GscdumpSyncProgressSite, GscdumpSyncStatusResponse, GscdumpTeamCatalogRef, GscdumpTeamMemberRow, GscdumpTeamRow, GscdumpTopAssociationParams, GscdumpTopAssociationResponse, GscdumpTotals, GscdumpUserMeResponse, GscdumpUserRegistration, GscdumpUserSettings, GscdumpUserSite, GscdumpUserStatus, GscdumpUserTokenUpdate, IndexingDiagnostics, IndexingDiagnosticsParams, IndexingInspectRateLimit, IndexingInspectRateLimited, IndexingInspectRequest, IndexingInspectResponse, IndexingInspectResult, IndexingIssue, IndexingIssueSeverity, IndexingUrlRow, IndexingUrlStatus, IndexingUrlsParams, IndexingUrlsResponse, InspectionHistoryRecord, InspectionHistoryResponse, InspectionIndex, InspectionRecordRaw, Metric, PartnerSitemapAction, PartnerSitemapActionResponse, PartnerWebhookData, PartnerWebhookHeaders, RegisterPartnerSiteParams, RegisterPartnerUserParams, RollupEnvelope, Row, ScheduleState, SearchAppearanceResponse, SearchAppearanceRow, SearchTypeOptions, SiteListItem, SitemapAddedRow, SitemapChangesCompleteness, SitemapChangesResponse, SitemapRemovedRow, SourceInfoOptions, SourceInfoResponse, TableName, TableSchema, TenantCtx, UpdatePartnerUserTokensParams, WebhookEnvelope, WebhookEventType, WhoamiResponse } from "./types.mjs";
|
|
9
9
|
import { ARCHETYPE_EXECUTION_CLASS, ArbitrarySqlQuery, ArchetypeExecutionClass, ArchetypeFacet, ArchetypeQuery, ArchetypeQueryBase, ArchetypeResult, ArchetypeResultRow, ArchetypeResultSource, AuxCloudOnlyQuery, DateRange, EntityDailySparklineQuery, EntityDailyTimeseriesQuery, MultiSeriesStackedDailyQuery, QueryArchetype, ResolvedArchetypeQuery, SingleRowLookupQuery, SiteDailyTimeseriesQuery, TopNBreakdownOptions, TopNBreakdownQuery, TwoDimensionDetailOptions, TwoDimensionDetailQuery, WireDateRange, arbitrarySql, entityDailySparkline, entityDailyTimeseries, multiSeriesStackedDaily, singleRowLookup, siteDailyTimeseries, topNBreakdown, twoDimensionDetail } from "./archetypes.mjs";
|
|
10
|
+
import { RECORD_READ_REFUSAL_REASONS, RecordReadRefusal, RecordReadRefusalReason, parseRecordReadRefusal, recordReadRefusalSchema } from "./record-read.mjs";
|
|
10
11
|
import { CANONICAL_WEBHOOK_EVENTS, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER } from "./webhook-constants.mjs";
|
|
11
|
-
export { ALLOWANCE_NOTICE_METERS, ALLOWANCE_NOTICE_THRESHOLDS, ARCHETYPE_EXECUTION_CLASS, AccountNextAction, AccountStatus, type AddPartnerTeamMemberParams, AllowanceNoticeMeter, AllowanceNoticeThreshold, type AnalysisSourcesOptions, type AnalysisSourcesResponse, AnalyticsNextAction, AnalyticsStatus, ArbitrarySqlQuery, ArchetypeExecutionClass, ArchetypeFacet, ArchetypeQuery, ArchetypeQueryBase, ArchetypeResult, ArchetypeResultRow, ArchetypeResultSource, AuxCloudOnlyQuery, type BackfillRange, type BackfillResponse, type BindPartnerSiteTeamParams, type BindPartnerTeamCatalogParams, type BindPartnerTeamCatalogResponse, type BuilderStateWire, type BulkFileResolutionRequest, type BulkFileResolutionResponse, type BulkRegisterPartnerSiteResult, type BulkRegisterPartnerSitesParams, type BulkRegisterPartnerSitesResponse, CANONICAL_WEBHOOK_EVENTS, COVERAGE_LADDER, COVERAGE_STATE_TAGS, type CanonicalWebhookEnvelope, type CanonicalWebhookEventData, type CanonicalWebhookEventType, type ColumnDef, type ColumnType, type CountriesResponse, type CountryRow, CoverageLadderTag, CoverageStateCounts, CoverageStateTag, CoverageStatesPoint, type CreatePartnerTeamParams, type CreateWebhookEnvelopeOptions, type DataDetailOptions, type DataQueryOptions, DateRange, type DeletePartnerUserResponse, type Dimension, ENTITLEMENT_REFUSAL_REASONS, EntitlementRefusal, EntitlementRefusalReason, EntityDailySparklineQuery, EntityDailyTimeseriesQuery, type FileResolutionRequest, type FileResolutionResponse, type FileResolutionTable, type Filter, GSCDUMP_INDEXING_TRANSITION_FIELDS, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, GSCDUMP_WRITE_ANALYTICS_SCOPE, GSC_SEARCH_TYPES, type Grain, type GscAddAndVerifyResponse, type GscApiRange, type GscComparisonFilter, type GscRowQueryMeta, type GscRowQueryResponse, GscSearchType, type GscVerificationDnsRecord, type GscVerificationMethod, type GscVerificationRequest, type GscVerificationSite, type GscVerificationTokenResponse, type GscdumpAnalysisBundleParams, type GscdumpAnalysisBundleResponse, type GscdumpAnalysisParams, type GscdumpAnalysisPreset, type GscdumpAnalysisResponse, type GscdumpAnalysisSourcesResponse, type GscdumpAvailableSite, type GscdumpCanonicalDifferenceKind, type GscdumpCanonicalMismatchRow, type GscdumpCanonicalMismatchesResponse, type GscdumpDataDetailResponse, type GscdumpDataResponse, type GscdumpDataRow, type GscdumpHealthResponse, type GscdumpIndexPercentResponse, type GscdumpIndexPercentSitemap, type GscdumpIndexPercentTrendPoint, type GscdumpIndexingDiagnosticsResponse, type GscdumpIndexingInspectRateLimited, type GscdumpIndexingInspectRequest, type GscdumpIndexingInspectResponse, type GscdumpIndexingInspectResult, type GscdumpIndexingIssueSeverity, type GscdumpIndexingResponse, type GscdumpIndexingTrendPoint, type GscdumpIndexingUrl, type GscdumpIndexingUrlStatus, type GscdumpIndexingUrlsResponse, type GscdumpInvisibleUrlRow, type GscdumpKeywordSparklinesParams, type GscdumpKeywordSparklinesResponse, type GscdumpMeta, type GscdumpOrphanPageRow, type GscdumpPageTrendParams, type GscdumpPageTrendResponse, type GscdumpPerSitemapHistoryEntry, type GscdumpPermissionRecovery, type GscdumpQueryTrendParams, type GscdumpQueryTrendResponse, type GscdumpRichResultItem, type GscdumpSiteIntIdCrosswalkEntry, type GscdumpSiteIntIdCrosswalkResponse, type GscdumpSiteRegistration, type GscdumpSiteReportResponse, type GscdumpSitemap, type GscdumpSitemapChangesResponse, type GscdumpSitemapExportResponse, type GscdumpSitemapGeneration, type GscdumpSitemapHistory, type GscdumpSitemapMembershipEvidence, type GscdumpSitemapMembershipParams, type GscdumpSitemapMembershipResponse, type GscdumpSitemapUrlsResponse, type GscdumpSitemapsResponse, type GscdumpSyncJobItem, type GscdumpSyncJobStatus, type GscdumpSyncJobsQueueCounts, type GscdumpSyncJobsResponse, type GscdumpSyncProgressDateStatus, type GscdumpSyncProgressPhaseCounts, type GscdumpSyncProgressResponse, type GscdumpSyncProgressSite, type GscdumpSyncStatusResponse, type GscdumpTeamCatalogRef, type GscdumpTeamMemberRow, type GscdumpTeamRow, type GscdumpTopAssociationParams, type GscdumpTopAssociationResponse, type GscdumpTotals, type GscdumpUserMeResponse, type GscdumpUserRegistration, type GscdumpUserSettings, type GscdumpUserSite, type GscdumpUserStatus, type GscdumpUserTokenUpdate, IndexingCapture, type IndexingDiagnostics, type IndexingDiagnosticsParams, 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, MultiSeriesStackedDailyQuery, PartnerLifecycleAccount, PartnerLifecycleResponse, PartnerLifecycleSite, type PartnerSitemapAction, type PartnerSitemapActionResponse, type PartnerWebhookData, type PartnerWebhookHeaders, PropertyNextAction, PropertyStatus, QueryArchetype, type QueryDimSourceFile, type QueryDimSourceResponse, QuerySourceMode, type RegisterPartnerSiteParams, type RegisterPartnerUserParams, ResolvedArchetypeQuery, type ResolvedParquetFile, type ResolvedTable, type RollupEnvelope, type Row, SEARCH_TYPE_CAPABILITIES, SITE_HOLD_REASONS, type ScheduleState, type SearchAppearanceResponse, type SearchAppearanceRow, type SearchTypeOptions, type ServerTailDirective, SingleRowLookupQuery, SiteDailyTimeseriesQuery, SiteHoldReason, type SiteListItem, type SitemapAddedRow, type SitemapChangesCompleteness, type SitemapChangesResponse, SitemapNextAction, type SitemapRemovedRow, SitemapStatus, type SourceInfoOptions, type SourceInfoResponse, type TableName, type TableSchema, type TenantCtx, TopNBreakdownOptions, TopNBreakdownQuery, TwoDimensionDetailOptions, TwoDimensionDetailQuery, type UpdatePartnerUserTokensParams, UserAllowanceNoticeData, VALID_WEBHOOK_EVENTS, VerdictFreshness, WATCHED_URL_CADENCE_DAYS, WATCHED_URL_CHECKPOINT_LIMIT, WATCHED_URL_LIMIT, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WatchedUrl, WatchedUrlCheckpoint, type WebhookEnvelope, type WebhookEventType, type WhoamiResponse, WireDateRange, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsEndpointSchemas, analyticsNextActions, analyticsRoutes, analyticsStatuses, arbitrarySql, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, bindPartnerTeamCatalogResponseSchema, bindPartnerTeamCatalogSchema, builderStateSchema, bulkFileResolutionResponseSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalDifferenceKindSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, coverageStateCountsSchema, coverageStateTagSchema, coverageStatesPointSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, entitlementRefusalSchema, entityDailySparkline, entityDailyTimeseries, gscAddAndVerifyResponseSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscVerificationDnsRecordSchema, gscVerificationMethodSchema, gscVerificationRequestSchema, gscVerificationSiteSchema, gscVerificationTokenResponseSchema, gscdumpAnalysisBaseParamsSchema, gscdumpAnalysisBundleResponseSchema, gscdumpAnalysisMetaSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingTransitionFieldSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPageTrendParamsSchema, gscdumpPageTrendResponseSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapExportQuerySchema, gscdumpSitemapExportResponseSchema, gscdumpSitemapGenerationSchema, gscdumpSitemapMembershipEvidenceSchema, gscdumpSitemapMembershipParamsSchema, gscdumpSitemapMembershipResponseSchema, gscdumpSitemapUrlsQuerySchema, gscdumpSitemapUrlsResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingCaptureSchema, indexingDiagnosticsParamsSchema, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, multiSeriesStackedDaily, parseEntitlementRefusal, parseGrantedScopes, partnerControlEndpointSchemas, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerRoutes, partnerSiteTeamBindingResponseSchema, partnerSitemapActionResponseSchema, partnerSitemapActionSchema, partnerTeamCreatedResponseSchema, partnerTeamDeletedResponseSchema, partnerTeamMemberAddedResponseSchema, partnerTeamMemberRemovedResponseSchema, partnerTeamMemberRoleResponseSchema, partnerTeamMembersResponseSchema, partnerTeamRenamedResponseSchema, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, queryDimSourceResponseSchema, querySourceModes, registerPartnerSiteSchema, registerPartnerUserSchema, renamePartnerTeamSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, searchTypeSupportsDimensions, searchTypeSupportsQueries, singleRowLookup, siteDailyTimeseries, siteHoldReasonSchema, siteIntIdCrosswalkResponseSchema, siteListItemSchema, sitemapChangesCompletenessSchema, sitemapChangesResponseSchema, sitemapChangesTruncationReasonSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, teamCatalogRefSchema, topNBreakdown, twoDimensionDetail, updatePartnerUserTokensSchema, userAllowanceNoticeDataSchema, verdictFreshnessSchema, watchedUrlCheckpointSchema, watchedUrlSchema, watchedUrlSkipReasonSchema, watchedUrlsChangeRequestSchema, watchedUrlsChangeResponseSchema, watchedUrlsResponseSchema, whoamiResponseSchema };
|
|
12
|
+
export { ALLOWANCE_NOTICE_METERS, ALLOWANCE_NOTICE_THRESHOLDS, ARCHETYPE_EXECUTION_CLASS, AccountNextAction, AccountStatus, type AddPartnerTeamMemberParams, AllowanceNoticeMeter, AllowanceNoticeThreshold, type AnalysisSourcesOptions, type AnalysisSourcesResponse, AnalyticsNextAction, AnalyticsStatus, ArbitrarySqlQuery, ArchetypeExecutionClass, ArchetypeFacet, ArchetypeQuery, ArchetypeQueryBase, ArchetypeResult, ArchetypeResultRow, ArchetypeResultSource, AuxCloudOnlyQuery, type BackfillRange, type BackfillResponse, type BindPartnerSiteTeamParams, type BindPartnerTeamCatalogParams, type BindPartnerTeamCatalogResponse, type BuilderStateWire, type BulkFileResolutionRequest, type BulkFileResolutionResponse, type BulkRegisterPartnerSiteResult, type BulkRegisterPartnerSitesParams, type BulkRegisterPartnerSitesResponse, CANONICAL_WEBHOOK_EVENTS, COVERAGE_LADDER, COVERAGE_STATE_TAGS, type CanonicalWebhookEnvelope, type CanonicalWebhookEventData, type CanonicalWebhookEventType, type ColumnDef, type ColumnType, type CountriesResponse, type CountryRow, CoverageLadderTag, CoverageStateCounts, CoverageStateTag, CoverageStatesPoint, type CreatePartnerTeamParams, type CreateWebhookEnvelopeOptions, type DataDetailOptions, type DataQueryOptions, DateRange, type DeletePartnerUserResponse, type Dimension, ENTITLEMENT_REFUSAL_REASONS, EntitlementRefusal, EntitlementRefusalReason, EntityDailySparklineQuery, EntityDailyTimeseriesQuery, type FileResolutionRequest, type FileResolutionResponse, type FileResolutionTable, type Filter, GSCDUMP_INDEXING_TRANSITION_FIELDS, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, GSCDUMP_WRITE_ANALYTICS_SCOPE, GSC_SEARCH_TYPES, type Grain, type GscAddAndVerifyResponse, type GscApiRange, type GscComparisonFilter, type GscRowQueryMeta, type GscRowQueryResponse, GscSearchType, type GscVerificationDnsRecord, type GscVerificationMethod, type GscVerificationRequest, type GscVerificationSite, type GscVerificationTokenResponse, type GscdumpAnalysisBundleParams, type GscdumpAnalysisBundleResponse, type GscdumpAnalysisParams, type GscdumpAnalysisPreset, type GscdumpAnalysisResponse, type GscdumpAnalysisSourcesResponse, type GscdumpAvailableSite, type GscdumpCanonicalDifferenceKind, type GscdumpCanonicalMismatchRow, type GscdumpCanonicalMismatchesResponse, type GscdumpDataDetailResponse, type GscdumpDataResponse, type GscdumpDataRow, type GscdumpHealthResponse, type GscdumpIndexPercentResponse, type GscdumpIndexPercentSitemap, type GscdumpIndexPercentTrendPoint, type GscdumpIndexingDiagnosticsResponse, type GscdumpIndexingInspectRateLimited, type GscdumpIndexingInspectRequest, type GscdumpIndexingInspectResponse, type GscdumpIndexingInspectResult, type GscdumpIndexingIssueSeverity, type GscdumpIndexingResponse, type GscdumpIndexingTrendPoint, type GscdumpIndexingUrl, type GscdumpIndexingUrlStatus, type GscdumpIndexingUrlsResponse, type GscdumpInvisibleUrlRow, type GscdumpKeywordSparklinesParams, type GscdumpKeywordSparklinesResponse, type GscdumpMeta, type GscdumpOrphanPageRow, type GscdumpPageTrendParams, type GscdumpPageTrendResponse, type GscdumpPerSitemapHistoryEntry, type GscdumpPermissionRecovery, type GscdumpQueryTrendParams, type GscdumpQueryTrendResponse, type GscdumpRichResultItem, type GscdumpSiteIntIdCrosswalkEntry, type GscdumpSiteIntIdCrosswalkResponse, type GscdumpSiteRegistration, type GscdumpSiteReportResponse, type GscdumpSitemap, type GscdumpSitemapChangesResponse, type GscdumpSitemapExportResponse, type GscdumpSitemapGeneration, type GscdumpSitemapHistory, type GscdumpSitemapMembershipEvidence, type GscdumpSitemapMembershipParams, type GscdumpSitemapMembershipResponse, type GscdumpSitemapUrlsResponse, type GscdumpSitemapsResponse, type GscdumpSyncJobItem, type GscdumpSyncJobStatus, type GscdumpSyncJobsQueueCounts, type GscdumpSyncJobsResponse, type GscdumpSyncProgressDateStatus, type GscdumpSyncProgressPhaseCounts, type GscdumpSyncProgressResponse, type GscdumpSyncProgressSite, type GscdumpSyncStatusResponse, type GscdumpTeamCatalogRef, type GscdumpTeamMemberRow, type GscdumpTeamRow, type GscdumpTopAssociationParams, type GscdumpTopAssociationResponse, type GscdumpTotals, type GscdumpUserMeResponse, type GscdumpUserRegistration, type GscdumpUserSettings, type GscdumpUserSite, type GscdumpUserStatus, type GscdumpUserTokenUpdate, IndexingCapture, type IndexingDiagnostics, type IndexingDiagnosticsParams, 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, MultiSeriesStackedDailyQuery, PartnerLifecycleAccount, PartnerLifecycleResponse, PartnerLifecycleSite, type PartnerSitemapAction, type PartnerSitemapActionResponse, type PartnerWebhookData, type PartnerWebhookHeaders, PropertyNextAction, PropertyStatus, QueryArchetype, type QueryDimSourceFile, type QueryDimSourceResponse, QuerySourceMode, RECORD_READ_REFUSAL_REASONS, RecordReadRefusal, RecordReadRefusalReason, type RegisterPartnerSiteParams, type RegisterPartnerUserParams, ResolvedArchetypeQuery, type ResolvedParquetFile, type ResolvedTable, type RollupEnvelope, type Row, SEARCH_TYPE_CAPABILITIES, SITE_HOLD_REASONS, type ScheduleState, type SearchAppearanceResponse, type SearchAppearanceRow, type SearchTypeOptions, type ServerTailDirective, SingleRowLookupQuery, SiteDailyTimeseriesQuery, SiteHoldReason, type SiteListItem, type SitemapAddedRow, type SitemapChangesCompleteness, type SitemapChangesResponse, SitemapNextAction, type SitemapRemovedRow, SitemapStatus, type SourceInfoOptions, type SourceInfoResponse, type TableName, type TableSchema, type TenantCtx, TopNBreakdownOptions, TopNBreakdownQuery, TwoDimensionDetailOptions, TwoDimensionDetailQuery, type UpdatePartnerUserTokensParams, UserAllowanceNoticeData, VALID_WEBHOOK_EVENTS, VerdictFreshness, WATCHED_URL_CADENCE_DAYS, WATCHED_URL_CHECKPOINT_LIMIT, WATCHED_URL_LIMIT, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, WatchedUrl, WatchedUrlCheckpoint, type WebhookEnvelope, type WebhookEventType, type WhoamiResponse, WireDateRange, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsEndpointSchemas, analyticsNextActions, analyticsRoutes, analyticsStatuses, arbitrarySql, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, bindPartnerTeamCatalogResponseSchema, bindPartnerTeamCatalogSchema, builderStateSchema, bulkFileResolutionResponseSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalDifferenceKindSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, coverageStateCountsSchema, coverageStateTagSchema, coverageStatesPointSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, entitlementRefusalSchema, entityDailySparkline, entityDailyTimeseries, gscAddAndVerifyResponseSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscVerificationDnsRecordSchema, gscVerificationMethodSchema, gscVerificationRequestSchema, gscVerificationSiteSchema, gscVerificationTokenResponseSchema, gscdumpAnalysisBaseParamsSchema, gscdumpAnalysisBundleResponseSchema, gscdumpAnalysisMetaSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingTransitionFieldSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPageTrendParamsSchema, gscdumpPageTrendResponseSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapExportQuerySchema, gscdumpSitemapExportResponseSchema, gscdumpSitemapGenerationSchema, gscdumpSitemapMembershipEvidenceSchema, gscdumpSitemapMembershipParamsSchema, gscdumpSitemapMembershipResponseSchema, gscdumpSitemapUrlsQuerySchema, gscdumpSitemapUrlsResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingCaptureSchema, indexingDiagnosticsParamsSchema, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, multiSeriesStackedDaily, parseEntitlementRefusal, parseGrantedScopes, parseRecordReadRefusal, partnerControlEndpointSchemas, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerRoutes, partnerSiteTeamBindingResponseSchema, partnerSitemapActionResponseSchema, partnerSitemapActionSchema, partnerTeamCreatedResponseSchema, partnerTeamDeletedResponseSchema, partnerTeamMemberAddedResponseSchema, partnerTeamMemberRemovedResponseSchema, partnerTeamMemberRoleResponseSchema, partnerTeamMembersResponseSchema, partnerTeamRenamedResponseSchema, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, queryDimSourceResponseSchema, querySourceModes, recordReadRefusalSchema, registerPartnerSiteSchema, registerPartnerUserSchema, renamePartnerTeamSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, searchTypeSupportsDimensions, searchTypeSupportsQueries, singleRowLookup, siteDailyTimeseries, siteHoldReasonSchema, siteIntIdCrosswalkResponseSchema, siteListItemSchema, sitemapChangesCompletenessSchema, sitemapChangesResponseSchema, sitemapChangesTruncationReasonSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, teamCatalogRefSchema, topNBreakdown, twoDimensionDetail, updatePartnerUserTokensSchema, userAllowanceNoticeDataSchema, verdictFreshnessSchema, watchedUrlCheckpointSchema, watchedUrlSchema, watchedUrlSkipReasonSchema, watchedUrlsChangeRequestSchema, watchedUrlsChangeResponseSchema, watchedUrlsResponseSchema, whoamiResponseSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -2,8 +2,9 @@ import { ARCHETYPE_EXECUTION_CLASS, arbitrarySql, entityDailySparkline, entityDa
|
|
|
2
2
|
import { ALLOWANCE_NOTICE_METERS, ALLOWANCE_NOTICE_THRESHOLDS, ENTITLEMENT_REFUSAL_REASONS, SITE_HOLD_REASONS, entitlementRefusalSchema, parseEntitlementRefusal, siteHoldReasonSchema, userAllowanceNoticeDataSchema } from "./entitlements.mjs";
|
|
3
3
|
import { COVERAGE_LADDER, COVERAGE_STATE_TAGS, WATCHED_URL_CADENCE_DAYS, WATCHED_URL_CHECKPOINT_LIMIT, WATCHED_URL_LIMIT, coverageStateCountsSchema, coverageStateTagSchema, coverageStatesPointSchema, indexingCaptureSchema, verdictFreshnessSchema, watchedUrlCheckpointSchema, watchedUrlSchema, watchedUrlSkipReasonSchema, watchedUrlsChangeRequestSchema, watchedUrlsChangeResponseSchema, watchedUrlsResponseSchema } from "./indexing-coverage.mjs";
|
|
4
4
|
import { GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, GSCDUMP_WRITE_ANALYTICS_SCOPE, accountNextActions, accountStatuses, analyticsNextActions, analyticsStatuses, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingNextActions, indexingStatuses, lifecycleErrorCodes, parseGrantedScopes, propertyNextActions, propertyStatuses, querySourceModes, sitemapNextActions, sitemapStatuses } from "./onboarding.mjs";
|
|
5
|
+
import { RECORD_READ_REFUSAL_REASONS, parseRecordReadRefusal, recordReadRefusalSchema } from "./record-read.mjs";
|
|
5
6
|
import { analyticsRoutes, partnerRoutes } from "./routes.mjs";
|
|
6
7
|
import { GSC_SEARCH_TYPES } from "./search-types.mjs";
|
|
7
8
|
import { CANONICAL_WEBHOOK_EVENTS, VALID_WEBHOOK_EVENTS, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER } from "./webhook-constants.mjs";
|
|
8
9
|
import { GSCDUMP_INDEXING_TRANSITION_FIELDS, SEARCH_TYPE_CAPABILITIES, addPartnerTeamMemberSchema, analyticsEndpointSchemas, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, bindPartnerTeamCatalogResponseSchema, bindPartnerTeamCatalogSchema, builderStateSchema, bulkFileResolutionResponseSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalDifferenceKindSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, gscAddAndVerifyResponseSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscVerificationDnsRecordSchema, gscVerificationMethodSchema, gscVerificationRequestSchema, gscVerificationSiteSchema, gscVerificationTokenResponseSchema, gscdumpAnalysisBaseParamsSchema, gscdumpAnalysisBundleResponseSchema, gscdumpAnalysisMetaSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingTransitionFieldSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPageTrendParamsSchema, gscdumpPageTrendResponseSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapExportQuerySchema, gscdumpSitemapExportResponseSchema, gscdumpSitemapGenerationSchema, gscdumpSitemapMembershipEvidenceSchema, gscdumpSitemapMembershipParamsSchema, gscdumpSitemapMembershipResponseSchema, gscdumpSitemapUrlsQuerySchema, gscdumpSitemapUrlsResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, indexingDiagnosticsParamsSchema, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingUrlRowSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, lifecycleErrorSchema, lifecycleProgressSchema, partnerControlEndpointSchemas, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerSiteTeamBindingResponseSchema, partnerSitemapActionResponseSchema, partnerSitemapActionSchema, partnerTeamCreatedResponseSchema, partnerTeamDeletedResponseSchema, partnerTeamMemberAddedResponseSchema, partnerTeamMemberRemovedResponseSchema, partnerTeamMemberRoleResponseSchema, partnerTeamMembersResponseSchema, partnerTeamRenamedResponseSchema, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, queryDimSourceResponseSchema, registerPartnerSiteSchema, registerPartnerUserSchema, renamePartnerTeamSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, searchTypeSupportsDimensions, searchTypeSupportsQueries, siteIntIdCrosswalkResponseSchema, siteListItemSchema, sitemapChangesCompletenessSchema, sitemapChangesResponseSchema, sitemapChangesTruncationReasonSchema, sourceInfoResponseSchema, teamCatalogRefSchema, updatePartnerUserTokensSchema, whoamiResponseSchema } from "./schemas.mjs";
|
|
9
|
-
export { ALLOWANCE_NOTICE_METERS, ALLOWANCE_NOTICE_THRESHOLDS, ARCHETYPE_EXECUTION_CLASS, CANONICAL_WEBHOOK_EVENTS, COVERAGE_LADDER, COVERAGE_STATE_TAGS, ENTITLEMENT_REFUSAL_REASONS, GSCDUMP_INDEXING_TRANSITION_FIELDS, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, GSCDUMP_WRITE_ANALYTICS_SCOPE, GSC_SEARCH_TYPES, SEARCH_TYPE_CAPABILITIES, SITE_HOLD_REASONS, VALID_WEBHOOK_EVENTS, WATCHED_URL_CADENCE_DAYS, WATCHED_URL_CHECKPOINT_LIMIT, WATCHED_URL_LIMIT, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsEndpointSchemas, analyticsNextActions, analyticsRoutes, analyticsStatuses, arbitrarySql, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, bindPartnerTeamCatalogResponseSchema, bindPartnerTeamCatalogSchema, builderStateSchema, bulkFileResolutionResponseSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalDifferenceKindSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, coverageStateCountsSchema, coverageStateTagSchema, coverageStatesPointSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, entitlementRefusalSchema, entityDailySparkline, entityDailyTimeseries, gscAddAndVerifyResponseSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscVerificationDnsRecordSchema, gscVerificationMethodSchema, gscVerificationRequestSchema, gscVerificationSiteSchema, gscVerificationTokenResponseSchema, gscdumpAnalysisBaseParamsSchema, gscdumpAnalysisBundleResponseSchema, gscdumpAnalysisMetaSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingTransitionFieldSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPageTrendParamsSchema, gscdumpPageTrendResponseSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapExportQuerySchema, gscdumpSitemapExportResponseSchema, gscdumpSitemapGenerationSchema, gscdumpSitemapMembershipEvidenceSchema, gscdumpSitemapMembershipParamsSchema, gscdumpSitemapMembershipResponseSchema, gscdumpSitemapUrlsQuerySchema, gscdumpSitemapUrlsResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingCaptureSchema, indexingDiagnosticsParamsSchema, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, multiSeriesStackedDaily, parseEntitlementRefusal, parseGrantedScopes, partnerControlEndpointSchemas, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerRoutes, partnerSiteTeamBindingResponseSchema, partnerSitemapActionResponseSchema, partnerSitemapActionSchema, partnerTeamCreatedResponseSchema, partnerTeamDeletedResponseSchema, partnerTeamMemberAddedResponseSchema, partnerTeamMemberRemovedResponseSchema, partnerTeamMemberRoleResponseSchema, partnerTeamMembersResponseSchema, partnerTeamRenamedResponseSchema, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, queryDimSourceResponseSchema, querySourceModes, registerPartnerSiteSchema, registerPartnerUserSchema, renamePartnerTeamSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, searchTypeSupportsDimensions, searchTypeSupportsQueries, singleRowLookup, siteDailyTimeseries, siteHoldReasonSchema, siteIntIdCrosswalkResponseSchema, siteListItemSchema, sitemapChangesCompletenessSchema, sitemapChangesResponseSchema, sitemapChangesTruncationReasonSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, teamCatalogRefSchema, topNBreakdown, twoDimensionDetail, updatePartnerUserTokensSchema, userAllowanceNoticeDataSchema, verdictFreshnessSchema, watchedUrlCheckpointSchema, watchedUrlSchema, watchedUrlSkipReasonSchema, watchedUrlsChangeRequestSchema, watchedUrlsChangeResponseSchema, watchedUrlsResponseSchema, whoamiResponseSchema };
|
|
10
|
+
export { ALLOWANCE_NOTICE_METERS, ALLOWANCE_NOTICE_THRESHOLDS, ARCHETYPE_EXECUTION_CLASS, CANONICAL_WEBHOOK_EVENTS, COVERAGE_LADDER, COVERAGE_STATE_TAGS, ENTITLEMENT_REFUSAL_REASONS, GSCDUMP_INDEXING_TRANSITION_FIELDS, GSCDUMP_ONBOARDING_CONTRACT_VERSION, GSCDUMP_OPTIONAL_INDEXING_SCOPE, GSCDUMP_REQUIRED_ANALYTICS_SCOPE, GSCDUMP_WRITE_ANALYTICS_SCOPE, GSC_SEARCH_TYPES, RECORD_READ_REFUSAL_REASONS, SEARCH_TYPE_CAPABILITIES, SITE_HOLD_REASONS, VALID_WEBHOOK_EVENTS, WATCHED_URL_CADENCE_DAYS, WATCHED_URL_CHECKPOINT_LIMIT, WATCHED_URL_LIMIT, WEBHOOK_CONTRACT_VERSION, WEBHOOK_CONTRACT_VERSION_HEADER, WEBHOOK_DELIVERY_HEADER, WEBHOOK_EVENT_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_TIMESTAMP_HEADER, accountNextActions, accountStatuses, addPartnerTeamMemberSchema, analyticsEndpointSchemas, analyticsNextActions, analyticsRoutes, analyticsStatuses, arbitrarySql, backfillRangeSchema, backfillResponseSchema, bindPartnerSiteTeamSchema, bindPartnerTeamCatalogResponseSchema, bindPartnerTeamCatalogSchema, builderStateSchema, bulkFileResolutionResponseSchema, bulkRegisterPartnerSitesResponseSchema, bulkRegisterPartnerSitesSchema, canonicalDifferenceKindSchema, canonicalWebhookEventTypeSchema, countriesResponseSchema, countryRowSchema, coverageStateCountsSchema, coverageStateTagSchema, coverageStatesPointSchema, createPartnerTeamSchema, dataDetailOptionsSchema, dataQueryOptionsSchema, entitlementRefusalSchema, entityDailySparkline, entityDailyTimeseries, gscAddAndVerifyResponseSchema, gscApiRangeSchema, gscComparisonFilterSchema, gscRowQueryMetaSchema, gscRowQueryResponseSchema, gscVerificationDnsRecordSchema, gscVerificationMethodSchema, gscVerificationRequestSchema, gscVerificationSiteSchema, gscVerificationTokenResponseSchema, gscdumpAnalysisBaseParamsSchema, gscdumpAnalysisBundleResponseSchema, gscdumpAnalysisMetaSchema, gscdumpAnalysisParamsSchema, gscdumpAnalysisPresetSchema, gscdumpAnalysisResponseSchema, gscdumpAnalysisSourcesResponseSchema, gscdumpAvailableSiteSchema, gscdumpCanonicalMismatchesResponseSchema, gscdumpDataDetailResponseSchema, gscdumpDataResponseSchema, gscdumpDataRowSchema, gscdumpDeletePartnerUserResponseSchema, gscdumpHealthResponseSchema, gscdumpIndexPercentParamsSchema, gscdumpIndexPercentResponseSchema, gscdumpIndexingDiagnosticsResponseSchema, gscdumpIndexingResponseSchema, gscdumpIndexingTransitionFieldSchema, gscdumpIndexingUrlsResponseSchema, gscdumpKeywordSparklinesParamsSchema, gscdumpKeywordSparklinesResponseSchema, gscdumpMetaSchema, gscdumpPageTrendParamsSchema, gscdumpPageTrendResponseSchema, gscdumpPermissionRecoverySchema, gscdumpQueryTrendParamsSchema, gscdumpQueryTrendResponseSchema, gscdumpSiteRegistrationSchema, gscdumpSiteReportResponseSchema, gscdumpSitemapChangesResponseSchema, gscdumpSitemapExportQuerySchema, gscdumpSitemapExportResponseSchema, gscdumpSitemapGenerationSchema, gscdumpSitemapMembershipEvidenceSchema, gscdumpSitemapMembershipParamsSchema, gscdumpSitemapMembershipResponseSchema, gscdumpSitemapUrlsQuerySchema, gscdumpSitemapUrlsResponseSchema, gscdumpSitemapsResponseSchema, gscdumpSyncJobsResponseSchema, gscdumpSyncProgressResponseSchema, gscdumpTeamMemberRowSchema, gscdumpTeamRoleSchema, gscdumpTeamRowSchema, gscdumpTopAssociationParamsSchema, gscdumpTopAssociationResponseSchema, gscdumpTotalsSchema, gscdumpUserMeResponseSchema, gscdumpUserRegistrationSchema, gscdumpUserSettingsSchema, gscdumpUserSiteSchema, gscdumpUserStatusSchema, hasOptionalIndexingScope, hasRequiredAnalyticsScope, indexingCaptureSchema, indexingDiagnosticsParamsSchema, indexingDiagnosticsSchema, indexingInspectAnyResponseSchema, indexingInspectRateLimitedSchema, indexingInspectRequestSchema, indexingInspectResponseSchema, indexingInspectResultSchema, indexingIssueSchema, indexingNextActions, indexingStatuses, indexingUrlRowSchema, indexingUrlsParamsSchema, indexingUrlsResponseSchema, inspectionHistoryRecordSchema, inspectionHistoryResponseSchema, inspectionIndexSchema, inspectionRecordRawSchema, lifecycleErrorCodes, lifecycleErrorSchema, lifecycleProgressSchema, multiSeriesStackedDaily, parseEntitlementRefusal, parseGrantedScopes, parseRecordReadRefusal, partnerControlEndpointSchemas, partnerEndpointSchemas, partnerLifecycleAccountSchema, partnerLifecycleResponseSchema, partnerLifecycleSiteSchema, partnerRealtimeEventSchema, partnerRoutes, partnerSiteTeamBindingResponseSchema, partnerSitemapActionResponseSchema, partnerSitemapActionSchema, partnerTeamCreatedResponseSchema, partnerTeamDeletedResponseSchema, partnerTeamMemberAddedResponseSchema, partnerTeamMemberRemovedResponseSchema, partnerTeamMemberRoleResponseSchema, partnerTeamMembersResponseSchema, partnerTeamRenamedResponseSchema, partnerWebhookDataSchema, partnerWebhookEnvelopeSchema, propertyNextActions, propertyStatuses, queryDimSourceResponseSchema, querySourceModes, recordReadRefusalSchema, registerPartnerSiteSchema, registerPartnerUserSchema, renamePartnerTeamSchema, rollupEnvelopeSchema, scheduleStateSchema, searchAppearanceResponseSchema, searchAppearanceRowSchema, searchTypeSchema, searchTypeSupportsDimensions, searchTypeSupportsQueries, singleRowLookup, siteDailyTimeseries, siteHoldReasonSchema, siteIntIdCrosswalkResponseSchema, siteListItemSchema, sitemapChangesCompletenessSchema, sitemapChangesResponseSchema, sitemapChangesTruncationReasonSchema, sitemapNextActions, sitemapStatuses, sourceInfoResponseSchema, teamCatalogRefSchema, topNBreakdown, twoDimensionDetail, updatePartnerUserTokensSchema, userAllowanceNoticeDataSchema, verdictFreshnessSchema, watchedUrlCheckpointSchema, watchedUrlSchema, watchedUrlSkipReasonSchema, watchedUrlsChangeRequestSchema, watchedUrlsChangeResponseSchema, watchedUrlsResponseSchema, whoamiResponseSchema };
|
|
@@ -21,19 +21,19 @@ export type CoverageStateTag = typeof COVERAGE_STATE_TAGS[number];
|
|
|
21
21
|
export declare const COVERAGE_LADDER: readonly ["unknown_to_google", "discovered_not_indexed", "crawled_not_indexed", "indexed"];
|
|
22
22
|
export type CoverageLadderTag = typeof COVERAGE_LADDER[number];
|
|
23
23
|
export declare const coverageStateTagSchema: z.ZodEnum<{
|
|
24
|
+
indexed: "indexed";
|
|
25
|
+
not_found: "not_found";
|
|
26
|
+
redirect: "redirect";
|
|
24
27
|
unknown_to_google: "unknown_to_google";
|
|
25
28
|
discovered_not_indexed: "discovered_not_indexed";
|
|
26
29
|
crawled_not_indexed: "crawled_not_indexed";
|
|
27
|
-
indexed: "indexed";
|
|
28
30
|
noindex: "noindex";
|
|
29
31
|
blocked_robots: "blocked_robots";
|
|
30
32
|
soft_404: "soft_404";
|
|
31
|
-
not_found: "not_found";
|
|
32
33
|
server_error: "server_error";
|
|
33
34
|
access_denied: "access_denied";
|
|
34
35
|
access_forbidden: "access_forbidden";
|
|
35
36
|
blocked_4xx: "blocked_4xx";
|
|
36
|
-
redirect: "redirect";
|
|
37
37
|
redirect_error: "redirect_error";
|
|
38
38
|
alternate_canonical: "alternate_canonical";
|
|
39
39
|
duplicate_no_canonical: "duplicate_no_canonical";
|
|
@@ -49,19 +49,19 @@ export declare const coverageStateTagSchema: z.ZodEnum<{
|
|
|
49
49
|
* reads a newer host's counts. Neither case fails the parse.
|
|
50
50
|
*/
|
|
51
51
|
export declare const coverageStateCountsSchema: z.ZodObject<{
|
|
52
|
+
indexed: z.ZodDefault<z.ZodNumber>;
|
|
53
|
+
not_found: z.ZodDefault<z.ZodNumber>;
|
|
54
|
+
redirect: z.ZodDefault<z.ZodNumber>;
|
|
52
55
|
unknown_to_google: z.ZodDefault<z.ZodNumber>;
|
|
53
56
|
discovered_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
54
57
|
crawled_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
55
|
-
indexed: z.ZodDefault<z.ZodNumber>;
|
|
56
58
|
noindex: z.ZodDefault<z.ZodNumber>;
|
|
57
59
|
blocked_robots: z.ZodDefault<z.ZodNumber>;
|
|
58
60
|
soft_404: z.ZodDefault<z.ZodNumber>;
|
|
59
|
-
not_found: z.ZodDefault<z.ZodNumber>;
|
|
60
61
|
server_error: z.ZodDefault<z.ZodNumber>;
|
|
61
62
|
access_denied: z.ZodDefault<z.ZodNumber>;
|
|
62
63
|
access_forbidden: z.ZodDefault<z.ZodNumber>;
|
|
63
64
|
blocked_4xx: z.ZodDefault<z.ZodNumber>;
|
|
64
|
-
redirect: z.ZodDefault<z.ZodNumber>;
|
|
65
65
|
redirect_error: z.ZodDefault<z.ZodNumber>;
|
|
66
66
|
alternate_canonical: z.ZodDefault<z.ZodNumber>;
|
|
67
67
|
duplicate_no_canonical: z.ZodDefault<z.ZodNumber>;
|
|
@@ -143,19 +143,19 @@ export declare const coverageStatesPointSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
143
143
|
_tag: z.ZodLiteral<"counted">;
|
|
144
144
|
capturedAt: z.ZodString;
|
|
145
145
|
counts: z.ZodObject<{
|
|
146
|
+
indexed: z.ZodDefault<z.ZodNumber>;
|
|
147
|
+
not_found: z.ZodDefault<z.ZodNumber>;
|
|
148
|
+
redirect: z.ZodDefault<z.ZodNumber>;
|
|
146
149
|
unknown_to_google: z.ZodDefault<z.ZodNumber>;
|
|
147
150
|
discovered_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
148
151
|
crawled_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
149
|
-
indexed: z.ZodDefault<z.ZodNumber>;
|
|
150
152
|
noindex: z.ZodDefault<z.ZodNumber>;
|
|
151
153
|
blocked_robots: z.ZodDefault<z.ZodNumber>;
|
|
152
154
|
soft_404: z.ZodDefault<z.ZodNumber>;
|
|
153
|
-
not_found: z.ZodDefault<z.ZodNumber>;
|
|
154
155
|
server_error: z.ZodDefault<z.ZodNumber>;
|
|
155
156
|
access_denied: z.ZodDefault<z.ZodNumber>;
|
|
156
157
|
access_forbidden: z.ZodDefault<z.ZodNumber>;
|
|
157
158
|
blocked_4xx: z.ZodDefault<z.ZodNumber>;
|
|
158
|
-
redirect: z.ZodDefault<z.ZodNumber>;
|
|
159
159
|
redirect_error: z.ZodDefault<z.ZodNumber>;
|
|
160
160
|
alternate_canonical: z.ZodDefault<z.ZodNumber>;
|
|
161
161
|
duplicate_no_canonical: z.ZodDefault<z.ZodNumber>;
|
|
@@ -193,19 +193,19 @@ export declare const WATCHED_URL_CHECKPOINT_LIMIT = 12;
|
|
|
193
193
|
export declare const watchedUrlCheckpointSchema: z.ZodObject<{
|
|
194
194
|
checkedAt: z.ZodString;
|
|
195
195
|
coverageState: z.ZodCatch<z.ZodEnum<{
|
|
196
|
+
indexed: "indexed";
|
|
197
|
+
not_found: "not_found";
|
|
198
|
+
redirect: "redirect";
|
|
196
199
|
unknown_to_google: "unknown_to_google";
|
|
197
200
|
discovered_not_indexed: "discovered_not_indexed";
|
|
198
201
|
crawled_not_indexed: "crawled_not_indexed";
|
|
199
|
-
indexed: "indexed";
|
|
200
202
|
noindex: "noindex";
|
|
201
203
|
blocked_robots: "blocked_robots";
|
|
202
204
|
soft_404: "soft_404";
|
|
203
|
-
not_found: "not_found";
|
|
204
205
|
server_error: "server_error";
|
|
205
206
|
access_denied: "access_denied";
|
|
206
207
|
access_forbidden: "access_forbidden";
|
|
207
208
|
blocked_4xx: "blocked_4xx";
|
|
208
|
-
redirect: "redirect";
|
|
209
209
|
redirect_error: "redirect_error";
|
|
210
210
|
alternate_canonical: "alternate_canonical";
|
|
211
211
|
duplicate_no_canonical: "duplicate_no_canonical";
|
|
@@ -226,19 +226,19 @@ export declare const watchedUrlSchema: z.ZodObject<{
|
|
|
226
226
|
checkpoints: z.ZodArray<z.ZodObject<{
|
|
227
227
|
checkedAt: z.ZodString;
|
|
228
228
|
coverageState: z.ZodCatch<z.ZodEnum<{
|
|
229
|
+
indexed: "indexed";
|
|
230
|
+
not_found: "not_found";
|
|
231
|
+
redirect: "redirect";
|
|
229
232
|
unknown_to_google: "unknown_to_google";
|
|
230
233
|
discovered_not_indexed: "discovered_not_indexed";
|
|
231
234
|
crawled_not_indexed: "crawled_not_indexed";
|
|
232
|
-
indexed: "indexed";
|
|
233
235
|
noindex: "noindex";
|
|
234
236
|
blocked_robots: "blocked_robots";
|
|
235
237
|
soft_404: "soft_404";
|
|
236
|
-
not_found: "not_found";
|
|
237
238
|
server_error: "server_error";
|
|
238
239
|
access_denied: "access_denied";
|
|
239
240
|
access_forbidden: "access_forbidden";
|
|
240
241
|
blocked_4xx: "blocked_4xx";
|
|
241
|
-
redirect: "redirect";
|
|
242
242
|
redirect_error: "redirect_error";
|
|
243
243
|
alternate_canonical: "alternate_canonical";
|
|
244
244
|
duplicate_no_canonical: "duplicate_no_canonical";
|
|
@@ -261,19 +261,19 @@ export declare const watchedUrlsResponseSchema: z.ZodObject<{
|
|
|
261
261
|
checkpoints: z.ZodArray<z.ZodObject<{
|
|
262
262
|
checkedAt: z.ZodString;
|
|
263
263
|
coverageState: z.ZodCatch<z.ZodEnum<{
|
|
264
|
+
indexed: "indexed";
|
|
265
|
+
not_found: "not_found";
|
|
266
|
+
redirect: "redirect";
|
|
264
267
|
unknown_to_google: "unknown_to_google";
|
|
265
268
|
discovered_not_indexed: "discovered_not_indexed";
|
|
266
269
|
crawled_not_indexed: "crawled_not_indexed";
|
|
267
|
-
indexed: "indexed";
|
|
268
270
|
noindex: "noindex";
|
|
269
271
|
blocked_robots: "blocked_robots";
|
|
270
272
|
soft_404: "soft_404";
|
|
271
|
-
not_found: "not_found";
|
|
272
273
|
server_error: "server_error";
|
|
273
274
|
access_denied: "access_denied";
|
|
274
275
|
access_forbidden: "access_forbidden";
|
|
275
276
|
blocked_4xx: "blocked_4xx";
|
|
276
|
-
redirect: "redirect";
|
|
277
277
|
redirect_error: "redirect_error";
|
|
278
278
|
alternate_canonical: "alternate_canonical";
|
|
279
279
|
duplicate_no_canonical: "duplicate_no_canonical";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* The `details.reason` values of a v1 error envelope that refuses a read
|
|
4
|
+
* because the Site's record cannot serve it. The host never answers such a
|
|
5
|
+
* read from live Google, and never answers it with an empty `200`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const RECORD_READ_REFUSAL_REASONS: readonly ["record_not_ready", "range_not_synced"];
|
|
8
|
+
export type RecordReadRefusalReason = typeof RECORD_READ_REFUSAL_REASONS[number];
|
|
9
|
+
/**
|
|
10
|
+
* The `details` of a v1 error envelope that refuses a read of the Site's
|
|
11
|
+
* record. Both are 409 `invalid_request`, and an immediate retry gets the same
|
|
12
|
+
* answer.
|
|
13
|
+
*
|
|
14
|
+
* - `record_not_ready`: the Site has no synced data, or its Team catalog does
|
|
15
|
+
* not serve reads yet.
|
|
16
|
+
* - `range_not_synced`: the record lacks the days from `missingStart` to
|
|
17
|
+
* `missingEnd` (`YYYY-MM-DD`), which Google still serves. The record can
|
|
18
|
+
* lag `newestDateSynced`, so those days can sit inside the synced range.
|
|
19
|
+
*
|
|
20
|
+
* Both can carry the Site's `syncStatus`, `lastSyncAt` (Unix seconds),
|
|
21
|
+
* `oldestDateSynced`, and `newestDateSynced`. Unknown `details` keys are
|
|
22
|
+
* dropped, so a newer host can add keys.
|
|
23
|
+
*/
|
|
24
|
+
export declare const recordReadRefusalSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
|
+
syncStatus: z.ZodOptional<z.ZodString>;
|
|
26
|
+
lastSyncAt: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
oldestDateSynced: z.ZodOptional<z.ZodISODate>;
|
|
28
|
+
newestDateSynced: z.ZodOptional<z.ZodISODate>;
|
|
29
|
+
reason: z.ZodLiteral<"record_not_ready">;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
syncStatus: z.ZodOptional<z.ZodString>;
|
|
32
|
+
lastSyncAt: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
oldestDateSynced: z.ZodOptional<z.ZodISODate>;
|
|
34
|
+
newestDateSynced: z.ZodOptional<z.ZodISODate>;
|
|
35
|
+
reason: z.ZodLiteral<"range_not_synced">;
|
|
36
|
+
missingStart: z.ZodISODate;
|
|
37
|
+
missingEnd: z.ZodISODate;
|
|
38
|
+
}, z.core.$strip>], "reason">;
|
|
39
|
+
export type RecordReadRefusal = z.infer<typeof recordReadRefusalSchema>;
|
|
40
|
+
/**
|
|
41
|
+
* Read a record read refusal from the `details` of a v1 error envelope, such
|
|
42
|
+
* as `GscdumpV1Error.details`. Returns `null` when the details describe a
|
|
43
|
+
* different failure, or a refusal this contract version does not know.
|
|
44
|
+
*/
|
|
45
|
+
export declare function parseRecordReadRefusal(details: unknown): RecordReadRefusal | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const RECORD_READ_REFUSAL_REASONS = ["record_not_ready", "range_not_synced"];
|
|
3
|
+
const siteSyncFields = {
|
|
4
|
+
syncStatus: z.string().min(1).optional(),
|
|
5
|
+
lastSyncAt: z.number().int().nonnegative().optional(),
|
|
6
|
+
oldestDateSynced: z.iso.date().optional(),
|
|
7
|
+
newestDateSynced: z.iso.date().optional()
|
|
8
|
+
};
|
|
9
|
+
const recordReadRefusalSchema = z.discriminatedUnion("reason", [z.object({
|
|
10
|
+
reason: z.literal("record_not_ready"),
|
|
11
|
+
...siteSyncFields
|
|
12
|
+
}), z.object({
|
|
13
|
+
reason: z.literal("range_not_synced"),
|
|
14
|
+
missingStart: z.iso.date(),
|
|
15
|
+
missingEnd: z.iso.date(),
|
|
16
|
+
...siteSyncFields
|
|
17
|
+
})]);
|
|
18
|
+
function parseRecordReadRefusal(details) {
|
|
19
|
+
const parsed = recordReadRefusalSchema.safeParse(details);
|
|
20
|
+
return parsed.success ? parsed.data : null;
|
|
21
|
+
}
|
|
22
|
+
export { RECORD_READ_REFUSAL_REASONS, parseRecordReadRefusal, recordReadRefusalSchema };
|
package/dist/schemas.d.mts
CHANGED
|
@@ -365,9 +365,9 @@ export declare const indexingUrlsResponseSchema: z.ZodObject<{
|
|
|
365
365
|
}, z.core.$loose>;
|
|
366
366
|
export declare const GSCDUMP_INDEXING_TRANSITION_FIELDS: readonly ["indexStatus", "coverageState", "robotsTxtState", "indexingState", "pageFetchState", "googleCanonical"];
|
|
367
367
|
export declare const gscdumpIndexingTransitionFieldSchema: z.ZodEnum<{
|
|
368
|
-
coverageState: "coverageState";
|
|
369
368
|
indexStatus: "indexStatus";
|
|
370
369
|
googleCanonical: "googleCanonical";
|
|
370
|
+
coverageState: "coverageState";
|
|
371
371
|
robotsTxtState: "robotsTxtState";
|
|
372
372
|
indexingState: "indexingState";
|
|
373
373
|
pageFetchState: "pageFetchState";
|
|
@@ -1409,8 +1409,8 @@ export declare const bulkRegisterPartnerSitesResponseSchema: z.ZodObject<{
|
|
|
1409
1409
|
status: z.ZodEnum<{
|
|
1410
1410
|
error: "error";
|
|
1411
1411
|
registered: "registered";
|
|
1412
|
-
not_found: "not_found";
|
|
1413
1412
|
already_exists: "already_exists";
|
|
1413
|
+
not_found: "not_found";
|
|
1414
1414
|
}>;
|
|
1415
1415
|
error: z.ZodOptional<z.ZodString>;
|
|
1416
1416
|
site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -1805,19 +1805,19 @@ export declare const gscdumpIndexingResponseSchema: z.ZodObject<{
|
|
|
1805
1805
|
_tag: z.ZodLiteral<"counted">;
|
|
1806
1806
|
capturedAt: z.ZodString;
|
|
1807
1807
|
counts: z.ZodObject<{
|
|
1808
|
+
indexed: z.ZodDefault<z.ZodNumber>;
|
|
1809
|
+
not_found: z.ZodDefault<z.ZodNumber>;
|
|
1810
|
+
redirect: z.ZodDefault<z.ZodNumber>;
|
|
1808
1811
|
unknown_to_google: z.ZodDefault<z.ZodNumber>;
|
|
1809
1812
|
discovered_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
1810
1813
|
crawled_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
1811
|
-
indexed: z.ZodDefault<z.ZodNumber>;
|
|
1812
1814
|
noindex: z.ZodDefault<z.ZodNumber>;
|
|
1813
1815
|
blocked_robots: z.ZodDefault<z.ZodNumber>;
|
|
1814
1816
|
soft_404: z.ZodDefault<z.ZodNumber>;
|
|
1815
|
-
not_found: z.ZodDefault<z.ZodNumber>;
|
|
1816
1817
|
server_error: z.ZodDefault<z.ZodNumber>;
|
|
1817
1818
|
access_denied: z.ZodDefault<z.ZodNumber>;
|
|
1818
1819
|
access_forbidden: z.ZodDefault<z.ZodNumber>;
|
|
1819
1820
|
blocked_4xx: z.ZodDefault<z.ZodNumber>;
|
|
1820
|
-
redirect: z.ZodDefault<z.ZodNumber>;
|
|
1821
1821
|
redirect_error: z.ZodDefault<z.ZodNumber>;
|
|
1822
1822
|
alternate_canonical: z.ZodDefault<z.ZodNumber>;
|
|
1823
1823
|
duplicate_no_canonical: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2049,7 +2049,6 @@ export declare const gscdumpUserMeResponseSchema: z.ZodObject<{
|
|
|
2049
2049
|
picture: z.ZodOptional<z.ZodString>;
|
|
2050
2050
|
setupComplete: z.ZodBoolean;
|
|
2051
2051
|
databaseReady: z.ZodBoolean;
|
|
2052
|
-
plan: z.ZodString;
|
|
2053
2052
|
accountStatus: z.ZodEnum<{
|
|
2054
2053
|
ready: "ready";
|
|
2055
2054
|
disconnected: "disconnected";
|
|
@@ -3541,7 +3540,6 @@ export declare const partnerControlEndpointSchemas: {
|
|
|
3541
3540
|
picture: z.ZodOptional<z.ZodString>;
|
|
3542
3541
|
setupComplete: z.ZodBoolean;
|
|
3543
3542
|
databaseReady: z.ZodBoolean;
|
|
3544
|
-
plan: z.ZodString;
|
|
3545
3543
|
accountStatus: z.ZodEnum<{
|
|
3546
3544
|
ready: "ready";
|
|
3547
3545
|
disconnected: "disconnected";
|
|
@@ -4228,8 +4226,8 @@ export declare const partnerControlEndpointSchemas: {
|
|
|
4228
4226
|
status: z.ZodEnum<{
|
|
4229
4227
|
error: "error";
|
|
4230
4228
|
registered: "registered";
|
|
4231
|
-
not_found: "not_found";
|
|
4232
4229
|
already_exists: "already_exists";
|
|
4230
|
+
not_found: "not_found";
|
|
4233
4231
|
}>;
|
|
4234
4232
|
error: z.ZodOptional<z.ZodString>;
|
|
4235
4233
|
site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -4493,19 +4491,19 @@ export declare const partnerControlEndpointSchemas: {
|
|
|
4493
4491
|
_tag: z.ZodLiteral<"counted">;
|
|
4494
4492
|
capturedAt: z.ZodString;
|
|
4495
4493
|
counts: z.ZodObject<{
|
|
4494
|
+
indexed: z.ZodDefault<z.ZodNumber>;
|
|
4495
|
+
not_found: z.ZodDefault<z.ZodNumber>;
|
|
4496
|
+
redirect: z.ZodDefault<z.ZodNumber>;
|
|
4496
4497
|
unknown_to_google: z.ZodDefault<z.ZodNumber>;
|
|
4497
4498
|
discovered_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
4498
4499
|
crawled_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
4499
|
-
indexed: z.ZodDefault<z.ZodNumber>;
|
|
4500
4500
|
noindex: z.ZodDefault<z.ZodNumber>;
|
|
4501
4501
|
blocked_robots: z.ZodDefault<z.ZodNumber>;
|
|
4502
4502
|
soft_404: z.ZodDefault<z.ZodNumber>;
|
|
4503
|
-
not_found: z.ZodDefault<z.ZodNumber>;
|
|
4504
4503
|
server_error: z.ZodDefault<z.ZodNumber>;
|
|
4505
4504
|
access_denied: z.ZodDefault<z.ZodNumber>;
|
|
4506
4505
|
access_forbidden: z.ZodDefault<z.ZodNumber>;
|
|
4507
4506
|
blocked_4xx: z.ZodDefault<z.ZodNumber>;
|
|
4508
|
-
redirect: z.ZodDefault<z.ZodNumber>;
|
|
4509
4507
|
redirect_error: z.ZodDefault<z.ZodNumber>;
|
|
4510
4508
|
alternate_canonical: z.ZodDefault<z.ZodNumber>;
|
|
4511
4509
|
duplicate_no_canonical: z.ZodDefault<z.ZodNumber>;
|
|
@@ -5347,7 +5345,6 @@ export declare const partnerEndpointSchemas: {
|
|
|
5347
5345
|
picture: z.ZodOptional<z.ZodString>;
|
|
5348
5346
|
setupComplete: z.ZodBoolean;
|
|
5349
5347
|
databaseReady: z.ZodBoolean;
|
|
5350
|
-
plan: z.ZodString;
|
|
5351
5348
|
accountStatus: z.ZodEnum<{
|
|
5352
5349
|
ready: "ready";
|
|
5353
5350
|
disconnected: "disconnected";
|
|
@@ -6034,8 +6031,8 @@ export declare const partnerEndpointSchemas: {
|
|
|
6034
6031
|
status: z.ZodEnum<{
|
|
6035
6032
|
error: "error";
|
|
6036
6033
|
registered: "registered";
|
|
6037
|
-
not_found: "not_found";
|
|
6038
6034
|
already_exists: "already_exists";
|
|
6035
|
+
not_found: "not_found";
|
|
6039
6036
|
}>;
|
|
6040
6037
|
error: z.ZodOptional<z.ZodString>;
|
|
6041
6038
|
site: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -6299,19 +6296,19 @@ export declare const partnerEndpointSchemas: {
|
|
|
6299
6296
|
_tag: z.ZodLiteral<"counted">;
|
|
6300
6297
|
capturedAt: z.ZodString;
|
|
6301
6298
|
counts: z.ZodObject<{
|
|
6299
|
+
indexed: z.ZodDefault<z.ZodNumber>;
|
|
6300
|
+
not_found: z.ZodDefault<z.ZodNumber>;
|
|
6301
|
+
redirect: z.ZodDefault<z.ZodNumber>;
|
|
6302
6302
|
unknown_to_google: z.ZodDefault<z.ZodNumber>;
|
|
6303
6303
|
discovered_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
6304
6304
|
crawled_not_indexed: z.ZodDefault<z.ZodNumber>;
|
|
6305
|
-
indexed: z.ZodDefault<z.ZodNumber>;
|
|
6306
6305
|
noindex: z.ZodDefault<z.ZodNumber>;
|
|
6307
6306
|
blocked_robots: z.ZodDefault<z.ZodNumber>;
|
|
6308
6307
|
soft_404: z.ZodDefault<z.ZodNumber>;
|
|
6309
|
-
not_found: z.ZodDefault<z.ZodNumber>;
|
|
6310
6308
|
server_error: z.ZodDefault<z.ZodNumber>;
|
|
6311
6309
|
access_denied: z.ZodDefault<z.ZodNumber>;
|
|
6312
6310
|
access_forbidden: z.ZodDefault<z.ZodNumber>;
|
|
6313
6311
|
blocked_4xx: z.ZodDefault<z.ZodNumber>;
|
|
6314
|
-
redirect: z.ZodDefault<z.ZodNumber>;
|
|
6315
6312
|
redirect_error: z.ZodDefault<z.ZodNumber>;
|
|
6316
6313
|
alternate_canonical: z.ZodDefault<z.ZodNumber>;
|
|
6317
6314
|
duplicate_no_canonical: z.ZodDefault<z.ZodNumber>;
|
package/dist/schemas.mjs
CHANGED
|
@@ -900,7 +900,6 @@ const gscdumpUserMeResponseSchema = z.object({
|
|
|
900
900
|
picture: z.string().optional(),
|
|
901
901
|
setupComplete: z.boolean(),
|
|
902
902
|
databaseReady: z.boolean(),
|
|
903
|
-
plan: z.string(),
|
|
904
903
|
accountStatus: z.enum(accountStatuses),
|
|
905
904
|
accountNextAction: z.enum(accountNextActions),
|
|
906
905
|
missingScopes: z.array(z.string()),
|
package/dist/types.d.mts
CHANGED
|
@@ -1195,7 +1195,6 @@ export interface GscdumpUserMeResponse {
|
|
|
1195
1195
|
picture?: string;
|
|
1196
1196
|
setupComplete: boolean;
|
|
1197
1197
|
databaseReady: boolean;
|
|
1198
|
-
plan: string;
|
|
1199
1198
|
accountStatus: AccountStatus;
|
|
1200
1199
|
accountNextAction: AccountNextAction;
|
|
1201
1200
|
missingScopes: string[];
|