@gscdump/contracts 0.19.7 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +134 -11
- package/dist/index.mjs +7 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -190,7 +190,6 @@ declare const analyticsRoutes: {
|
|
|
190
190
|
readonly searchAppearance: (siteId: string) => string;
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
|
-
declare const builderStateSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
194
193
|
/**
|
|
195
194
|
* GSC search-type slice validator. Mirrors the `GscSearchType` union from
|
|
196
195
|
* `gscdump/contracts` and the `SearchTypes` constants in `gscdump/query`. Used by consumers
|
|
@@ -205,6 +204,16 @@ declare const searchTypeSchema: z.ZodEnum<{
|
|
|
205
204
|
discover: "discover";
|
|
206
205
|
googleNews: "googleNews";
|
|
207
206
|
}>;
|
|
207
|
+
declare const builderStateSchema: z.ZodObject<{
|
|
208
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
web: "web";
|
|
210
|
+
image: "image";
|
|
211
|
+
video: "video";
|
|
212
|
+
news: "news";
|
|
213
|
+
discover: "discover";
|
|
214
|
+
googleNews: "googleNews";
|
|
215
|
+
}>>;
|
|
216
|
+
}, z.core.$loose>;
|
|
208
217
|
declare const gscComparisonFilterSchema: z.ZodEnum<{
|
|
209
218
|
new: "new";
|
|
210
219
|
lost: "lost";
|
|
@@ -1289,16 +1298,50 @@ declare const bulkRegisterPartnerSitesResponseSchema: z.ZodObject<{
|
|
|
1289
1298
|
}, z.core.$strip>;
|
|
1290
1299
|
}, z.core.$loose>;
|
|
1291
1300
|
declare const dataQueryOptionsSchema: z.ZodOptional<z.ZodObject<{
|
|
1292
|
-
comparison: z.ZodOptional<z.
|
|
1301
|
+
comparison: z.ZodOptional<z.ZodObject<{
|
|
1302
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
1303
|
+
web: "web";
|
|
1304
|
+
image: "image";
|
|
1305
|
+
video: "video";
|
|
1306
|
+
news: "news";
|
|
1307
|
+
discover: "discover";
|
|
1308
|
+
googleNews: "googleNews";
|
|
1309
|
+
}>>;
|
|
1310
|
+
}, z.core.$loose>>;
|
|
1293
1311
|
filter: z.ZodOptional<z.ZodEnum<{
|
|
1294
1312
|
new: "new";
|
|
1295
1313
|
lost: "lost";
|
|
1296
1314
|
improving: "improving";
|
|
1297
1315
|
declining: "declining";
|
|
1298
1316
|
}>>;
|
|
1317
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
1318
|
+
web: "web";
|
|
1319
|
+
image: "image";
|
|
1320
|
+
video: "video";
|
|
1321
|
+
news: "news";
|
|
1322
|
+
discover: "discover";
|
|
1323
|
+
googleNews: "googleNews";
|
|
1324
|
+
}>>;
|
|
1299
1325
|
}, z.core.$strip>>;
|
|
1300
1326
|
declare const dataDetailOptionsSchema: z.ZodOptional<z.ZodObject<{
|
|
1301
|
-
comparison: z.ZodOptional<z.
|
|
1327
|
+
comparison: z.ZodOptional<z.ZodObject<{
|
|
1328
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
1329
|
+
web: "web";
|
|
1330
|
+
image: "image";
|
|
1331
|
+
video: "video";
|
|
1332
|
+
news: "news";
|
|
1333
|
+
discover: "discover";
|
|
1334
|
+
googleNews: "googleNews";
|
|
1335
|
+
}>>;
|
|
1336
|
+
}, z.core.$loose>>;
|
|
1337
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
1338
|
+
web: "web";
|
|
1339
|
+
image: "image";
|
|
1340
|
+
video: "video";
|
|
1341
|
+
news: "news";
|
|
1342
|
+
discover: "discover";
|
|
1343
|
+
googleNews: "googleNews";
|
|
1344
|
+
}>>;
|
|
1302
1345
|
}, z.core.$strip>>;
|
|
1303
1346
|
declare const gscdumpAnalysisPresetSchema: z.ZodEnum<{
|
|
1304
1347
|
"striking-distance": "striking-distance";
|
|
@@ -2901,15 +2944,41 @@ declare const partnerEndpointSchemas: {
|
|
|
2901
2944
|
}, z.core.$loose>;
|
|
2902
2945
|
};
|
|
2903
2946
|
readonly getData: {
|
|
2904
|
-
readonly state: z.
|
|
2947
|
+
readonly state: z.ZodObject<{
|
|
2948
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
2949
|
+
web: "web";
|
|
2950
|
+
image: "image";
|
|
2951
|
+
video: "video";
|
|
2952
|
+
news: "news";
|
|
2953
|
+
discover: "discover";
|
|
2954
|
+
googleNews: "googleNews";
|
|
2955
|
+
}>>;
|
|
2956
|
+
}, z.core.$loose>;
|
|
2905
2957
|
readonly options: z.ZodOptional<z.ZodObject<{
|
|
2906
|
-
comparison: z.ZodOptional<z.
|
|
2958
|
+
comparison: z.ZodOptional<z.ZodObject<{
|
|
2959
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
2960
|
+
web: "web";
|
|
2961
|
+
image: "image";
|
|
2962
|
+
video: "video";
|
|
2963
|
+
news: "news";
|
|
2964
|
+
discover: "discover";
|
|
2965
|
+
googleNews: "googleNews";
|
|
2966
|
+
}>>;
|
|
2967
|
+
}, z.core.$loose>>;
|
|
2907
2968
|
filter: z.ZodOptional<z.ZodEnum<{
|
|
2908
2969
|
new: "new";
|
|
2909
2970
|
lost: "lost";
|
|
2910
2971
|
improving: "improving";
|
|
2911
2972
|
declining: "declining";
|
|
2912
2973
|
}>>;
|
|
2974
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
2975
|
+
web: "web";
|
|
2976
|
+
image: "image";
|
|
2977
|
+
video: "video";
|
|
2978
|
+
news: "news";
|
|
2979
|
+
discover: "discover";
|
|
2980
|
+
googleNews: "googleNews";
|
|
2981
|
+
}>>;
|
|
2913
2982
|
}, z.core.$strip>>;
|
|
2914
2983
|
readonly response: z.ZodObject<{
|
|
2915
2984
|
rows: z.ZodArray<z.ZodObject<{
|
|
@@ -2945,9 +3014,35 @@ declare const partnerEndpointSchemas: {
|
|
|
2945
3014
|
}, z.core.$strip>;
|
|
2946
3015
|
};
|
|
2947
3016
|
readonly getDataDetail: {
|
|
2948
|
-
readonly state: z.
|
|
3017
|
+
readonly state: z.ZodObject<{
|
|
3018
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
3019
|
+
web: "web";
|
|
3020
|
+
image: "image";
|
|
3021
|
+
video: "video";
|
|
3022
|
+
news: "news";
|
|
3023
|
+
discover: "discover";
|
|
3024
|
+
googleNews: "googleNews";
|
|
3025
|
+
}>>;
|
|
3026
|
+
}, z.core.$loose>;
|
|
2949
3027
|
readonly options: z.ZodOptional<z.ZodObject<{
|
|
2950
|
-
comparison: z.ZodOptional<z.
|
|
3028
|
+
comparison: z.ZodOptional<z.ZodObject<{
|
|
3029
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
3030
|
+
web: "web";
|
|
3031
|
+
image: "image";
|
|
3032
|
+
video: "video";
|
|
3033
|
+
news: "news";
|
|
3034
|
+
discover: "discover";
|
|
3035
|
+
googleNews: "googleNews";
|
|
3036
|
+
}>>;
|
|
3037
|
+
}, z.core.$loose>>;
|
|
3038
|
+
searchType: z.ZodOptional<z.ZodEnum<{
|
|
3039
|
+
web: "web";
|
|
3040
|
+
image: "image";
|
|
3041
|
+
video: "video";
|
|
3042
|
+
news: "news";
|
|
3043
|
+
discover: "discover";
|
|
3044
|
+
googleNews: "googleNews";
|
|
3045
|
+
}>>;
|
|
2951
3046
|
}, z.core.$strip>>;
|
|
2952
3047
|
readonly response: z.ZodObject<{
|
|
2953
3048
|
daily: z.ZodArray<z.ZodObject<{
|
|
@@ -3579,6 +3674,7 @@ interface TenantCtx {
|
|
|
3579
3674
|
}
|
|
3580
3675
|
type Dimension = 'page' | 'query' | 'queryCanonical' | 'country' | 'device' | 'date' | 'searchAppearance' | 'hour';
|
|
3581
3676
|
type Metric = 'clicks' | 'impressions' | 'ctr' | 'position';
|
|
3677
|
+
type GscSearchType = 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews';
|
|
3582
3678
|
type Filter = unknown;
|
|
3583
3679
|
interface BuilderState {
|
|
3584
3680
|
dimensions: Dimension[];
|
|
@@ -3590,6 +3686,7 @@ interface BuilderState {
|
|
|
3590
3686
|
};
|
|
3591
3687
|
rowLimit?: number;
|
|
3592
3688
|
startRow?: number;
|
|
3689
|
+
searchType?: GscSearchType;
|
|
3593
3690
|
}
|
|
3594
3691
|
interface GscApiRange {
|
|
3595
3692
|
start: string;
|
|
@@ -3884,8 +3981,8 @@ interface BackfillResponse {
|
|
|
3884
3981
|
interface AnalyticsClient {
|
|
3885
3982
|
whoami: () => Promise<WhoamiResponse>;
|
|
3886
3983
|
listSites: () => Promise<SiteListItem[]>;
|
|
3887
|
-
getSourceInfo: (siteId: string) => Promise<SourceInfoResponse>;
|
|
3888
|
-
getAnalysisSources: (siteId: string, tables?: string[] | string) => Promise<AnalysisSourcesResponse>;
|
|
3984
|
+
getSourceInfo: (siteId: string, options?: SourceInfoOptions) => Promise<SourceInfoResponse>;
|
|
3985
|
+
getAnalysisSources: (siteId: string, tables?: string[] | string | AnalysisSourcesOptions, options?: SearchTypeOptions | SourceInfoOptions) => Promise<AnalysisSourcesResponse>;
|
|
3889
3986
|
analyze: <T = unknown>(siteId: string, params: unknown) => Promise<T>;
|
|
3890
3987
|
queryRows: <T = Record<string, unknown>>(siteId: string, state: unknown) => Promise<GscRowQueryResponse<T>>;
|
|
3891
3988
|
getRollup: <T = unknown>(siteId: string, rollupId: string, params?: {
|
|
@@ -4304,6 +4401,7 @@ interface GscdumpAnalysisParams {
|
|
|
4304
4401
|
minPosition?: number;
|
|
4305
4402
|
maxPosition?: number;
|
|
4306
4403
|
maxCtr?: number;
|
|
4404
|
+
searchType?: GscSearchType;
|
|
4307
4405
|
}
|
|
4308
4406
|
interface GscdumpAnalysisResponse {
|
|
4309
4407
|
preset: GscdumpAnalysisPreset;
|
|
@@ -4379,13 +4477,38 @@ interface GscdumpAnalysisSourcesResponse {
|
|
|
4379
4477
|
tables: Record<string, string[]>;
|
|
4380
4478
|
generatedAt: string;
|
|
4381
4479
|
manifestVersion: string;
|
|
4480
|
+
searchType?: GscSearchType;
|
|
4481
|
+
canUseBrowser?: boolean;
|
|
4482
|
+
fallback?: string;
|
|
4483
|
+
reason?: string;
|
|
4484
|
+
estimatedBytes?: number;
|
|
4485
|
+
estimatedFiles?: number;
|
|
4486
|
+
coveragePlan?: unknown;
|
|
4487
|
+
}
|
|
4488
|
+
interface SearchTypeOptions {
|
|
4489
|
+
searchType?: GscSearchType;
|
|
4490
|
+
}
|
|
4491
|
+
interface SourceInfoOptions extends SearchTypeOptions {
|
|
4492
|
+
start?: string;
|
|
4493
|
+
end?: string;
|
|
4494
|
+
startDate?: string;
|
|
4495
|
+
endDate?: string;
|
|
4496
|
+
}
|
|
4497
|
+
interface AnalysisSourcesOptions extends SearchTypeOptions {
|
|
4498
|
+
tables?: string[] | string;
|
|
4499
|
+
start?: string;
|
|
4500
|
+
end?: string;
|
|
4501
|
+
startDate?: string;
|
|
4502
|
+
endDate?: string;
|
|
4382
4503
|
}
|
|
4383
4504
|
interface DataQueryOptions {
|
|
4384
4505
|
comparison?: BuilderState;
|
|
4385
4506
|
filter?: GscComparisonFilter;
|
|
4507
|
+
searchType?: GscSearchType;
|
|
4386
4508
|
}
|
|
4387
4509
|
interface DataDetailOptions {
|
|
4388
4510
|
comparison?: BuilderState;
|
|
4511
|
+
searchType?: GscSearchType;
|
|
4389
4512
|
}
|
|
4390
4513
|
interface IndexingUrlsParams {
|
|
4391
4514
|
limit?: number;
|
|
@@ -4718,7 +4841,7 @@ interface PartnerClient {
|
|
|
4718
4841
|
deleteSite: (siteId: string) => Promise<{
|
|
4719
4842
|
success: boolean;
|
|
4720
4843
|
}>;
|
|
4721
|
-
getAnalysisSources: (siteId: string, tables?: string[] | string) => Promise<GscdumpAnalysisSourcesResponse>;
|
|
4844
|
+
getAnalysisSources: (siteId: string, tables?: string[] | string | AnalysisSourcesOptions, options?: SearchTypeOptions | SourceInfoOptions) => Promise<GscdumpAnalysisSourcesResponse>;
|
|
4722
4845
|
getSiteSyncStatus: (siteId: string, userId?: string) => Promise<GscdumpSyncStatusResponse>;
|
|
4723
4846
|
getData: (siteId: string, state: BuilderState, options?: DataQueryOptions) => Promise<GscdumpDataResponse>;
|
|
4724
4847
|
getDataDetail: (siteId: string, state: BuilderState, options?: DataDetailOptions) => Promise<GscdumpDataDetailResponse>;
|
|
@@ -4952,4 +5075,4 @@ declare const WEBHOOK_CONTRACT_VERSION_HEADER = "X-GSCDump-Contract-Version";
|
|
|
4952
5075
|
declare const WEBHOOK_TIMESTAMP_HEADER = "X-GSCDump-Timestamp";
|
|
4953
5076
|
declare const CANONICAL_WEBHOOK_EVENTS: readonly ["user.lifecycle.changed", "site.lifecycle.changed", "site.analytics.ready", "site.indexing.ready", "site.auth.failed", "job.failed"];
|
|
4954
5077
|
declare const VALID_WEBHOOK_EVENTS: readonly ["user.lifecycle.changed", "site.lifecycle.changed", "site.analytics.ready", "site.indexing.ready", "site.auth.failed", "job.failed"];
|
|
4955
|
-
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 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 };
|
|
5078
|
+
export { AccountNextAction, AccountStatus, type AddPartnerTeamMemberParams, type AnalysisSourcesOptions, 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 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 SearchTypeOptions, type SiteListItem, type SitemapAddedRow, type SitemapChangesResponse, type SitemapHistoryRecord, type SitemapHistoryResponse, type SitemapIndex, SitemapNextAction, type SitemapRemovedRow, SitemapStatus, type SourceInfoOptions, 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
|
@@ -219,7 +219,6 @@ const CANONICAL_WEBHOOK_EVENTS = [
|
|
|
219
219
|
];
|
|
220
220
|
const VALID_WEBHOOK_EVENTS = CANONICAL_WEBHOOK_EVENTS;
|
|
221
221
|
const unknownRecord = z.record(z.string(), z.unknown());
|
|
222
|
-
const builderStateSchema = unknownRecord;
|
|
223
222
|
const searchTypeSchema = z.enum([
|
|
224
223
|
"web",
|
|
225
224
|
"image",
|
|
@@ -228,6 +227,7 @@ const searchTypeSchema = z.enum([
|
|
|
228
227
|
"discover",
|
|
229
228
|
"googleNews"
|
|
230
229
|
]);
|
|
230
|
+
const builderStateSchema = z.object({ searchType: searchTypeSchema.optional() }).loose();
|
|
231
231
|
const gscComparisonFilterSchema = z.enum([
|
|
232
232
|
"new",
|
|
233
233
|
"lost",
|
|
@@ -730,9 +730,13 @@ const bulkRegisterPartnerSitesResponseSchema = z.object({
|
|
|
730
730
|
}).loose();
|
|
731
731
|
const dataQueryOptionsSchema = z.object({
|
|
732
732
|
comparison: builderStateSchema.optional(),
|
|
733
|
-
filter: gscComparisonFilterSchema.optional()
|
|
733
|
+
filter: gscComparisonFilterSchema.optional(),
|
|
734
|
+
searchType: searchTypeSchema.optional()
|
|
735
|
+
}).optional();
|
|
736
|
+
const dataDetailOptionsSchema = z.object({
|
|
737
|
+
comparison: builderStateSchema.optional(),
|
|
738
|
+
searchType: searchTypeSchema.optional()
|
|
734
739
|
}).optional();
|
|
735
|
-
const dataDetailOptionsSchema = z.object({ comparison: builderStateSchema.optional() }).optional();
|
|
736
740
|
const gscdumpAnalysisPresetSchema = z.enum([
|
|
737
741
|
"striking-distance",
|
|
738
742
|
"opportunity",
|